# Google Cloud Gke Hub V1 Client - Class UpdateFleetRequest (1.3.1)

1.3.1 (latest) 1.3.0 1.2.2 1.1.0 1.0.6 0.10.0 0.9.5 0.8.2 0.7.1 0.6.3 0.5.6 Reference documentation and code samples for the Google Cloud Gke Hub V1 Client class UpdateFleetRequest.

Request message for the `GkeHub.UpdateFleet` method.

Generated from protobuf message `google.cloud.gkehub.v1.UpdateFleetRequest`

## Namespace

Google \\ Cloud \\ GkeHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ fleet` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/V1.Fleet` Required. The Fleet to update. The `name` field of the Fleet object identifies which fleet will be updated. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. The fields to be updated; |

### getFleet

Required. The Fleet to update.

The `name` field of the Fleet object identifies which fleet will be
updated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/V1.Fleet|null` |   |

### hasFleet

### clearFleet

### setFleet

Required. The Fleet to update.

The `name` field of the Fleet object identifies which fleet will be
updated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/V1.Fleet` |

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

### getUpdateMask

Required. The fields to be updated;

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask|null` |   |

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Required. The fields to be updated;

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `fleet` | `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/V1.Fleet` Required. The Fleet to update. The `name` field of the Fleet object identifies which fleet will be updated. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. The fields to be updated; |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-gke-hub/latest/V1.UpdateFleetRequest` |   |