Class ExchangedPeeringRoute.Builder (1.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExchangedPeeringRoute build()
Returns
TypeDescription
ExchangedPeeringRoute

buildPartial()

public ExchangedPeeringRoute buildPartial()
Returns
TypeDescription
ExchangedPeeringRoute

clear()

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

clearDestRange()

public ExchangedPeeringRoute.Builder clearDestRange()

The destination range of the route.

optional string dest_range = 381327712;

Returns
TypeDescription
ExchangedPeeringRoute.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ExchangedPeeringRoute.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ExchangedPeeringRoute.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPriority()

public ExchangedPeeringRoute.Builder clearPriority()

The priority of the peering route.

optional uint32 priority = 445151652;

Returns
TypeDescription
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
TypeDescription
ExchangedPeeringRoute.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ExchangedPeeringRoute getDefaultInstanceForType()
Returns
TypeDescription
ExchangedPeeringRoute

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestRange()

public String getDestRange()

The destination range of the route.

optional string dest_range = 381327712;

Returns
TypeDescription
String

The destRange.

getDestRangeBytes()

public ByteString getDestRangeBytes()

The destination range of the route.

optional string dest_range = 381327712;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextHopRegion.

getPriority()

public int getPriority()

The priority of the peering route.

optional uint32 priority = 445151652;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for type.

hasDestRange()

public boolean hasDestRange()

The destination range of the route.

optional string dest_range = 381327712;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the nextHopRegion field is set.

hasPriority()

public boolean hasPriority()

The priority of the peering route.

optional uint32 priority = 445151652;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the type field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExchangedPeeringRoute other)

public ExchangedPeeringRoute.Builder mergeFrom(ExchangedPeeringRoute other)
Parameter
NameDescription
otherExchangedPeeringRoute
Returns
TypeDescription
ExchangedPeeringRoute.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDestRange(String value)

public ExchangedPeeringRoute.Builder setDestRange(String value)

The destination range of the route.

optional string dest_range = 381327712;

Parameter
NameDescription
valueString

The destRange to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for destRange to set.

Returns
TypeDescription
ExchangedPeeringRoute.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExchangedPeeringRoute.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The imported to set.

Returns
TypeDescription
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
NameDescription
valueString

The nextHopRegion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextHopRegion to set.

Returns
TypeDescription
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
NameDescription
valueint

The priority to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The type to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
ExchangedPeeringRoute.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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