Package com.google.cloud.compute.v1
Class RouterNat.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouterNat.Builder>
com.google.cloud.compute.v1.RouterNat.Builder
- All Implemented Interfaces:
RouterNatOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RouterNat
public static final class RouterNat.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RouterNat.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllDrainNatIps(Iterable<String> values) A list of URLs of the IP resources to be drained.addAllEndpointTypes(Iterable<String> values) List of NAT-ted endpoint types supported by the Nat Gateway.addAllNat64Subnetworks(Iterable<? extends RouterNatSubnetworkToNat64> values) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.addAllNatIps(Iterable<String> values) A list of URLs of the IP resources used for this Nat service.addAllRules(Iterable<? extends RouterNatRule> values) A list of rules associated with this NAT.addAllSubnetworks(Iterable<? extends RouterNatSubnetworkToNat> values) A list of Subnetwork resources whose traffic should be translated by NAT Gateway.addDrainNatIps(String value) A list of URLs of the IP resources to be drained.addDrainNatIpsBytes(com.google.protobuf.ByteString value) A list of URLs of the IP resources to be drained.addEndpointTypes(String value) List of NAT-ted endpoint types supported by the Nat Gateway.addEndpointTypesBytes(com.google.protobuf.ByteString value) List of NAT-ted endpoint types supported by the Nat Gateway.addNat64Subnetworks(int index, RouterNatSubnetworkToNat64 value) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.addNat64Subnetworks(int index, RouterNatSubnetworkToNat64.Builder builderForValue) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.addNat64Subnetworks(RouterNatSubnetworkToNat64.Builder builderForValue) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.addNat64SubnetworksBuilder(int index) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.A list of URLs of the IP resources used for this Nat service.addNatIpsBytes(com.google.protobuf.ByteString value) A list of URLs of the IP resources used for this Nat service.addRules(int index, RouterNatRule value) A list of rules associated with this NAT.addRules(int index, RouterNatRule.Builder builderForValue) A list of rules associated with this NAT.addRules(RouterNatRule value) A list of rules associated with this NAT.addRules(RouterNatRule.Builder builderForValue) A list of rules associated with this NAT.A list of rules associated with this NAT.addRulesBuilder(int index) A list of rules associated with this NAT.addSubnetworks(int index, RouterNatSubnetworkToNat value) A list of Subnetwork resources whose traffic should be translated by NAT Gateway.addSubnetworks(int index, RouterNatSubnetworkToNat.Builder builderForValue) A list of Subnetwork resources whose traffic should be translated by NAT Gateway.A list of Subnetwork resources whose traffic should be translated by NAT Gateway.addSubnetworks(RouterNatSubnetworkToNat.Builder builderForValue) A list of Subnetwork resources whose traffic should be translated by NAT Gateway.A list of Subnetwork resources whose traffic should be translated by NAT Gateway.addSubnetworksBuilder(int index) A list of Subnetwork resources whose traffic should be translated by NAT Gateway.build()clear()The network tier to use when automatically reserving NAT IP addresses.A list of URLs of the IP resources to be drained.Enable Dynamic Port Allocation.optional bool enable_endpoint_independent_mapping = 259441819;List of NAT-ted endpoint types supported by the Nat Gateway.Timeout (in seconds) for ICMP connections.Configure logging on this NAT.Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.Minimum number of ports allocated to a VM from this NAT config.Unique name of this Nat service.List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.A list of URLs of the IP resources used for this Nat service.A list of rules associated with this NAT.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 NatSpecify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to NatA list of Subnetwork resources whose traffic should be translated by NAT Gateway.Timeout (in seconds) for TCP established connections.Timeout (in seconds) for TCP connections that are in TIME_WAIT state.Timeout (in seconds) for TCP transitory connections.Indicates whether this NAT is used for public or private IP translation.Timeout (in seconds) for UDP connections.The network tier to use when automatically reserving NAT IP addresses.com.google.protobuf.ByteStringThe network tier to use when automatically reserving NAT IP addresses.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDrainNatIps(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.intA list of URLs of the IP resources to be drained.com.google.protobuf.ProtocolStringListA list of URLs of the IP resources to be drained.booleanEnable Dynamic Port Allocation.booleanoptional bool enable_endpoint_independent_mapping = 259441819;getEndpointTypes(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.intList of NAT-ted endpoint types supported by the Nat Gateway.com.google.protobuf.ProtocolStringListList of NAT-ted endpoint types supported by the Nat Gateway.intTimeout (in seconds) for ICMP connections.Configure logging on this NAT.Configure logging on this NAT.Configure logging on this NAT.intMaximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.intMinimum number of ports allocated to a VM from this NAT config.getName()Unique name of this Nat service.com.google.protobuf.ByteStringUnique name of this Nat service.getNat64Subnetworks(int index) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.getNat64SubnetworksBuilder(int index) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.intList of Subnetwork resources whose traffic should be translated by NAT64 Gateway.List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.getNat64SubnetworksOrBuilder(int index) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.List<? extends RouterNatSubnetworkToNat64OrBuilder>List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.com.google.protobuf.ByteStringSpecify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.getNatIps(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.intA list of URLs of the IP resources used for this Nat service.com.google.protobuf.ProtocolStringListA list of URLs of the IP resources used for this Nat service.getRules(int index) A list of rules associated with this NAT.getRulesBuilder(int index) A list of rules associated with this NAT.A list of rules associated with this NAT.intA list of rules associated with this NAT.A list of rules associated with this NAT.getRulesOrBuilder(int index) A list of rules associated with this NAT.List<? extends RouterNatRuleOrBuilder>A list of rules associated with this NAT.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 NatSpecify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Natcom.google.protobuf.ByteStringSpecify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Natcom.google.protobuf.ByteStringSpecify 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 NatgetSubnetworks(int index) A list of Subnetwork resources whose traffic should be translated by NAT Gateway.getSubnetworksBuilder(int index) A list of Subnetwork resources whose traffic should be translated by NAT Gateway.A list of Subnetwork resources whose traffic should be translated by NAT Gateway.intA list of Subnetwork resources whose traffic should be translated by NAT Gateway.A list of Subnetwork resources whose traffic should be translated by NAT Gateway.getSubnetworksOrBuilder(int index) A list of Subnetwork resources whose traffic should be translated by NAT Gateway.List<? extends RouterNatSubnetworkToNatOrBuilder>A list of Subnetwork resources whose traffic should be translated by NAT Gateway.intTimeout (in seconds) for TCP established connections.intTimeout (in seconds) for TCP connections that are in TIME_WAIT state.intTimeout (in seconds) for TCP transitory connections.getType()Indicates whether this NAT is used for public or private IP translation.com.google.protobuf.ByteStringIndicates whether this NAT is used for public or private IP translation.intTimeout (in seconds) for UDP connections.booleanThe network tier to use when automatically reserving NAT IP addresses.booleanEnable Dynamic Port Allocation.booleanoptional bool enable_endpoint_independent_mapping = 259441819;booleanTimeout (in seconds) for ICMP connections.booleanConfigure logging on this NAT.booleanMaximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.booleanMinimum number of ports allocated to a VM from this NAT config.booleanhasName()Unique name of this Nat service.booleanSpecify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.booleanSpecify 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 NatbooleanSpecify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to NatbooleanTimeout (in seconds) for TCP established connections.booleanTimeout (in seconds) for TCP connections that are in TIME_WAIT state.booleanTimeout (in seconds) for TCP transitory connections.booleanhasType()Indicates whether this NAT is used for public or private IP translation.booleanTimeout (in seconds) for UDP connections.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLogConfig(RouterNatLogConfig value) Configure logging on this NAT.removeNat64Subnetworks(int index) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.removeRules(int index) A list of rules associated with this NAT.removeSubnetworks(int index) A list of Subnetwork resources whose traffic should be translated by NAT Gateway.setAutoNetworkTier(String value) The network tier to use when automatically reserving NAT IP addresses.setAutoNetworkTierBytes(com.google.protobuf.ByteString value) The network tier to use when automatically reserving NAT IP addresses.setDrainNatIps(int index, String value) A list of URLs of the IP resources to be drained.setEnableDynamicPortAllocation(boolean value) Enable Dynamic Port Allocation.setEnableEndpointIndependentMapping(boolean value) optional bool enable_endpoint_independent_mapping = 259441819;setEndpointTypes(int index, String value) List of NAT-ted endpoint types supported by the Nat Gateway.setIcmpIdleTimeoutSec(int value) Timeout (in seconds) for ICMP connections.setLogConfig(RouterNatLogConfig value) Configure logging on this NAT.setLogConfig(RouterNatLogConfig.Builder builderForValue) Configure logging on this NAT.setMaxPortsPerVm(int value) Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.setMinPortsPerVm(int value) Minimum number of ports allocated to a VM from this NAT config.Unique name of this Nat service.setNameBytes(com.google.protobuf.ByteString value) Unique name of this Nat service.setNat64Subnetworks(int index, RouterNatSubnetworkToNat64 value) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.setNat64Subnetworks(int index, RouterNatSubnetworkToNat64.Builder builderForValue) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway.setNatIpAllocateOption(String value) Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.setNatIpAllocateOptionBytes(com.google.protobuf.ByteString value) Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.A list of URLs of the IP resources used for this Nat service.setRules(int index, RouterNatRule value) A list of rules associated with this NAT.setRules(int index, RouterNatRule.Builder builderForValue) A list of rules associated with this NAT.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 NatSpecify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to NatsetSourceSubnetworkIpRangesToNat64Bytes(com.google.protobuf.ByteString value) Specify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to NatsetSourceSubnetworkIpRangesToNatBytes(com.google.protobuf.ByteString value) 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 NatsetSubnetworks(int index, RouterNatSubnetworkToNat value) A list of Subnetwork resources whose traffic should be translated by NAT Gateway.setSubnetworks(int index, RouterNatSubnetworkToNat.Builder builderForValue) A list of Subnetwork resources whose traffic should be translated by NAT Gateway.setTcpEstablishedIdleTimeoutSec(int value) Timeout (in seconds) for TCP established connections.setTcpTimeWaitTimeoutSec(int value) Timeout (in seconds) for TCP connections that are in TIME_WAIT state.setTcpTransitoryIdleTimeoutSec(int value) Timeout (in seconds) for TCP transitory connections.Indicates whether this NAT is used for public or private IP translation.setTypeBytes(com.google.protobuf.ByteString value) Indicates whether this NAT is used for public or private IP translation.setUdpIdleTimeoutSec(int value) Timeout (in seconds) for UDP connections.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RouterNat.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RouterNat.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<RouterNat.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouterNat.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RouterNat.Builder>
-
mergeFrom
public RouterNat.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouterNat.Builder>- Throws:
IOException
-
hasAutoNetworkTier
public boolean hasAutoNetworkTier()The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the current project-level default tier is 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
The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the current project-level default tier is 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 NAT IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the current project-level default tier is 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.
-
setAutoNetworkTier
The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the current project-level default tier is used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;- Parameters:
value- The autoNetworkTier to set.- Returns:
- This builder for chaining.
-
clearAutoNetworkTier
The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the current project-level default tier is used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;- Returns:
- This builder for chaining.
-
setAutoNetworkTierBytes
The network tier to use when automatically reserving NAT IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, then the current project-level default tier is used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;- Parameters:
value- The bytes for autoNetworkTier to set.- Returns:
- This builder for chaining.
-
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
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.
-
setDrainNatIps
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;- Parameters:
index- The index to set the value at.value- The drainNatIps to set.- Returns:
- This builder for chaining.
-
addDrainNatIps
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;- Parameters:
value- The drainNatIps to add.- Returns:
- This builder for chaining.
-
addAllDrainNatIps
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;- Parameters:
values- The drainNatIps to add.- Returns:
- This builder for chaining.
-
clearDrainNatIps
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;- Returns:
- This builder for chaining.
-
addDrainNatIpsBytes
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;- Parameters:
value- The bytes of the drainNatIps to add.- Returns:
- This builder for chaining.
-
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.
-
setEnableDynamicPortAllocation
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;- Parameters:
value- The enableDynamicPortAllocation to set.- Returns:
- This builder for chaining.
-
clearEnableDynamicPortAllocation
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;- Returns:
- This builder for chaining.
-
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.
-
setEnableEndpointIndependentMapping
optional bool enable_endpoint_independent_mapping = 259441819;- Parameters:
value- The enableEndpointIndependentMapping to set.- Returns:
- This builder for chaining.
-
clearEnableEndpointIndependentMapping
optional bool enable_endpoint_independent_mapping = 259441819;- Returns:
- This builder for chaining.
-
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
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.
-
setEndpointTypes
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;- Parameters:
index- The index to set the value at.value- The endpointTypes to set.- Returns:
- This builder for chaining.
-
addEndpointTypes
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;- Parameters:
value- The endpointTypes to add.- Returns:
- This builder for chaining.
-
addAllEndpointTypes
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;- Parameters:
values- The endpointTypes to add.- Returns:
- This builder for chaining.
-
clearEndpointTypes
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;- Returns:
- This builder for chaining.
-
addEndpointTypesBytes
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;- Parameters:
value- The bytes of the endpointTypes to add.- Returns:
- This builder for chaining.
-
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.
-
setIcmpIdleTimeoutSec
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
optional int32 icmp_idle_timeout_sec = 3647562;- Parameters:
value- The icmpIdleTimeoutSec to set.- Returns:
- This builder for chaining.
-
clearIcmpIdleTimeoutSec
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
optional int32 icmp_idle_timeout_sec = 3647562;- Returns:
- This builder for chaining.
-
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
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;- Specified by:
getLogConfigin interfaceRouterNatOrBuilder- Returns:
- The logConfig.
-
setLogConfig
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741; -
setLogConfig
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741; -
mergeLogConfig
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741; -
clearLogConfig
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741; -
getLogConfigBuilder
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741; -
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.
-
setMaxPortsPerVm
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;- Parameters:
value- The maxPortsPerVm to set.- Returns:
- This builder for chaining.
-
clearMaxPortsPerVm
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;- Returns:
- This builder for chaining.
-
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.
-
setMinPortsPerVm
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;- Parameters:
value- The minPortsPerVm to set.- Returns:
- This builder for chaining.
-
clearMinPortsPerVm
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;- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()Unique name of this Nat service. The name must be 1-63 characters long and comply withRFC1035.
optional string name = 3373707;- Specified by:
hasNamein interfaceRouterNatOrBuilder- Returns:
- Whether the name field is set.
-
getName
Unique name of this Nat service. The name must be 1-63 characters long and comply withRFC1035.
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 withRFC1035.
optional string name = 3373707;- Specified by:
getNameBytesin interfaceRouterNatOrBuilder- Returns:
- The bytes for name.
-
setName
Unique name of this Nat service. The name must be 1-63 characters long and comply withRFC1035.
optional string name = 3373707;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Unique name of this Nat service. The name must be 1-63 characters long and comply withRFC1035.
optional string name = 3373707;- Returns:
- This builder for chaining.
-
setNameBytes
Unique name of this Nat service. The name must be 1-63 characters long and comply withRFC1035.
optional string name = 3373707;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getNat64SubnetworksList
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701;- Specified by:
getNat64SubnetworksListin interfaceRouterNatOrBuilder
-
getNat64SubnetworksCount
public int getNat64SubnetworksCount()List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701;- Specified by:
getNat64SubnetworksCountin interfaceRouterNatOrBuilder
-
getNat64Subnetworks
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701;- Specified by:
getNat64Subnetworksin interfaceRouterNatOrBuilder
-
setNat64Subnetworks
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
setNat64Subnetworks
public RouterNat.Builder setNat64Subnetworks(int index, RouterNatSubnetworkToNat64.Builder builderForValue) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
addNat64Subnetworks
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
addNat64Subnetworks
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
addNat64Subnetworks
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
addNat64Subnetworks
public RouterNat.Builder addNat64Subnetworks(int index, RouterNatSubnetworkToNat64.Builder builderForValue) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
addAllNat64Subnetworks
public RouterNat.Builder addAllNat64Subnetworks(Iterable<? extends RouterNatSubnetworkToNat64> values) List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
clearNat64Subnetworks
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
removeNat64Subnetworks
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
getNat64SubnetworksBuilder
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
getNat64SubnetworksOrBuilder
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701;- Specified by:
getNat64SubnetworksOrBuilderin interfaceRouterNatOrBuilder
-
getNat64SubnetworksOrBuilderList
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701;- Specified by:
getNat64SubnetworksOrBuilderListin interfaceRouterNatOrBuilder
-
addNat64SubnetworksBuilder
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
addNat64SubnetworksBuilder
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
getNat64SubnetworksBuilderList
List of Subnetwork resources whose traffic should be translated by NAT64 Gateway. It is used only when LIST_OF_IPV6_SUBNETWORKS is selected for the SubnetworkIpRangeToNat64Option above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat64 nat64_subnetworks = 63585701; -
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
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.
-
setNatIpAllocateOption
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;- Parameters:
value- The natIpAllocateOption to set.- Returns:
- This builder for chaining.
-
clearNatIpAllocateOption
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;- Returns:
- This builder for chaining.
-
setNatIpAllocateOptionBytes
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;- Parameters:
value- The bytes for natIpAllocateOption to set.- Returns:
- This builder for chaining.
-
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
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.
-
setNatIps
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;- Parameters:
index- The index to set the value at.value- The natIps to set.- Returns:
- This builder for chaining.
-
addNatIps
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;- Parameters:
value- The natIps to add.- Returns:
- This builder for chaining.
-
addAllNatIps
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;- Parameters:
values- The natIps to add.- Returns:
- This builder for chaining.
-
clearNatIps
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;- Returns:
- This builder for chaining.
-
addNatIpsBytes
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;- Parameters:
value- The bytes of the natIps to add.- Returns:
- This builder for chaining.
-
getRulesList
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;- Specified by:
getRulesListin 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
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;- Specified by:
getRulesin interfaceRouterNatOrBuilder
-
setRules
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
setRules
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
addRules
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
addRules
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
addRules
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
addRules
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
addAllRules
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
clearRules
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
removeRules
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
getRulesBuilder
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
getRulesOrBuilder
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;- Specified by:
getRulesOrBuilderin interfaceRouterNatOrBuilder
-
getRulesOrBuilderList
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;- Specified by:
getRulesOrBuilderListin interfaceRouterNatOrBuilder
-
addRulesBuilder
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
addRulesBuilder
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
getRulesBuilderList
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975; -
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
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.
-
setSourceSubnetworkIpRangesToNat
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;- Parameters:
value- The sourceSubnetworkIpRangesToNat to set.- Returns:
- This builder for chaining.
-
clearSourceSubnetworkIpRangesToNat
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;- Returns:
- This builder for chaining.
-
setSourceSubnetworkIpRangesToNatBytes
public RouterNat.Builder setSourceSubnetworkIpRangesToNatBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes for sourceSubnetworkIpRangesToNat to set.- Returns:
- This builder for chaining.
-
hasSourceSubnetworkIpRangesToNat64
public boolean hasSourceSubnetworkIpRangesToNat64()Specify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field nat64_subnetwork below) The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 only. Check the SourceSubnetworkIpRangesToNat64 enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat64 = 248116185;- Specified by:
hasSourceSubnetworkIpRangesToNat64in interfaceRouterNatOrBuilder- Returns:
- Whether the sourceSubnetworkIpRangesToNat64 field is set.
-
getSourceSubnetworkIpRangesToNat64
Specify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field nat64_subnetwork below) The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 only. Check the SourceSubnetworkIpRangesToNat64 enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat64 = 248116185;- Specified by:
getSourceSubnetworkIpRangesToNat64in interfaceRouterNatOrBuilder- Returns:
- The sourceSubnetworkIpRangesToNat64.
-
getSourceSubnetworkIpRangesToNat64Bytes
public com.google.protobuf.ByteString getSourceSubnetworkIpRangesToNat64Bytes()Specify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field nat64_subnetwork below) The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 only. Check the SourceSubnetworkIpRangesToNat64 enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat64 = 248116185;- Specified by:
getSourceSubnetworkIpRangesToNat64Bytesin interfaceRouterNatOrBuilder- Returns:
- The bytes for sourceSubnetworkIpRangesToNat64.
-
setSourceSubnetworkIpRangesToNat64
Specify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field nat64_subnetwork below) The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 only. Check the SourceSubnetworkIpRangesToNat64 enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat64 = 248116185;- Parameters:
value- The sourceSubnetworkIpRangesToNat64 to set.- Returns:
- This builder for chaining.
-
clearSourceSubnetworkIpRangesToNat64
Specify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field nat64_subnetwork below) The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 only. Check the SourceSubnetworkIpRangesToNat64 enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat64 = 248116185;- Returns:
- This builder for chaining.
-
setSourceSubnetworkIpRangesToNat64Bytes
public RouterNat.Builder setSourceSubnetworkIpRangesToNat64Bytes(com.google.protobuf.ByteString value) Specify the Nat option for NAT64, which can take one of the following values: - ALL_IPV6_SUBNETWORKS: All of the IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_IPV6_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field nat64_subnetwork below) The default is NAT64_OPTION_UNSPECIFIED. Note that if this field contains NAT64_ALL_V6_SUBNETWORKS no other Router.Nat section in this region can also enable NAT64 for any Subnetworks in this network. Other Router.Nat sections can still be present to enable NAT44 only. Check the SourceSubnetworkIpRangesToNat64 enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat64 = 248116185;- Parameters:
value- The bytes for sourceSubnetworkIpRangesToNat64 to set.- Returns:
- This builder for chaining.
-
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
-
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
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
-
setSubnetworks
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; -
setSubnetworks
public RouterNat.Builder setSubnetworks(int index, RouterNatSubnetworkToNat.Builder builderForValue) 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; -
addSubnetworks
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; -
addSubnetworks
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; -
addSubnetworks
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; -
addSubnetworks
public RouterNat.Builder addSubnetworks(int index, RouterNatSubnetworkToNat.Builder builderForValue) 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; -
addAllSubnetworks
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; -
clearSubnetworks
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; -
removeSubnetworks
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; -
getSubnetworksBuilder
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
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
-
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
-
addSubnetworksBuilder
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; -
addSubnetworksBuilder
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; -
getSubnetworksBuilderList
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; -
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.
-
setTcpEstablishedIdleTimeoutSec
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
optional int32 tcp_established_idle_timeout_sec = 223098349;- Parameters:
value- The tcpEstablishedIdleTimeoutSec to set.- Returns:
- This builder for chaining.
-
clearTcpEstablishedIdleTimeoutSec
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
optional int32 tcp_established_idle_timeout_sec = 223098349;- Returns:
- This builder for chaining.
-
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.
-
setTcpTimeWaitTimeoutSec
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;- Parameters:
value- The tcpTimeWaitTimeoutSec to set.- Returns:
- This builder for chaining.
-
clearTcpTimeWaitTimeoutSec
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;- Returns:
- This builder for chaining.
-
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.
-
setTcpTransitoryIdleTimeoutSec
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
optional int32 tcp_transitory_idle_timeout_sec = 205028774;- Parameters:
value- The tcpTransitoryIdleTimeoutSec to set.- Returns:
- This builder for chaining.
-
clearTcpTransitoryIdleTimeoutSec
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
optional int32 tcp_transitory_idle_timeout_sec = 205028774;- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()Indicates whether this NAT is used for public or private IP translation. If unspecified, it defaults to PUBLIC. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
hasTypein interfaceRouterNatOrBuilder- Returns:
- Whether the type field is set.
-
getType
Indicates whether this NAT is used for public or private IP translation. If unspecified, it defaults to PUBLIC. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypein interfaceRouterNatOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Indicates whether this NAT is used for public or private IP translation. If unspecified, it defaults to PUBLIC. Check the Type enum for the list of possible values.
optional string type = 3575610;- Specified by:
getTypeBytesin interfaceRouterNatOrBuilder- Returns:
- The bytes for type.
-
setType
Indicates whether this NAT is used for public or private IP translation. If unspecified, it defaults to PUBLIC. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Indicates whether this NAT is used for public or private IP translation. If unspecified, it defaults to PUBLIC. Check the Type enum for the list of possible values.
optional string type = 3575610;- Returns:
- This builder for chaining.
-
setTypeBytes
Indicates whether this NAT is used for public or private IP translation. If unspecified, it defaults to PUBLIC. Check the Type enum for the list of possible values.
optional string type = 3575610;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
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.
-
setUdpIdleTimeoutSec
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
optional int32 udp_idle_timeout_sec = 64919878;- Parameters:
value- The udpIdleTimeoutSec to set.- Returns:
- This builder for chaining.
-
clearUdpIdleTimeoutSec
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
optional int32 udp_idle_timeout_sec = 64919878;- Returns:
- This builder for chaining.
-