Reference documentation and code samples for the Google Cloud Retail V2 Client class AddCatalogAttributeRequest.
Request for CatalogService.AddCatalogAttribute method.
Generated from protobuf message google.cloud.retail.v2.AddCatalogAttributeRequest
Namespace
Google \ Cloud \ Retail \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ attributes_config |
string
Required. Full AttributesConfig resource name. Format: |
↳ catalog_attribute |
CatalogAttribute
Required. The CatalogAttribute to add. |
getAttributesConfig
Required. Full AttributesConfig resource name. Format:
projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig
| Returns | |
|---|---|
| Type | Description |
string |
|
setAttributesConfig
Required. Full AttributesConfig resource name. Format:
projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCatalogAttribute
Required. The CatalogAttribute to add.
| Returns | |
|---|---|
| Type | Description |
CatalogAttribute|null |
|
hasCatalogAttribute
clearCatalogAttribute
setCatalogAttribute
Required. The CatalogAttribute to add.
| Parameter | |
|---|---|
| Name | Description |
var |
CatalogAttribute
|
| Returns | |
|---|---|
| Type | Description |
$this |
|