Class NetworkRoutingConfig.Builder (1.20.0)

public static final class NetworkRoutingConfig.Builder extends GeneratedMessageV3.Builder<NetworkRoutingConfig.Builder> implements NetworkRoutingConfigOrBuilder

A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide.

Protobuf type google.cloud.compute.v1.NetworkRoutingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NetworkRoutingConfig build()
Returns
TypeDescription
NetworkRoutingConfig

buildPartial()

public NetworkRoutingConfig buildPartial()
Returns
TypeDescription
NetworkRoutingConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRoutingMode()

public NetworkRoutingConfig.Builder clearRoutingMode()

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Returns
TypeDescription
NetworkRoutingConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public NetworkRoutingConfig getDefaultInstanceForType()
Returns
TypeDescription
NetworkRoutingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRoutingMode()

public String getRoutingMode()

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Returns
TypeDescription
String

The routingMode.

getRoutingModeBytes()

public ByteString getRoutingModeBytes()

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Returns
TypeDescription
ByteString

The bytes for routingMode.

hasRoutingMode()

public boolean hasRoutingMode()

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Returns
TypeDescription
boolean

Whether the routingMode field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NetworkRoutingConfig other)

public NetworkRoutingConfig.Builder mergeFrom(NetworkRoutingConfig other)
Parameter
NameDescription
otherNetworkRoutingConfig
Returns
TypeDescription
NetworkRoutingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setRoutingMode(String value)

public NetworkRoutingConfig.Builder setRoutingMode(String value)

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Parameter
NameDescription
valueString

The routingMode to set.

Returns
TypeDescription
NetworkRoutingConfig.Builder

This builder for chaining.

setRoutingModeBytes(ByteString value)

public NetworkRoutingConfig.Builder setRoutingModeBytes(ByteString value)

The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. Check the RoutingMode enum for the list of possible values.

optional string routing_mode = 475143548;

Parameter
NameDescription
valueByteString

The bytes for routingMode to set.

Returns
TypeDescription
NetworkRoutingConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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