Google Cloud Retail V2 Client - Class UpdateCompletionConfigRequest (2.1.2)

Reference documentation and code samples for the Google Cloud Retail V2 Client class UpdateCompletionConfigRequest.

Request for CatalogService.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 CompletionConfig

Required. The CompletionConfig to update. If the caller does not have permission to update the CompletionConfig, then a PERMISSION_DENIED error is returned. If the CompletionConfig to update does not exist, a NOT_FOUND error is returned.

↳ update_mask Google\Protobuf\FieldMask

Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * * CompletionConfig.matching_order * * CompletionConfig.max_suggestions * * CompletionConfig.min_prefix_length * * CompletionConfig.auto_learning If not set, all supported fields are updated.

getCompletionConfig

Required. The CompletionConfig to update.

If the caller does not have permission to update the CompletionConfig, then a PERMISSION_DENIED error is returned. If the CompletionConfig to update does not exist, a NOT_FOUND error is returned.

Returns
Type Description
CompletionConfig|null

hasCompletionConfig

clearCompletionConfig

setCompletionConfig

Required. The CompletionConfig to update.

If the caller does not have permission to update the CompletionConfig, then a PERMISSION_DENIED error is returned. If the CompletionConfig to update does not exist, a NOT_FOUND error is returned.

Parameter
Name Description
var CompletionConfig
Returns
Type Description
$this

getUpdateMask

Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields:

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields:

Parameter
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
completionConfig CompletionConfig

Required. The CompletionConfig to update.

If the caller does not have permission to update the CompletionConfig, then a PERMISSION_DENIED error is returned.

If the CompletionConfig to update does not exist, a NOT_FOUND error is returned.

updateMask Google\Protobuf\FieldMask

Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields:

If not set, all supported fields are updated.

Returns
Type Description
UpdateCompletionConfigRequest