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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RouterNatSubnetworkToNat.Builder newBuilder()
newBuilder(RouterNatSubnetworkToNat prototype)
public static RouterNatSubnetworkToNat.Builder newBuilder(RouterNatSubnetworkToNat prototype)
public static RouterNatSubnetworkToNat parseDelimitedFrom(InputStream input)
public static RouterNatSubnetworkToNat parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RouterNatSubnetworkToNat parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RouterNatSubnetworkToNat parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RouterNatSubnetworkToNat parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RouterNatSubnetworkToNat parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RouterNatSubnetworkToNat parseFrom(CodedInputStream input)
public static RouterNatSubnetworkToNat parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RouterNatSubnetworkToNat parseFrom(InputStream input)
public static RouterNatSubnetworkToNat parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RouterNatSubnetworkToNat parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RouterNatSubnetworkToNat parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RouterNatSubnetworkToNat> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public RouterNatSubnetworkToNat getDefaultInstanceForType()
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()
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;
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;
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RouterNatSubnetworkToNat.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RouterNatSubnetworkToNat.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public RouterNatSubnetworkToNat.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides