# Interface Plugin.ConfigTemplate.AuthConfigTemplateOrBuilder (0.44.0)

0.44.0 (latest) 0.41.0 0.40.0 0.38.0 0.36.0 0.35.0 0.34.0 0.33.0 0.31.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.23.0 0.21.0 0.20.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.2.0 0.1.0

    public static interface Plugin.ConfigTemplate.AuthConfigTemplateOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getServiceAccount()

    public abstract GoogleServiceAccountConfig getServiceAccount()

Optional. The service account of the plugin hosting service.
This service account should be granted the required permissions on the
Auth Config parameters provided while creating the plugin instances
corresponding to this plugin.

For example, if the plugin instance auth config requires a secret
manager secret, the service account should be granted the
secretmanager.versions.access permission on the corresponding secret,
if the plugin instance auth config contains a service account, the
service account should be granted the
iam.serviceAccounts.getAccessToken permission on the corresponding
service account.

`
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.GoogleServiceAccountConfig` | The serviceAccount. |

### getServiceAccountOrBuilder()

    public abstract GoogleServiceAccountConfigOrBuilder getServiceAccountOrBuilder()

Optional. The service account of the plugin hosting service.
This service account should be granted the required permissions on the
Auth Config parameters provided while creating the plugin instances
corresponding to this plugin.

For example, if the plugin instance auth config requires a secret
manager secret, the service account should be granted the
secretmanager.versions.access permission on the corresponding secret,
if the plugin instance auth config contains a service account, the
service account should be granted the
iam.serviceAccounts.getAccessToken permission on the corresponding
service account.

`
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getSupportedAuthTypes(int index)

    public abstract AuthType getSupportedAuthTypes(int index)

Required. The list of authentication types supported by the plugin.

`
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **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.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.AuthType` | The supportedAuthTypes at the given index. |

### getSupportedAuthTypesCount()

    public abstract int getSupportedAuthTypesCount()

Required. The list of authentication types supported by the plugin.

`
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];
`

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

### getSupportedAuthTypesList()

    public abstract List<AuthType> getSupportedAuthTypesList()

Required. The list of authentication types supported by the plugin.

`
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **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-apihub/latest/com.google.cloud.apihub.v1.AuthType>` | A list containing the supportedAuthTypes. |

### getSupportedAuthTypesValue(int index)

    public abstract int getSupportedAuthTypesValue(int index)

Required. The list of authentication types supported by the plugin.

`
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **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://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire of supportedAuthTypes at the given index. |

### getSupportedAuthTypesValueList()

    public abstract List<Integer> getSupportedAuthTypesValueList()

Required. The list of authentication types supported by the plugin.

`
repeated .google.cloud.apihub.v1.AuthType supported_auth_types = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **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/Integer.html>` | A list containing the enum numeric values on the wire for supportedAuthTypes. |

### hasServiceAccount()

    public abstract boolean hasServiceAccount()

Optional. The service account of the plugin hosting service.
This service account should be granted the required permissions on the
Auth Config parameters provided while creating the plugin instances
corresponding to this plugin.

For example, if the plugin instance auth config requires a secret
manager secret, the service account should be granted the
secretmanager.versions.access permission on the corresponding secret,
if the plugin instance auth config contains a service account, the
service account should be granted the
iam.serviceAccounts.getAccessToken permission on the corresponding
service account.

`
.google.cloud.apihub.v1.GoogleServiceAccountConfig service_account = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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