Repository navigation
Expand file tree
/
Copy pathRejoinUserEventsRequest.php
More file actions
117 lines (105 loc) · 4.12 KB
/
Copy pathRejoinUserEventsRequest.php
File metadata and controls
117 lines (105 loc) · 4.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/retail/v2/user_event_service.proto
namespace Google\Cloud\Retail\V2;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request message for RejoinUserEvents method.
*
* Generated from protobuf message <code>google.cloud.retail.v2.RejoinUserEventsRequest</code>
*/
class RejoinUserEventsRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The parent catalog resource name, such as
* `projects/1234/locations/global/catalogs/default_catalog`.
*
* Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
*/
private $parent = '';
/**
* The type of the user event rejoin to define the scope and range of the user
* events to be rejoined with the latest product catalog. Defaults to
* USER_EVENT_REJOIN_SCOPE_UNSPECIFIED if this field is not set, or set to an
* invalid integer value.
*
* Generated from protobuf field <code>.google.cloud.retail.v2.RejoinUserEventsRequest.UserEventRejoinScope user_event_rejoin_scope = 2;</code>
*/
private $user_event_rejoin_scope = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $parent
* Required. The parent catalog resource name, such as
* `projects/1234/locations/global/catalogs/default_catalog`.
* @type int $user_event_rejoin_scope
* The type of the user event rejoin to define the scope and range of the user
* events to be rejoined with the latest product catalog. Defaults to
* USER_EVENT_REJOIN_SCOPE_UNSPECIFIED if this field is not set, or set to an
* invalid integer value.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Retail\V2\UserEventService::initOnce();
parent::__construct($data);
}
/**
* Required. The parent catalog resource name, such as
* `projects/1234/locations/global/catalogs/default_catalog`.
*
* Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. The parent catalog resource name, such as
* `projects/1234/locations/global/catalogs/default_catalog`.
*
* Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @param string $var
* @return $this
*/
public function setParent($var)
{
GPBUtil::checkString($var, True);
$this->parent = $var;
return $this;
}
/**
* The type of the user event rejoin to define the scope and range of the user
* events to be rejoined with the latest product catalog. Defaults to
* USER_EVENT_REJOIN_SCOPE_UNSPECIFIED if this field is not set, or set to an
* invalid integer value.
*
* Generated from protobuf field <code>.google.cloud.retail.v2.RejoinUserEventsRequest.UserEventRejoinScope user_event_rejoin_scope = 2;</code>
* @return int
*/
public function getUserEventRejoinScope()
{
return $this->user_event_rejoin_scope;
}
/**
* The type of the user event rejoin to define the scope and range of the user
* events to be rejoined with the latest product catalog. Defaults to
* USER_EVENT_REJOIN_SCOPE_UNSPECIFIED if this field is not set, or set to an
* invalid integer value.
*
* Generated from protobuf field <code>.google.cloud.retail.v2.RejoinUserEventsRequest.UserEventRejoinScope user_event_rejoin_scope = 2;</code>
* @param int $var
* @return $this
*/
public function setUserEventRejoinScope($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Retail\V2\RejoinUserEventsRequest\UserEventRejoinScope::class);
$this->user_event_rejoin_scope = $var;
return $this;
}
}