Class Routine (8.0.0)
Stay organized with collections
Save and categorize content based on your preferences.
Routine objects are returned by methods such as , , and .
Package
@google-cloud/bigquery
Example
const
{
BigQuery
}
=
require
(
' @google-cloud/bigquery
'
);
const
bigquery
=
new
BigQuery
();
const
dataset
=
bigquery
.
dataset
(
'my-dataset'
);
const
routine
=
dataset
.
routine
(
'my_routine'
);
Constructors
(constructor)(dataset, id)
constructor
(
dataset
:
Dataset
,
id
:
string
);
Constructs a new instance of the Routine
class
Methods
setMetadata
(
metadata
:
RoutineMetadata
)
:
Promise<SetMetadataResponse>
;
Promise
< SetMetadataResponse
>
setMetadata
(
metadata
:
RoutineMetadata
,
callback
:
ResponseCallback
)
:
void
;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class Routine (8.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [8.0.0 (latest)](/nodejs/docs/reference/bigquery/latest/bigquery/routine)\n- [7.8.0](/nodejs/docs/reference/bigquery/7.8.0/bigquery/routine)\n- [7.7.0](/nodejs/docs/reference/bigquery/7.7.0/bigquery/routine)\n- [7.6.1](/nodejs/docs/reference/bigquery/7.6.1/bigquery/routine)\n- [7.5.2](/nodejs/docs/reference/bigquery/7.5.2/bigquery/routine)\n- [7.4.0](/nodejs/docs/reference/bigquery/7.4.0/bigquery/routine)\n- [7.3.0](/nodejs/docs/reference/bigquery/7.3.0/bigquery/routine)\n- [7.2.0](/nodejs/docs/reference/bigquery/7.2.0/bigquery/routine)\n- [7.1.1](/nodejs/docs/reference/bigquery/7.1.1/bigquery/routine)\n- [7.0.0](/nodejs/docs/reference/bigquery/7.0.0/bigquery/routine)\n- [6.2.1](/nodejs/docs/reference/bigquery/6.2.1/bigquery/routine)\n- [6.0.3](/nodejs/docs/reference/bigquery/6.0.3/bigquery/routine)\n- [5.12.0](/nodejs/docs/reference/bigquery/5.12.0/bigquery/routine)\n- [5.11.0](/nodejs/docs/reference/bigquery/5.11.0/bigquery/routine)\n- [5.10.0](/nodejs/docs/reference/bigquery/5.10.0/bigquery/routine)\n- [5.9.3](/nodejs/docs/reference/bigquery/5.9.3/bigquery/routine)\n- [5.8.0](/nodejs/docs/reference/bigquery/5.8.0/bigquery/routine)\n- [5.7.1](/nodejs/docs/reference/bigquery/5.7.1/bigquery/routine)\n- [5.6.0](/nodejs/docs/reference/bigquery/5.6.0/bigquery/routine)\n- [5.5.0](/nodejs/docs/reference/bigquery/5.5.0/bigquery/routine) \nRoutine objects are returned by methods such as , , and . \n\nInheritance\n-----------\n\nEventEmitter \\\u003e [ServiceObject](https://cloud.google.com/nodejs/docs/reference/common/latest/common/serviceobject) \\\u003e Routine\n\nPackage\n-------\n\n[@google-cloud/bigquery](../overview.html)\n\nExample\n-------\n\n\n const {BigQuery} = require('https://cloud.google.com/nodejs/docs/reference/bigquery/latest/overview.html');\n const bigquery = new https://cloud.google.com/nodejs/docs/reference/bigquery/latest/bigquery/bigquery.html();\n const dataset = bigquery.dataset('my-dataset');\n\n const routine = dataset.routine('my_routine');\n\nConstructors\n------------\n\n### (constructor)(dataset, id)\n\n constructor(dataset: Dataset, id: string);\n\nConstructs a new instance of the `Routine` class\n\nMethods\n-------\n\n### setMetadata(metadata)\n\n setMetadata(metadata: RoutineMetadata): Promise\u003cSetMetadataResponse\u003e;\n\n### setMetadata(metadata, callback)\n\n setMetadata(metadata: RoutineMetadata, callback: ResponseCallback): void;"]]