Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ServiceAgentAuth.
Indicate the auth token type generated from the Diaglogflow service agent.
Protobuf type google.cloud.dialogflow.v2.Tool.Authentication.ServiceAgentAuthConfig.ServiceAgentAuth
Namespace
Google \ Cloud \ Dialogflow \ V2 \ Tool \ Authentication \ ServiceAgentAuthConfigMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
SERVICE_AGENT_AUTH_UNSPECIFIED
Value: 0Service agent auth type unspecified. Default to ID_TOKEN.
Generated from protobuf enum SERVICE_AGENT_AUTH_UNSPECIFIED = 0;
ID_TOKEN
Value: 1Use ID
token
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 = 1;
ACCESS_TOKEN
Value: 2Use access
token
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 = 2;