# Google Cloud Vision Ai V1 Client - Class ArgumentDefinition (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 ArgumentDefinition.

Defines an argument to an operator.

Used for both inputs and outputs.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ argument` | `string` The name of the argument. Tentatively [a-z](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/[_a-z0-9]*[a-z0-9])?, e.g., video, audio, high_fps_frame. |
| `↳ type` | `string` The data type of the argument. This should match the textual representation of a stream/Packet type. |

### getArgument

The name of the argument.

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

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

### setArgument

The name of the argument.

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

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

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

### getType

The data type of the argument.

This should match the textual representation of a stream/Packet type.

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

### setType

The data type of the argument.

This should match the textual representation of a stream/Packet type.

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

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