Google Cloud Dialogflow V2 Client - Class ServiceAgentAuth (2.3.0)

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 \ ServiceAgentAuthConfig

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;

ID_TOKEN

Value: 1

Use 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: 2

Use 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;