Google Cloud Dialogflow V2 Client - Class ContextReference (2.1.2)

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

Represents a section of ingested context information.

Generated from protobuf message google.cloud.dialogflow.v2.Conversation.ContextReference

Namespace

Google \ Cloud \ Dialogflow \ V2 \ Conversation

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ context_contents
array< ContextReference\ContextContent >

Required. The list of content updates for a context reference.

↳ update_mode
int

Required. The mode in which context reference contents are updated.

↳ language_code
string

Optional. The language of the information ingested, defaults to "en-US" if not set.

↳ create_time
Google\Protobuf\Timestamp

Output only. The time the context reference was first created.

getContextContents

Required. The list of content updates for a context reference.

Returns
Type
Description

setContextContents

Required. The list of content updates for a context reference.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateMode

Required. The mode in which context reference contents are updated.

Returns
Type
Description
int

setUpdateMode

Required. The mode in which context reference contents are updated.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getLanguageCode

Optional. The language of the information ingested, defaults to "en-US" if not set.

Returns
Type
Description
string

setLanguageCode

Optional. The language of the information ingested, defaults to "en-US" if not set.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCreateTime

Output only. The time the context reference was first created.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time the context reference was first created.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: