Google Cloud Channel V1 Client - Class CustomerEvent (1.6.0)

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

Namespace

Google \ Cloud \ Channel \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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}

Returns
TypeDescription
string

setCustomer

Resource name of the customer.

Format: accounts/{account_id}/customers/{customer_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEventType

Type of event which happened on the customer.

Returns
TypeDescription
int

setEventType

Type of event which happened on the customer.

Parameter
NameDescription
var int
Returns
TypeDescription
$this