Google Cloud Dialogflow V2 Client - Class ContextContent (2.2.0)

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

Contents ingested.

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

Namespace

Google \ Cloud \ Dialogflow \ V2 \ Conversation \ ContextReference

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ content string

Required. The information ingested in a single request.

↳ content_format int

Required. The format of the ingested string.

↳ ingestion_time Google\Protobuf\Timestamp

Output only. The time when this information was incorporated into the relevant context reference.

getContent

Required. The information ingested in a single request.

Returns
Type Description
string

setContent

Required. The information ingested in a single request.

Parameter
Name Description
var string
Returns
Type Description
$this

getContentFormat

Required. The format of the ingested string.

Returns
Type Description
int Enum of type ContentFormat.

setContentFormat

Required. The format of the ingested string.

Parameter
Name Description
var int

Enum of type ContentFormat.

Returns
Type Description
$this

getIngestionTime

Output only. The time when this information was incorporated into the relevant context reference.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasIngestionTime

clearIngestionTime

setIngestionTime

Output only. The time when this information was incorporated into the relevant context reference.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this