public static final class RouterNat.Builder extends com.google.protobuf.GeneratedMessageV3.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| Modifier and Type | Method and Description |
|---|---|
RouterNat.Builder |
addAllDrainNatIps(Iterable<String> values)
A list of URLs of the IP resources to be drained.
|
RouterNat.Builder |
addAllEndpointTypes(Iterable<String> values)
List of NAT-ted endpoint types supported by the Nat Gateway.
|
RouterNat.Builder |
addAllNatIps(Iterable<String> values)
A list of URLs of the IP resources used for this Nat service.
|
RouterNat.Builder |
addAllRules(Iterable<? extends RouterNatRule> values)
A list of rules associated with this NAT.
|
RouterNat.Builder |
addAllSubnetworks(Iterable<? extends RouterNatSubnetworkToNat> values)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat.Builder |
addDrainNatIps(String value)
A list of URLs of the IP resources to be drained.
|
RouterNat.Builder |
addDrainNatIpsBytes(com.google.protobuf.ByteString value)
A list of URLs of the IP resources to be drained.
|
RouterNat.Builder |
addEndpointTypes(String value)
List of NAT-ted endpoint types supported by the Nat Gateway.
|
RouterNat.Builder |
addEndpointTypesBytes(com.google.protobuf.ByteString value)
List of NAT-ted endpoint types supported by the Nat Gateway.
|
RouterNat.Builder |
addNatIps(String value)
A list of URLs of the IP resources used for this Nat service.
|
RouterNat.Builder |
addNatIpsBytes(com.google.protobuf.ByteString value)
A list of URLs of the IP resources used for this Nat service.
|
RouterNat.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouterNat.Builder |
addRules(int index,
RouterNatRule.Builder builderForValue)
A list of rules associated with this NAT.
|
RouterNat.Builder |
addRules(int index,
RouterNatRule value)
A list of rules associated with this NAT.
|
RouterNat.Builder |
addRules(RouterNatRule.Builder builderForValue)
A list of rules associated with this NAT.
|
RouterNat.Builder |
addRules(RouterNatRule value)
A list of rules associated with this NAT.
|
RouterNatRule.Builder |
addRulesBuilder()
A list of rules associated with this NAT.
|
RouterNatRule.Builder |
addRulesBuilder(int index)
A list of rules associated with this NAT.
|
RouterNat.Builder |
addSubnetworks(int index,
RouterNatSubnetworkToNat.Builder builderForValue)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat.Builder |
addSubnetworks(int index,
RouterNatSubnetworkToNat value)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat.Builder |
addSubnetworks(RouterNatSubnetworkToNat.Builder builderForValue)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat.Builder |
addSubnetworks(RouterNatSubnetworkToNat value)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNatSubnetworkToNat.Builder |
addSubnetworksBuilder()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNatSubnetworkToNat.Builder |
addSubnetworksBuilder(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat |
build() |
RouterNat |
buildPartial() |
RouterNat.Builder |
clear() |
RouterNat.Builder |
clearDrainNatIps()
A list of URLs of the IP resources to be drained.
|
RouterNat.Builder |
clearEnableDynamicPortAllocation()
Enable Dynamic Port Allocation.
|
RouterNat.Builder |
clearEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819; |
RouterNat.Builder |
clearEndpointTypes()
List of NAT-ted endpoint types supported by the Nat Gateway.
|
RouterNat.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RouterNat.Builder |
clearIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections.
|
RouterNat.Builder |
clearLogConfig()
Configure logging on this NAT.
|
RouterNat.Builder |
clearMaxPortsPerVm()
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.
|
RouterNat.Builder |
clearMinPortsPerVm()
Minimum number of ports allocated to a VM from this NAT config.
|
RouterNat.Builder |
clearName()
Unique name of this Nat service.
|
RouterNat.Builder |
clearNatIpAllocateOption()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.
|
RouterNat.Builder |
clearNatIps()
A list of URLs of the IP resources used for this Nat service.
|
RouterNat.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RouterNat.Builder |
clearRules()
A list of rules associated with this NAT.
|
RouterNat.Builder |
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.
|
RouterNat.Builder |
clearSubnetworks()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat.Builder |
clearTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections.
|
RouterNat.Builder |
clearTcpTimeWaitTimeoutSec()
Timeout (in seconds) for TCP connections that are in TIME_WAIT state.
|
RouterNat.Builder |
clearTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections.
|
RouterNat.Builder |
clearUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections.
|
RouterNat.Builder |
clone() |
RouterNat |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDrainNatIps(int index)
A list of URLs of the IP resources to be drained.
|
com.google.protobuf.ByteString |
getDrainNatIpsBytes(int index)
A list of URLs of the IP resources to be drained.
|
int |
getDrainNatIpsCount()
A list of URLs of the IP resources to be drained.
|
com.google.protobuf.ProtocolStringList |
getDrainNatIpsList()
A list of URLs of the IP resources to be drained.
|
boolean |
getEnableDynamicPortAllocation()
Enable Dynamic Port Allocation.
|
boolean |
getEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819; |
String |
getEndpointTypes(int index)
List of NAT-ted endpoint types supported by the Nat Gateway.
|
com.google.protobuf.ByteString |
getEndpointTypesBytes(int index)
List of NAT-ted endpoint types supported by the Nat Gateway.
|
int |
getEndpointTypesCount()
List of NAT-ted endpoint types supported by the Nat Gateway.
|
com.google.protobuf.ProtocolStringList |
getEndpointTypesList()
List of NAT-ted endpoint types supported by the Nat Gateway.
|
int |
getIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections.
|
RouterNatLogConfig |
getLogConfig()
Configure logging on this NAT.
|
RouterNatLogConfig.Builder |
getLogConfigBuilder()
Configure logging on this NAT.
|
RouterNatLogConfigOrBuilder |
getLogConfigOrBuilder()
Configure logging on this NAT.
|
int |
getMaxPortsPerVm()
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.
|
int |
getMinPortsPerVm()
Minimum number of ports allocated to a VM from this NAT config.
|
String |
getName()
Unique name of this Nat service.
|
com.google.protobuf.ByteString |
getNameBytes()
Unique name of this Nat service.
|
String |
getNatIpAllocateOption()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.
|
com.google.protobuf.ByteString |
getNatIpAllocateOptionBytes()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.
|
String |
getNatIps(int index)
A list of URLs of the IP resources used for this Nat service.
|
com.google.protobuf.ByteString |
getNatIpsBytes(int index)
A list of URLs of the IP resources used for this Nat service.
|
int |
getNatIpsCount()
A list of URLs of the IP resources used for this Nat service.
|
com.google.protobuf.ProtocolStringList |
getNatIpsList()
A list of URLs of the IP resources used for this Nat service.
|
RouterNatRule |
getRules(int index)
A list of rules associated with this NAT.
|
RouterNatRule.Builder |
getRulesBuilder(int index)
A list of rules associated with this NAT.
|
List<RouterNatRule.Builder> |
getRulesBuilderList()
A list of rules associated with this NAT.
|
int |
getRulesCount()
A list of rules associated with this NAT.
|
List<RouterNatRule> |
getRulesList()
A list of rules associated with this NAT.
|
RouterNatRuleOrBuilder |
getRulesOrBuilder(int index)
A list of rules associated with this NAT.
|
List<? extends RouterNatRuleOrBuilder> |
getRulesOrBuilderList()
A list of rules associated with this NAT.
|
String |
getSourceSubnetworkIpRangesToNat()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat.
|
com.google.protobuf.ByteString |
getSourceSubnetworkIpRangesToNatBytes()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat.
|
RouterNatSubnetworkToNat |
getSubnetworks(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNatSubnetworkToNat.Builder |
getSubnetworksBuilder(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
List<RouterNatSubnetworkToNat.Builder> |
getSubnetworksBuilderList()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
int |
getSubnetworksCount()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
List<RouterNatSubnetworkToNat> |
getSubnetworksList()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNatSubnetworkToNatOrBuilder |
getSubnetworksOrBuilder(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
List<? extends RouterNatSubnetworkToNatOrBuilder> |
getSubnetworksOrBuilderList()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
int |
getTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections.
|
int |
getTcpTimeWaitTimeoutSec()
Timeout (in seconds) for TCP connections that are in TIME_WAIT state.
|
int |
getTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections.
|
int |
getUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections.
|
boolean |
hasEnableDynamicPortAllocation()
Enable Dynamic Port Allocation.
|
boolean |
hasEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819; |
boolean |
hasIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections.
|
boolean |
hasLogConfig()
Configure logging on this NAT.
|
boolean |
hasMaxPortsPerVm()
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.
|
boolean |
hasMinPortsPerVm()
Minimum number of ports allocated to a VM from this NAT config.
|
boolean |
hasName()
Unique name of this Nat service.
|
boolean |
hasNatIpAllocateOption()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.
|
boolean |
hasSourceSubnetworkIpRangesToNat()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat.
|
boolean |
hasTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections.
|
boolean |
hasTcpTimeWaitTimeoutSec()
Timeout (in seconds) for TCP connections that are in TIME_WAIT state.
|
boolean |
hasTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections.
|
boolean |
hasUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RouterNat.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouterNat.Builder |
mergeFrom(com.google.protobuf.Message other) |
RouterNat.Builder |
mergeFrom(RouterNat other) |
RouterNat.Builder |
mergeLogConfig(RouterNatLogConfig value)
Configure logging on this NAT.
|
RouterNat.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouterNat.Builder |
removeRules(int index)
A list of rules associated with this NAT.
|
RouterNat.Builder |
removeSubnetworks(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat.Builder |
setDrainNatIps(int index,
String value)
A list of URLs of the IP resources to be drained.
|
RouterNat.Builder |
setEnableDynamicPortAllocation(boolean value)
Enable Dynamic Port Allocation.
|
RouterNat.Builder |
setEnableEndpointIndependentMapping(boolean value)
optional bool enable_endpoint_independent_mapping = 259441819; |
RouterNat.Builder |
setEndpointTypes(int index,
String value)
List of NAT-ted endpoint types supported by the Nat Gateway.
|
RouterNat.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouterNat.Builder |
setIcmpIdleTimeoutSec(int value)
Timeout (in seconds) for ICMP connections.
|
RouterNat.Builder |
setLogConfig(RouterNatLogConfig.Builder builderForValue)
Configure logging on this NAT.
|
RouterNat.Builder |
setLogConfig(RouterNatLogConfig value)
Configure logging on this NAT.
|
RouterNat.Builder |
setMaxPortsPerVm(int value)
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled.
|
RouterNat.Builder |
setMinPortsPerVm(int value)
Minimum number of ports allocated to a VM from this NAT config.
|
RouterNat.Builder |
setName(String value)
Unique name of this Nat service.
|
RouterNat.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Unique name of this Nat service.
|
RouterNat.Builder |
setNatIpAllocateOption(String value)
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers.
|
RouterNat.Builder |
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.
|
RouterNat.Builder |
setNatIps(int index,
String value)
A list of URLs of the IP resources used for this Nat service.
|
RouterNat.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RouterNat.Builder |
setRules(int index,
RouterNatRule.Builder builderForValue)
A list of rules associated with this NAT.
|
RouterNat.Builder |
setRules(int index,
RouterNatRule value)
A list of rules associated with this NAT.
|
RouterNat.Builder |
setSourceSubnetworkIpRangesToNat(String 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.
|
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.
|
RouterNat.Builder |
setSubnetworks(int index,
RouterNatSubnetworkToNat.Builder builderForValue)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat.Builder |
setSubnetworks(int index,
RouterNatSubnetworkToNat value)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.
|
RouterNat.Builder |
setTcpEstablishedIdleTimeoutSec(int value)
Timeout (in seconds) for TCP established connections.
|
RouterNat.Builder |
setTcpTimeWaitTimeoutSec(int value)
Timeout (in seconds) for TCP connections that are in TIME_WAIT state.
|
RouterNat.Builder |
setTcpTransitoryIdleTimeoutSec(int value)
Timeout (in seconds) for TCP transitory connections.
|
RouterNat.Builder |
setUdpIdleTimeoutSec(int value)
Timeout (in seconds) for UDP connections.
|
RouterNat.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>public RouterNat.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>public RouterNat getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RouterNat build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RouterNat buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RouterNat.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>public RouterNat.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>public RouterNat.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>public RouterNat.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>public RouterNat.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>public RouterNat.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>public RouterNat.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouterNat.Builder>public RouterNat.Builder mergeFrom(RouterNat other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>public RouterNat.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouterNat.Builder>IOExceptionpublic com.google.protobuf.ProtocolStringList getDrainNatIpsList()
A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only.
repeated string drain_nat_ips = 504078535;getDrainNatIpsList in interface RouterNatOrBuilderpublic int getDrainNatIpsCount()
A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only.
repeated string drain_nat_ips = 504078535;getDrainNatIpsCount in interface RouterNatOrBuilderpublic String getDrainNatIps(int index)
A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only.
repeated string drain_nat_ips = 504078535;getDrainNatIps in interface RouterNatOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getDrainNatIpsBytes(int index)
A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only.
repeated string drain_nat_ips = 504078535;getDrainNatIpsBytes in interface RouterNatOrBuilderindex - The index of the value to return.public RouterNat.Builder setDrainNatIps(int index, String value)
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;index - The index to set the value at.value - The drainNatIps to set.public RouterNat.Builder addDrainNatIps(String value)
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;value - The drainNatIps to add.public RouterNat.Builder addAllDrainNatIps(Iterable<String> values)
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;values - The drainNatIps to add.public RouterNat.Builder 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;public RouterNat.Builder addDrainNatIpsBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the drainNatIps to add.public boolean hasEnableDynamicPortAllocation()
Enable Dynamic Port Allocation. If not specified, it is disabled by default. If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a minimum of 32 ports will be allocated to a VM from this NAT config.
optional bool enable_dynamic_port_allocation = 532106402;hasEnableDynamicPortAllocation in interface RouterNatOrBuilderpublic boolean getEnableDynamicPortAllocation()
Enable Dynamic Port Allocation. If not specified, it is disabled by default. If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a minimum of 32 ports will be allocated to a VM from this NAT config.
optional bool enable_dynamic_port_allocation = 532106402;getEnableDynamicPortAllocation in interface RouterNatOrBuilderpublic RouterNat.Builder setEnableDynamicPortAllocation(boolean value)
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;value - The enableDynamicPortAllocation to set.public RouterNat.Builder 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;public boolean hasEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819;hasEnableEndpointIndependentMapping in interface RouterNatOrBuilderpublic boolean getEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819;getEnableEndpointIndependentMapping in interface RouterNatOrBuilderpublic RouterNat.Builder setEnableEndpointIndependentMapping(boolean value)
optional bool enable_endpoint_independent_mapping = 259441819;value - The enableEndpointIndependentMapping to set.public RouterNat.Builder clearEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819;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;getEndpointTypesList in interface RouterNatOrBuilderpublic int getEndpointTypesCount()
List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM Check the EndpointTypes enum for the list of possible values.
repeated string endpoint_types = 502633807;getEndpointTypesCount in interface RouterNatOrBuilderpublic String getEndpointTypes(int index)
List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM Check the EndpointTypes enum for the list of possible values.
repeated string endpoint_types = 502633807;getEndpointTypes in interface RouterNatOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getEndpointTypesBytes(int index)
List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM Check the EndpointTypes enum for the list of possible values.
repeated string endpoint_types = 502633807;getEndpointTypesBytes in interface RouterNatOrBuilderindex - The index of the value to return.public RouterNat.Builder setEndpointTypes(int index, String value)
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;index - The index to set the value at.value - The endpointTypes to set.public RouterNat.Builder addEndpointTypes(String value)
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;value - The endpointTypes to add.public RouterNat.Builder addAllEndpointTypes(Iterable<String> values)
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;values - The endpointTypes to add.public RouterNat.Builder 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;public RouterNat.Builder addEndpointTypesBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the endpointTypes to add.public boolean hasIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
optional int32 icmp_idle_timeout_sec = 3647562;hasIcmpIdleTimeoutSec in interface RouterNatOrBuilderpublic int getIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
optional int32 icmp_idle_timeout_sec = 3647562;getIcmpIdleTimeoutSec in interface RouterNatOrBuilderpublic RouterNat.Builder setIcmpIdleTimeoutSec(int value)
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
optional int32 icmp_idle_timeout_sec = 3647562;value - The icmpIdleTimeoutSec to set.public RouterNat.Builder clearIcmpIdleTimeoutSec()
Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
optional int32 icmp_idle_timeout_sec = 3647562;public boolean hasLogConfig()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;hasLogConfig in interface RouterNatOrBuilderpublic RouterNatLogConfig getLogConfig()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;getLogConfig in interface RouterNatOrBuilderpublic RouterNat.Builder setLogConfig(RouterNatLogConfig value)
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;public RouterNat.Builder setLogConfig(RouterNatLogConfig.Builder builderForValue)
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;public RouterNat.Builder mergeLogConfig(RouterNatLogConfig value)
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;public RouterNat.Builder clearLogConfig()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;public RouterNatLogConfig.Builder getLogConfigBuilder()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;public RouterNatLogConfigOrBuilder getLogConfigOrBuilder()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;getLogConfigOrBuilder in interface RouterNatOrBuilderpublic boolean hasMaxPortsPerVm()
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled. If Dynamic Port Allocation is not enabled, this field has no effect. If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two greater than minPortsPerVm, or 64 if minPortsPerVm is not set. If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will be allocated to a VM from this NAT config.
optional int32 max_ports_per_vm = 250062049;hasMaxPortsPerVm in interface RouterNatOrBuilderpublic int getMaxPortsPerVm()
Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled. If Dynamic Port Allocation is not enabled, this field has no effect. If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two greater than minPortsPerVm, or 64 if minPortsPerVm is not set. If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will be allocated to a VM from this NAT config.
optional int32 max_ports_per_vm = 250062049;getMaxPortsPerVm in interface RouterNatOrBuilderpublic RouterNat.Builder setMaxPortsPerVm(int value)
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;value - The maxPortsPerVm to set.public RouterNat.Builder 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;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;hasMinPortsPerVm in interface RouterNatOrBuilderpublic int getMinPortsPerVm()
Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM.
optional int32 min_ports_per_vm = 186193587;getMinPortsPerVm in interface RouterNatOrBuilderpublic RouterNat.Builder setMinPortsPerVm(int value)
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;value - The minPortsPerVm to set.public RouterNat.Builder 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;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;hasName in interface RouterNatOrBuilderpublic String getName()
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;getName in interface RouterNatOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;getNameBytes in interface RouterNatOrBuilderpublic RouterNat.Builder setName(String value)
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;value - The name to set.public RouterNat.Builder clearName()
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;public RouterNat.Builder setNameBytes(com.google.protobuf.ByteString value)
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;value - The bytes for name to set.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;hasNatIpAllocateOption in interface RouterNatOrBuilderpublic String getNatIpAllocateOption()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. Check the NatIpAllocateOption enum for the list of possible values.
optional string nat_ip_allocate_option = 429726845;getNatIpAllocateOption in interface RouterNatOrBuilderpublic com.google.protobuf.ByteString getNatIpAllocateOptionBytes()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. Check the NatIpAllocateOption enum for the list of possible values.
optional string nat_ip_allocate_option = 429726845;getNatIpAllocateOptionBytes in interface RouterNatOrBuilderpublic RouterNat.Builder setNatIpAllocateOption(String value)
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;value - The natIpAllocateOption to set.public RouterNat.Builder 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;public RouterNat.Builder 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. 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;value - The bytes for natIpAllocateOption to set.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;getNatIpsList in interface RouterNatOrBuilderpublic int getNatIpsCount()
A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project.
repeated string nat_ips = 117635086;getNatIpsCount in interface RouterNatOrBuilderpublic String getNatIps(int index)
A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project.
repeated string nat_ips = 117635086;getNatIps in interface RouterNatOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getNatIpsBytes(int index)
A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project.
repeated string nat_ips = 117635086;getNatIpsBytes in interface RouterNatOrBuilderindex - The index of the value to return.public RouterNat.Builder setNatIps(int index, String value)
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;index - The index to set the value at.value - The natIps to set.public RouterNat.Builder addNatIps(String value)
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;value - The natIps to add.public RouterNat.Builder addAllNatIps(Iterable<String> values)
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;values - The natIps to add.public RouterNat.Builder 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;public RouterNat.Builder addNatIpsBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the natIps to add.public List<RouterNatRule> getRulesList()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;getRulesList in interface RouterNatOrBuilderpublic int getRulesCount()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;getRulesCount in interface RouterNatOrBuilderpublic RouterNatRule getRules(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;getRules in interface RouterNatOrBuilderpublic RouterNat.Builder setRules(int index, RouterNatRule value)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public RouterNat.Builder setRules(int index, RouterNatRule.Builder builderForValue)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public RouterNat.Builder addRules(RouterNatRule value)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public RouterNat.Builder addRules(int index, RouterNatRule value)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public RouterNat.Builder addRules(RouterNatRule.Builder builderForValue)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public RouterNat.Builder addRules(int index, RouterNatRule.Builder builderForValue)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public RouterNat.Builder addAllRules(Iterable<? extends RouterNatRule> values)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public RouterNat.Builder clearRules()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public RouterNat.Builder removeRules(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public RouterNatRule.Builder getRulesBuilder(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public RouterNatRuleOrBuilder getRulesOrBuilder(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;getRulesOrBuilder in interface RouterNatOrBuilderpublic List<? extends RouterNatRuleOrBuilder> getRulesOrBuilderList()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;getRulesOrBuilderList in interface RouterNatOrBuilderpublic RouterNatRule.Builder addRulesBuilder()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public RouterNatRule.Builder addRulesBuilder(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;public List<RouterNatRule.Builder> getRulesBuilderList()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;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 or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. Check the SourceSubnetworkIpRangesToNat enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat = 252213211;hasSourceSubnetworkIpRangesToNat in interface RouterNatOrBuilderpublic String getSourceSubnetworkIpRangesToNat()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. Check the SourceSubnetworkIpRangesToNat enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat = 252213211;getSourceSubnetworkIpRangesToNat in interface RouterNatOrBuilderpublic com.google.protobuf.ByteString getSourceSubnetworkIpRangesToNatBytes()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. Check the SourceSubnetworkIpRangesToNat enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat = 252213211;getSourceSubnetworkIpRangesToNatBytes in interface RouterNatOrBuilderpublic RouterNat.Builder setSourceSubnetworkIpRangesToNat(String 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 or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. Check the SourceSubnetworkIpRangesToNat enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat = 252213211;value - The sourceSubnetworkIpRangesToNat to set.public RouterNat.Builder 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 or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. Check the SourceSubnetworkIpRangesToNat enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat = 252213211;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 or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other Router.Nat section in any Router for this network in this region. Check the SourceSubnetworkIpRangesToNat enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat = 252213211;value - The bytes for sourceSubnetworkIpRangesToNat to set.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;
getSubnetworksList in interface RouterNatOrBuilderpublic int getSubnetworksCount()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
getSubnetworksCount in interface RouterNatOrBuilderpublic RouterNatSubnetworkToNat getSubnetworks(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
getSubnetworks in interface RouterNatOrBuilderpublic RouterNat.Builder setSubnetworks(int index, RouterNatSubnetworkToNat value)
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;
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;
public RouterNat.Builder addSubnetworks(RouterNatSubnetworkToNat value)
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;
public RouterNat.Builder addSubnetworks(int index, RouterNatSubnetworkToNat value)
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;
public RouterNat.Builder addSubnetworks(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;
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;
public RouterNat.Builder addAllSubnetworks(Iterable<? extends RouterNatSubnetworkToNat> values)
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;
public RouterNat.Builder 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;
public RouterNat.Builder removeSubnetworks(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;
public RouterNatSubnetworkToNat.Builder getSubnetworksBuilder(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;
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;
getSubnetworksOrBuilder in interface RouterNatOrBuilderpublic List<? extends RouterNatSubnetworkToNatOrBuilder> getSubnetworksOrBuilderList()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
getSubnetworksOrBuilderList in interface RouterNatOrBuilderpublic RouterNatSubnetworkToNat.Builder 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;
public RouterNatSubnetworkToNat.Builder addSubnetworksBuilder(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;
public List<RouterNatSubnetworkToNat.Builder> 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;
public boolean hasTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
optional int32 tcp_established_idle_timeout_sec = 223098349;hasTcpEstablishedIdleTimeoutSec in interface RouterNatOrBuilderpublic int getTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
optional int32 tcp_established_idle_timeout_sec = 223098349;getTcpEstablishedIdleTimeoutSec in interface RouterNatOrBuilderpublic RouterNat.Builder setTcpEstablishedIdleTimeoutSec(int value)
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
optional int32 tcp_established_idle_timeout_sec = 223098349;value - The tcpEstablishedIdleTimeoutSec to set.public RouterNat.Builder clearTcpEstablishedIdleTimeoutSec()
Timeout (in seconds) for TCP established connections. Defaults to 1200s if not set.
optional int32 tcp_established_idle_timeout_sec = 223098349;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;hasTcpTimeWaitTimeoutSec in interface RouterNatOrBuilderpublic int getTcpTimeWaitTimeoutSec()
Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults to 120s if not set.
optional int32 tcp_time_wait_timeout_sec = 513596925;getTcpTimeWaitTimeoutSec in interface RouterNatOrBuilderpublic RouterNat.Builder setTcpTimeWaitTimeoutSec(int value)
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;value - The tcpTimeWaitTimeoutSec to set.public RouterNat.Builder 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;public boolean hasTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
optional int32 tcp_transitory_idle_timeout_sec = 205028774;hasTcpTransitoryIdleTimeoutSec in interface RouterNatOrBuilderpublic int getTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
optional int32 tcp_transitory_idle_timeout_sec = 205028774;getTcpTransitoryIdleTimeoutSec in interface RouterNatOrBuilderpublic RouterNat.Builder setTcpTransitoryIdleTimeoutSec(int value)
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
optional int32 tcp_transitory_idle_timeout_sec = 205028774;value - The tcpTransitoryIdleTimeoutSec to set.public RouterNat.Builder clearTcpTransitoryIdleTimeoutSec()
Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not set.
optional int32 tcp_transitory_idle_timeout_sec = 205028774;public boolean hasUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
optional int32 udp_idle_timeout_sec = 64919878;hasUdpIdleTimeoutSec in interface RouterNatOrBuilderpublic int getUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
optional int32 udp_idle_timeout_sec = 64919878;getUdpIdleTimeoutSec in interface RouterNatOrBuilderpublic RouterNat.Builder setUdpIdleTimeoutSec(int value)
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
optional int32 udp_idle_timeout_sec = 64919878;value - The udpIdleTimeoutSec to set.public RouterNat.Builder clearUdpIdleTimeoutSec()
Timeout (in seconds) for UDP connections. Defaults to 30s if not set.
optional int32 udp_idle_timeout_sec = 64919878;public final RouterNat.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>public final RouterNat.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>Copyright © 2023 Google LLC. All rights reserved.