-
Notifications
You must be signed in to change notification settings - Fork 460
Expand file tree
/
Copy pathCustomerEvent.php
More file actions
105 lines (93 loc) · 2.94 KB
/
CustomerEvent.php
File metadata and controls
105 lines (93 loc) · 2.94 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
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/channel/v1/subscriber_event.proto
namespace Google\Cloud\Channel\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* Represents Pub/Sub message content describing customer update.
*
* Generated from protobuf message <code>google.cloud.channel.v1.CustomerEvent</code>
*/
class CustomerEvent extends \Google\Protobuf\Internal\Message
{
/**
* Resource name of the customer.
* Format: accounts/{account_id}/customers/{customer_id}
*
* Generated from protobuf field <code>string customer = 1 [(.google.api.resource_reference) = {</code>
*/
protected $customer = '';
/**
* Type of event which happened for the customer.
*
* Generated from protobuf field <code>.google.cloud.channel.v1.CustomerEvent.Type event_type = 2;</code>
*/
protected $event_type = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $customer
* Resource name of the customer.
* Format: accounts/{account_id}/customers/{customer_id}
* @type int $event_type
* Type of event which happened for the customer.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Channel\V1\SubscriberEvent::initOnce();
parent::__construct($data);
}
/**
* Resource name of the customer.
* Format: accounts/{account_id}/customers/{customer_id}
*
* Generated from protobuf field <code>string customer = 1 [(.google.api.resource_reference) = {</code>
* @return string
*/
public function getCustomer()
{
return $this->customer;
}
/**
* Resource name of the customer.
* Format: accounts/{account_id}/customers/{customer_id}
*
* Generated from protobuf field <code>string customer = 1 [(.google.api.resource_reference) = {</code>
* @param string $var
* @return $this
*/
public function setCustomer($var)
{
GPBUtil::checkString($var, True);
$this->customer = $var;
return $this;
}
/**
* Type of event which happened for the customer.
*
* Generated from protobuf field <code>.google.cloud.channel.v1.CustomerEvent.Type event_type = 2;</code>
* @return int
*/
public function getEventType()
{
return $this->event_type;
}
/**
* Type of event which happened for the customer.
*
* Generated from protobuf field <code>.google.cloud.channel.v1.CustomerEvent.Type event_type = 2;</code>
* @param int $var
* @return $this
*/
public function setEventType($var)
{
GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\CustomerEvent\Type::class);
$this->event_type = $var;
return $this;
}
}