Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class BearerTokenConfig.
Config for authentication using bearer token.
Generated from protobuf message google.cloud.dialogflow.v2.Tool.Authentication.BearerTokenConfig
Namespace
Google \ Cloud \ Dialogflow \ V2 \ Tool \ AuthenticationMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ token |
string
Optional. The text token appended to the text |
↳ secret_version_for_token |
string
Optional. The name of the SecretManager secret version resource storing the Bearer token. If this field is set, the |
getToken
Optional. The text token appended to the text Bearer to the request
Authorization header.
Session parameters
reference
can be used to pass the token dynamically, e.g.
$session.params.parameter-id.
| Returns | |
|---|---|
| Type | Description |
string |
|
setToken
Optional. The text token appended to the text Bearer to the request
Authorization header.
Session parameters
reference
can be used to pass the token dynamically, e.g.
$session.params.parameter-id.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSecretVersionForToken
Optional. The name of the SecretManager secret version resource storing
the Bearer token. If this field is set, the token field will be
ignored. Format:
projects/{project}/secrets/{secret}/versions/{version}
| Returns | |
|---|---|
| Type | Description |
string |
|
setSecretVersionForToken
Optional. The name of the SecretManager secret version resource storing
the Bearer token. If this field is set, the token field will be
ignored. Format:
projects/{project}/secrets/{secret}/versions/{version}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|