# Interface RouterStatusNatStatusOrBuilder (1.101.0)

1.103.0 (latest) 1.101.0 1.98.0 1.97.0 1.95.0 1.93.0 1.92.0 1.91.0 1.90.0 1.88.0 1.86.0 1.85.0 1.84.0 1.83.0 1.82.0 1.80.0 1.78.0 1.77.0 1.74.0 1.73.0 1.72.0 1.70.0 1.69.0 1.68.0 1.67.0 1.66.0 1.65.0 1.64.0 1.63.0 1.62.0 1.61.0 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.34.0 1.33.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.0 1.12.1 1.11.0 1.9.1 1.8.1 1.7.2 1.6.0-beta

    public interface RouterStatusNatStatusOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAutoAllocatedNatIps(int index)

    public abstract String getAutoAllocatedNatIps(int index)

Output only. 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The autoAllocatedNatIps at the given index. |

### getAutoAllocatedNatIpsBytes(int index)

    public abstract ByteString getAutoAllocatedNatIpsBytes(int index)

Output only. 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the autoAllocatedNatIps at the given index. |

### getAutoAllocatedNatIpsCount()

    public abstract int getAutoAllocatedNatIpsCount()

Output only. 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of autoAllocatedNatIps. |

### getAutoAllocatedNatIpsList()

    public abstract List<String> getAutoAllocatedNatIpsList()

Output only. 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the autoAllocatedNatIps. |

### getDrainAutoAllocatedNatIps(int index)

    public abstract String getDrainAutoAllocatedNatIps(int index)

Output only. 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The drainAutoAllocatedNatIps at the given index. |

### getDrainAutoAllocatedNatIpsBytes(int index)

    public abstract ByteString getDrainAutoAllocatedNatIpsBytes(int index)

Output only. 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the drainAutoAllocatedNatIps at the given index. |

### getDrainAutoAllocatedNatIpsCount()

    public abstract int getDrainAutoAllocatedNatIpsCount()

Output only. 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of drainAutoAllocatedNatIps. |

### getDrainAutoAllocatedNatIpsList()

    public abstract List<String> getDrainAutoAllocatedNatIpsList()

Output only. 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the drainAutoAllocatedNatIps. |

### getDrainUserAllocatedNatIps(int index)

    public abstract String getDrainUserAllocatedNatIps(int index)

Output only. 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The drainUserAllocatedNatIps at the given index. |

### getDrainUserAllocatedNatIpsBytes(int index)

    public abstract ByteString getDrainUserAllocatedNatIpsBytes(int index)

Output only. 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the drainUserAllocatedNatIps at the given index. |

### getDrainUserAllocatedNatIpsCount()

    public abstract int getDrainUserAllocatedNatIpsCount()

Output only. 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of drainUserAllocatedNatIps. |

### getDrainUserAllocatedNatIpsList()

    public abstract List<String> getDrainUserAllocatedNatIpsList()

Output only. 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the drainUserAllocatedNatIps. |

### getMinExtraNatIpsNeeded()

    public abstract int getMinExtraNatIpsNeeded()

Output only. 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The minExtraNatIpsNeeded. |

### getName()

    public abstract String getName()

Output only. Unique name of this NAT.

`optional string name = 3373707;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Output only. Unique name of this NAT.

`optional string name = 3373707;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getNumVmEndpointsWithNatMappings()

    public abstract int getNumVmEndpointsWithNatMappings()

Output only. Number of VM endpoints (i.e., Nics) that can use NAT.

`optional int32 num_vm_endpoints_with_nat_mappings = 512367468;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The numVmEndpointsWithNatMappings. |

### getRuleStatus(int index)

    public abstract RouterStatusNatStatusNatRuleStatus getRuleStatus(int index)

Status of rules in this NAT.

`
repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus` |   |

### getRuleStatusCount()

    public abstract int getRuleStatusCount()

Status of rules in this NAT.

`
repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getRuleStatusList()

    public abstract List<RouterStatusNatStatusNatRuleStatus> getRuleStatusList()

Status of rules in this NAT.

`
repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus>` |   |

### getRuleStatusOrBuilder(int index)

    public abstract RouterStatusNatStatusNatRuleStatusOrBuilder getRuleStatusOrBuilder(int index)

Status of rules in this NAT.

`
repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-compute/latest/com.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatusOrBuilder` |   |

### getRuleStatusOrBuilderList()

    public abstract List<? extends RouterStatusNatStatusNatRuleStatusOrBuilder> getRuleStatusOrBuilderList()

Status of rules in this NAT.

`
repeated .google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatus rule_status = 140223125;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.compute.v1.RouterStatusNatStatusNatRuleStatusOrBuilder>` |   |

### getUserAllocatedNatIpResources(int index)

    public abstract String getUserAllocatedNatIpResources(int index)

Output only. A list of fully qualified URLs of reserved IP address resources.

`repeated string user_allocated_nat_ip_resources = 212776151;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The userAllocatedNatIpResources at the given index. |

### getUserAllocatedNatIpResourcesBytes(int index)

    public abstract ByteString getUserAllocatedNatIpResourcesBytes(int index)

Output only. A list of fully qualified URLs of reserved IP address resources.

`repeated string user_allocated_nat_ip_resources = 212776151;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the userAllocatedNatIpResources at the given index. |

### getUserAllocatedNatIpResourcesCount()

    public abstract int getUserAllocatedNatIpResourcesCount()

Output only. A list of fully qualified URLs of reserved IP address resources.

`repeated string user_allocated_nat_ip_resources = 212776151;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of userAllocatedNatIpResources. |

### getUserAllocatedNatIpResourcesList()

    public abstract List<String> getUserAllocatedNatIpResourcesList()

Output only. A list of fully qualified URLs of reserved IP address resources.

`repeated string user_allocated_nat_ip_resources = 212776151;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the userAllocatedNatIpResources. |

### getUserAllocatedNatIps(int index)

    public abstract String getUserAllocatedNatIps(int index)

Output only. 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The userAllocatedNatIps at the given index. |

### getUserAllocatedNatIpsBytes(int index)

    public abstract ByteString getUserAllocatedNatIpsBytes(int index)

Output only. 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the userAllocatedNatIps at the given index. |

### getUserAllocatedNatIpsCount()

    public abstract int getUserAllocatedNatIpsCount()

Output only. 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of userAllocatedNatIps. |

### getUserAllocatedNatIpsList()

    public abstract List<String> getUserAllocatedNatIpsList()

Output only. 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the userAllocatedNatIps. |

### hasMinExtraNatIpsNeeded()

    public abstract boolean hasMinExtraNatIpsNeeded()

Output only. 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the minExtraNatIpsNeeded field is set. |

### hasName()

    public abstract boolean hasName()

Output only. Unique name of this NAT.

`optional string name = 3373707;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the name field is set. |

### hasNumVmEndpointsWithNatMappings()

    public abstract boolean hasNumVmEndpointsWithNatMappings()

Output only. Number of VM endpoints (i.e., Nics) that can use NAT.

`optional int32 num_vm_endpoints_with_nat_mappings = 512367468;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the numVmEndpointsWithNatMappings field is set. |