Class RouterStatusNatStatus.Builder (1.63.0)

public static final class RouterStatusNatStatus.Builder extends GeneratedMessageV3.Builder<RouterStatusNatStatus.Builder> implements RouterStatusNatStatusOrBuilder

Status of a NAT contained in this router.

Protobuf type google.cloud.compute.v1.RouterStatusNatStatus

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAutoAllocatedNatIps(Iterable<String> values)

public RouterStatusNatStatus.Builder addAllAutoAllocatedNatIps(Iterable<String> values)

A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]

repeated string auto_allocated_nat_ips = 510794246;

Parameter
Name Description
values Iterable<String>

The autoAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addAllDrainAutoAllocatedNatIps(Iterable<String> values)

public RouterStatusNatStatus.Builder addAllDrainAutoAllocatedNatIps(Iterable<String> values)

A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_auto_allocated_nat_ips = 309184557;

Parameter
Name Description
values Iterable<String>

The drainAutoAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addAllDrainUserAllocatedNatIps(Iterable<String> values)

public RouterStatusNatStatus.Builder addAllDrainUserAllocatedNatIps(Iterable<String> values)

A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_user_allocated_nat_ips = 305268553;

Parameter
Name Description
values Iterable<String>

The drainUserAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addAllRuleStatus(Iterable<? extends RouterStatusNatStatusNatRuleStatus> values)

public RouterStatusNatStatus.Builder addAllRuleStatus(Iterable<? extends RouterStatusNatStatusNatRuleStatus> values)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus>
Returns
Type Description
RouterStatusNatStatus.Builder

addAllUserAllocatedNatIpResources(Iterable<String> values)

public RouterStatusNatStatus.Builder addAllUserAllocatedNatIpResources(Iterable<String> values)

A list of fully qualified URLs of reserved IP address resources.

repeated string user_allocated_nat_ip_resources = 212776151;

Parameter
Name Description
values Iterable<String>

The userAllocatedNatIpResources to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addAllUserAllocatedNatIps(Iterable<String> values)

public RouterStatusNatStatus.Builder addAllUserAllocatedNatIps(Iterable<String> values)

A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133".

repeated string user_allocated_nat_ips = 506878242;

Parameter
Name Description
values Iterable<String>

The userAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addAutoAllocatedNatIps(String value)

public RouterStatusNatStatus.Builder addAutoAllocatedNatIps(String value)

A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]

repeated string auto_allocated_nat_ips = 510794246;

Parameter
Name Description
value String

The autoAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addAutoAllocatedNatIpsBytes(ByteString value)

public RouterStatusNatStatus.Builder addAutoAllocatedNatIpsBytes(ByteString value)

A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]

repeated string auto_allocated_nat_ips = 510794246;

Parameter
Name Description
value ByteString

The bytes of the autoAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addDrainAutoAllocatedNatIps(String value)

public RouterStatusNatStatus.Builder addDrainAutoAllocatedNatIps(String value)

A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_auto_allocated_nat_ips = 309184557;

Parameter
Name Description
value String

The drainAutoAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addDrainAutoAllocatedNatIpsBytes(ByteString value)

public RouterStatusNatStatus.Builder addDrainAutoAllocatedNatIpsBytes(ByteString value)

A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_auto_allocated_nat_ips = 309184557;

Parameter
Name Description
value ByteString

The bytes of the drainAutoAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addDrainUserAllocatedNatIps(String value)

public RouterStatusNatStatus.Builder addDrainUserAllocatedNatIps(String value)

A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_user_allocated_nat_ips = 305268553;

Parameter
Name Description
value String

The drainUserAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addDrainUserAllocatedNatIpsBytes(ByteString value)

public RouterStatusNatStatus.Builder addDrainUserAllocatedNatIpsBytes(ByteString value)

A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_user_allocated_nat_ips = 305268553;

Parameter
Name Description
value ByteString

The bytes of the drainUserAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RouterStatusNatStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RouterStatusNatStatus.Builder
Overrides

addRuleStatus(RouterStatusNatStatusNatRuleStatus value)

public RouterStatusNatStatus.Builder addRuleStatus(RouterStatusNatStatusNatRuleStatus value)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameter
Name Description
value RouterStatusNatStatusNatRuleStatus
Returns
Type Description
RouterStatusNatStatus.Builder

addRuleStatus(RouterStatusNatStatusNatRuleStatus.Builder builderForValue)

public RouterStatusNatStatus.Builder addRuleStatus(RouterStatusNatStatusNatRuleStatus.Builder builderForValue)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameter
Name Description
builderForValue RouterStatusNatStatusNatRuleStatus.Builder
Returns
Type Description
RouterStatusNatStatus.Builder

addRuleStatus(int index, RouterStatusNatStatusNatRuleStatus value)

public RouterStatusNatStatus.Builder addRuleStatus(int index, RouterStatusNatStatusNatRuleStatus value)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameters
Name Description
index int
value RouterStatusNatStatusNatRuleStatus
Returns
Type Description
RouterStatusNatStatus.Builder

addRuleStatus(int index, RouterStatusNatStatusNatRuleStatus.Builder builderForValue)

public RouterStatusNatStatus.Builder addRuleStatus(int index, RouterStatusNatStatusNatRuleStatus.Builder builderForValue)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameters
Name Description
index int
builderForValue RouterStatusNatStatusNatRuleStatus.Builder
Returns
Type Description
RouterStatusNatStatus.Builder

addRuleStatusBuilder()

public RouterStatusNatStatusNatRuleStatus.Builder addRuleStatusBuilder()

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

addRuleStatusBuilder(int index)

public RouterStatusNatStatusNatRuleStatus.Builder addRuleStatusBuilder(int index)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameter
Name Description
index int
Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

addUserAllocatedNatIpResources(String value)

public RouterStatusNatStatus.Builder addUserAllocatedNatIpResources(String value)

A list of fully qualified URLs of reserved IP address resources.

repeated string user_allocated_nat_ip_resources = 212776151;

Parameter
Name Description
value String

The userAllocatedNatIpResources to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addUserAllocatedNatIpResourcesBytes(ByteString value)

public RouterStatusNatStatus.Builder addUserAllocatedNatIpResourcesBytes(ByteString value)

A list of fully qualified URLs of reserved IP address resources.

repeated string user_allocated_nat_ip_resources = 212776151;

Parameter
Name Description
value ByteString

The bytes of the userAllocatedNatIpResources to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addUserAllocatedNatIps(String value)

public RouterStatusNatStatus.Builder addUserAllocatedNatIps(String value)

A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133".

repeated string user_allocated_nat_ips = 506878242;

Parameter
Name Description
value String

The userAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

addUserAllocatedNatIpsBytes(ByteString value)

public RouterStatusNatStatus.Builder addUserAllocatedNatIpsBytes(ByteString value)

A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133".

repeated string user_allocated_nat_ips = 506878242;

Parameter
Name Description
value ByteString

The bytes of the userAllocatedNatIps to add.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

build()

public RouterStatusNatStatus build()
Returns
Type Description
RouterStatusNatStatus

buildPartial()

public RouterStatusNatStatus buildPartial()
Returns
Type Description
RouterStatusNatStatus

clear()

public RouterStatusNatStatus.Builder clear()
Returns
Type Description
RouterStatusNatStatus.Builder
Overrides

clearAutoAllocatedNatIps()

public RouterStatusNatStatus.Builder clearAutoAllocatedNatIps()

A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]

repeated string auto_allocated_nat_ips = 510794246;

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

clearDrainAutoAllocatedNatIps()

public RouterStatusNatStatus.Builder clearDrainAutoAllocatedNatIps()

A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_auto_allocated_nat_ips = 309184557;

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

clearDrainUserAllocatedNatIps()

public RouterStatusNatStatus.Builder clearDrainUserAllocatedNatIps()

A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_user_allocated_nat_ips = 305268553;

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RouterStatusNatStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RouterStatusNatStatus.Builder
Overrides

clearMinExtraNatIpsNeeded()

public RouterStatusNatStatus.Builder clearMinExtraNatIpsNeeded()

The number of extra IPs to allocate. This will be greater than 0 only if user-specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful only when auto-allocation of NAT IPs is not used.

optional int32 min_extra_nat_ips_needed = 365786338;

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

clearName()

public RouterStatusNatStatus.Builder clearName()

Unique name of this NAT.

optional string name = 3373707;

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

clearNumVmEndpointsWithNatMappings()

public RouterStatusNatStatus.Builder clearNumVmEndpointsWithNatMappings()

Number of VM endpoints (i.e., Nics) that can use NAT.

optional int32 num_vm_endpoints_with_nat_mappings = 512367468;

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RouterStatusNatStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RouterStatusNatStatus.Builder
Overrides

clearRuleStatus()

public RouterStatusNatStatus.Builder clearRuleStatus()

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Returns
Type Description
RouterStatusNatStatus.Builder

clearUserAllocatedNatIpResources()

public RouterStatusNatStatus.Builder clearUserAllocatedNatIpResources()

A list of fully qualified URLs of reserved IP address resources.

repeated string user_allocated_nat_ip_resources = 212776151;

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

clearUserAllocatedNatIps()

public RouterStatusNatStatus.Builder clearUserAllocatedNatIps()

A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133".

repeated string user_allocated_nat_ips = 506878242;

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

clone()

public RouterStatusNatStatus.Builder clone()
Returns
Type Description
RouterStatusNatStatus.Builder
Overrides

getAutoAllocatedNatIps(int index)

public String getAutoAllocatedNatIps(int index)

A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]

repeated string auto_allocated_nat_ips = 510794246;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The autoAllocatedNatIps at the given index.

getAutoAllocatedNatIpsBytes(int index)

public ByteString getAutoAllocatedNatIpsBytes(int index)

A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]

repeated string auto_allocated_nat_ips = 510794246;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the autoAllocatedNatIps at the given index.

getAutoAllocatedNatIpsCount()

public int getAutoAllocatedNatIpsCount()

A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]

repeated string auto_allocated_nat_ips = 510794246;

Returns
Type Description
int

The count of autoAllocatedNatIps.

getAutoAllocatedNatIpsList()

public ProtocolStringList getAutoAllocatedNatIpsList()

A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]

repeated string auto_allocated_nat_ips = 510794246;

Returns
Type Description
ProtocolStringList

A list containing the autoAllocatedNatIps.

getDefaultInstanceForType()

public RouterStatusNatStatus getDefaultInstanceForType()
Returns
Type Description
RouterStatusNatStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDrainAutoAllocatedNatIps(int index)

public String getDrainAutoAllocatedNatIps(int index)

A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_auto_allocated_nat_ips = 309184557;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The drainAutoAllocatedNatIps at the given index.

getDrainAutoAllocatedNatIpsBytes(int index)

public ByteString getDrainAutoAllocatedNatIpsBytes(int index)

A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_auto_allocated_nat_ips = 309184557;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the drainAutoAllocatedNatIps at the given index.

getDrainAutoAllocatedNatIpsCount()

public int getDrainAutoAllocatedNatIpsCount()

A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_auto_allocated_nat_ips = 309184557;

Returns
Type Description
int

The count of drainAutoAllocatedNatIps.

getDrainAutoAllocatedNatIpsList()

public ProtocolStringList getDrainAutoAllocatedNatIpsList()

A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_auto_allocated_nat_ips = 309184557;

Returns
Type Description
ProtocolStringList

A list containing the drainAutoAllocatedNatIps.

getDrainUserAllocatedNatIps(int index)

public String getDrainUserAllocatedNatIps(int index)

A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_user_allocated_nat_ips = 305268553;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The drainUserAllocatedNatIps at the given index.

getDrainUserAllocatedNatIpsBytes(int index)

public ByteString getDrainUserAllocatedNatIpsBytes(int index)

A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_user_allocated_nat_ips = 305268553;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the drainUserAllocatedNatIps at the given index.

getDrainUserAllocatedNatIpsCount()

public int getDrainUserAllocatedNatIpsCount()

A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_user_allocated_nat_ips = 305268553;

Returns
Type Description
int

The count of drainUserAllocatedNatIps.

getDrainUserAllocatedNatIpsList()

public ProtocolStringList getDrainUserAllocatedNatIpsList()

A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_user_allocated_nat_ips = 305268553;

Returns
Type Description
ProtocolStringList

A list containing the drainUserAllocatedNatIps.

getMinExtraNatIpsNeeded()

public int getMinExtraNatIpsNeeded()

The number of extra IPs to allocate. This will be greater than 0 only if user-specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful only when auto-allocation of NAT IPs is not used.

optional int32 min_extra_nat_ips_needed = 365786338;

Returns
Type Description
int

The minExtraNatIpsNeeded.

getName()

public String getName()

Unique name of this NAT.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Unique name of this NAT.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getNumVmEndpointsWithNatMappings()

public int getNumVmEndpointsWithNatMappings()

Number of VM endpoints (i.e., Nics) that can use NAT.

optional int32 num_vm_endpoints_with_nat_mappings = 512367468;

Returns
Type Description
int

The numVmEndpointsWithNatMappings.

getRuleStatus(int index)

public RouterStatusNatStatusNatRuleStatus getRuleStatus(int index)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameter
Name Description
index int
Returns
Type Description
RouterStatusNatStatusNatRuleStatus

getRuleStatusBuilder(int index)

public RouterStatusNatStatusNatRuleStatus.Builder getRuleStatusBuilder(int index)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameter
Name Description
index int
Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

getRuleStatusBuilderList()

public List<RouterStatusNatStatusNatRuleStatus.Builder> getRuleStatusBuilderList()

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Returns
Type Description
List<Builder>

getRuleStatusCount()

public int getRuleStatusCount()

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Returns
Type Description
int

getRuleStatusList()

public List<RouterStatusNatStatusNatRuleStatus> getRuleStatusList()

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Returns
Type Description
List<RouterStatusNatStatusNatRuleStatus>

getRuleStatusOrBuilder(int index)

public RouterStatusNatStatusNatRuleStatusOrBuilder getRuleStatusOrBuilder(int index)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameter
Name Description
index int
Returns
Type Description
RouterStatusNatStatusNatRuleStatusOrBuilder

getRuleStatusOrBuilderList()

public List<? extends RouterStatusNatStatusNatRuleStatusOrBuilder> getRuleStatusOrBuilderList()

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatusOrBuilder>

getUserAllocatedNatIpResources(int index)

public String getUserAllocatedNatIpResources(int index)

A list of fully qualified URLs of reserved IP address resources.

repeated string user_allocated_nat_ip_resources = 212776151;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The userAllocatedNatIpResources at the given index.

getUserAllocatedNatIpResourcesBytes(int index)

public ByteString getUserAllocatedNatIpResourcesBytes(int index)

A list of fully qualified URLs of reserved IP address resources.

repeated string user_allocated_nat_ip_resources = 212776151;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the userAllocatedNatIpResources at the given index.

getUserAllocatedNatIpResourcesCount()

public int getUserAllocatedNatIpResourcesCount()

A list of fully qualified URLs of reserved IP address resources.

repeated string user_allocated_nat_ip_resources = 212776151;

Returns
Type Description
int

The count of userAllocatedNatIpResources.

getUserAllocatedNatIpResourcesList()

public ProtocolStringList getUserAllocatedNatIpResourcesList()

A list of fully qualified URLs of reserved IP address resources.

repeated string user_allocated_nat_ip_resources = 212776151;

Returns
Type Description
ProtocolStringList

A list containing the userAllocatedNatIpResources.

getUserAllocatedNatIps(int index)

public String getUserAllocatedNatIps(int index)

A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133".

repeated string user_allocated_nat_ips = 506878242;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The userAllocatedNatIps at the given index.

getUserAllocatedNatIpsBytes(int index)

public ByteString getUserAllocatedNatIpsBytes(int index)

A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133".

repeated string user_allocated_nat_ips = 506878242;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the userAllocatedNatIps at the given index.

getUserAllocatedNatIpsCount()

public int getUserAllocatedNatIpsCount()

A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133".

repeated string user_allocated_nat_ips = 506878242;

Returns
Type Description
int

The count of userAllocatedNatIps.

getUserAllocatedNatIpsList()

public ProtocolStringList getUserAllocatedNatIpsList()

A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133".

repeated string user_allocated_nat_ips = 506878242;

Returns
Type Description
ProtocolStringList

A list containing the userAllocatedNatIps.

hasMinExtraNatIpsNeeded()

public boolean hasMinExtraNatIpsNeeded()

The number of extra IPs to allocate. This will be greater than 0 only if user-specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful only when auto-allocation of NAT IPs is not used.

optional int32 min_extra_nat_ips_needed = 365786338;

Returns
Type Description
boolean

Whether the minExtraNatIpsNeeded field is set.

hasName()

public boolean hasName()

Unique name of this NAT.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasNumVmEndpointsWithNatMappings()

public boolean hasNumVmEndpointsWithNatMappings()

Number of VM endpoints (i.e., Nics) that can use NAT.

optional int32 num_vm_endpoints_with_nat_mappings = 512367468;

Returns
Type Description
boolean

Whether the numVmEndpointsWithNatMappings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RouterStatusNatStatus other)

public RouterStatusNatStatus.Builder mergeFrom(RouterStatusNatStatus other)
Parameter
Name Description
other RouterStatusNatStatus
Returns
Type Description
RouterStatusNatStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RouterStatusNatStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusNatStatus.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RouterStatusNatStatus.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RouterStatusNatStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RouterStatusNatStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RouterStatusNatStatus.Builder
Overrides

removeRuleStatus(int index)

public RouterStatusNatStatus.Builder removeRuleStatus(int index)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameter
Name Description
index int
Returns
Type Description
RouterStatusNatStatus.Builder

setAutoAllocatedNatIps(int index, String value)

public RouterStatusNatStatus.Builder setAutoAllocatedNatIps(int index, String value)

A list of IPs auto-allocated for NAT. Example: ["1.1.1.1", "129.2.16.89"]

repeated string auto_allocated_nat_ips = 510794246;

Parameters
Name Description
index int

The index to set the value at.

value String

The autoAllocatedNatIps to set.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

setDrainAutoAllocatedNatIps(int index, String value)

public RouterStatusNatStatus.Builder setDrainAutoAllocatedNatIps(int index, String value)

A list of IPs auto-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_auto_allocated_nat_ips = 309184557;

Parameters
Name Description
index int

The index to set the value at.

value String

The drainAutoAllocatedNatIps to set.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

setDrainUserAllocatedNatIps(int index, String value)

public RouterStatusNatStatus.Builder setDrainUserAllocatedNatIps(int index, String value)

A list of IPs user-allocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"].

repeated string drain_user_allocated_nat_ips = 305268553;

Parameters
Name Description
index int

The index to set the value at.

value String

The drainUserAllocatedNatIps to set.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RouterStatusNatStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RouterStatusNatStatus.Builder
Overrides

setMinExtraNatIpsNeeded(int value)

public RouterStatusNatStatus.Builder setMinExtraNatIpsNeeded(int value)

The number of extra IPs to allocate. This will be greater than 0 only if user-specified IPs are NOT enough to allow all configured VMs to use NAT. This value is meaningful only when auto-allocation of NAT IPs is not used.

optional int32 min_extra_nat_ips_needed = 365786338;

Parameter
Name Description
value int

The minExtraNatIpsNeeded to set.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

setName(String value)

public RouterStatusNatStatus.Builder setName(String value)

Unique name of this NAT.

optional string name = 3373707;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RouterStatusNatStatus.Builder setNameBytes(ByteString value)

Unique name of this NAT.

optional string name = 3373707;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

setNumVmEndpointsWithNatMappings(int value)

public RouterStatusNatStatus.Builder setNumVmEndpointsWithNatMappings(int value)

Number of VM endpoints (i.e., Nics) that can use NAT.

optional int32 num_vm_endpoints_with_nat_mappings = 512367468;

Parameter
Name Description
value int

The numVmEndpointsWithNatMappings to set.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RouterStatusNatStatus.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RouterStatusNatStatus.Builder
Overrides

setRuleStatus(int index, RouterStatusNatStatusNatRuleStatus value)

public RouterStatusNatStatus.Builder setRuleStatus(int index, RouterStatusNatStatusNatRuleStatus value)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameters
Name Description
index int
value RouterStatusNatStatusNatRuleStatus
Returns
Type Description
RouterStatusNatStatus.Builder

setRuleStatus(int index, RouterStatusNatStatusNatRuleStatus.Builder builderForValue)

public RouterStatusNatStatus.Builder setRuleStatus(int index, RouterStatusNatStatusNatRuleStatus.Builder builderForValue)

Status of rules in this NAT.

repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;

Parameters
Name Description
index int
builderForValue RouterStatusNatStatusNatRuleStatus.Builder
Returns
Type Description
RouterStatusNatStatus.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final RouterStatusNatStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RouterStatusNatStatus.Builder
Overrides

setUserAllocatedNatIpResources(int index, String value)

public RouterStatusNatStatus.Builder setUserAllocatedNatIpResources(int index, String value)

A list of fully qualified URLs of reserved IP address resources.

repeated string user_allocated_nat_ip_resources = 212776151;

Parameters
Name Description
index int

The index to set the value at.

value String

The userAllocatedNatIpResources to set.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.

setUserAllocatedNatIps(int index, String value)

public RouterStatusNatStatus.Builder setUserAllocatedNatIps(int index, String value)

A list of IPs user-allocated for NAT. They will be raw IP strings like "179.12.26.133".

repeated string user_allocated_nat_ips = 506878242;

Parameters
Name Description
index int

The index to set the value at.

value String

The userAllocatedNatIps to set.

Returns
Type Description
RouterStatusNatStatus.Builder

This builder for chaining.