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 \ ConversationMethods
__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 |
Google\Protobuf\Internal\RepeatedField |
setContextContents
Required. The list of content updates for a context reference.
Parameter | |
---|---|
Name | Description |
var |
array<ContextReference\ContextContent>
|
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 |
Google\Protobuf\Timestamp|null |
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time the context reference was first created.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |