Google Cloud Dialogflow Cx V3 Client - Class OAuthConfig (0.5.1)

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

Represents configuration of OAuth client credential flow for 3rd party API authentication.

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

Namespace

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

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ client_id string

Required. The client ID provided by the 3rd party platform.

↳ client_secret string

Required. The client secret provided by the 3rd party platform.

↳ token_endpoint string

Required. The token endpoint provided by the 3rd party platform to exchange an access token.

↳ scopes array

Optional. The OAuth scopes to grant.

getClientId

Required. The client ID provided by the 3rd party platform.

Returns
Type Description
string

setClientId

Required. The client ID provided by the 3rd party platform.

Parameter
Name Description
var string
Returns
Type Description
$this

getClientSecret

Required. The client secret provided by the 3rd party platform.

Returns
Type Description
string

setClientSecret

Required. The client secret provided by the 3rd party platform.

Parameter
Name Description
var string
Returns
Type Description
$this

getTokenEndpoint

Required. The token endpoint provided by the 3rd party platform to exchange an access token.

Returns
Type Description
string

setTokenEndpoint

Required. The token endpoint provided by the 3rd party platform to exchange an access token.

Parameter
Name Description
var string
Returns
Type Description
$this

getScopes

Optional. The OAuth scopes to grant.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setScopes

Optional. The OAuth scopes to grant.

Parameter
Name Description
var string[]
Returns
Type Description
$this