Class RouterNatSubnetworkToNat (1.46.0)

public final class RouterNatSubnetworkToNat extends GeneratedMessageV3 implements RouterNatSubnetworkToNatOrBuilder

Defines the IP ranges that want to use NAT for a subnetwork.

Protobuf type google.cloud.compute.v1.RouterNatSubnetworkToNat

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SECONDARY_IP_RANGE_NAMES_FIELD_NUMBER

public static final int SECONDARY_IP_RANGE_NAMES_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_IP_RANGES_TO_NAT_FIELD_NUMBER

public static final int SOURCE_IP_RANGES_TO_NAT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RouterNatSubnetworkToNat getDefaultInstance()
Returns
TypeDescription
RouterNatSubnetworkToNat

getDescriptor()

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

newBuilder()

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

newBuilder(RouterNatSubnetworkToNat prototype)

public static RouterNatSubnetworkToNat.Builder newBuilder(RouterNatSubnetworkToNat prototype)
Parameter
NameDescription
prototypeRouterNatSubnetworkToNat
Returns
TypeDescription
RouterNatSubnetworkToNat.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public RouterNatSubnetworkToNat getDefaultInstanceForType()
Returns
TypeDescription
RouterNatSubnetworkToNat

getName()

public String getName()

URL for the subnetwork resource that will use NAT.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

URL for the subnetwork resource that will use NAT.

optional string name = 3373707;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<RouterNatSubnetworkToNat> getParserForType()
Returns
TypeDescription
Parser<RouterNatSubnetworkToNat>
Overrides

getSecondaryIpRangeNames(int index)

public String getSecondaryIpRangeNames(int index)

A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.

repeated string secondary_ip_range_names = 264315097;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The secondaryIpRangeNames at the given index.

getSecondaryIpRangeNamesBytes(int index)

public ByteString getSecondaryIpRangeNamesBytes(int index)

A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.

repeated string secondary_ip_range_names = 264315097;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the secondaryIpRangeNames at the given index.

getSecondaryIpRangeNamesCount()

public int getSecondaryIpRangeNamesCount()

A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.

repeated string secondary_ip_range_names = 264315097;

Returns
TypeDescription
int

The count of secondaryIpRangeNames.

getSecondaryIpRangeNamesList()

public ProtocolStringList getSecondaryIpRangeNamesList()

A list of the secondary ranges of the Subnetwork that are allowed to use NAT. This can be populated only if "LIST_OF_SECONDARY_IP_RANGES" is one of the values in source_ip_ranges_to_nat.

repeated string secondary_ip_range_names = 264315097;

Returns
TypeDescription
ProtocolStringList

A list containing the secondaryIpRangeNames.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceIpRangesToNat(int index)

public String getSourceIpRangesToNat(int index)

Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.

repeated string source_ip_ranges_to_nat = 388310386;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The sourceIpRangesToNat at the given index.

getSourceIpRangesToNatBytes(int index)

public ByteString getSourceIpRangesToNatBytes(int index)

Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.

repeated string source_ip_ranges_to_nat = 388310386;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the sourceIpRangesToNat at the given index.

getSourceIpRangesToNatCount()

public int getSourceIpRangesToNatCount()

Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.

repeated string source_ip_ranges_to_nat = 388310386;

Returns
TypeDescription
int

The count of sourceIpRangesToNat.

getSourceIpRangesToNatList()

public ProtocolStringList getSourceIpRangesToNatList()

Specify the options for NAT ranges in the Subnetwork. All options of a single value are valid except NAT_IP_RANGE_OPTION_UNSPECIFIED. The only valid option with multiple values is: ["PRIMARY_IP_RANGE", "LIST_OF_SECONDARY_IP_RANGES"] Default: [ALL_IP_RANGES] Check the SourceIpRangesToNat enum for the list of possible values.

repeated string source_ip_ranges_to_nat = 388310386;

Returns
TypeDescription
ProtocolStringList

A list containing the sourceIpRangesToNat.

hasName()

public boolean hasName()

URL for the subnetwork resource that will use NAT.

optional string name = 3373707;

Returns
TypeDescription
boolean

Whether the name 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 RouterNatSubnetworkToNat.Builder newBuilderForType()
Returns
TypeDescription
RouterNatSubnetworkToNat.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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