public final class RouterStatusNatStatusNatRuleStatus extends GeneratedMessageV3 implements RouterStatusNatStatusNatRuleStatusOrBuilder
Status of a NAT Rule contained in this NAT.
Protobuf type google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus
Static Fields
ACTIVE_NAT_IPS_FIELD_NUMBER
public static final int ACTIVE_NAT_IPS_FIELD_NUMBER
Field Value
DRAIN_NAT_IPS_FIELD_NUMBER
public static final int DRAIN_NAT_IPS_FIELD_NUMBER
Field Value
public static final int MIN_EXTRA_IPS_NEEDED_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_NUMBER_FIELD_NUMBER
public static final int RULE_NUMBER_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static RouterStatusNatStatusNatRuleStatus getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static RouterStatusNatStatusNatRuleStatus.Builder newBuilder()
Returns
newBuilder(RouterStatusNatStatusNatRuleStatus prototype)
public static RouterStatusNatStatusNatRuleStatus.Builder newBuilder(RouterStatusNatStatusNatRuleStatus prototype)
Parameter
Returns
public static RouterStatusNatStatusNatRuleStatus parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static RouterStatusNatStatusNatRuleStatus parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static RouterStatusNatStatusNatRuleStatus parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RouterStatusNatStatusNatRuleStatus parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RouterStatusNatStatusNatRuleStatus parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static RouterStatusNatStatusNatRuleStatus parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static RouterStatusNatStatusNatRuleStatus parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static RouterStatusNatStatusNatRuleStatus parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RouterStatusNatStatusNatRuleStatus parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<RouterStatusNatStatusNatRuleStatus> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
getDefaultInstanceForType()
public RouterStatusNatStatusNatRuleStatus getDefaultInstanceForType()
Returns
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
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
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
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public RouterStatusNatStatusNatRuleStatus.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RouterStatusNatStatusNatRuleStatus.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public RouterStatusNatStatusNatRuleStatus.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions