# Google Cloud Vision Ai V1 Client - Class AttributeDefinition (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class AttributeDefinition.

Defines an attribute of an operator.

Generated from protobuf message `google.cloud.visionai.v1.OperatorDefinition.AttributeDefinition`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1 \\ OperatorDefinition

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ attribute` | `string` The name of the attribute. Tentatively [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/[_a-z0-9]*[a-z0-9])?, e.g., max_frames_per_video, resize_height. |
| `↳ type` | `string` The type of this attribute. See attribute_value.proto for possibilities. |
| `↳ default_value` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AttributeValue` The default value for the attribute. |

### getAttribute

The name of the attribute.

Tentatively [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/[_a-z0-9]*[a-z0-9])?, e.g., max_frames_per_video,
resize_height.

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

### setAttribute

The name of the attribute.

Tentatively [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/[_a-z0-9]*[a-z0-9])?, e.g., max_frames_per_video,
resize_height.

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

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

### getType

The type of this attribute.

See attribute_value.proto for possibilities.

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

### setType

The type of this attribute.

See attribute_value.proto for possibilities.

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

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

### getDefaultValue

The default value for the attribute.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AttributeValue|null` |   |

### hasDefaultValue

### clearDefaultValue

### setDefaultValue

The default value for the attribute.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AttributeValue` |

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