Reference documentation and code samples for the Google Cloud Channel V1 Client class CustomerEvent.
Represents Pub/Sub message content describing customer update.
Generated from protobuf message google.cloud.channel.v1.CustomerEvent
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ customer |
string
Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} |
↳ event_type |
int
Type of event which happened on the customer. |
getCustomer
Resource name of the customer.
Format: accounts/{account_id}/customers/{customer_id}
Generated from protobuf field string customer = 1 [(.google.api.resource_reference) = {
| Returns | |
|---|---|
| Type | Description |
string |
|
setCustomer
Resource name of the customer.
Format: accounts/{account_id}/customers/{customer_id}
Generated from protobuf field string customer = 1 [(.google.api.resource_reference) = {
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEventType
Type of event which happened on the customer.
Generated from protobuf field .google.cloud.channel.v1.CustomerEvent.Type event_type = 2;
| Returns | |
|---|---|
| Type | Description |
int |
|
setEventType
Type of event which happened on the customer.
Generated from protobuf field .google.cloud.channel.v1.CustomerEvent.Type event_type = 2;
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|