Google Cloud Dialogflow V2 Client - Class Authentication (2.3.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Authentication.

Authentication information required for API calls

Generated from protobuf message google.cloud.dialogflow.v2.Tool.Authentication

Namespace

Google \ Cloud \ Dialogflow \ V2 \ Tool

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ api_key_config Authentication\ApiKeyConfig

Config for API key auth.

↳ oauth_config Authentication\OAuthConfig

Config for OAuth.

↳ service_agent_auth_config Authentication\ServiceAgentAuthConfig

Config for Diglogflow service agent auth.

↳ bearer_token_config Authentication\BearerTokenConfig

Config for bearer token auth.

getApiKeyConfig

Config for API key auth.

Returns
Type Description
Authentication\ApiKeyConfig|null

hasApiKeyConfig

setApiKeyConfig

Config for API key auth.

Parameter
Name Description
var Authentication\ApiKeyConfig
Returns
Type Description
$this

getOauthConfig

Config for OAuth.

Returns
Type Description
Authentication\OAuthConfig|null

hasOauthConfig

setOauthConfig

Config for OAuth.

Parameter
Name Description
var Authentication\OAuthConfig
Returns
Type Description
$this

getServiceAgentAuthConfig

Config for Diglogflow service agent auth.

Returns
Type Description
Authentication\ServiceAgentAuthConfig|null

hasServiceAgentAuthConfig

setServiceAgentAuthConfig

Config for Diglogflow service agent auth.

Parameter
Name Description
var Authentication\ServiceAgentAuthConfig
Returns
Type Description
$this

getBearerTokenConfig

Config for bearer token auth.

Returns
Type Description
Authentication\BearerTokenConfig|null

hasBearerTokenConfig

setBearerTokenConfig

Config for bearer token auth.

Parameter
Name Description
var Authentication\BearerTokenConfig
Returns
Type Description
$this

getAuthConfig

Returns
Type Description
string