public final class RouterNat extends com.google.protobuf.GeneratedMessageV3 implements RouterNatOrBuilder
Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided.Protobuf type
google.cloud.compute.v1.RouterNat| Modifier and Type | Class and Description |
|---|---|
static class |
RouterNat.Builder
Represents a Nat resource.
|
static class |
RouterNat.EndpointTypes |
static class |
RouterNat.NatIpAllocateOption
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.
|
static class |
RouterNat.SourceSubnetworkIpRangesToNat
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DRAIN_NAT_IPS_FIELD_NUMBER |
static int |
ENABLE_DYNAMIC_PORT_ALLOCATION_FIELD_NUMBER |
static int |
ENABLE_ENDPOINT_INDEPENDENT_MAPPING_FIELD_NUMBER |
static int |
ENDPOINT_TYPES_FIELD_NUMBER |
static int |
ICMP_IDLE_TIMEOUT_SEC_FIELD_NUMBER |
static int |
LOG_CONFIG_FIELD_NUMBER |
static int |
MAX_PORTS_PER_VM_FIELD_NUMBER |
static int |
MIN_PORTS_PER_VM_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NAT_IP_ALLOCATE_OPTION_FIELD_NUMBER |
static int |
NAT_IPS_FIELD_NUMBER |
static int |
RULES_FIELD_NUMBER |
static int |
SOURCE_SUBNETWORK_IP_RANGES_TO_NAT_FIELD_NUMBER |
static int |
SUBNETWORKS_FIELD_NUMBER |
static int |
TCP_ESTABLISHED_IDLE_TIMEOUT_SEC_FIELD_NUMBER |
static int |
TCP_TIME_WAIT_TIMEOUT_SEC_FIELD_NUMBER |
static int |
TCP_TRANSITORY_IDLE_TIMEOUT_SEC_FIELD_NUMBER |
static int |
UDP_IDLE_TIMEOUT_SEC_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static RouterNat |
getDefaultInstance() |
RouterNat |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDrainNatIps(int index)
A list of URLs of the IP resources to be drained.
|
com.google.protobuf.ByteString |
getDrainNatIpsBytes(int index)
A list of URLs of the IP resources to be drained.
|
int |
getDrainNatIpsCount()
A list of URLs of the IP resources to be drained.
|
com.google.protobuf.ProtocolStringList |
getDrainNatIpsList()
A list of URLs of the IP resources to be drained.
|
boolean |
getEnableDynamicPortAllocation()
Enable Dynamic Port Allocation.
|
boolean |
getEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819; |
String |
getEndpointTypes(int index)
List of NAT-ted endpoint types supported by the Nat Gateway.
|
com.google.protobuf.ByteString |
getEndpointTypesBytes(int index)
List of NAT-ted endpoint types supported by the Nat Gateway.
|
int |
getEndpointTypesCount()
List of NAT-ted endpoint types supported by the Nat Gateway.
|
com.google.protobuf.ProtocolStringList |
getEndpointTypesList()
List of NAT-ted endpoint types supported by the Nat Gateway.
|
int |
getIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections.
|
RouterNatLogConfig |
getLogConfig()
Configure logging on this NAT.
|
RouterNatLogConfigOrBuilder |
getLogConfigOrBuilder()
Configure logging on this NAT.
|
int |
getMaxPortsPerVm()
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.
|
int |
getMinPortsPerVm()
Minimum number of ports allocated to a VM from this NAT config.
|
String |
getName()
Unique name of this Nat service.
|
com.google.protobuf.ByteString |
getNameBytes()
Unique name of this Nat service.
|
String |
getNatIpAllocateOption()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.
|
com.google.protobuf.ByteString |
getNatIpAllocateOptionBytes()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.
|
String |
getNatIps(int index)
A list of URLs of the IP resources used for this Nat service.
|
com.google.protobuf.ByteString |
getNatIpsBytes(int index)
A list of URLs of the IP resources used for this Nat service.
|
int |
getNatIpsCount()
A list of URLs of the IP resources used for this Nat service.
|
com.google.protobuf.ProtocolStringList |
getNatIpsList()
A list of URLs of the IP resources used for this Nat service.
|
com.google.protobuf.Parser<RouterNat> |
getParserForType() |
RouterNatRule |
getRules(int index)
A list of rules associated with this NAT.
|
int |
getRulesCount()
A list of rules associated with this NAT.
|
List<RouterNatRule> |
getRulesList()
A list of rules associated with this NAT.
|
RouterNatRuleOrBuilder |
getRulesOrBuilder(int index)
A list of rules associated with this NAT.
|
List<? extends RouterNatRuleOrBuilder> |
getRulesOrBuilderList()
A list of rules associated with this NAT.
|
int |
getSerializedSize() |
String |
getSourceSubnetworkIpRangesToNat()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat.
|
com.google.protobuf.ByteString |
getSourceSubnetworkIpRangesToNatBytes()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat.
|
RouterNatSubnetworkToNat |
getSubnetworks(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
int |
getSubnetworksCount()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
List<RouterNatSubnetworkToNat> |
getSubnetworksList()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNatSubnetworkToNatOrBuilder |
getSubnetworksOrBuilder(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
List<? extends RouterNatSubnetworkToNatOrBuilder> |
getSubnetworksOrBuilderList()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
int |
getTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections.
|
int |
getTcpTimeWaitTimeoutSec()
Timeout (in seconds) for TCP connections that are in TIME_WAIT state.
|
int |
getTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections.
|
int |
getUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasEnableDynamicPortAllocation()
Enable Dynamic Port Allocation.
|
boolean |
hasEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819; |
int |
hashCode() |
boolean |
hasIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections.
|
boolean |
hasLogConfig()
Configure logging on this NAT.
|
boolean |
hasMaxPortsPerVm()
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.
|
boolean |
hasMinPortsPerVm()
Minimum number of ports allocated to a VM from this NAT config.
|
boolean |
hasName()
Unique name of this Nat service.
|
boolean |
hasNatIpAllocateOption()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.
|
boolean |
hasSourceSubnetworkIpRangesToNat()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat.
|
boolean |
hasTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections.
|
boolean |
hasTcpTimeWaitTimeoutSec()
Timeout (in seconds) for TCP connections that are in TIME_WAIT state.
|
boolean |
hasTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections.
|
boolean |
hasUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RouterNat.Builder |
newBuilder() |
static RouterNat.Builder |
newBuilder(RouterNat prototype) |
RouterNat.Builder |
newBuilderForType() |
protected RouterNat.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RouterNat |
parseDelimitedFrom(InputStream input) |
static RouterNat |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouterNat |
parseFrom(byte[] data) |
static RouterNat |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouterNat |
parseFrom(ByteBuffer data) |
static RouterNat |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouterNat |
parseFrom(com.google.protobuf.ByteString data) |
static RouterNat |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouterNat |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RouterNat |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouterNat |
parseFrom(InputStream input) |
static RouterNat |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RouterNat> |
parser() |
RouterNat.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DRAIN_NAT_IPS_FIELD_NUMBER
public static final int ENABLE_DYNAMIC_PORT_ALLOCATION_FIELD_NUMBER
public static final int ENABLE_ENDPOINT_INDEPENDENT_MAPPING_FIELD_NUMBER
public static final int ENDPOINT_TYPES_FIELD_NUMBER
public static final int ICMP_IDLE_TIMEOUT_SEC_FIELD_NUMBER
public static final int LOG_CONFIG_FIELD_NUMBER
public static final int MAX_PORTS_PER_VM_FIELD_NUMBER
public static final int MIN_PORTS_PER_VM_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int NAT_IP_ALLOCATE_OPTION_FIELD_NUMBER
public static final int NAT_IPS_FIELD_NUMBER
public static final int RULES_FIELD_NUMBER
public static final int SOURCE_SUBNETWORK_IP_RANGES_TO_NAT_FIELD_NUMBER
public static final int SUBNETWORKS_FIELD_NUMBER
public static final int TCP_ESTABLISHED_IDLE_TIMEOUT_SEC_FIELD_NUMBER
public static final int TCP_TIME_WAIT_TIMEOUT_SEC_FIELD_NUMBER
public static final int TCP_TRANSITORY_IDLE_TIMEOUT_SEC_FIELD_NUMBER
public static final int UDP_IDLE_TIMEOUT_SEC_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public com.google.protobuf.ProtocolStringList getDrainNatIpsList()
A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only.
repeated string drain_nat_ips = 504078535;getDrainNatIpsList in interface RouterNatOrBuilderpublic int getDrainNatIpsCount()
A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only.
repeated string drain_nat_ips = 504078535;getDrainNatIpsCount in interface RouterNatOrBuilderpublic String getDrainNatIps(int index)
A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only.
repeated string drain_nat_ips = 504078535;getDrainNatIps in interface RouterNatOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getDrainNatIpsBytes(int index)
A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only.
repeated string drain_nat_ips = 504078535;getDrainNatIpsBytes in interface RouterNatOrBuilderindex - The index of the value to return.public boolean hasEnableDynamicPortAllocation()
Enable Dynamic Port Allocation. If not specified, it is disabled by default. If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a minimum of 32 ports will be allocated to a VM from this NAT config.
optional bool enable_dynamic_port_allocation = 532106402;hasEnableDynamicPortAllocation in interface RouterNatOrBuilderpublic boolean getEnableDynamicPortAllocation()
Enable Dynamic Port Allocation. If not specified, it is disabled by default. If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a minimum of 32 ports will be allocated to a VM from this NAT config.
optional bool enable_dynamic_port_allocation = 532106402;getEnableDynamicPortAllocation in interface RouterNatOrBuilderpublic boolean hasEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819;hasEnableEndpointIndependentMapping in interface RouterNatOrBuilderpublic boolean getEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819;getEnableEndpointIndependentMapping in interface RouterNatOrBuilderpublic com.google.protobuf.ProtocolStringList getEndpointTypesList()
List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM Check the EndpointTypes enum for the list of possible values.
repeated string endpoint_types = 502633807;getEndpointTypesList in interface RouterNatOrBuilderpublic int getEndpointTypesCount()
List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM Check the EndpointTypes enum for the list of possible values.
repeated string endpoint_types = 502633807;getEndpointTypesCount in interface RouterNatOrBuilderpublic String getEndpointTypes(int index)
List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM Check the EndpointTypes enum for the list of possible values.
repeated string endpoint_types = 502633807;getEndpointTypes in interface RouterNatOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getEndpointTypesBytes(int index)
List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM Check the EndpointTypes enum for the list of possible values.
repeated string endpoint_types = 502633807;getEndpointTypesBytes in interface RouterNatOrBuilderindex - The index of the value to return.public boolean hasIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
optional int32 icmp_idle_timeout_sec = 3647562;hasIcmpIdleTimeoutSec in interface RouterNatOrBuilderpublic int getIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
optional int32 icmp_idle_timeout_sec = 3647562;getIcmpIdleTimeoutSec in interface RouterNatOrBuilderpublic boolean hasLogConfig()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;hasLogConfig in interface RouterNatOrBuilderpublic RouterNatLogConfig getLogConfig()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;getLogConfig in interface RouterNatOrBuilderpublic RouterNatLogConfigOrBuilder getLogConfigOrBuilder()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;getLogConfigOrBuilder in interface RouterNatOrBuilderpublic boolean hasMaxPortsPerVm()
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled. If Dynamic Port Allocation is not enabled, this field has no effect. If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two greater than minPortsPerVm, or 64 if minPortsPerVm is not set. If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will be allocated to a VM from this NAT config.
optional int32 max_ports_per_vm = 250062049;hasMaxPortsPerVm in interface RouterNatOrBuilderpublic int getMaxPortsPerVm()
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled. If Dynamic Port Allocation is not enabled, this field has no effect. If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two greater than minPortsPerVm, or 64 if minPortsPerVm is not set. If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will be allocated to a VM from this NAT config.
optional int32 max_ports_per_vm = 250062049;getMaxPortsPerVm in interface RouterNatOrBuilderpublic boolean hasMinPortsPerVm()
Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM.
optional int32 min_ports_per_vm = 186193587;hasMinPortsPerVm in interface RouterNatOrBuilderpublic int getMinPortsPerVm()
Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM.
optional int32 min_ports_per_vm = 186193587;getMinPortsPerVm in interface RouterNatOrBuilderpublic boolean hasName()
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;hasName in interface RouterNatOrBuilderpublic String getName()
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;getName in interface RouterNatOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;getNameBytes in interface RouterNatOrBuilderpublic boolean hasNatIpAllocateOption()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. Check the NatIpAllocateOption enum for the list of possible values.
optional string nat_ip_allocate_option = 429726845;hasNatIpAllocateOption in interface RouterNatOrBuilderpublic String getNatIpAllocateOption()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. Check the NatIpAllocateOption enum for the list of possible values.
optional string nat_ip_allocate_option = 429726845;getNatIpAllocateOption in interface RouterNatOrBuilderpublic com.google.protobuf.ByteString getNatIpAllocateOptionBytes()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. Check the NatIpAllocateOption enum for the list of possible values.
optional string nat_ip_allocate_option = 429726845;getNatIpAllocateOptionBytes in interface RouterNatOrBuilderpublic com.google.protobuf.ProtocolStringList getNatIpsList()
A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project.
repeated string nat_ips = 117635086;getNatIpsList in interface RouterNatOrBuilderpublic int getNatIpsCount()
A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project.
repeated string nat_ips = 117635086;getNatIpsCount in interface RouterNatOrBuilderpublic String getNatIps(int index)
A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project.
repeated string nat_ips = 117635086;getNatIps in interface RouterNatOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getNatIpsBytes(int index)
A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project.
repeated string nat_ips = 117635086;getNatIpsBytes in interface RouterNatOrBuilderindex - The index of the value to return.public List<RouterNatRule> getRulesList()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;getRulesList in interface RouterNatOrBuilderpublic List<? extends RouterNatRuleOrBuilder> getRulesOrBuilderList()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;getRulesOrBuilderList in interface RouterNatOrBuilderpublic int getRulesCount()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;getRulesCount in interface RouterNatOrBuilderpublic RouterNatRule getRules(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;getRules in interface RouterNatOrBuilderpublic RouterNatRuleOrBuilder getRulesOrBuilder(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;getRulesOrBuilder in interface RouterNatOrBuilderpublic boolean hasSourceSubnetworkIpRangesToNat()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. Check the SourceSubnetworkIpRangesToNat enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat = 252213211;hasSourceSubnetworkIpRangesToNat in interface RouterNatOrBuilderpublic String getSourceSubnetworkIpRangesToNat()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. Check the SourceSubnetworkIpRangesToNat enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat = 252213211;getSourceSubnetworkIpRangesToNat in interface RouterNatOrBuilderpublic com.google.protobuf.ByteString getSourceSubnetworkIpRangesToNatBytes()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. Check the SourceSubnetworkIpRangesToNat enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat = 252213211;getSourceSubnetworkIpRangesToNatBytes in interface RouterNatOrBuilderpublic List<RouterNatSubnetworkToNat> getSubnetworksList()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
getSubnetworksList in interface RouterNatOrBuilderpublic List<? extends RouterNatSubnetworkToNatOrBuilder> getSubnetworksOrBuilderList()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
getSubnetworksOrBuilderList in interface RouterNatOrBuilderpublic int getSubnetworksCount()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
getSubnetworksCount in interface RouterNatOrBuilderpublic RouterNatSubnetworkToNat getSubnetworks(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
getSubnetworks in interface RouterNatOrBuilderpublic RouterNatSubnetworkToNatOrBuilder getSubnetworksOrBuilder(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
getSubnetworksOrBuilder in interface RouterNatOrBuilderpublic boolean hasTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
optional int32 tcp_established_idle_timeout_sec = 223098349;hasTcpEstablishedIdleTimeoutSec in interface RouterNatOrBuilderpublic int getTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
optional int32 tcp_established_idle_timeout_sec = 223098349;getTcpEstablishedIdleTimeoutSec in interface RouterNatOrBuilderpublic boolean hasTcpTimeWaitTimeoutSec()
Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not set.
optional int32 tcp_time_wait_timeout_sec = 513596925;hasTcpTimeWaitTimeoutSec in interface RouterNatOrBuilderpublic int getTcpTimeWaitTimeoutSec()
Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not set.
optional int32 tcp_time_wait_timeout_sec = 513596925;getTcpTimeWaitTimeoutSec in interface RouterNatOrBuilderpublic boolean hasTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
optional int32 tcp_transitory_idle_timeout_sec = 205028774;hasTcpTransitoryIdleTimeoutSec in interface RouterNatOrBuilderpublic int getTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
optional int32 tcp_transitory_idle_timeout_sec = 205028774;getTcpTransitoryIdleTimeoutSec in interface RouterNatOrBuilderpublic boolean hasUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
optional int32 udp_idle_timeout_sec = 64919878;hasUdpIdleTimeoutSec in interface RouterNatOrBuilderpublic int getUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
optional int32 udp_idle_timeout_sec = 64919878;getUdpIdleTimeoutSec in interface RouterNatOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RouterNat parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouterNat parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouterNat parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouterNat parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouterNat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouterNat parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouterNat parseFrom(InputStream input) throws IOException
IOExceptionpublic static RouterNat parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouterNat parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RouterNat parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouterNat parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RouterNat parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RouterNat.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RouterNat.Builder newBuilder()
public static RouterNat.Builder newBuilder(RouterNat prototype)
public RouterNat.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RouterNat.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RouterNat getDefaultInstance()
public static com.google.protobuf.Parser<RouterNat> parser()
public com.google.protobuf.Parser<RouterNat> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RouterNat getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.