Class RouterStatusNatStatusNatRuleStatus.Builder (1.20.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
TypeDescription
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
NameDescription
valueString

The activeNatIps to add.

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

The bytes of the activeNatIps to add.

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

The activeNatIps to add.

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

The drainNatIps to add.

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

The drainNatIps to add.

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

The bytes of the drainNatIps to add.

Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RouterStatusNatStatusNatRuleStatus.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder
Overrides

build()

public RouterStatusNatStatusNatRuleStatus build()
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus

buildPartial()

public RouterStatusNatStatusNatRuleStatus buildPartial()
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRuleNumber()

public RouterStatusNatStatusNatRuleStatus.Builder clearRuleNumber()

Rule number of the rule.

optional int32 rule_number = 535211500;

Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

clone()

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

The index of the element to return.

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

The index of the value to return.

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

A list containing the activeNatIps.

getDefaultInstanceForType()

public RouterStatusNatStatusNatRuleStatus getDefaultInstanceForType()
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus

getDescriptorForType()

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

The index of the element to return.

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

The index of the value to return.

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

The numVmEndpointsWithNatMappings.

getRuleNumber()

public int getRuleNumber()

Rule number of the rule.

optional int32 rule_number = 535211500;

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

Whether the numVmEndpointsWithNatMappings field is set.

hasRuleNumber()

public boolean hasRuleNumber()

Rule number of the rule.

optional int32 rule_number = 535211500;

Returns
TypeDescription
boolean

Whether the ruleNumber field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RouterStatusNatStatusNatRuleStatus other)

public RouterStatusNatStatusNatRuleStatus.Builder mergeFrom(RouterStatusNatStatusNatRuleStatus other)
Parameter
NameDescription
otherRouterStatusNatStatusNatRuleStatus
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The activeNatIps to set.

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

The index to set the value at.

valueString

The drainNatIps to set.

Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The minExtraIpsNeeded to set.

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

The numVmEndpointsWithNatMappings to set.

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

setRuleNumber(int value)

public RouterStatusNatStatusNatRuleStatus.Builder setRuleNumber(int value)

Rule number of the rule.

optional int32 rule_number = 535211500;

Parameter
NameDescription
valueint

The ruleNumber to set.

Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RouterStatusNatStatusNatRuleStatus.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder
Overrides