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

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

Request message for WriteUserEvent method.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent DataStore resource name, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}.

↳ user_event Google\Cloud\DiscoveryEngine\V1beta\UserEvent

Required. User event to write.

getParent

Required. The parent DataStore resource name, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}.

Returns
TypeDescription
string

setParent

Required. The parent DataStore resource name, such as projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUserEvent

Required. User event to write.

Returns
TypeDescription
Google\Cloud\DiscoveryEngine\V1beta\UserEvent|null

hasUserEvent

clearUserEvent

setUserEvent

Required. User event to write.

Parameter
NameDescription
var Google\Cloud\DiscoveryEngine\V1beta\UserEvent
Returns
TypeDescription
$this