# Google Cloud Commerce Consumer Procurement V1 Client - Class LicensePool (1.3.3)

1.3.3 (latest) 1.3.2 1.2.2 1.1.3 1.0.0 0.2.5 0.1.1 Reference documentation and code samples for the Google Cloud Commerce Consumer Procurement V1 Client class LicensePool.

A license pool represents a pool of licenses that can be assigned to users.

Generated from protobuf message `google.cloud.commerce.consumer.procurement.v1.LicensePool`

## Namespace

Google \\ Cloud \\ Commerce \\ Consumer \\ Procurement \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. Format: `billingAccounts/{billing_account}/orders/{order}/licensePool` |
| `↳ license_assignment_protocol` | `https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.AssignmentProtocol` Required. Assignment protocol for the license pool. |
| `↳ available_license_count` | `int` Output only. Licenses count that are available to be assigned. |
| `↳ total_license_count` | `int` Output only. Total number of licenses in the pool. |

### getName

Identifier. Format:
`billingAccounts/{billing_account}/orders/{order}/licensePool`

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

### setName

Identifier. Format:
`billingAccounts/{billing_account}/orders/{order}/licensePool`

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

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

### getLicenseAssignmentProtocol

Required. Assignment protocol for the license pool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.AssignmentProtocol|null` |   |

### hasLicenseAssignmentProtocol

### clearLicenseAssignmentProtocol

### setLicenseAssignmentProtocol

Required. Assignment protocol for the license pool.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.AssignmentProtocol` |

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

### getAvailableLicenseCount

Output only. Licenses count that are available to be assigned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setAvailableLicenseCount

Output only. Licenses count that are available to be assigned.

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

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

### getTotalLicenseCount

Output only. Total number of licenses in the pool.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setTotalLicenseCount

Output only. Total number of licenses in the pool.

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

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