Google Cloud Channel V1 Client - Class EntitlementEvent (1.0.1)

Reference documentation and code samples for the Google Cloud Channel V1 Client class EntitlementEvent.

Represents Pub/Sub message content describing entitlement update.

Generated from protobuf message google.cloud.channel.v1.EntitlementEvent

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ entitlement string

Resource name of an entitlement of the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

↳ event_type int

Type of event which happened on the entitlement.

getEntitlement

Resource name of an entitlement of the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

Generated from protobuf field string entitlement = 1 [(.google.api.resource_reference) = {

Returns
TypeDescription
string

setEntitlement

Resource name of an entitlement of the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}

Generated from protobuf field string entitlement = 1 [(.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEventType

Type of event which happened on the entitlement.

Generated from protobuf field .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;

Returns
TypeDescription
int

setEventType

Type of event which happened on the entitlement.

Generated from protobuf field .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this