# Google Cloud Data Catalog V1 Client - Class RoutineSpec (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 RoutineSpec.

Specification that applies to a routine. Valid only for
entries with the `ROUTINE` type.

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

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ routine_type` | `int` The type of the routine. |
| `↳ language` | `string` The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are: \* \* `SQL` \* \* `JAVASCRIPT` |
| `↳ routine_arguments` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.RoutineSpec.Argument>` Arguments of the routine. |
| `↳ return_type` | `string` Return type of the argument. The exact value depends on the source system and the language. |
| `↳ definition_body` | `string` The body of the routine. |
| `↳ bigquery_routine_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.BigQueryRoutineSpec` Fields specific for BigQuery routines. |

### getRoutineType

The type of the routine.

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

### setRoutineType

The type of the routine.

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

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

### getLanguage

The language the routine is written in. The exact value depends on the
source system. For BigQuery routines, possible values are:

- `SQL`
- `JAVASCRIPT`

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

### setLanguage

The language the routine is written in. The exact value depends on the
source system. For BigQuery routines, possible values are:

- `SQL`
- `JAVASCRIPT`

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

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

### getRoutineArguments

Arguments of the routine.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.RoutineSpec.Argument>` |   |

### setRoutineArguments

Arguments of the routine.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-data-catalog/latest/V1.RoutineSpec.Argument>` |

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

### getReturnType

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

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

### setReturnType

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

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

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

### getDefinitionBody

The body of the routine.

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

### setDefinitionBody

The body of the routine.

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

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

### getBigqueryRoutineSpec

Fields specific for BigQuery routines.

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

### hasBigqueryRoutineSpec

### setBigqueryRoutineSpec

Fields specific for BigQuery routines.

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

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

### getSystemSpec

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