# Google Cloud Retail V2 Client - Class UpdateCompletionConfigRequest (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.1 2.1.3 2.0.0 1.7.0 1.6.4 1.5.0 1.4.2 1.3.1 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Retail V2 Client class UpdateCompletionConfigRequest.

Request for
[CatalogService.UpdateCompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Client.CatalogServiceClient#_Google_Cloud_Retail_V2_Client_CatalogServiceClient__updateCompletionConfig__)
method.

Generated from protobuf message `google.cloud.retail.v2.UpdateCompletionConfigRequest`

## Namespace

Google \\ Cloud \\ Retail \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ completion_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig` Required. The [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig) to update. If the caller does not have permission to update the [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig), then a PERMISSION_DENIED error is returned. If the [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig) to update does not exist, a NOT_FOUND error is returned. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Indicates which fields in the provided [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig) to update. The following are the only supported fields: \* \* [CompletionConfig.matching_order](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMatchingOrder__) \* \* [CompletionConfig.max_suggestions](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMaxSuggestions__) \* \* [CompletionConfig.min_prefix_length](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMinPrefixLength__) \* \* [CompletionConfig.auto_learning](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getAutoLearning__) If not set, all supported fields are updated. |

### getCompletionConfig

Required. The [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig)
to update.

If the caller does not have permission to update the
[CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig), then a
PERMISSION_DENIED error is returned.
If the [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig) to
update does not exist, a NOT_FOUND error is returned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig|null` |   |

### hasCompletionConfig

### clearCompletionConfig

### setCompletionConfig

Required. The [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig)
to update.

If the caller does not have permission to update the
[CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig), then a
PERMISSION_DENIED error is returned.
If the [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig) to
update does not exist, a NOT_FOUND error is returned.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig` |

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

### getUpdateMask

Indicates which fields in the provided
[CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig) to update. The
following are the only supported fields:

- [CompletionConfig.matching_order](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMatchingOrder__)
- [CompletionConfig.max_suggestions](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMaxSuggestions__)
- [CompletionConfig.min_prefix_length](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMinPrefixLength__)
- [CompletionConfig.auto_learning](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getAutoLearning__) If not set, all supported fields are updated.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Indicates which fields in the provided
[CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig) to update. The
following are the only supported fields:

- [CompletionConfig.matching_order](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMatchingOrder__)
- [CompletionConfig.max_suggestions](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMaxSuggestions__)
- [CompletionConfig.min_prefix_length](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMinPrefixLength__)
- [CompletionConfig.auto_learning](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getAutoLearning__) If not set, all supported fields are updated.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `completionConfig` | `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig` Required. The [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig) to update. If the caller does not have permission to update the [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig), then a PERMISSION_DENIED error is returned. If the [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig) to update does not exist, a NOT_FOUND error is returned. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Indicates which fields in the provided [CompletionConfig](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig) to update. The following are the only supported fields: - - [CompletionConfig.matching_order](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMatchingOrder__) - - [CompletionConfig.max_suggestions](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMaxSuggestions__) - - [CompletionConfig.min_prefix_length](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getMinPrefixLength__) - - [CompletionConfig.auto_learning](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CompletionConfig#_Google_Cloud_Retail_V2_CompletionConfig__getAutoLearning__) If not set, all supported fields are updated. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.UpdateCompletionConfigRequest` |   |