# Google Cloud Dialogflow Cx V3 Client - Class ServiceAgentAuth (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class ServiceAgentAuth.

Indicate the auth token type generated from the [Diglogflow service
agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).

Protobuf type `google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3 \\ Webhook \\ GenericWebService

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### SERVICE_AGENT_AUTH_UNSPECIFIED

    Value: 0

Service agent auth type unspecified. Default to ID_TOKEN.

Generated from protobuf enum `SERVICE_AGENT_AUTH_UNSPECIFIED = 0;`

### NONE

    Value: 1

No token used.

Generated from protobuf enum `NONE = 1;`

### ID_TOKEN

    Value: 2

Use [ID
token](https://cloud.google.com/docs/authentication/token-types#id)
generated from service agent. This can be used to access Cloud Function
and Cloud Run after you grant Invoker role to
`service-<PROJECT-NUMBER>\@gcp-sa-dialogflow.iam.gserviceaccount.com`.

Generated from protobuf enum `ID_TOKEN = 2;`

### ACCESS_TOKEN

    Value: 3

Use [access
token](https://cloud.google.com/docs/authentication/token-types#access)
generated from service agent. This can be used to access other Google
Cloud APIs after you grant required roles to
`service-<PROJECT-NUMBER>\@gcp-sa-dialogflow.iam.gserviceaccount.com`.

Generated from protobuf enum `ACCESS_TOKEN = 3;`