Package com.google.cloud.compute.v1
Class RouterNat
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.RouterNat
-
- All Implemented Interfaces:
RouterNatOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
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 typegoogle.cloud.compute.v1.RouterNat- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRouterNat.AutoNetworkTierThe network tier to use when automatically reserving IP addresses.static classRouterNat.BuilderRepresents a Nat resource.static classRouterNat.EndpointTypesstatic classRouterNat.NatIpAllocateOptionSpecify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.static classRouterNat.SourceSubnetworkIpRangesToNatSpecify 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.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAUTO_NETWORK_TIER_FIELD_NUMBERstatic intDRAIN_NAT_IPS_FIELD_NUMBERstatic intENABLE_DYNAMIC_PORT_ALLOCATION_FIELD_NUMBERstatic intENABLE_ENDPOINT_INDEPENDENT_MAPPING_FIELD_NUMBERstatic intENDPOINT_TYPES_FIELD_NUMBERstatic intICMP_IDLE_TIMEOUT_SEC_FIELD_NUMBERstatic intLOG_CONFIG_FIELD_NUMBERstatic intMAX_PORTS_PER_VM_FIELD_NUMBERstatic intMIN_PORTS_PER_VM_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNAT_IP_ALLOCATE_OPTION_FIELD_NUMBERstatic intNAT_IPS_FIELD_NUMBERstatic intRULES_FIELD_NUMBERstatic intSOURCE_SUBNETWORK_IP_RANGES_TO_NAT_FIELD_NUMBERstatic intSUBNETWORKS_FIELD_NUMBERstatic intTCP_ESTABLISHED_IDLE_TIMEOUT_SEC_FIELD_NUMBERstatic intTCP_TIME_WAIT_TIMEOUT_SEC_FIELD_NUMBERstatic intTCP_TRANSITORY_IDLE_TIMEOUT_SEC_FIELD_NUMBERstatic intUDP_IDLE_TIMEOUT_SEC_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAutoNetworkTier()The network tier to use when automatically reserving IP addresses.com.google.protobuf.ByteStringgetAutoNetworkTierBytes()The network tier to use when automatically reserving IP addresses.static RouterNatgetDefaultInstance()RouterNatgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDrainNatIps(int index)A list of URLs of the IP resources to be drained.com.google.protobuf.ByteStringgetDrainNatIpsBytes(int index)A list of URLs of the IP resources to be drained.intgetDrainNatIpsCount()A list of URLs of the IP resources to be drained.com.google.protobuf.ProtocolStringListgetDrainNatIpsList()A list of URLs of the IP resources to be drained.booleangetEnableDynamicPortAllocation()Enable Dynamic Port Allocation.booleangetEnableEndpointIndependentMapping()optional bool enable_endpoint_independent_mapping = 259441819;StringgetEndpointTypes(int index)List of NAT-ted endpoint types supported by the Nat Gateway.com.google.protobuf.ByteStringgetEndpointTypesBytes(int index)List of NAT-ted endpoint types supported by the Nat Gateway.intgetEndpointTypesCount()List of NAT-ted endpoint types supported by the Nat Gateway.com.google.protobuf.ProtocolStringListgetEndpointTypesList()List of NAT-ted endpoint types supported by the Nat Gateway.intgetIcmpIdleTimeoutSec()Timeout (in seconds) for ICMP connections.RouterNatLogConfiggetLogConfig()Configure logging on this NAT.RouterNatLogConfigOrBuildergetLogConfigOrBuilder()Configure logging on this NAT.intgetMaxPortsPerVm()Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.intgetMinPortsPerVm()Minimum number of ports allocated to a VM from this NAT config.StringgetName()Unique name of this Nat service.com.google.protobuf.ByteStringgetNameBytes()Unique name of this Nat service.StringgetNatIpAllocateOption()Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.com.google.protobuf.ByteStringgetNatIpAllocateOptionBytes()Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.StringgetNatIps(int index)A list of URLs of the IP resources used for this Nat service.com.google.protobuf.ByteStringgetNatIpsBytes(int index)A list of URLs of the IP resources used for this Nat service.intgetNatIpsCount()A list of URLs of the IP resources used for this Nat service.com.google.protobuf.ProtocolStringListgetNatIpsList()A list of URLs of the IP resources used for this Nat service.com.google.protobuf.Parser<RouterNat>getParserForType()RouterNatRulegetRules(int index)A list of rules associated with this NAT.intgetRulesCount()A list of rules associated with this NAT.List<RouterNatRule>getRulesList()A list of rules associated with this NAT.RouterNatRuleOrBuildergetRulesOrBuilder(int index)A list of rules associated with this NAT.List<? extends RouterNatRuleOrBuilder>getRulesOrBuilderList()A list of rules associated with this NAT.intgetSerializedSize()StringgetSourceSubnetworkIpRangesToNat()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.ByteStringgetSourceSubnetworkIpRangesToNatBytes()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.RouterNatSubnetworkToNatgetSubnetworks(int index)A list of Subnetwork resources whose traffic should be translated by NAT Gateway.intgetSubnetworksCount()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.RouterNatSubnetworkToNatOrBuildergetSubnetworksOrBuilder(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.intgetTcpEstablishedIdleTimeoutSec()Timeout (in seconds) for TCP established connections.intgetTcpTimeWaitTimeoutSec()Timeout (in seconds) for TCP connections that are in TIME_WAIT state.intgetTcpTransitoryIdleTimeoutSec()Timeout (in seconds) for TCP transitory connections.intgetUdpIdleTimeoutSec()Timeout (in seconds) for UDP connections.booleanhasAutoNetworkTier()The network tier to use when automatically reserving IP addresses.booleanhasEnableDynamicPortAllocation()Enable Dynamic Port Allocation.booleanhasEnableEndpointIndependentMapping()optional bool enable_endpoint_independent_mapping = 259441819;inthashCode()booleanhasIcmpIdleTimeoutSec()Timeout (in seconds) for ICMP connections.booleanhasLogConfig()Configure logging on this NAT.booleanhasMaxPortsPerVm()Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.booleanhasMinPortsPerVm()Minimum number of ports allocated to a VM from this NAT config.booleanhasName()Unique name of this Nat service.booleanhasNatIpAllocateOption()Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.booleanhasSourceSubnetworkIpRangesToNat()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.booleanhasTcpEstablishedIdleTimeoutSec()Timeout (in seconds) for TCP established connections.booleanhasTcpTimeWaitTimeoutSec()Timeout (in seconds) for TCP connections that are in TIME_WAIT state.booleanhasTcpTransitoryIdleTimeoutSec()Timeout (in seconds) for TCP transitory connections.booleanhasUdpIdleTimeoutSec()Timeout (in seconds) for UDP connections.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RouterNat.BuildernewBuilder()static RouterNat.BuildernewBuilder(RouterNat prototype)RouterNat.BuildernewBuilderForType()protected RouterNat.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RouterNatparseDelimitedFrom(InputStream input)static RouterNatparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouterNatparseFrom(byte[] data)static RouterNatparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouterNatparseFrom(com.google.protobuf.ByteString data)static RouterNatparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouterNatparseFrom(com.google.protobuf.CodedInputStream input)static RouterNatparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouterNatparseFrom(InputStream input)static RouterNatparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouterNatparseFrom(ByteBuffer data)static RouterNatparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RouterNat>parser()RouterNat.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
AUTO_NETWORK_TIER_FIELD_NUMBER
public static final int AUTO_NETWORK_TIER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DRAIN_NAT_IPS_FIELD_NUMBER
public static final int DRAIN_NAT_IPS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_DYNAMIC_PORT_ALLOCATION_FIELD_NUMBER
public static final int ENABLE_DYNAMIC_PORT_ALLOCATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_ENDPOINT_INDEPENDENT_MAPPING_FIELD_NUMBER
public static final int ENABLE_ENDPOINT_INDEPENDENT_MAPPING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENDPOINT_TYPES_FIELD_NUMBER
public static final int ENDPOINT_TYPES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ICMP_IDLE_TIMEOUT_SEC_FIELD_NUMBER
public static final int ICMP_IDLE_TIMEOUT_SEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOG_CONFIG_FIELD_NUMBER
public static final int LOG_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_PORTS_PER_VM_FIELD_NUMBER
public static final int MAX_PORTS_PER_VM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_PORTS_PER_VM_FIELD_NUMBER
public static final int MIN_PORTS_PER_VM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAT_IP_ALLOCATE_OPTION_FIELD_NUMBER
public static final int NAT_IP_ALLOCATE_OPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAT_IPS_FIELD_NUMBER
public static final int NAT_IPS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RULES_FIELD_NUMBER
public static final int RULES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_SUBNETWORK_IP_RANGES_TO_NAT_FIELD_NUMBER
public static final int SOURCE_SUBNETWORK_IP_RANGES_TO_NAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUBNETWORKS_FIELD_NUMBER
public static final int SUBNETWORKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TCP_ESTABLISHED_IDLE_TIMEOUT_SEC_FIELD_NUMBER
public static final int TCP_ESTABLISHED_IDLE_TIMEOUT_SEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TCP_TIME_WAIT_TIMEOUT_SEC_FIELD_NUMBER
public static final int TCP_TIME_WAIT_TIMEOUT_SEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TCP_TRANSITORY_IDLE_TIMEOUT_SEC_FIELD_NUMBER
public static final int TCP_TRANSITORY_IDLE_TIMEOUT_SEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UDP_IDLE_TIMEOUT_SEC_FIELD_NUMBER
public static final int UDP_IDLE_TIMEOUT_SEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasAutoNetworkTier
public boolean hasAutoNetworkTier()
The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;- Specified by:
hasAutoNetworkTierin interfaceRouterNatOrBuilder- Returns:
- Whether the autoNetworkTier field is set.
-
getAutoNetworkTier
public String getAutoNetworkTier()
The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;- Specified by:
getAutoNetworkTierin interfaceRouterNatOrBuilder- Returns:
- The autoNetworkTier.
-
getAutoNetworkTierBytes
public com.google.protobuf.ByteString getAutoNetworkTierBytes()
The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;- Specified by:
getAutoNetworkTierBytesin interfaceRouterNatOrBuilder- Returns:
- The bytes for autoNetworkTier.
-
getDrainNatIpsList
public 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;- Specified by:
getDrainNatIpsListin interfaceRouterNatOrBuilder- Returns:
- A list containing the drainNatIps.
-
getDrainNatIpsCount
public 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;- Specified by:
getDrainNatIpsCountin interfaceRouterNatOrBuilder- Returns:
- The count of drainNatIps.
-
getDrainNatIps
public 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;- Specified by:
getDrainNatIpsin interfaceRouterNatOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The drainNatIps at the given index.
-
getDrainNatIpsBytes
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;- Specified by:
getDrainNatIpsBytesin interfaceRouterNatOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the drainNatIps at the given index.
-
hasEnableDynamicPortAllocation
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;- Specified by:
hasEnableDynamicPortAllocationin interfaceRouterNatOrBuilder- Returns:
- Whether the enableDynamicPortAllocation field is set.
-
getEnableDynamicPortAllocation
public 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;- Specified by:
getEnableDynamicPortAllocationin interfaceRouterNatOrBuilder- Returns:
- The enableDynamicPortAllocation.
-
hasEnableEndpointIndependentMapping
public boolean hasEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819;- Specified by:
hasEnableEndpointIndependentMappingin interfaceRouterNatOrBuilder- Returns:
- Whether the enableEndpointIndependentMapping field is set.
-
getEnableEndpointIndependentMapping
public boolean getEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819;- Specified by:
getEnableEndpointIndependentMappingin interfaceRouterNatOrBuilder- Returns:
- The enableEndpointIndependentMapping.
-
getEndpointTypesList
public 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;- Specified by:
getEndpointTypesListin interfaceRouterNatOrBuilder- Returns:
- A list containing the endpointTypes.
-
getEndpointTypesCount
public 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;- Specified by:
getEndpointTypesCountin interfaceRouterNatOrBuilder- Returns:
- The count of endpointTypes.
-
getEndpointTypes
public 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;- Specified by:
getEndpointTypesin interfaceRouterNatOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The endpointTypes at the given index.
-
getEndpointTypesBytes
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;- Specified by:
getEndpointTypesBytesin interfaceRouterNatOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the endpointTypes at the given index.
-
hasIcmpIdleTimeoutSec
public boolean hasIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
optional int32 icmp_idle_timeout_sec = 3647562;- Specified by:
hasIcmpIdleTimeoutSecin interfaceRouterNatOrBuilder- Returns:
- Whether the icmpIdleTimeoutSec field is set.
-
getIcmpIdleTimeoutSec
public int getIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
optional int32 icmp_idle_timeout_sec = 3647562;- Specified by:
getIcmpIdleTimeoutSecin interfaceRouterNatOrBuilder- Returns:
- The icmpIdleTimeoutSec.
-
hasLogConfig
public boolean hasLogConfig()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;- Specified by:
hasLogConfigin interfaceRouterNatOrBuilder- Returns:
- Whether the logConfig field is set.
-
getLogConfig
public RouterNatLogConfig getLogConfig()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;- Specified by:
getLogConfigin interfaceRouterNatOrBuilder- Returns:
- The logConfig.
-
getLogConfigOrBuilder
public RouterNatLogConfigOrBuilder getLogConfigOrBuilder()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;- Specified by:
getLogConfigOrBuilderin interfaceRouterNatOrBuilder
-
hasMaxPortsPerVm
public 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;- Specified by:
hasMaxPortsPerVmin interfaceRouterNatOrBuilder- Returns:
- Whether the maxPortsPerVm field is set.
-
getMaxPortsPerVm
public 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;- Specified by:
getMaxPortsPerVmin interfaceRouterNatOrBuilder- Returns:
- The maxPortsPerVm.
-
hasMinPortsPerVm
public 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;- Specified by:
hasMinPortsPerVmin interfaceRouterNatOrBuilder- Returns:
- Whether the minPortsPerVm field is set.
-
getMinPortsPerVm
public 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;- Specified by:
getMinPortsPerVmin interfaceRouterNatOrBuilder- Returns:
- The minPortsPerVm.
-
hasName
public boolean hasName()
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;- Specified by:
hasNamein interfaceRouterNatOrBuilder- Returns:
- Whether the name field is set.
-
getName
public String getName()
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;- Specified by:
getNamein interfaceRouterNatOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceRouterNatOrBuilder- Returns:
- The bytes for name.
-
hasNatIpAllocateOption
public 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;- Specified by:
hasNatIpAllocateOptionin interfaceRouterNatOrBuilder- Returns:
- Whether the natIpAllocateOption field is set.
-
getNatIpAllocateOption
public 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;- Specified by:
getNatIpAllocateOptionin interfaceRouterNatOrBuilder- Returns:
- The natIpAllocateOption.
-
getNatIpAllocateOptionBytes
public 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;- Specified by:
getNatIpAllocateOptionBytesin interfaceRouterNatOrBuilder- Returns:
- The bytes for natIpAllocateOption.
-
getNatIpsList
public 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;- Specified by:
getNatIpsListin interfaceRouterNatOrBuilder- Returns:
- A list containing the natIps.
-
getNatIpsCount
public 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;- Specified by:
getNatIpsCountin interfaceRouterNatOrBuilder- Returns:
- The count of natIps.
-
getNatIps
public 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;- Specified by:
getNatIpsin interfaceRouterNatOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The natIps at the given index.
-
getNatIpsBytes
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;- Specified by:
getNatIpsBytesin interfaceRouterNatOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the natIps at the given index.
-
getRulesList
public List<RouterNatRule> getRulesList()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;- Specified by:
getRulesListin interfaceRouterNatOrBuilder
-
getRulesOrBuilderList
public List<? extends RouterNatRuleOrBuilder> getRulesOrBuilderList()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;- Specified by:
getRulesOrBuilderListin interfaceRouterNatOrBuilder
-
getRulesCount
public int getRulesCount()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;- Specified by:
getRulesCountin interfaceRouterNatOrBuilder
-
getRules
public RouterNatRule getRules(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;- Specified by:
getRulesin interfaceRouterNatOrBuilder
-
getRulesOrBuilder
public RouterNatRuleOrBuilder getRulesOrBuilder(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;- Specified by:
getRulesOrBuilderin interfaceRouterNatOrBuilder
-
hasSourceSubnetworkIpRangesToNat
public 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 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;- Specified by:
hasSourceSubnetworkIpRangesToNatin interfaceRouterNatOrBuilder- Returns:
- Whether the sourceSubnetworkIpRangesToNat field is set.
-
getSourceSubnetworkIpRangesToNat
public 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 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;- Specified by:
getSourceSubnetworkIpRangesToNatin interfaceRouterNatOrBuilder- Returns:
- The sourceSubnetworkIpRangesToNat.
-
getSourceSubnetworkIpRangesToNatBytes
public 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 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;- Specified by:
getSourceSubnetworkIpRangesToNatBytesin interfaceRouterNatOrBuilder- Returns:
- The bytes for sourceSubnetworkIpRangesToNat.
-
getSubnetworksList
public 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;- Specified by:
getSubnetworksListin interfaceRouterNatOrBuilder
-
getSubnetworksOrBuilderList
public 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;- Specified by:
getSubnetworksOrBuilderListin interfaceRouterNatOrBuilder
-
getSubnetworksCount
public 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;- Specified by:
getSubnetworksCountin interfaceRouterNatOrBuilder
-
getSubnetworks
public 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;- Specified by:
getSubnetworksin interfaceRouterNatOrBuilder
-
getSubnetworksOrBuilder
public 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;- Specified by:
getSubnetworksOrBuilderin interfaceRouterNatOrBuilder
-
hasTcpEstablishedIdleTimeoutSec
public boolean hasTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
optional int32 tcp_established_idle_timeout_sec = 223098349;- Specified by:
hasTcpEstablishedIdleTimeoutSecin interfaceRouterNatOrBuilder- Returns:
- Whether the tcpEstablishedIdleTimeoutSec field is set.
-
getTcpEstablishedIdleTimeoutSec
public int getTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
optional int32 tcp_established_idle_timeout_sec = 223098349;- Specified by:
getTcpEstablishedIdleTimeoutSecin interfaceRouterNatOrBuilder- Returns:
- The tcpEstablishedIdleTimeoutSec.
-
hasTcpTimeWaitTimeoutSec
public 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;- Specified by:
hasTcpTimeWaitTimeoutSecin interfaceRouterNatOrBuilder- Returns:
- Whether the tcpTimeWaitTimeoutSec field is set.
-
getTcpTimeWaitTimeoutSec
public 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;- Specified by:
getTcpTimeWaitTimeoutSecin interfaceRouterNatOrBuilder- Returns:
- The tcpTimeWaitTimeoutSec.
-
hasTcpTransitoryIdleTimeoutSec
public boolean hasTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
optional int32 tcp_transitory_idle_timeout_sec = 205028774;- Specified by:
hasTcpTransitoryIdleTimeoutSecin interfaceRouterNatOrBuilder- Returns:
- Whether the tcpTransitoryIdleTimeoutSec field is set.
-
getTcpTransitoryIdleTimeoutSec
public int getTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
optional int32 tcp_transitory_idle_timeout_sec = 205028774;- Specified by:
getTcpTransitoryIdleTimeoutSecin interfaceRouterNatOrBuilder- Returns:
- The tcpTransitoryIdleTimeoutSec.
-
hasUdpIdleTimeoutSec
public boolean hasUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
optional int32 udp_idle_timeout_sec = 64919878;- Specified by:
hasUdpIdleTimeoutSecin interfaceRouterNatOrBuilder- Returns:
- Whether the udpIdleTimeoutSec field is set.
-
getUdpIdleTimeoutSec
public int getUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
optional int32 udp_idle_timeout_sec = 64919878;- Specified by:
getUdpIdleTimeoutSecin interfaceRouterNatOrBuilder- Returns:
- The udpIdleTimeoutSec.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RouterNat parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouterNat parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouterNat parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouterNat parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouterNat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouterNat parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouterNat parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RouterNat parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RouterNat parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RouterNat parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RouterNat parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RouterNat parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public RouterNat.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RouterNat.Builder newBuilder()
-
newBuilder
public static RouterNat.Builder newBuilder(RouterNat prototype)
-
toBuilder
public RouterNat.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RouterNat.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RouterNat getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RouterNat> parser()
-
getParserForType
public com.google.protobuf.Parser<RouterNat> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RouterNat getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-