Google Cloud Retail V2 Client - Class ReplaceCatalogAttributeRequest (1.0.1)

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

Request for CatalogService.ReplaceCatalogAttribute method.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ attributes_config string

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig

↳ catalog_attribute Google\Cloud\Retail\V2\CatalogAttribute

Required. The updated CatalogAttribute.

↳ update_mask Google\Protobuf\FieldMask

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated.

getAttributesConfig

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig

Generated from protobuf field string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Returns
TypeDescription
string

setAttributesConfig

Required. Full AttributesConfig resource name. Format: projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig

Generated from protobuf field string attributes_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCatalogAttribute

Required. The updated CatalogAttribute.

Generated from protobuf field .google.cloud.retail.v2.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

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

hasCatalogAttribute

clearCatalogAttribute

setCatalogAttribute

Required. The updated CatalogAttribute.

Generated from protobuf field .google.cloud.retail.v2.CatalogAttribute catalog_attribute = 2 [(.google.api.field_behavior) = REQUIRED];

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

getUpdateMask

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

Generated from protobuf field .google.protobuf.FieldMask update_mask = 3;

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported:

Generated from protobuf field .google.protobuf.FieldMask update_mask = 3;

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