Reference documentation and code samples for the Google Cloud Recommendation Engine V1beta1 Client class WriteUserEventRequest.
Request message for WriteUserEvent method.
Generated from protobuf message google.cloud.recommendationengine.v1beta1.WriteUserEventRequest
Methods
build
Parameters | |
---|---|
Name | Description |
parent |
string
Required. The parent eventStore resource name, such as
|
userEvent |
Google\Cloud\RecommendationEngine\V1beta1\UserEvent
Required. User event to write. |
Returns | |
---|---|
Type | Description |
Google\Cloud\RecommendationEngine\V1beta1\WriteUserEventRequest |
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The parent eventStore resource name, such as |
↳ user_event |
Google\Cloud\RecommendationEngine\V1beta1\UserEvent
Required. User event to write. |
getParent
Required. The parent eventStore resource name, such as
projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store
.
Returns | |
---|---|
Type | Description |
string |
setParent
Required. The parent eventStore resource name, such as
projects/1234/locations/global/catalogs/default_catalog/eventStores/default_event_store
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getUserEvent
Required. User event to write.
Returns | |
---|---|
Type | Description |
Google\Cloud\RecommendationEngine\V1beta1\UserEvent|null |
hasUserEvent
clearUserEvent
setUserEvent
Required. User event to write.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\RecommendationEngine\V1beta1\UserEvent
|
Returns | |
---|---|
Type | Description |
$this |