Repository navigation
Expand file tree
/
Copy pathUserEventInlineSource.php
More file actions
67 lines (58 loc) · 2.27 KB
/
Copy pathUserEventInlineSource.php
File metadata and controls
67 lines (58 loc) · 2.27 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
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/retail/v2/import_config.proto
namespace Google\Cloud\Retail\V2;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* The inline source for the input config for ImportUserEvents method.
*
* Generated from protobuf message <code>google.cloud.retail.v2.UserEventInlineSource</code>
*/
class UserEventInlineSource extends \Google\Protobuf\Internal\Message
{
/**
* Required. A list of user events to import. Recommended max of 10k items.
*
* Generated from protobuf field <code>repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];</code>
*/
private $user_events;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Cloud\Retail\V2\UserEvent[]|\Google\Protobuf\Internal\RepeatedField $user_events
* Required. A list of user events to import. Recommended max of 10k items.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Retail\V2\ImportConfig::initOnce();
parent::__construct($data);
}
/**
* Required. A list of user events to import. Recommended max of 10k items.
*
* Generated from protobuf field <code>repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getUserEvents()
{
return $this->user_events;
}
/**
* Required. A list of user events to import. Recommended max of 10k items.
*
* Generated from protobuf field <code>repeated .google.cloud.retail.v2.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @param \Google\Cloud\Retail\V2\UserEvent[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setUserEvents($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Retail\V2\UserEvent::class);
$this->user_events = $arr;
return $this;
}
}