Class RouterStatusNatStatus (1.22.0)

public final class RouterStatusNatStatus extends GeneratedMessageV3 implements RouterStatusNatStatusOrBuilder

Status of a NAT contained in this router.

Protobuf type google.cloud.compute.v1.RouterStatusNatStatus

Static Fields

AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER

public static final int AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER
Field Value
TypeDescription
int

DRAIN_AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER

public static final int DRAIN_AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER
Field Value
TypeDescription
int

DRAIN_USER_ALLOCATED_NAT_IPS_FIELD_NUMBER

public static final int DRAIN_USER_ALLOCATED_NAT_IPS_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_EXTRA_NAT_IPS_NEEDED_FIELD_NUMBER

public static final int MIN_EXTRA_NAT_IPS_NEEDED_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_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_STATUS_FIELD_NUMBER

public static final int RULE_STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

USER_ALLOCATED_NAT_IPS_FIELD_NUMBER

public static final int USER_ALLOCATED_NAT_IPS_FIELD_NUMBER
Field Value
TypeDescription
int

USER_ALLOCATED_NAT_IP_RESOURCES_FIELD_NUMBER

public static final int USER_ALLOCATED_NAT_IP_RESOURCES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RouterStatusNatStatus getDefaultInstance()
Returns
TypeDescription
RouterStatusNatStatus

getDescriptor()

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

newBuilder()

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

newBuilder(RouterStatusNatStatus prototype)

public static RouterStatusNatStatus.Builder newBuilder(RouterStatusNatStatus prototype)
Parameter
NameDescription
prototypeRouterStatusNatStatus
Returns
TypeDescription
RouterStatusNatStatus.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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.

getParserForType()

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

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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