# Interface ServiceAccountAuthConfigOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface ServiceAccountAuthConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getScopes(int index)

    public abstract String getScopes(int index)

Optional. The OAuth scopes to grant. If not specified, the default scope
`https://www.googleapis.com/auth/cloud-platform` is used.

`repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getScopesBytes(int index)

    public abstract ByteString getScopesBytes(int index)

Optional. The OAuth scopes to grant. If not specified, the default scope
`https://www.googleapis.com/auth/cloud-platform` is used.

`repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getScopesCount()

    public abstract int getScopesCount()

Optional. The OAuth scopes to grant. If not specified, the default scope
`https://www.googleapis.com/auth/cloud-platform` is used.

`repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getScopesList()

    public abstract List<String> getScopesList()

Optional. The OAuth scopes to grant. If not specified, the default scope
`https://www.googleapis.com/auth/cloud-platform` is used.

`repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getServiceAccount()

    public abstract String getServiceAccount()

Required. The email address of the service account used for authentication.
CES uses this service account to exchange an access token and the access
token is then sent in the `Authorization` header of the request.

The service account must have the
`roles/iam.serviceAccountTokenCreator` role granted to the
CES service agent
`service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.

`string service_account = 1 [(.google.api.field_behavior) = REQUIRED];`

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

### getServiceAccountBytes()

    public abstract ByteString getServiceAccountBytes()

Required. The email address of the service account used for authentication.
CES uses this service account to exchange an access token and the access
token is then sent in the `Authorization` header of the request.

The service account must have the
`roles/iam.serviceAccountTokenCreator` role granted to the
CES service agent
`service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.

`string service_account = 1 [(.google.api.field_behavior) = REQUIRED];`

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