Class PeeringRoute.Builder (0.15.0)

public static final class PeeringRoute.Builder extends GeneratedMessageV3.Builder<PeeringRoute.Builder> implements PeeringRouteOrBuilder

Exchanged network peering route.

Protobuf type google.cloud.vmwareengine.v1.PeeringRoute

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PeeringRoute.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PeeringRoute.Builder
Overrides

build()

public PeeringRoute build()
Returns
TypeDescription
PeeringRoute

buildPartial()

public PeeringRoute buildPartial()
Returns
TypeDescription
PeeringRoute

clear()

public PeeringRoute.Builder clear()
Returns
TypeDescription
PeeringRoute.Builder
Overrides

clearDestRange()

public PeeringRoute.Builder clearDestRange()

Output only. Destination range of the peering route in CIDR notation.

string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

clearDirection()

public PeeringRoute.Builder clearDirection()

Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective:

  • Routes of direction INCOMING are imported from the peer network.
  • Routes of direction OUTGOING are exported from the intranet VPC network of the VMware Engine network.

.google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PeeringRoute.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PeeringRoute.Builder
Overrides

clearImported()

public PeeringRoute.Builder clearImported()

Output only. True if the peering route has been imported from a peered VPC network; false otherwise. The import happens if the field NetworkPeering.importCustomRoutes is true for this network, NetworkPeering.exportCustomRoutes is true for the peer VPC network, and the import does not result in a route conflict.

bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

clearNextHopRegion()

public PeeringRoute.Builder clearNextHopRegion()

Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.

string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PeeringRoute.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PeeringRoute.Builder
Overrides

clearPriority()

public PeeringRoute.Builder clearPriority()

Output only. The priority of the peering route.

int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

clearType()

public PeeringRoute.Builder clearType()

Output only. Type of the route in the peer VPC network.

.google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

clone()

public PeeringRoute.Builder clone()
Returns
TypeDescription
PeeringRoute.Builder
Overrides

getDefaultInstanceForType()

public PeeringRoute getDefaultInstanceForType()
Returns
TypeDescription
PeeringRoute

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestRange()

public String getDestRange()

Output only. Destination range of the peering route in CIDR notation.

string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The destRange.

getDestRangeBytes()

public ByteString getDestRangeBytes()

Output only. Destination range of the peering route in CIDR notation.

string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for destRange.

getDirection()

public PeeringRoute.Direction getDirection()

Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective:

  • Routes of direction INCOMING are imported from the peer network.
  • Routes of direction OUTGOING are exported from the intranet VPC network of the VMware Engine network.

.google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PeeringRoute.Direction

The direction.

getDirectionValue()

public int getDirectionValue()

Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective:

  • Routes of direction INCOMING are imported from the peer network.
  • Routes of direction OUTGOING are exported from the intranet VPC network of the VMware Engine network.

.google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for direction.

getImported()

public boolean getImported()

Output only. True if the peering route has been imported from a peered VPC network; false otherwise. The import happens if the field NetworkPeering.importCustomRoutes is true for this network, NetworkPeering.exportCustomRoutes is true for the peer VPC network, and the import does not result in a route conflict.

bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The imported.

getNextHopRegion()

public String getNextHopRegion()

Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.

string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The nextHopRegion.

getNextHopRegionBytes()

public ByteString getNextHopRegionBytes()

Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.

string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for nextHopRegion.

getPriority()

public long getPriority()

Output only. The priority of the peering route.

int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The priority.

getType()

public PeeringRoute.Type getType()

Output only. Type of the route in the peer VPC network.

.google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
PeeringRoute.Type

The type.

getTypeValue()

public int getTypeValue()

Output only. Type of the route in the peer VPC network.

.google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PeeringRoute other)

public PeeringRoute.Builder mergeFrom(PeeringRoute other)
Parameter
NameDescription
otherPeeringRoute
Returns
TypeDescription
PeeringRoute.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PeeringRoute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PeeringRoute.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PeeringRoute.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PeeringRoute.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PeeringRoute.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PeeringRoute.Builder
Overrides

setDestRange(String value)

public PeeringRoute.Builder setDestRange(String value)

Output only. Destination range of the peering route in CIDR notation.

string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The destRange to set.

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

setDestRangeBytes(ByteString value)

public PeeringRoute.Builder setDestRangeBytes(ByteString value)

Output only. Destination range of the peering route in CIDR notation.

string dest_range = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for destRange to set.

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

setDirection(PeeringRoute.Direction value)

public PeeringRoute.Builder setDirection(PeeringRoute.Direction value)

Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective:

  • Routes of direction INCOMING are imported from the peer network.
  • Routes of direction OUTGOING are exported from the intranet VPC network of the VMware Engine network.

.google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuePeeringRoute.Direction

The direction to set.

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

setDirectionValue(int value)

public PeeringRoute.Builder setDirectionValue(int value)

Output only. Direction of the routes exchanged with the peer network, from the VMware Engine network perspective:

  • Routes of direction INCOMING are imported from the peer network.
  • Routes of direction OUTGOING are exported from the intranet VPC network of the VMware Engine network.

.google.cloud.vmwareengine.v1.PeeringRoute.Direction direction = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for direction to set.

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PeeringRoute.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PeeringRoute.Builder
Overrides

setImported(boolean value)

public PeeringRoute.Builder setImported(boolean value)

Output only. True if the peering route has been imported from a peered VPC network; false otherwise. The import happens if the field NetworkPeering.importCustomRoutes is true for this network, NetworkPeering.exportCustomRoutes is true for the peer VPC network, and the import does not result in a route conflict.

bool imported = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The imported to set.

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

setNextHopRegion(String value)

public PeeringRoute.Builder setNextHopRegion(String value)

Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.

string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The nextHopRegion to set.

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

setNextHopRegionBytes(ByteString value)

public PeeringRoute.Builder setNextHopRegionBytes(ByteString value)

Output only. Region containing the next hop of the peering route. This field only applies to dynamic routes in the peer VPC network.

string next_hop_region = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for nextHopRegion to set.

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

setPriority(long value)

public PeeringRoute.Builder setPriority(long value)

Output only. The priority of the peering route.

int64 priority = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuelong

The priority to set.

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PeeringRoute.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PeeringRoute.Builder
Overrides

setType(PeeringRoute.Type value)

public PeeringRoute.Builder setType(PeeringRoute.Type value)

Output only. Type of the route in the peer VPC network.

.google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuePeeringRoute.Type

The type to set.

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

setTypeValue(int value)

public PeeringRoute.Builder setTypeValue(int value)

Output only. Type of the route in the peer VPC network.

.google.cloud.vmwareengine.v1.PeeringRoute.Type type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
PeeringRoute.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PeeringRoute.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PeeringRoute.Builder
Overrides