# Google Cloud Quotas V1beta Client - Class UpdateQuotaPreferenceRequest (1.5.5)

1.5.5 (latest) 1.5.4 1.4.1 1.3.1 1.2.1 1.1.1 1.0.1 0.2.3 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Quotas V1beta Client class UpdateQuotaPreferenceRequest.

Message for updating a QuotaPreference

Generated from protobuf message `google.api.cloudquotas.v1beta.UpdateQuotaPreferenceRequest`

## Namespace

Google \\ Cloud \\ CloudQuotas \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |
| `↳ quota_preference` | `https://docs.cloud.google.com/php/docs/reference/cloud-quotas/latest/V1beta.QuotaPreference` Required. The resource being updated |
| `↳ allow_missing` | `bool` Optional. If set to true, and the quota preference is not found, a new one will be created. In this situation, `update_mask` is ignored. |
| `↳ validate_only` | `bool` Optional. If set to true, validate the request, but do not actually update. Note that a request being valid does not mean that the request is guaranteed to be fulfilled. |
| `↳ ignore_safety_checks` | `int[]` The list of quota safety checks to be ignored. |

### getUpdateMask

Optional. Field mask is used to specify the fields to be overwritten in the
QuotaPreference resource by the update.

The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then all fields will be overwritten.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. Field mask is used to specify the fields to be overwritten in the
QuotaPreference resource by the update.

The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask. If the
user does not provide a mask then all fields will be overwritten.

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

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

### getQuotaPreference

Required. The resource being updated

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-quotas/latest/V1beta.QuotaPreference|null` |   |

### hasQuotaPreference

### clearQuotaPreference

### setQuotaPreference

Required. The resource being updated

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-quotas/latest/V1beta.QuotaPreference` |

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

### getAllowMissing

Optional. If set to true, and the quota preference is not found, a new one
will be created. In this situation, `update_mask` is ignored.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setAllowMissing

Optional. If set to true, and the quota preference is not found, a new one
will be created. In this situation, `update_mask` is ignored.

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

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

### getValidateOnly

Optional. If set to true, validate the request, but do not actually update.

Note that a request being valid does not mean that the request is
guaranteed to be fulfilled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setValidateOnly

Optional. If set to true, validate the request, but do not actually update.

Note that a request being valid does not mean that the request is
guaranteed to be fulfilled.

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

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

### getIgnoreSafetyChecks

The list of quota safety checks to be ignored.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setIgnoreSafetyChecks

The list of quota safety checks to be ignored.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `quotaPreference` | `https://docs.cloud.google.com/php/docs/reference/cloud-quotas/latest/V1beta.QuotaPreference` Required. The resource being updated |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. Field mask is used to specify the fields to be overwritten in the QuotaPreference resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-quotas/latest/V1beta.UpdateQuotaPreferenceRequest` |   |