    public interface SqlActiveDirectoryConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAdminCredentialSecretName()

    public abstract String getAdminCredentialSecretName()

Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).

`string admin_credential_secret_name = 5 [(.google.api.field_behavior) = OPTIONAL];`

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

### getAdminCredentialSecretNameBytes()

    public abstract ByteString getAdminCredentialSecretNameBytes()

Optional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).

`string admin_credential_secret_name = 5 [(.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 adminCredentialSecretName. |

### getDnsServers(int index)

    public abstract String getDnsServers(int index)

Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.

` repeated string dns_servers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } `

| **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 dnsServers at the given index. |

### getDnsServersBytes(int index)

    public abstract ByteString getDnsServersBytes(int index)

Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.

` repeated string dns_servers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } `

| **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 dnsServers at the given index. |

### getDnsServersCount()

    public abstract int getDnsServersCount()

Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.

` repeated string dns_servers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } `

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

### getDnsServersList()

    public abstract List<String> getDnsServersList()

Optional. Domain controller IPv4 addresses used to bootstrap Active Directory.

` repeated string dns_servers = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } `

| **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 dnsServers. |

### getDomain()

    public abstract String getDomain()

The name of the domain (e.g., mydomain.com).

`string domain = 2;`

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

### getDomainBytes()

    public abstract ByteString getDomainBytes()

The name of the domain (e.g., mydomain.com).

`string domain = 2;`

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

### getKind()

    public abstract String getKind()

This is always sql#activeDirectoryConfig.

`string kind = 1;`

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

### getKindBytes()

    public abstract ByteString getKindBytes()

This is always sql#activeDirectoryConfig.

`string kind = 1;`

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

### getMode()

    public abstract SqlActiveDirectoryConfig.ActiveDirectoryMode getMode()

Optional. The mode of the Active Directory configuration.

` .google.cloud.sql.v1.SqlActiveDirectoryConfig.ActiveDirectoryMode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; `

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-sql/latest/com.google.cloud.sql.v1.SqlActiveDirectoryConfig.ActiveDirectoryMode` | The mode. |

### getModeValue()

    public abstract int getModeValue()

Optional. The mode of the Active Directory configuration.

` .google.cloud.sql.v1.SqlActiveDirectoryConfig.ActiveDirectoryMode mode = 3 [(.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 mode. |

### getOrganizationalUnit()

    public abstract String getOrganizationalUnit()

Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.

`string organizational_unit = 6 [(.google.api.field_behavior) = OPTIONAL];`

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

### getOrganizationalUnitBytes()

    public abstract ByteString getOrganizationalUnitBytes()

Optional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.

`string organizational_unit = 6 [(.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 organizationalUnit. |