# Google Cloud Retail V2 Client - Class AttributesConfig (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 AttributesConfig.

Catalog level attribute config.

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

## Namespace

Google \\ Cloud \\ Retail \\ V2

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

Required. Immutable. The fully qualified resource name of the attribute
config. Format: `projects/*/locations/*/catalogs/*/attributesConfig`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. Immutable. The fully qualified resource name of the attribute
config. Format: `projects/*/locations/*/catalogs/*/attributesConfig`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getCatalogAttributes

Enable attribute(s) config at catalog level.

For example, indexable, dynamic_facetable, or searchable for each
attribute.
The key is catalog attribute's name.
For example: `color`, `brands`, `attributes.custom_attribute`, such as
`attributes.xyz`.
The maximum number of catalog attributes allowed in a request is 1000.

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

### setCatalogAttributes

Enable attribute(s) config at catalog level.

For example, indexable, dynamic_facetable, or searchable for each
attribute.
The key is catalog attribute's name.
For example: `color`, `brands`, `attributes.custom_attribute`, such as
`attributes.xyz`.
The maximum number of catalog attributes allowed in a request is 1000.

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

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

### getAttributeConfigLevel

Output only. The
[AttributeConfigLevel](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.AttributeConfigLevel) used
for this catalog.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [AttributeConfigLevel](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.AttributeConfigLevel). |

### setAttributeConfigLevel

Output only. The
[AttributeConfigLevel](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.AttributeConfigLevel) used
for this catalog.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [AttributeConfigLevel](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.AttributeConfigLevel). |

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