Google Cloud Retail V2 Client - Class UpdateCatalogRequest (1.1.1)

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

Request for CatalogService.UpdateCatalog method.

Generated from protobuf message google.cloud.retail.v2.UpdateCatalogRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ catalog Google\Cloud\Retail\V2\Catalog

Required. The Catalog to update. If the caller does not have permission to update the Catalog, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the Catalog to update does not exist, a NOT_FOUND error is returned.

↳ update_mask Google\Protobuf\FieldMask

Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

getCatalog

Required. The Catalog to update.

If the caller does not have permission to update the Catalog, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the Catalog to update does not exist, a NOT_FOUND error is returned.

Returns
TypeDescription
Google\Cloud\Retail\V2\Catalog|null

hasCatalog

clearCatalog

setCatalog

Required. The Catalog to update.

If the caller does not have permission to update the Catalog, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the Catalog to update does not exist, a NOT_FOUND error is returned.

Parameter
NameDescription
var Google\Cloud\Retail\V2\Catalog
Returns
TypeDescription
$this

getUpdateMask

Indicates which fields in the provided Catalog to update.

If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Indicates which fields in the provided Catalog to update.

If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this