Google Cloud Dialogflow Cx V3 Client - Class ServiceAccountAuthConfig (0.10.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class ServiceAccountAuthConfig.

Configuration for authentication using a service account.

Generated from protobuf message google.cloud.dialogflow.cx.v3.Tool.Authentication.ServiceAccountAuthConfig

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ Tool \ Authentication

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ service_account string

Required. The email address of the service account used to authenticate the tool call. Dialogflow uses this service account to exchange an access token and the access token is then sent in the Authorization header of the tool request. The service account must have the roles/iam.serviceAccountTokenCreator role granted to the Dialogflow service agent.

getServiceAccount

Required. The email address of the service account used to authenticate the tool call. Dialogflow uses this service account to exchange an access token and the access token is then sent in the Authorization header of the tool request.

The service account must have the roles/iam.serviceAccountTokenCreator role granted to the Dialogflow service agent.

Returns
Type Description
string

setServiceAccount

Required. The email address of the service account used to authenticate the tool call. Dialogflow uses this service account to exchange an access token and the access token is then sent in the Authorization header of the tool request.

The service account must have the roles/iam.serviceAccountTokenCreator role granted to the Dialogflow service agent.

Parameter
Name Description
var string
Returns
Type Description
$this