Class RouterStatusNatStatusNatRuleStatus (1.7.2)

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

DRAIN_NAT_IPS_FIELD_NUMBER

public static final int DRAIN_NAT_IPS_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_EXTRA_IPS_NEEDED_FIELD_NUMBER

public static final int MIN_EXTRA_IPS_NEEDED_FIELD_NUMBER
Field Value
TypeDescription
int

NUM_VM_ENDPOINTS_WITH_NAT_MAPPINGS_FIELD_NUMBER

public static final int NUM_VM_ENDPOINTS_WITH_NAT_MAPPINGS_FIELD_NUMBER
Field Value
TypeDescription
int

RULE_NUMBER_FIELD_NUMBER

public static final int RULE_NUMBER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RouterStatusNatStatusNatRuleStatus getDefaultInstance()
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RouterStatusNatStatusNatRuleStatus.Builder newBuilder()
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder

newBuilder(RouterStatusNatStatusNatRuleStatus prototype)

public static RouterStatusNatStatusNatRuleStatus.Builder newBuilder(RouterStatusNatStatusNatRuleStatus prototype)
Parameter
NameDescription
prototypeRouterStatusNatStatusNatRuleStatus
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder

parseDelimitedFrom(InputStream input)

public static RouterStatusNatStatusNatRuleStatus parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RouterStatusNatStatusNatRuleStatus parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RouterStatusNatStatusNatRuleStatus parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RouterStatusNatStatusNatRuleStatus parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RouterStatusNatStatusNatRuleStatus> parser()
Returns
TypeDescription
Parser<RouterStatusNatStatusNatRuleStatus>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
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

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.

getParserForType()

public Parser<RouterStatusNatStatusNatRuleStatus> getParserForType()
Returns
TypeDescription
Parser<RouterStatusNatStatusNatRuleStatus>
Overrides

getRuleNumber()

public int getRuleNumber()

Rule number of the rule.

optional int32 rule_number = 535211500;

Returns
TypeDescription
int

The ruleNumber.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RouterStatusNatStatusNatRuleStatus.Builder newBuilderForType()
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RouterStatusNatStatusNatRuleStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RouterStatusNatStatusNatRuleStatus.Builder toBuilder()
Returns
TypeDescription
RouterStatusNatStatusNatRuleStatus.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException