# Google BigQuery v2 API - Class RoutineExtensions (3.12.0)

3.12.0 (latest) 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.4.0 2.3.0 2.2.0

    public static class RoutineExtensions

Reference documentation and code samples for the Google BigQuery v2 API class RoutineExtensions.

Extension methods for making it easier to work with [Routine](https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html)

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> RoutineExtensions

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.BigQuery.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2)

## Assembly

Google.Cloud.BigQuery.V2.dll

## Methods

### GetRoutineLanguage(Routine)

    public static RoutineLanguage? GetRoutineLanguage(this Routine routine)

Gets this routine's language.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `routine` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.RoutineLanguage` |   |

### GetRoutineType(Routine)

    public static RoutineType? GetRoutineType(this Routine routine)

Gets this routine's type.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `routine` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.RoutineType` |   |

### SetRoutineLanguage(Routine, RoutineLanguage?)

    public static void SetRoutineLanguage(this Routine routine, RoutineLanguage? language)

Sets this routine's language.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `routine` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html` |
| `language` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.RoutineLanguage` |

### SetRoutineType(Routine, RoutineType?)

    public static void SetRoutineType(this Routine routine, RoutineType? type)

Sets this routine's type.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `routine` | `https://googleapis.dev/dotnet/Google.Apis.Bigquery.v2/1.74.0.4090/api/Google.Apis.Bigquery.v2.Data.Routine.html` |
| `type` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.RoutineType` |