# Interface ApiAuthenticationOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface ApiAuthenticationOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getApiKeyConfig()

    public abstract ApiKeyConfig getApiKeyConfig()

Optional. Config for API key auth.

`
.google.cloud.ces.v1beta.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ApiKeyConfig` | The apiKeyConfig. |

### getApiKeyConfigOrBuilder()

    public abstract ApiKeyConfigOrBuilder getApiKeyConfigOrBuilder()

Optional. Config for API key auth.

`
.google.cloud.ces.v1beta.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ApiKeyConfigOrBuilder` |   |

### getAuthConfigCase()

    public abstract ApiAuthentication.AuthConfigCase getAuthConfigCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ApiAuthentication.AuthConfigCase` |   |

### getBearerTokenConfig()

    public abstract BearerTokenConfig getBearerTokenConfig()

Optional. Config for bearer token auth.

`
.google.cloud.ces.v1beta.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.BearerTokenConfig` | The bearerTokenConfig. |

### getBearerTokenConfigOrBuilder()

    public abstract BearerTokenConfigOrBuilder getBearerTokenConfigOrBuilder()

Optional. Config for bearer token auth.

`
.google.cloud.ces.v1beta.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.BearerTokenConfigOrBuilder` |   |

### getOauthConfig()

    public abstract OAuthConfig getOauthConfig()

Optional. Config for OAuth.

`
.google.cloud.ces.v1beta.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.OAuthConfig` | The oauthConfig. |

### getOauthConfigOrBuilder()

    public abstract OAuthConfigOrBuilder getOauthConfigOrBuilder()

Optional. Config for OAuth.

`
.google.cloud.ces.v1beta.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.OAuthConfigOrBuilder` |   |

### getServiceAccountAuthConfig()

    public abstract ServiceAccountAuthConfig getServiceAccountAuthConfig()

Optional. Config for service account authentication.

`
.google.cloud.ces.v1beta.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ServiceAccountAuthConfig` | The serviceAccountAuthConfig. |

### getServiceAccountAuthConfigOrBuilder()

    public abstract ServiceAccountAuthConfigOrBuilder getServiceAccountAuthConfigOrBuilder()

Optional. Config for service account authentication.

`
.google.cloud.ces.v1beta.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ServiceAccountAuthConfigOrBuilder` |   |

### getServiceAgentIdTokenAuthConfig()

    public abstract ServiceAgentIdTokenAuthConfig getServiceAgentIdTokenAuthConfig()

Optional. Config for ID token auth generated from CES service agent.

`
.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig` | The serviceAgentIdTokenAuthConfig. |

### getServiceAgentIdTokenAuthConfigOrBuilder()

    public abstract ServiceAgentIdTokenAuthConfigOrBuilder getServiceAgentIdTokenAuthConfigOrBuilder()

Optional. Config for ID token auth generated from CES service agent.

`
.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfigOrBuilder` |   |

### hasApiKeyConfig()

    public abstract boolean hasApiKeyConfig()

Optional. Config for API key auth.

`
.google.cloud.ces.v1beta.ApiKeyConfig api_key_config = 1 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasBearerTokenConfig()

    public abstract boolean hasBearerTokenConfig()

Optional. Config for bearer token auth.

`
.google.cloud.ces.v1beta.BearerTokenConfig bearer_token_config = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasOauthConfig()

    public abstract boolean hasOauthConfig()

Optional. Config for OAuth.

`
.google.cloud.ces.v1beta.OAuthConfig oauth_config = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasServiceAccountAuthConfig()

    public abstract boolean hasServiceAccountAuthConfig()

Optional. Config for service account authentication.

`
.google.cloud.ces.v1beta.ServiceAccountAuthConfig service_account_auth_config = 4 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasServiceAgentIdTokenAuthConfig()

    public abstract boolean hasServiceAgentIdTokenAuthConfig()

Optional. Config for ID token auth generated from CES service agent.

`
.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig service_agent_id_token_auth_config = 3 [(.google.api.field_behavior) = OPTIONAL];
`

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