# Google Cloud Dialogflow Cx V3 Client - Class ServiceAccountAuthConfig (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 ServiceAccountAuthConfig.

Configuration for authentication using a service account.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAccountAuthConfig`

## Namespace

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

## 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 webhook call. Dialogflow uses this service account to exchange an access token and the access token is then sent in the `Authorization` header of the webhook request. The service account must have the `roles/iam.serviceAccountTokenCreator` role granted to the [Dialogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent). |

### getServiceAccount

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

The service account must have the
`roles/iam.serviceAccountTokenCreator` role granted to the
[Dialogflow service
agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setServiceAccount

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

The service account must have the
`roles/iam.serviceAccountTokenCreator` role granted to the
[Dialogflow service
agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |