Class RouterNatSubnetworkToNat (1.65.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
Type Description
int

SECONDARY_IP_RANGE_NAMES_FIELD_NUMBER

public static final int SECONDARY_IP_RANGE_NAMES_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_IP_RANGES_TO_NAT_FIELD_NUMBER

public static final int SOURCE_IP_RANGES_TO_NAT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RouterNatSubnetworkToNat getDefaultInstance()
Returns
Type Description
RouterNatSubnetworkToNat

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RouterNatSubnetworkToNat.Builder newBuilder()
Returns
Type Description
RouterNatSubnetworkToNat.Builder

newBuilder(RouterNatSubnetworkToNat prototype)

public static RouterNatSubnetworkToNat.Builder newBuilder(RouterNatSubnetworkToNat prototype)
Parameter
Name Description
prototype RouterNatSubnetworkToNat
Returns
Type Description
RouterNatSubnetworkToNat.Builder

parseDelimitedFrom(InputStream input)

public static RouterNatSubnetworkToNat parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterNatSubnetworkToNat parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RouterNatSubnetworkToNat parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RouterNatSubnetworkToNat parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RouterNatSubnetworkToNat parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RouterNatSubnetworkToNat parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RouterNatSubnetworkToNat parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterNatSubnetworkToNat parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RouterNatSubnetworkToNat parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterNatSubnetworkToNat parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RouterNatSubnetworkToNat parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RouterNatSubnetworkToNat parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterNatSubnetworkToNat
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RouterNatSubnetworkToNat> parser()
Returns
Type Description
Parser<RouterNatSubnetworkToNat>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RouterNatSubnetworkToNat getDefaultInstanceForType()
Returns
Type Description
RouterNatSubnetworkToNat

getName()

public String getName()

URL for the subnetwork resource that will use NAT.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

URL for the subnetwork resource that will use NAT.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<RouterNatSubnetworkToNat> getParserForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the secondaryIpRangeNames.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the sourceIpRangesToNat.

hasName()

public boolean hasName()

URL for the subnetwork resource that will use NAT.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RouterNatSubnetworkToNat.Builder newBuilderForType()
Returns
Type Description
RouterNatSubnetworkToNat.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RouterNatSubnetworkToNat.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RouterNatSubnetworkToNat.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RouterNatSubnetworkToNat.Builder toBuilder()
Returns
Type Description
RouterNatSubnetworkToNat.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException