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

The type of an attribute.

Protobuf type `google.cloud.retail.v2.CatalogAttribute.AttributeType`

## Namespace

Google \\ Cloud \\ Retail \\ V2 \\ CatalogAttribute

## Methods

### static::name

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

### static::value

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

## Constants

### UNKNOWN

    Value: 0

The type of the attribute is unknown.

Used when type cannot be derived from attribute that is not
[in_use](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.CatalogAttribute#_Google_Cloud_Retail_V2_CatalogAttribute__getInUse__).

Generated from protobuf enum `UNKNOWN = 0;`

### TEXTUAL

    Value: 1

Textual attribute.

Generated from protobuf enum `TEXTUAL = 1;`

### NUMERICAL

    Value: 2

Numerical attribute.

Generated from protobuf enum `NUMERICAL = 2;`