1.1.0 (latest) 1.0.0

    public sealed class ApiAuthentication : IMessage<ApiAuthentication>, IEquatable<ApiAuthentication>, IDeepCloneable<ApiAuthentication>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class ApiAuthentication.

Authentication information required for API calls.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ApiAuthentication

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ApiAuthentication](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ApiAuthentication.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ApiAuthentication](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ApiAuthentication.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ApiAuthentication](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.ApiAuthentication.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Ces.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.md.txt)

## Assembly

Google.Cloud.Ces.V1.dll

## Constructors

### ApiAuthentication()

    public ApiAuthentication()

### ApiAuthentication(ApiAuthentication)

    public ApiAuthentication(ApiAuthentication other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ApiAuthentication` |

## Properties

### ApiKeyConfig

    public ApiKeyConfig ApiKeyConfig { get; set; }

Optional. Config for API key auth.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ApiKeyConfig` |   |

### AuthConfigCase

    public ApiAuthentication.AuthConfigOneofCase AuthConfigCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ApiAuthenticationAuthConfigOneofCase` |   |

### BearerTokenConfig

    public BearerTokenConfig BearerTokenConfig { get; set; }

Optional. Config for bearer token auth.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `BearerTokenConfig` |   |

### OauthConfig

    public OAuthConfig OauthConfig { get; set; }

Optional. Config for OAuth.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `OAuthConfig` |   |

### ServiceAccountAuthConfig

    public ServiceAccountAuthConfig ServiceAccountAuthConfig { get; set; }

Optional. Config for service account authentication.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceAccountAuthConfig` |   |

### ServiceAgentIdTokenAuthConfig

    public ServiceAgentIdTokenAuthConfig ServiceAgentIdTokenAuthConfig { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ServiceAgentIdTokenAuthConfig` |   |