Class RouterStatusNatStatus.Builder (1.42.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
TypeDescription
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
NameDescription
valuesIterable<String>

The autoAllocatedNatIps to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The drainAutoAllocatedNatIps to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The drainUserAllocatedNatIps to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The userAllocatedNatIpResources to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The userAllocatedNatIps to add.

Returns
TypeDescription
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
NameDescription
valueString

The autoAllocatedNatIps to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the autoAllocatedNatIps to add.

Returns
TypeDescription
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
NameDescription
valueString

The drainAutoAllocatedNatIps to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the drainAutoAllocatedNatIps to add.

Returns
TypeDescription
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
NameDescription
valueString

The drainUserAllocatedNatIps to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the drainUserAllocatedNatIps to add.

Returns
TypeDescription
RouterStatusNatStatus.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RouterStatusNatStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRouterStatusNatStatusNatRuleStatus
Returns
TypeDescription
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
NameDescription
builderForValueRouterStatusNatStatusNatRuleStatus.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRouterStatusNatStatusNatRuleStatus
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouterStatusNatStatusNatRuleStatus.Builder
Returns
TypeDescription
RouterStatusNatStatus.Builder

addRuleStatusBuilder()

public RouterStatusNatStatusNatRuleStatus.Builder addRuleStatusBuilder()

Status of rules in this NAT.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The userAllocatedNatIpResources to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the userAllocatedNatIpResources to add.

Returns
TypeDescription
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
NameDescription
valueString

The userAllocatedNatIps to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the userAllocatedNatIps to add.

Returns
TypeDescription
RouterStatusNatStatus.Builder

This builder for chaining.

build()

public RouterStatusNatStatus build()
Returns
TypeDescription
RouterStatusNatStatus

buildPartial()

public RouterStatusNatStatus buildPartial()
Returns
TypeDescription
RouterStatusNatStatus

clear()

public RouterStatusNatStatus.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RouterStatusNatStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RouterStatusNatStatus.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
RouterStatusNatStatus.Builder

This builder for chaining.

clearName()

public RouterStatusNatStatus.Builder clearName()

Unique name of this NAT.

optional string name = 3373707;

Returns
TypeDescription
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
TypeDescription
RouterStatusNatStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RouterStatusNatStatus.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RouterStatusNatStatus.Builder
Overrides

clearRuleStatus()

public RouterStatusNatStatus.Builder clearRuleStatus()

Status of rules in this NAT.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RouterStatusNatStatus.Builder

This builder for chaining.

clone()

public RouterStatusNatStatus.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the autoAllocatedNatIps.

getDefaultInstanceForType()

public RouterStatusNatStatus getDefaultInstanceForType()
Returns
TypeDescription
RouterStatusNatStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The minExtraNatIpsNeeded.

getName()

public String getName()

Unique name of this NAT.

optional string name = 3373707;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Unique name of this NAT.

optional string name = 3373707;

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder

getRuleStatusBuilderList()

public List<RouterStatusNatStatusNatRuleStatus.Builder> getRuleStatusBuilderList()

Status of rules in this NAT.

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

Returns
TypeDescription
List<Builder>

getRuleStatusCount()

public int getRuleStatusCount()

Status of rules in this NAT.

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

Returns
TypeDescription
int

getRuleStatusList()

public List<RouterStatusNatStatusNatRuleStatus> getRuleStatusList()

Status of rules in this NAT.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatusOrBuilder

getRuleStatusOrBuilderList()

public List<? extends RouterStatusNatStatusNatRuleStatusOrBuilder> getRuleStatusOrBuilderList()

Status of rules in this NAT.

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

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the minExtraNatIpsNeeded field is set.

hasName()

public boolean hasName()

Unique name of this NAT.

optional string name = 3373707;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the numVmEndpointsWithNatMappings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RouterStatusNatStatus other)

public RouterStatusNatStatus.Builder mergeFrom(RouterStatusNatStatus other)
Parameter
NameDescription
otherRouterStatusNatStatus
Returns
TypeDescription
RouterStatusNatStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RouterStatusNatStatus.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusNatStatus.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RouterStatusNatStatus.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RouterStatusNatStatus.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RouterStatusNatStatus.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The autoAllocatedNatIps to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The drainAutoAllocatedNatIps to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The drainUserAllocatedNatIps to set.

Returns
TypeDescription
RouterStatusNatStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RouterStatusNatStatus.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The minExtraNatIpsNeeded to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueint

The numVmEndpointsWithNatMappings to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueRouterStatusNatStatusNatRuleStatus
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRouterStatusNatStatusNatRuleStatus.Builder
Returns
TypeDescription
RouterStatusNatStatus.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final RouterStatusNatStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The userAllocatedNatIpResources to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The userAllocatedNatIps to set.

Returns
TypeDescription
RouterStatusNatStatus.Builder

This builder for chaining.