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
Namespace
Google \ Cloud \ Channel \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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}
| Returns | |
|---|---|
| Type | Description |
string |
|
setEntitlement
Resource name of an entitlement of the form: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEventType
Type of event which happened on the entitlement.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Type. |
setEventType
Type of event which happened on the entitlement.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Type. |
| Returns | |
|---|---|
| Type | Description |
$this |
|