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.GeneratedMessageV3.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.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 typegoogle.cloud.compute.v1.RouterNat
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 value)
A list of rules associated with this NAT.RouterNat.Builder
addRules(int index, RouterNatRule.Builder builderForValue)
A list of rules associated with this NAT.RouterNat.Builder
addRules(RouterNatRule value)
A list of rules associated with this NAT.RouterNat.Builder
addRules(RouterNatRule.Builder builderForValue)
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 value)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.RouterNat.Builder
addSubnetworks(int index, 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.RouterNat.Builder
addSubnetworks(RouterNatSubnetworkToNat.Builder builderForValue)
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
clearAutoNetworkTier()
The network tier to use when automatically reserving IP addresses.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()
String
getAutoNetworkTier()
The network tier to use when automatically reserving IP addresses.com.google.protobuf.ByteString
getAutoNetworkTierBytes()
The network tier to use when automatically reserving IP addresses.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
hasAutoNetworkTier()
The network tier to use when automatically reserving IP addresses.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(RouterNat other)
RouterNat.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RouterNat.Builder
mergeFrom(com.google.protobuf.Message 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
setAutoNetworkTier(String value)
The network tier to use when automatically reserving IP addresses.RouterNat.Builder
setAutoNetworkTierBytes(com.google.protobuf.ByteString value)
The network tier to use when automatically reserving IP addresses.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 value)
Configure logging on this NAT.RouterNat.Builder
setLogConfig(RouterNatLogConfig.Builder builderForValue)
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 value)
A list of rules associated with this NAT.RouterNat.Builder
setRules(int index, RouterNatRule.Builder builderForValue)
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 value)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway.RouterNat.Builder
setSubnetworks(int index, RouterNatSubnetworkToNat.Builder builderForValue)
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)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
clear
public RouterNat.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
getDefaultInstanceForType
public RouterNat getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouterNat build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouterNat buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouterNat.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
setField
public RouterNat.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
clearField
public RouterNat.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
clearOneof
public RouterNat.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
setRepeatedField
public RouterNat.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
addRepeatedField
public RouterNat.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
mergeFrom
public RouterNat.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouterNat.Builder>
-
mergeFrom
public RouterNat.Builder mergeFrom(RouterNat other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
mergeFrom
public RouterNat.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouterNat.Builder>
- Throws:
IOException
-
hasAutoNetworkTier
public boolean hasAutoNetworkTier()
The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;
- Specified by:
hasAutoNetworkTier
in interfaceRouterNatOrBuilder
- Returns:
- Whether the autoNetworkTier field is set.
-
getAutoNetworkTier
public String getAutoNetworkTier()
The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;
- Specified by:
getAutoNetworkTier
in interfaceRouterNatOrBuilder
- Returns:
- The autoNetworkTier.
-
getAutoNetworkTierBytes
public com.google.protobuf.ByteString getAutoNetworkTierBytes()
The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;
- Specified by:
getAutoNetworkTierBytes
in interfaceRouterNatOrBuilder
- Returns:
- The bytes for autoNetworkTier.
-
setAutoNetworkTier
public RouterNat.Builder setAutoNetworkTier(String value)
The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;
- Parameters:
value
- The autoNetworkTier to set.- Returns:
- This builder for chaining.
-
clearAutoNetworkTier
public RouterNat.Builder clearAutoNetworkTier()
The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;
- Returns:
- This builder for chaining.
-
setAutoNetworkTierBytes
public RouterNat.Builder setAutoNetworkTierBytes(com.google.protobuf.ByteString value)
The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. Check the AutoNetworkTier enum for the list of possible values.
optional string auto_network_tier = 269770211;
- 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:
getDrainNatIpsList
in 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:
getDrainNatIpsCount
in interfaceRouterNatOrBuilder
- Returns:
- The count of drainNatIps.
-
getDrainNatIps
public String getDrainNatIps(int index)
A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only.
repeated string drain_nat_ips = 504078535;
- Specified by:
getDrainNatIps
in 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:
getDrainNatIpsBytes
in interfaceRouterNatOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the drainNatIps at the given index.
-
setDrainNatIps
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;
- Parameters:
index
- The index to set the value at.value
- The drainNatIps to set.- Returns:
- This builder for chaining.
-
addDrainNatIps
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;
- Parameters:
value
- The drainNatIps to add.- Returns:
- This builder for chaining.
-
addAllDrainNatIps
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;
- Parameters:
values
- The drainNatIps to add.- Returns:
- This builder for chaining.
-
clearDrainNatIps
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;
- Returns:
- This builder for chaining.
-
addDrainNatIpsBytes
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;
- 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:
hasEnableDynamicPortAllocation
in 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:
getEnableDynamicPortAllocation
in interfaceRouterNatOrBuilder
- Returns:
- The enableDynamicPortAllocation.
-
setEnableDynamicPortAllocation
public 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;
- Parameters:
value
- The enableDynamicPortAllocation to set.- Returns:
- This builder for chaining.
-
clearEnableDynamicPortAllocation
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;
- Returns:
- This builder for chaining.
-
hasEnableEndpointIndependentMapping
public boolean hasEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819;
- Specified by:
hasEnableEndpointIndependentMapping
in interfaceRouterNatOrBuilder
- Returns:
- Whether the enableEndpointIndependentMapping field is set.
-
getEnableEndpointIndependentMapping
public boolean getEnableEndpointIndependentMapping()
optional bool enable_endpoint_independent_mapping = 259441819;
- Specified by:
getEnableEndpointIndependentMapping
in interfaceRouterNatOrBuilder
- Returns:
- The enableEndpointIndependentMapping.
-
setEnableEndpointIndependentMapping
public RouterNat.Builder setEnableEndpointIndependentMapping(boolean value)
optional bool enable_endpoint_independent_mapping = 259441819;
- Parameters:
value
- The enableEndpointIndependentMapping to set.- Returns:
- This builder for chaining.
-
clearEnableEndpointIndependentMapping
public RouterNat.Builder 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:
getEndpointTypesList
in 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:
getEndpointTypesCount
in interfaceRouterNatOrBuilder
- Returns:
- The count of endpointTypes.
-
getEndpointTypes
public String getEndpointTypes(int index)
List of NAT-ted endpoint types supported by the Nat Gateway. If the list is empty, then it will be equivalent to include ENDPOINT_TYPE_VM Check the EndpointTypes enum for the list of possible values.
repeated string endpoint_types = 502633807;
- Specified by:
getEndpointTypes
in 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:
getEndpointTypesBytes
in interfaceRouterNatOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the endpointTypes at the given index.
-
setEndpointTypes
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;
- Parameters:
index
- The index to set the value at.value
- The endpointTypes to set.- Returns:
- This builder for chaining.
-
addEndpointTypes
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;
- Parameters:
value
- The endpointTypes to add.- Returns:
- This builder for chaining.
-
addAllEndpointTypes
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;
- Parameters:
values
- The endpointTypes to add.- Returns:
- This builder for chaining.
-
clearEndpointTypes
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;
- Returns:
- This builder for chaining.
-
addEndpointTypesBytes
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;
- 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:
hasIcmpIdleTimeoutSec
in 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:
getIcmpIdleTimeoutSec
in interfaceRouterNatOrBuilder
- Returns:
- The icmpIdleTimeoutSec.
-
setIcmpIdleTimeoutSec
public RouterNat.Builder setIcmpIdleTimeoutSec(int value)
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
public RouterNat.Builder 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:
hasLogConfig
in interfaceRouterNatOrBuilder
- Returns:
- Whether the logConfig field is set.
-
getLogConfig
public RouterNatLogConfig getLogConfig()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;
- Specified by:
getLogConfig
in interfaceRouterNatOrBuilder
- Returns:
- The logConfig.
-
setLogConfig
public RouterNat.Builder setLogConfig(RouterNatLogConfig value)
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;
-
setLogConfig
public RouterNat.Builder setLogConfig(RouterNatLogConfig.Builder builderForValue)
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;
-
mergeLogConfig
public RouterNat.Builder mergeLogConfig(RouterNatLogConfig value)
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;
-
clearLogConfig
public RouterNat.Builder clearLogConfig()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;
-
getLogConfigBuilder
public RouterNatLogConfig.Builder getLogConfigBuilder()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;
-
getLogConfigOrBuilder
public RouterNatLogConfigOrBuilder getLogConfigOrBuilder()
Configure logging on this NAT.
optional .google.cloud.compute.v1.RouterNatLogConfig log_config = 351299741;
- Specified by:
getLogConfigOrBuilder
in 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:
hasMaxPortsPerVm
in 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:
getMaxPortsPerVm
in interfaceRouterNatOrBuilder
- Returns:
- The maxPortsPerVm.
-
setMaxPortsPerVm
public 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;
- Parameters:
value
- The maxPortsPerVm to set.- Returns:
- This builder for chaining.
-
clearMaxPortsPerVm
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;
- 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:
hasMinPortsPerVm
in 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:
getMinPortsPerVm
in interfaceRouterNatOrBuilder
- Returns:
- The minPortsPerVm.
-
setMinPortsPerVm
public 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;
- Parameters:
value
- The minPortsPerVm to set.- Returns:
- This builder for chaining.
-
clearMinPortsPerVm
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;
- 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 with RFC1035.
optional string name = 3373707;
- Specified by:
hasName
in interfaceRouterNatOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;
- Specified by:
getName
in interfaceRouterNatOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Unique name of this Nat service. The name must be 1-63 characters long and comply with RFC1035.
optional string name = 3373707;
- Specified by:
getNameBytes
in interfaceRouterNatOrBuilder
- Returns:
- The bytes for name.
-
setName
public 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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;
- Returns:
- This builder for chaining.
-
setNameBytes
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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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:
hasNatIpAllocateOption
in interfaceRouterNatOrBuilder
- Returns:
- Whether the natIpAllocateOption field is set.
-
getNatIpAllocateOption
public String getNatIpAllocateOption()
Specify the NatIpAllocateOption, which can take one of the following values: - MANUAL_ONLY: Uses only Nat IP addresses provided by customers. When there are not enough specified Nat IPs, the Nat service fails for new VMs. - AUTO_ONLY: Nat IPs are allocated by Google Cloud Platform; customers can't specify any Nat IPs. When choosing AUTO_ONLY, then nat_ip should be empty. Check the NatIpAllocateOption enum for the list of possible values.
optional string nat_ip_allocate_option = 429726845;
- Specified by:
getNatIpAllocateOption
in 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:
getNatIpAllocateOptionBytes
in interfaceRouterNatOrBuilder
- Returns:
- The bytes for natIpAllocateOption.
-
setNatIpAllocateOption
public 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;
- Parameters:
value
- The natIpAllocateOption to set.- Returns:
- This builder for chaining.
-
clearNatIpAllocateOption
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;
- Returns:
- This builder for chaining.
-
setNatIpAllocateOptionBytes
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;
- 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:
getNatIpsList
in 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:
getNatIpsCount
in interfaceRouterNatOrBuilder
- Returns:
- The count of natIps.
-
getNatIps
public String getNatIps(int index)
A list of URLs of the IP resources used for this Nat service. These IP addresses must be valid static external IP addresses assigned to the project.
repeated string nat_ips = 117635086;
- Specified by:
getNatIps
in 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:
getNatIpsBytes
in interfaceRouterNatOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the natIps at the given index.
-
setNatIps
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;
- Parameters:
index
- The index to set the value at.value
- The natIps to set.- Returns:
- This builder for chaining.
-
addNatIps
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;
- Parameters:
value
- The natIps to add.- Returns:
- This builder for chaining.
-
addAllNatIps
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;
- Parameters:
values
- The natIps to add.- Returns:
- This builder for chaining.
-
clearNatIps
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;
- Returns:
- This builder for chaining.
-
addNatIpsBytes
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;
- Parameters:
value
- The bytes of the natIps to add.- Returns:
- This builder for chaining.
-
getRulesList
public List<RouterNatRule> getRulesList()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
- Specified by:
getRulesList
in interfaceRouterNatOrBuilder
-
getRulesCount
public int getRulesCount()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
- Specified by:
getRulesCount
in interfaceRouterNatOrBuilder
-
getRules
public RouterNatRule getRules(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
- Specified by:
getRules
in interfaceRouterNatOrBuilder
-
setRules
public RouterNat.Builder setRules(int index, RouterNatRule value)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
-
setRules
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;
-
addRules
public RouterNat.Builder addRules(RouterNatRule value)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
-
addRules
public RouterNat.Builder addRules(int index, RouterNatRule value)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
-
addRules
public RouterNat.Builder addRules(RouterNatRule.Builder builderForValue)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
-
addRules
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;
-
addAllRules
public RouterNat.Builder addAllRules(Iterable<? extends RouterNatRule> values)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
-
clearRules
public RouterNat.Builder clearRules()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
-
removeRules
public RouterNat.Builder removeRules(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
-
getRulesBuilder
public RouterNatRule.Builder getRulesBuilder(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
-
getRulesOrBuilder
public RouterNatRuleOrBuilder getRulesOrBuilder(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
- Specified by:
getRulesOrBuilder
in interfaceRouterNatOrBuilder
-
getRulesOrBuilderList
public List<? extends RouterNatRuleOrBuilder> getRulesOrBuilderList()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
- Specified by:
getRulesOrBuilderList
in interfaceRouterNatOrBuilder
-
addRulesBuilder
public RouterNatRule.Builder addRulesBuilder()
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
-
addRulesBuilder
public RouterNatRule.Builder addRulesBuilder(int index)
A list of rules associated with this NAT.
repeated .google.cloud.compute.v1.RouterNatRule rules = 108873975;
-
getRulesBuilderList
public List<RouterNatRule.Builder> 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:
hasSourceSubnetworkIpRangesToNat
in interfaceRouterNatOrBuilder
- Returns:
- Whether the sourceSubnetworkIpRangesToNat field is set.
-
getSourceSubnetworkIpRangesToNat
public String getSourceSubnetworkIpRangesToNat()
Specify the Nat option, which can take one of the following values: - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are allowed to Nat. - ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES: All of the primary IP ranges in every Subnetwork are allowed to Nat. - LIST_OF_SUBNETWORKS: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below) The default is SUBNETWORK_IP_RANGE_TO_NAT_OPTION_UNSPECIFIED. Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES then there should not be any other Router.Nat section in any Router for this network in this region. Check the SourceSubnetworkIpRangesToNat enum for the list of possible values.
optional string source_subnetwork_ip_ranges_to_nat = 252213211;
- Specified by:
getSourceSubnetworkIpRangesToNat
in 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:
getSourceSubnetworkIpRangesToNatBytes
in interfaceRouterNatOrBuilder
- Returns:
- The bytes for sourceSubnetworkIpRangesToNat.
-
setSourceSubnetworkIpRangesToNat
public 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 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
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 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.
-
getSubnetworksList
public List<RouterNatSubnetworkToNat> getSubnetworksList()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
- Specified by:
getSubnetworksList
in 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:
getSubnetworksCount
in interfaceRouterNatOrBuilder
-
getSubnetworks
public RouterNatSubnetworkToNat getSubnetworks(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
- Specified by:
getSubnetworks
in interfaceRouterNatOrBuilder
-
setSubnetworks
public 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;
-
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
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;
-
addSubnetworks
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;
-
addSubnetworks
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;
-
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
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;
-
clearSubnetworks
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;
-
removeSubnetworks
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;
-
getSubnetworksBuilder
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;
-
getSubnetworksOrBuilder
public RouterNatSubnetworkToNatOrBuilder getSubnetworksOrBuilder(int index)
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
- Specified by:
getSubnetworksOrBuilder
in interfaceRouterNatOrBuilder
-
getSubnetworksOrBuilderList
public List<? extends RouterNatSubnetworkToNatOrBuilder> getSubnetworksOrBuilderList()
A list of Subnetwork resources whose traffic should be translated by NAT Gateway. It is used only when LIST_OF_SUBNETWORKS is selected for the SubnetworkIpRangeToNatOption above.
repeated .google.cloud.compute.v1.RouterNatSubnetworkToNat subnetworks = 415853125;
- Specified by:
getSubnetworksOrBuilderList
in interfaceRouterNatOrBuilder
-
addSubnetworksBuilder
public 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;
-
addSubnetworksBuilder
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;
-
getSubnetworksBuilderList
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;
-
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:
hasTcpEstablishedIdleTimeoutSec
in 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:
getTcpEstablishedIdleTimeoutSec
in interfaceRouterNatOrBuilder
- Returns:
- The tcpEstablishedIdleTimeoutSec.
-
setTcpEstablishedIdleTimeoutSec
public 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;
- Parameters:
value
- The tcpEstablishedIdleTimeoutSec to set.- Returns:
- This builder for chaining.
-
clearTcpEstablishedIdleTimeoutSec
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;
- 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:
hasTcpTimeWaitTimeoutSec
in 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:
getTcpTimeWaitTimeoutSec
in interfaceRouterNatOrBuilder
- Returns:
- The tcpTimeWaitTimeoutSec.
-
setTcpTimeWaitTimeoutSec
public 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;
- Parameters:
value
- The tcpTimeWaitTimeoutSec to set.- Returns:
- This builder for chaining.
-
clearTcpTimeWaitTimeoutSec
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;
- 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:
hasTcpTransitoryIdleTimeoutSec
in 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:
getTcpTransitoryIdleTimeoutSec
in interfaceRouterNatOrBuilder
- Returns:
- The tcpTransitoryIdleTimeoutSec.
-
setTcpTransitoryIdleTimeoutSec
public 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;
- Parameters:
value
- The tcpTransitoryIdleTimeoutSec to set.- Returns:
- This builder for chaining.
-
clearTcpTransitoryIdleTimeoutSec
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;
- 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:
hasUdpIdleTimeoutSec
in 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:
getUdpIdleTimeoutSec
in interfaceRouterNatOrBuilder
- Returns:
- The udpIdleTimeoutSec.
-
setUdpIdleTimeoutSec
public RouterNat.Builder setUdpIdleTimeoutSec(int value)
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
public RouterNat.Builder 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.
-
setUnknownFields
public final RouterNat.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
mergeUnknownFields
public final RouterNat.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouterNat.Builder>
-
-