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
Fields
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
SECONDARY_IP_RANGE_NAMES_FIELD_NUMBER
public static final int SECONDARY_IP_RANGE_NAMES_FIELD_NUMBER
Field Value
SOURCE_IP_RANGES_TO_NAT_FIELD_NUMBER
public static final int SOURCE_IP_RANGES_TO_NAT_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static RouterNatSubnetworkToNat getDefaultInstance()
Returns
getDefaultInstanceForType()
public RouterNatSubnetworkToNat getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
getParserForType()
public Parser<RouterNatSubnetworkToNat> getParserForType()
Returns
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
getSerializedSize()
public int getSerializedSize()
Returns
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static RouterNatSubnetworkToNat.Builder newBuilder()
Returns
newBuilder(RouterNatSubnetworkToNat prototype)
public static RouterNatSubnetworkToNat.Builder newBuilder(RouterNatSubnetworkToNat prototype)
Parameter
Returns
newBuilderForType()
public RouterNatSubnetworkToNat.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RouterNatSubnetworkToNat.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static RouterNatSubnetworkToNat parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RouterNatSubnetworkToNat parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RouterNatSubnetworkToNat parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RouterNatSubnetworkToNat parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RouterNatSubnetworkToNat parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RouterNatSubnetworkToNat parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RouterNatSubnetworkToNat parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RouterNatSubnetworkToNat parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RouterNatSubnetworkToNat parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RouterNatSubnetworkToNat parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RouterNatSubnetworkToNat parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RouterNatSubnetworkToNat parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RouterNatSubnetworkToNat> parser()
Returns
toBuilder()
public RouterNatSubnetworkToNat.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions