Class RouterStatusNatStatusNatRuleStatus (1.54.0)

public final class RouterStatusNatStatusNatRuleStatus extends GeneratedMessageV3 implements RouterStatusNatStatusNatRuleStatusOrBuilder

Status of a NAT Rule contained in this NAT.

Protobuf type google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > RouterStatusNatStatusNatRuleStatus

Static Fields

ACTIVE_NAT_IPS_FIELD_NUMBER

public static final int ACTIVE_NAT_IPS_FIELD_NUMBER
Field Value
Type Description
int

DRAIN_NAT_IPS_FIELD_NUMBER

public static final int DRAIN_NAT_IPS_FIELD_NUMBER
Field Value
Type Description
int

MIN_EXTRA_IPS_NEEDED_FIELD_NUMBER

public static final int MIN_EXTRA_IPS_NEEDED_FIELD_NUMBER
Field Value
Type Description
int

NUM_VM_ENDPOINTS_WITH_NAT_MAPPINGS_FIELD_NUMBER

public static final int NUM_VM_ENDPOINTS_WITH_NAT_MAPPINGS_FIELD_NUMBER
Field Value
Type Description
int

RULE_NUMBER_FIELD_NUMBER

public static final int RULE_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RouterStatusNatStatusNatRuleStatus getDefaultInstance()
Returns
Type Description
RouterStatusNatStatusNatRuleStatus

getDescriptor()

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

newBuilder()

public static RouterStatusNatStatusNatRuleStatus.Builder newBuilder()
Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

newBuilder(RouterStatusNatStatusNatRuleStatus prototype)

public static RouterStatusNatStatusNatRuleStatus.Builder newBuilder(RouterStatusNatStatusNatRuleStatus prototype)
Parameter
Name Description
prototype RouterStatusNatStatusNatRuleStatus
Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

parseDelimitedFrom(InputStream input)

public static RouterStatusNatStatusNatRuleStatus parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RouterStatusNatStatusNatRuleStatus parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RouterStatusNatStatusNatRuleStatus parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RouterStatusNatStatusNatRuleStatus parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RouterStatusNatStatusNatRuleStatus
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RouterStatusNatStatusNatRuleStatus> parser()
Returns
Type Description
Parser<RouterStatusNatStatusNatRuleStatus>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<RouterStatusNatStatusNatRuleStatus> getParserForType()
Returns
Type Description
Parser<RouterStatusNatStatusNatRuleStatus>
Overrides

getRuleNumber()

public int getRuleNumber()

Rule number of the rule.

optional int32 rule_number = 535211500;

Returns
Type Description
int

The ruleNumber.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RouterStatusNatStatusNatRuleStatus.Builder newBuilderForType()
Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RouterStatusNatStatusNatRuleStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RouterStatusNatStatusNatRuleStatus.Builder toBuilder()
Returns
Type Description
RouterStatusNatStatusNatRuleStatus.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException