Google Cloud Discovery Engine V1beta Client - Class Conversation (0.7.1)

Reference documentation and code samples for the Google Cloud Discovery Engine V1beta Client class Conversation.

External conversation proto definition.

Generated from protobuf message google.cloud.discoveryengine.v1beta.Conversation

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Immutable. Fully qualified name project/*/locations/global/collections/{collection}/dataStore/*/conversations/*

↳ state int

The state of the Conversation.

↳ user_pseudo_id string

A unique identifier for tracking users.

↳ messages array<Google\Cloud\DiscoveryEngine\V1beta\ConversationMessage>

Conversation messages.

↳ start_time Google\Protobuf\Timestamp

Output only. The time the conversation started.

↳ end_time Google\Protobuf\Timestamp

Output only. The time the conversation finished.

getName

Immutable. Fully qualified name project/*/locations/global/collections/{collection}/dataStore/*/conversations/*

Returns
TypeDescription
string

setName

Immutable. Fully qualified name project/*/locations/global/collections/{collection}/dataStore/*/conversations/*

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

The state of the Conversation.

Returns
TypeDescription
int

setState

The state of the Conversation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUserPseudoId

A unique identifier for tracking users.

Returns
TypeDescription
string

setUserPseudoId

A unique identifier for tracking users.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMessages

Conversation messages.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMessages

Conversation messages.

Parameter
NameDescription
var array<Google\Cloud\DiscoveryEngine\V1beta\ConversationMessage>
Returns
TypeDescription
$this

getStartTime

Output only. The time the conversation started.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Output only. The time the conversation started.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getEndTime

Output only. The time the conversation finished.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Output only. The time the conversation finished.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this