Class ExchangedPeeringRoute.Builder (1.55.0)

public static final class ExchangedPeeringRoute.Builder extends GeneratedMessageV3.Builder<ExchangedPeeringRoute.Builder> implements ExchangedPeeringRouteOrBuilder

Protobuf type google.cloud.compute.v1.ExchangedPeeringRoute

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExchangedPeeringRoute.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExchangedPeeringRoute.Builder
Overrides

build()

public ExchangedPeeringRoute build()
Returns
Type Description
ExchangedPeeringRoute

buildPartial()

public ExchangedPeeringRoute buildPartial()
Returns
Type Description
ExchangedPeeringRoute

clear()

public ExchangedPeeringRoute.Builder clear()
Returns
Type Description
ExchangedPeeringRoute.Builder
Overrides

clearDestRange()

public ExchangedPeeringRoute.Builder clearDestRange()

The destination range of the route.

optional string dest_range = 381327712;

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ExchangedPeeringRoute.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExchangedPeeringRoute.Builder
Overrides

clearImported()

public ExchangedPeeringRoute.Builder clearImported()

True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.

optional bool imported = 114502404;

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

clearNextHopRegion()

public ExchangedPeeringRoute.Builder clearNextHopRegion()

The region of peering route next hop, only applies to dynamic routes.

optional string next_hop_region = 122577014;

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExchangedPeeringRoute.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExchangedPeeringRoute.Builder
Overrides

clearPriority()

public ExchangedPeeringRoute.Builder clearPriority()

The priority of the peering route.

optional uint32 priority = 445151652;

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

clearType()

public ExchangedPeeringRoute.Builder clearType()

The type of the peering route. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

clone()

public ExchangedPeeringRoute.Builder clone()
Returns
Type Description
ExchangedPeeringRoute.Builder
Overrides

getDefaultInstanceForType()

public ExchangedPeeringRoute getDefaultInstanceForType()
Returns
Type Description
ExchangedPeeringRoute

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestRange()

public String getDestRange()

The destination range of the route.

optional string dest_range = 381327712;

Returns
Type Description
String

The destRange.

getDestRangeBytes()

public ByteString getDestRangeBytes()

The destination range of the route.

optional string dest_range = 381327712;

Returns
Type Description
ByteString

The bytes for destRange.

getImported()

public boolean getImported()

True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.

optional bool imported = 114502404;

Returns
Type Description
boolean

The imported.

getNextHopRegion()

public String getNextHopRegion()

The region of peering route next hop, only applies to dynamic routes.

optional string next_hop_region = 122577014;

Returns
Type Description
String

The nextHopRegion.

getNextHopRegionBytes()

public ByteString getNextHopRegionBytes()

The region of peering route next hop, only applies to dynamic routes.

optional string next_hop_region = 122577014;

Returns
Type Description
ByteString

The bytes for nextHopRegion.

getPriority()

public int getPriority()

The priority of the peering route.

optional uint32 priority = 445151652;

Returns
Type Description
int

The priority.

getType()

public String getType()

The type of the peering route. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The type of the peering route. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
ByteString

The bytes for type.

hasDestRange()

public boolean hasDestRange()

The destination range of the route.

optional string dest_range = 381327712;

Returns
Type Description
boolean

Whether the destRange field is set.

hasImported()

public boolean hasImported()

True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.

optional bool imported = 114502404;

Returns
Type Description
boolean

Whether the imported field is set.

hasNextHopRegion()

public boolean hasNextHopRegion()

The region of peering route next hop, only applies to dynamic routes.

optional string next_hop_region = 122577014;

Returns
Type Description
boolean

Whether the nextHopRegion field is set.

hasPriority()

public boolean hasPriority()

The priority of the peering route.

optional uint32 priority = 445151652;

Returns
Type Description
boolean

Whether the priority field is set.

hasType()

public boolean hasType()

The type of the peering route. Check the Type enum for the list of possible values.

optional string type = 3575610;

Returns
Type Description
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExchangedPeeringRoute other)

public ExchangedPeeringRoute.Builder mergeFrom(ExchangedPeeringRoute other)
Parameter
Name Description
other ExchangedPeeringRoute
Returns
Type Description
ExchangedPeeringRoute.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExchangedPeeringRoute.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExchangedPeeringRoute.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExchangedPeeringRoute.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExchangedPeeringRoute.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExchangedPeeringRoute.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExchangedPeeringRoute.Builder
Overrides

setDestRange(String value)

public ExchangedPeeringRoute.Builder setDestRange(String value)

The destination range of the route.

optional string dest_range = 381327712;

Parameter
Name Description
value String

The destRange to set.

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

setDestRangeBytes(ByteString value)

public ExchangedPeeringRoute.Builder setDestRangeBytes(ByteString value)

The destination range of the route.

optional string dest_range = 381327712;

Parameter
Name Description
value ByteString

The bytes for destRange to set.

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExchangedPeeringRoute.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExchangedPeeringRoute.Builder
Overrides

setImported(boolean value)

public ExchangedPeeringRoute.Builder setImported(boolean value)

True if the peering route has been imported from a peer. The actual import happens if the field networkPeering.importCustomRoutes is true for this network, and networkPeering.exportCustomRoutes is true for the peer network, and the import does not result in a route conflict.

optional bool imported = 114502404;

Parameter
Name Description
value boolean

The imported to set.

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

setNextHopRegion(String value)

public ExchangedPeeringRoute.Builder setNextHopRegion(String value)

The region of peering route next hop, only applies to dynamic routes.

optional string next_hop_region = 122577014;

Parameter
Name Description
value String

The nextHopRegion to set.

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

setNextHopRegionBytes(ByteString value)

public ExchangedPeeringRoute.Builder setNextHopRegionBytes(ByteString value)

The region of peering route next hop, only applies to dynamic routes.

optional string next_hop_region = 122577014;

Parameter
Name Description
value ByteString

The bytes for nextHopRegion to set.

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

setPriority(int value)

public ExchangedPeeringRoute.Builder setPriority(int value)

The priority of the peering route.

optional uint32 priority = 445151652;

Parameter
Name Description
value int

The priority to set.

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

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

public ExchangedPeeringRoute.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExchangedPeeringRoute.Builder
Overrides

setType(String value)

public ExchangedPeeringRoute.Builder setType(String value)

The type of the peering route. Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public ExchangedPeeringRoute.Builder setTypeBytes(ByteString value)

The type of the peering route. Check the Type enum for the list of possible values.

optional string type = 3575610;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
ExchangedPeeringRoute.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ExchangedPeeringRoute.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExchangedPeeringRoute.Builder
Overrides