# Google Cloud Data Catalog V1 Client - Class Argument (2.4.2)

2.4.2 (latest) 2.4.1 2.3.2 2.2.4 2.1.0 2.0.2 1.10.3 1.9.1 1.8.2 1.7.1 1.6.0 1.5.1 1.4.2 1.3.9 Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class Argument.

Input or output argument of a function or stored procedure.

Generated from protobuf message `google.cloud.datacatalog.v1.RoutineSpec.Argument`

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1 \\ RoutineSpec

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The name of the argument. A return argument of a function might not have a name. |
| `↳ mode` | `int` Specifies whether the argument is input or output. |
| `↳ type` | `string` Type of the argument. The exact value depends on the source system and the language. |

### getName

The name of the argument. A return argument of a function might not have
a name.

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

### setName

The name of the argument. A return argument of a function might not have
a name.

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

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

### getMode

Specifies whether the argument is input or output.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Mode](https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.RoutineSpec.Argument.Mode). |

### setMode

Specifies whether the argument is input or output.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Mode](https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.RoutineSpec.Argument.Mode). |

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

### getType

Type of the argument. The exact value depends on the source system and
the language.

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

### setType

Type of the argument. The exact value depends on the source system and
the language.

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

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