Google Cloud Discovery Engine V1 Client - Class WriteUserEventRequest (1.0.0)

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

Request message for WriteUserEvent method.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ parentstring

Required. The parent resource name. If the write user event action is applied in DataStore level, the format is: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}. If the write user event action is applied in Location level, for example, the event with Document across multiple DataStore, the format is: projects/{project}/locations/{location}.

↳ user_eventGoogle\Cloud\DiscoveryEngine\V1\UserEvent

Required. User event to write.

↳ write_asyncbool

If set to true, the user event is written asynchronously after validation, and the API responds without waiting for the write.

getParent

Required. The parent resource name.

If the write user event action is applied in DataStore level, the format is: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}. If the write user event action is applied in Location level, for example, the event with Document across multiple DataStore, the format is: projects/{project}/locations/{location}.

Returns
TypeDescription
string

setParent

Required. The parent resource name.

If the write user event action is applied in DataStore level, the format is: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}. If the write user event action is applied in Location level, for example, the event with Document across multiple DataStore, the format is: projects/{project}/locations/{location}.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getUserEvent

Required. User event to write.

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

hasUserEvent

clearUserEvent

setUserEvent

Required. User event to write.

Parameter
NameDescription
varGoogle\Cloud\DiscoveryEngine\V1\UserEvent
Returns
TypeDescription
$this

getWriteAsync

If set to true, the user event is written asynchronously after validation, and the API responds without waiting for the write.

Returns
TypeDescription
bool

setWriteAsync

If set to true, the user event is written asynchronously after validation, and the API responds without waiting for the write.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this