# Google Cloud Channel V1 Client - Class EntitlementGranularity (2.4.1)

2.4.1 (latest) 2.4.0 2.3.1 2.2.1 2.1.4 2.0.0 1.9.5 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Channel V1 Client class EntitlementGranularity.

Applies the repricing configuration at the entitlement level.

Generated from protobuf message `google.cloud.channel.v1.RepricingConfig.EntitlementGranularity`

## Namespace

Google \\ Cloud \\ Channel \\ V1 \\ RepricingConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ entitlement` | `string` Resource name of the entitlement. Format: accounts/{account_id}/customers/{customer_id}/entitlements/{entitlement_id} |

### getEntitlement

Resource name of the entitlement.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEntitlement

Resource name of the entitlement.

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |