2.11.0 (latest) 2.10.3 2.7.0 2.6.2 2.5.0 2.4.0 2.3.0 2.2.1 2.1.2 2.0.2 1.3.5 1.2.3 1.1.2 1.0.3 Reference documentation and code samples for the Google BigQuery Reservation V1 Client class MoveAssignmentRequest.

The request for
[ReservationService.MoveAssignment](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-reservation/latest/V1.Client.ReservationServiceClient#_Google_Cloud_BigQuery_Reservation_V1_Client_ReservationServiceClient__moveAssignment__).

**Note** : "bigquery.reservationAssignments.create" permission is required on
the destination_id.
**Note**: "bigquery.reservationAssignments.create" and
"bigquery.reservationAssignments.delete" permission are required on the
related assignee.

Generated from protobuf message `google.cloud.bigquery.reservation.v1.MoveAssignmentRequest`

## Namespace

Google \\ Cloud \\ BigQuery \\ Reservation \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The resource name of the assignment, e.g. `projects/myproject/locations/US/reservations/team1-prod/assignments/123` |
| `↳ destination_id` | `string` The new reservation ID, e.g.: `projects/myotherproject/locations/US/reservations/team2-prod` |
| `↳ assignment_id` | `string` The optional assignment ID. A new assignment name is generated if this field is empty. This field can contain only lowercase alphanumeric characters or dashes. Max length is 64 characters. |

### getName

Required. The resource name of the assignment,
e.g.

`projects/myproject/locations/US/reservations/team1-prod/assignments/123`

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

### setName

Required. The resource name of the assignment,
e.g.

`projects/myproject/locations/US/reservations/team1-prod/assignments/123`

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

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

### getDestinationId

The new reservation ID, e.g.:
`projects/myotherproject/locations/US/reservations/team2-prod`

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

### setDestinationId

The new reservation ID, e.g.:
`projects/myotherproject/locations/US/reservations/team2-prod`

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

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

### getAssignmentId

The optional assignment ID. A new assignment name is generated if this
field is empty.

This field can contain only lowercase alphanumeric characters or dashes.
Max length is 64 characters.

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

### setAssignmentId

The optional assignment ID. A new assignment name is generated if this
field is empty.

This field can contain only lowercase alphanumeric characters or dashes.
Max length is 64 characters.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The resource name of the assignment, e.g. `projects/myproject/locations/US/reservations/team1-prod/assignments/123` Please see ReservationServiceClient::assignmentName() for help formatting this field. |
| `destinationId` | `string` The new reservation ID, e.g.: `projects/myotherproject/locations/US/reservations/team2-prod` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-reservation/latest/V1.MoveAssignmentRequest` |   |