# Interface AccessConfigOrBuilder (0.50.0)

0.50.0 (latest) 0.47.0 0.46.0 0.44.0 0.42.0 0.41.0 0.40.0 0.39.0 0.37.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.29.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface AccessConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getExternalIp()

    public abstract String getExternalIp()

Optional. The external IP address of this access configuration.

`
optional string external_ip = 3 [json_name = "natIP", (.google.api.field_behavior) = OPTIONAL];
`

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

### getExternalIpBytes()

    public abstract ByteString getExternalIpBytes()

Optional. The external IP address of this access configuration.

`
optional string external_ip = 3 [json_name = "natIP", (.google.api.field_behavior) = OPTIONAL];
`

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

### getExternalIpv6()

    public abstract String getExternalIpv6()

Optional. The external IPv6 address of this access configuration.

`optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### getExternalIpv6Bytes()

    public abstract ByteString getExternalIpv6Bytes()

Optional. The external IPv6 address of this access configuration.

`optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### getExternalIpv6PrefixLength()

    public abstract int getExternalIpv6PrefixLength()

Optional. The prefix length of the external IPv6 range.

`optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getName()

    public abstract String getName()

Optional. The name of this access configuration.

`optional string name = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Optional. The name of this access configuration.

`optional string name = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getNetworkTier()

    public abstract AccessConfig.NetworkTier getNetworkTier()

Optional. This signifies the networking tier used for configuring this
access

`
optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.AccessConfig.NetworkTier` | The networkTier. |

### getNetworkTierValue()

    public abstract int getNetworkTierValue()

Optional. This signifies the networking tier used for configuring this
access

`
optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for networkTier. |

### getPublicPtrDomainName()

    public abstract String getPublicPtrDomainName()

Optional. The DNS domain name for the public PTR record.

`optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getPublicPtrDomainNameBytes()

    public abstract ByteString getPublicPtrDomainNameBytes()

Optional. The DNS domain name for the public PTR record.

`optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getSetPublicPtr()

    public abstract boolean getSetPublicPtr()

Optional. Specifies whether a public DNS 'PTR' record should be created to
map the external IP address of the instance to a DNS domain name.

`optional bool set_public_ptr = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### getType()

    public abstract AccessConfig.AccessType getType()

Optional. In accessConfigs (IPv4), the
default and only option is ONE_TO_ONE_NAT. In
ipv6AccessConfigs, the default and only option is
DIRECT_IPV6.

`
optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.AccessConfig.AccessType` | The type. |

### getTypeValue()

    public abstract int getTypeValue()

Optional. In accessConfigs (IPv4), the
default and only option is ONE_TO_ONE_NAT. In
ipv6AccessConfigs, the default and only option is
DIRECT_IPV6.

`
optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for type. |

### hasExternalIp()

    public abstract boolean hasExternalIp()

Optional. The external IP address of this access configuration.

`
optional string external_ip = 3 [json_name = "natIP", (.google.api.field_behavior) = OPTIONAL];
`

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

### hasExternalIpv6()

    public abstract boolean hasExternalIpv6()

Optional. The external IPv6 address of this access configuration.

`optional string external_ipv6 = 4 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasExternalIpv6PrefixLength()

    public abstract boolean hasExternalIpv6PrefixLength()

Optional. The prefix length of the external IPv6 range.

`optional int32 external_ipv6_prefix_length = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasName()

    public abstract boolean hasName()

Optional. The name of this access configuration.

`optional string name = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasNetworkTier()

    public abstract boolean hasNetworkTier()

Optional. This signifies the networking tier used for configuring this
access

`
optional .google.cloud.backupdr.v1.AccessConfig.NetworkTier network_tier = 8 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasPublicPtrDomainName()

    public abstract boolean hasPublicPtrDomainName()

Optional. The DNS domain name for the public PTR record.

`optional string public_ptr_domain_name = 7 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasSetPublicPtr()

    public abstract boolean hasSetPublicPtr()

Optional. Specifies whether a public DNS 'PTR' record should be created to
map the external IP address of the instance to a DNS domain name.

`optional bool set_public_ptr = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### hasType()

    public abstract boolean hasType()

Optional. In accessConfigs (IPv4), the
default and only option is ONE_TO_ONE_NAT. In
ipv6AccessConfigs, the default and only option is
DIRECT_IPV6.

`
optional .google.cloud.backupdr.v1.AccessConfig.AccessType type = 1 [(.google.api.field_behavior) = OPTIONAL];
`

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