# Google Cloud Talent Solution V4 Client - Class UpdateTenantRequest (2.3.0)

2.3.0 (latest) 2.2.1 2.1.3 2.0.2 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Talent Solution V4 Client class UpdateTenantRequest.

Request for updating a specified tenant.

Generated from protobuf message `google.cloud.talent.v4.UpdateTenantRequest`

## Namespace

Google \\ Cloud \\ Talent \\ V4

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ tenant` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Tenant` Required. The tenant resource to replace the current resource in the system. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Strongly recommended for the best service experience. If [update_mask](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.UpdateTenantRequest#_Google_Cloud_Talent_V4_UpdateTenantRequest__getUpdateMask__) is provided, only the specified fields in [tenant](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.UpdateTenantRequest#_Google_Cloud_Talent_V4_UpdateTenantRequest__getTenant__) are updated. Otherwise all the fields are updated. A field mask to specify the tenant fields to be updated. Only top level fields of [Tenant](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Tenant) are supported. |

### getTenant

Required. The tenant resource to replace the current resource in the
system.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Tenant|null` |   |

### hasTenant

### clearTenant

### setTenant

Required. The tenant resource to replace the current resource in the
system.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Tenant` |

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

### getUpdateMask

Strongly recommended for the best service experience.

If [update_mask](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.UpdateTenantRequest#_Google_Cloud_Talent_V4_UpdateTenantRequest__getUpdateMask__) is
provided, only the specified fields in
[tenant](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.UpdateTenantRequest#_Google_Cloud_Talent_V4_UpdateTenantRequest__getTenant__) are updated.
Otherwise all the fields are updated.
A field mask to specify the tenant fields to be updated. Only
top level fields of [Tenant](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Tenant) are supported.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Strongly recommended for the best service experience.

If [update_mask](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.UpdateTenantRequest#_Google_Cloud_Talent_V4_UpdateTenantRequest__getUpdateMask__) is
provided, only the specified fields in
[tenant](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.UpdateTenantRequest#_Google_Cloud_Talent_V4_UpdateTenantRequest__getTenant__) are updated.
Otherwise all the fields are updated.
A field mask to specify the tenant fields to be updated. Only
top level fields of [Tenant](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Tenant) are supported.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `tenant` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Tenant` Required. The tenant resource to replace the current resource in the system. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Strongly recommended for the best service experience. If [update_mask](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.UpdateTenantRequest#_Google_Cloud_Talent_V4_UpdateTenantRequest__getUpdateMask__) is provided, only the specified fields in [tenant](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.UpdateTenantRequest#_Google_Cloud_Talent_V4_UpdateTenantRequest__getTenant__) are updated. Otherwise all the fields are updated. A field mask to specify the tenant fields to be updated. Only top level fields of [Tenant](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.Tenant) are supported. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.UpdateTenantRequest` |   |