Class RouterStatusNatStatusNatRuleStatus.Builder (1.53.0)

public static final class RouterStatusNatStatusNatRuleStatus.Builder extends GeneratedMessageV3.Builder<RouterStatusNatStatusNatRuleStatus.Builder> implements RouterStatusNatStatusNatRuleStatusOrBuilder

Status of a NAT Rule contained in this NAT.

Protobuf type google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus

Static Methods

getDescriptor()

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

Methods

addActiveNatIps(String value)

public RouterStatusNatStatusNatRuleStatus.Builder addActiveNatIps(String value)

A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"].

repeated string active_nat_ips = 208517077;

Parameter
Name Description
value String

The activeNatIps to add.

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

addActiveNatIpsBytes(ByteString value)

public RouterStatusNatStatusNatRuleStatus.Builder addActiveNatIpsBytes(ByteString value)

A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"].

repeated string active_nat_ips = 208517077;

Parameter
Name Description
value ByteString

The bytes of the activeNatIps to add.

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

addAllActiveNatIps(Iterable<String> values)

public RouterStatusNatStatusNatRuleStatus.Builder addAllActiveNatIps(Iterable<String> values)

A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"].

repeated string active_nat_ips = 208517077;

Parameter
Name Description
values Iterable<String>

The activeNatIps to add.

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

addAllDrainNatIps(Iterable<String> values)

public RouterStatusNatStatusNatRuleStatus.Builder addAllDrainNatIps(Iterable<String> values)

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

repeated string drain_nat_ips = 504078535;

Parameter
Name Description
values Iterable<String>

The drainNatIps to add.

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

addDrainNatIps(String value)

public RouterStatusNatStatusNatRuleStatus.Builder addDrainNatIps(String value)

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

repeated string drain_nat_ips = 504078535;

Parameter
Name Description
value String

The drainNatIps to add.

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

addDrainNatIpsBytes(ByteString value)

public RouterStatusNatStatusNatRuleStatus.Builder addDrainNatIpsBytes(ByteString value)

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

repeated string drain_nat_ips = 504078535;

Parameter
Name Description
value ByteString

The bytes of the drainNatIps to add.

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RouterStatusNatStatusNatRuleStatus build()
Returns
Type Description
RouterStatusNatStatusNatRuleStatus

buildPartial()

public RouterStatusNatStatusNatRuleStatus buildPartial()
Returns
Type Description
RouterStatusNatStatusNatRuleStatus

clear()

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

clearActiveNatIps()

public RouterStatusNatStatusNatRuleStatus.Builder clearActiveNatIps()

A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"].

repeated string active_nat_ips = 208517077;

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

clearDrainNatIps()

public RouterStatusNatStatusNatRuleStatus.Builder clearDrainNatIps()

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

repeated string drain_nat_ips = 504078535;

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMinExtraIpsNeeded()

public RouterStatusNatStatusNatRuleStatus.Builder clearMinExtraIpsNeeded()

The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT.

optional int32 min_extra_ips_needed = 353002756;

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

clearNumVmEndpointsWithNatMappings()

public RouterStatusNatStatusNatRuleStatus.Builder clearNumVmEndpointsWithNatMappings()

Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule.

optional int32 num_vm_endpoints_with_nat_mappings = 512367468;

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRuleNumber()

public RouterStatusNatStatusNatRuleStatus.Builder clearRuleNumber()

Rule number of the rule.

optional int32 rule_number = 535211500;

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

clone()

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

getActiveNatIps(int index)

public String getActiveNatIps(int index)

A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"].

repeated string active_nat_ips = 208517077;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The activeNatIps at the given index.

getActiveNatIpsBytes(int index)

public ByteString getActiveNatIpsBytes(int index)

A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"].

repeated string active_nat_ips = 208517077;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the activeNatIps at the given index.

getActiveNatIpsCount()

public int getActiveNatIpsCount()

A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"].

repeated string active_nat_ips = 208517077;

Returns
Type Description
int

The count of activeNatIps.

getActiveNatIpsList()

public ProtocolStringList getActiveNatIpsList()

A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"].

repeated string active_nat_ips = 208517077;

Returns
Type Description
ProtocolStringList

A list containing the activeNatIps.

getDefaultInstanceForType()

public RouterStatusNatStatusNatRuleStatus getDefaultInstanceForType()
Returns
Type Description
RouterStatusNatStatusNatRuleStatus

getDescriptorForType()

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

getDrainNatIps(int index)

public String getDrainNatIps(int index)

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

repeated string drain_nat_ips = 504078535;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The drainNatIps at the given index.

getDrainNatIpsBytes(int index)

public ByteString getDrainNatIpsBytes(int index)

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

repeated string drain_nat_ips = 504078535;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the drainNatIps at the given index.

getDrainNatIpsCount()

public int getDrainNatIpsCount()

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

repeated string drain_nat_ips = 504078535;

Returns
Type Description
int

The count of drainNatIps.

getDrainNatIpsList()

public ProtocolStringList getDrainNatIpsList()

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

repeated string drain_nat_ips = 504078535;

Returns
Type Description
ProtocolStringList

A list containing the drainNatIps.

getMinExtraIpsNeeded()

public int getMinExtraIpsNeeded()

The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT.

optional int32 min_extra_ips_needed = 353002756;

Returns
Type Description
int

The minExtraIpsNeeded.

getNumVmEndpointsWithNatMappings()

public int getNumVmEndpointsWithNatMappings()

Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule.

optional int32 num_vm_endpoints_with_nat_mappings = 512367468;

Returns
Type Description
int

The numVmEndpointsWithNatMappings.

getRuleNumber()

public int getRuleNumber()

Rule number of the rule.

optional int32 rule_number = 535211500;

Returns
Type Description
int

The ruleNumber.

hasMinExtraIpsNeeded()

public boolean hasMinExtraIpsNeeded()

The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT.

optional int32 min_extra_ips_needed = 353002756;

Returns
Type Description
boolean

Whether the minExtraIpsNeeded field is set.

hasNumVmEndpointsWithNatMappings()

public boolean hasNumVmEndpointsWithNatMappings()

Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule.

optional int32 num_vm_endpoints_with_nat_mappings = 512367468;

Returns
Type Description
boolean

Whether the numVmEndpointsWithNatMappings field is set.

hasRuleNumber()

public boolean hasRuleNumber()

Rule number of the rule.

optional int32 rule_number = 535211500;

Returns
Type Description
boolean

Whether the ruleNumber field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RouterStatusNatStatusNatRuleStatus other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setActiveNatIps(int index, String value)

public RouterStatusNatStatusNatRuleStatus.Builder setActiveNatIps(int index, String value)

A list of active IPs for NAT. Example: ["1.1.1.1", "179.12.26.133"].

repeated string active_nat_ips = 208517077;

Parameters
Name Description
index int

The index to set the value at.

value String

The activeNatIps to set.

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

setDrainNatIps(int index, String value)

public RouterStatusNatStatusNatRuleStatus.Builder setDrainNatIps(int index, String value)

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

repeated string drain_nat_ips = 504078535;

Parameters
Name Description
index int

The index to set the value at.

value String

The drainNatIps to set.

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMinExtraIpsNeeded(int value)

public RouterStatusNatStatusNatRuleStatus.Builder setMinExtraIpsNeeded(int value)

The number of extra IPs to allocate. This will be greater than 0 only if the existing IPs in this NAT Rule are NOT enough to allow all configured VMs to use NAT.

optional int32 min_extra_ips_needed = 353002756;

Parameter
Name Description
value int

The minExtraIpsNeeded to set.

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

setNumVmEndpointsWithNatMappings(int value)

public RouterStatusNatStatusNatRuleStatus.Builder setNumVmEndpointsWithNatMappings(int value)

Number of VM endpoints (i.e., NICs) that have NAT Mappings from this NAT Rule.

optional int32 num_vm_endpoints_with_nat_mappings = 512367468;

Parameter
Name Description
value int

The numVmEndpointsWithNatMappings to set.

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

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

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

setRuleNumber(int value)

public RouterStatusNatStatusNatRuleStatus.Builder setRuleNumber(int value)

Rule number of the rule.

optional int32 rule_number = 535211500;

Parameter
Name Description
value int

The ruleNumber to set.

Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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