Class NetworkRoutingConfig (1.51.0)

public final class NetworkRoutingConfig extends GeneratedMessageV3 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 Fields

ROUTING_MODE_FIELD_NUMBER

public static final int ROUTING_MODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NetworkRoutingConfig getDefaultInstance()
Returns
TypeDescription
NetworkRoutingConfig

getDescriptor()

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

newBuilder()

public static NetworkRoutingConfig.Builder newBuilder()
Returns
TypeDescription
NetworkRoutingConfig.Builder

newBuilder(NetworkRoutingConfig prototype)

public static NetworkRoutingConfig.Builder newBuilder(NetworkRoutingConfig prototype)
Parameter
NameDescription
prototypeNetworkRoutingConfig
Returns
TypeDescription
NetworkRoutingConfig.Builder

parseDelimitedFrom(InputStream input)

public static NetworkRoutingConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkRoutingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NetworkRoutingConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkRoutingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkRoutingConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkRoutingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkRoutingConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkRoutingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NetworkRoutingConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkRoutingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NetworkRoutingConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkRoutingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NetworkRoutingConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NetworkRoutingConfig> parser()
Returns
TypeDescription
Parser<NetworkRoutingConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public NetworkRoutingConfig getDefaultInstanceForType()
Returns
TypeDescription
NetworkRoutingConfig

getParserForType()

public Parser<NetworkRoutingConfig> getParserForType()
Returns
TypeDescription
Parser<NetworkRoutingConfig>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NetworkRoutingConfig.Builder newBuilderForType()
Returns
TypeDescription
NetworkRoutingConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkRoutingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NetworkRoutingConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NetworkRoutingConfig.Builder toBuilder()
Returns
TypeDescription
NetworkRoutingConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException