# Google Cloud Commerce Consumer Procurement V1 Client - Class AssignmentProtocol (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 AssignmentProtocol.

Assignment protocol for a license pool.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ manual_assignment_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.AssignmentProtocol.ManualAssignmentType` Allow manual assignments triggered by administrative operations only. |
| `↳ auto_assignment_type` | `https://docs.cloud.google.com/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.AssignmentProtocol.AutoAssignmentType` Allow automatic assignments triggered by data plane operations. |

### getManualAssignmentType

Allow manual assignments triggered by administrative operations only.

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

### hasManualAssignmentType

### setManualAssignmentType

Allow manual assignments triggered by administrative operations only.

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

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

### getAutoAssignmentType

Allow automatic assignments triggered by data plane operations.

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

### hasAutoAssignmentType

### setAutoAssignmentType

Allow automatic assignments triggered by data plane operations.

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

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

### getAssignmentType

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