Class ExchangedPeeringRoute.Builder (1.93.0)

public static final class ExchangedPeeringRoute.Builder extends GeneratedMessage.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

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.

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.

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.

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 GeneratedMessage.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

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.

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.

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.