public final class RouterStatusNatStatus extends GeneratedMessageV3 implements RouterStatusNatStatusOrBuilder
Status of a NAT contained in this router.
Protobuf type google.cloud.compute.v1.RouterStatusNatStatus
Fields
AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER
public static final int AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER
Field Value
DRAIN_AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER
public static final int DRAIN_AUTO_ALLOCATED_NAT_IPS_FIELD_NUMBER
Field Value
DRAIN_USER_ALLOCATED_NAT_IPS_FIELD_NUMBER
public static final int DRAIN_USER_ALLOCATED_NAT_IPS_FIELD_NUMBER
Field Value
public static final int MIN_EXTRA_NAT_IPS_NEEDED_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
NUM_VM_ENDPOINTS_WITH_NAT_MAPPINGS_FIELD_NUMBER
public static final int NUM_VM_ENDPOINTS_WITH_NAT_MAPPINGS_FIELD_NUMBER
Field Value
RULE_STATUS_FIELD_NUMBER
public static final int RULE_STATUS_FIELD_NUMBER
Field Value
USER_ALLOCATED_NAT_IPS_FIELD_NUMBER
public static final int USER_ALLOCATED_NAT_IPS_FIELD_NUMBER
Field Value
USER_ALLOCATED_NAT_IP_RESOURCES_FIELD_NUMBER
public static final int USER_ALLOCATED_NAT_IP_RESOURCES_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
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
Type | Description |
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
getDefaultInstance()
public static RouterStatusNatStatus getDefaultInstance()
Returns
getDefaultInstanceForType()
public RouterStatusNatStatus getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
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
Type | Description |
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
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
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
Type | Description |
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
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
Type | Description |
int | The minExtraNatIpsNeeded.
|
getName()
Unique name of this NAT.
optional string name = 3373707;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Unique name of this NAT.
optional string name = 3373707;
Returns
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
Type | Description |
int | The numVmEndpointsWithNatMappings.
|
getParserForType()
public Parser<RouterStatusNatStatus> getParserForType()
Returns
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
Returns
getRuleStatusCount()
public int getRuleStatusCount()
Status of rules in this NAT.
repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
Returns
getRuleStatusList()
public List<RouterStatusNatStatusNatRuleStatus> getRuleStatusList()
Status of rules in this NAT.
repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
Returns
getRuleStatusOrBuilder(int index)
public RouterStatusNatStatusNatRuleStatusOrBuilder getRuleStatusOrBuilder(int index)
Status of rules in this NAT.
repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
Parameter
Returns
getRuleStatusOrBuilderList()
public List<? extends RouterStatusNatStatusNatRuleStatusOrBuilder> getRuleStatusOrBuilderList()
Status of rules in this NAT.
repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
Returns
Type | Description |
List<? extends com.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatusOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
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
Type | Description |
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
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
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
Type | Description |
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
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
Type | Description |
boolean | Whether the minExtraNatIpsNeeded field is set.
|
hasName()
Unique name of this NAT.
optional string name = 3373707;
Returns
Type | Description |
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
Type | Description |
boolean | Whether the numVmEndpointsWithNatMappings field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static RouterStatusNatStatus.Builder newBuilder()
Returns
newBuilder(RouterStatusNatStatus prototype)
public static RouterStatusNatStatus.Builder newBuilder(RouterStatusNatStatus prototype)
Parameter
Returns
newBuilderForType()
public RouterStatusNatStatus.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RouterStatusNatStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static RouterStatusNatStatus parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RouterStatusNatStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RouterStatusNatStatus parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RouterStatusNatStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RouterStatusNatStatus parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RouterStatusNatStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RouterStatusNatStatus parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RouterStatusNatStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RouterStatusNatStatus parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RouterStatusNatStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RouterStatusNatStatus parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RouterStatusNatStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RouterStatusNatStatus> parser()
Returns
toBuilder()
public RouterStatusNatStatus.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions