Class Routine (8.0.0)

Routine objects are returned by methods such as , , and .

Package

@google-cloud/bigquery

Example

const{BigQuery}=require('@google-cloud/bigquery');constbigquery=newBigQuery();constdataset=bigquery.dataset('my-dataset');constroutine=dataset.routine('my_routine');

Constructors

(constructor)(dataset, id)

constructor(dataset:Dataset,id:string);

Constructs a new instance of theRoutine class

Parameters
NameDescription
datasetDataset
idstring

Methods

setMetadata(metadata)

setMetadata(metadata:RoutineMetadata):Promise<SetMetadataResponse>;
Parameter
NameDescription
metadataRoutineMetadata
Returns
TypeDescription
Promise<SetMetadataResponse>

setMetadata(metadata, callback)

setMetadata(metadata:RoutineMetadata,callback:ResponseCallback):void;
Parameters
NameDescription
metadataRoutineMetadata
callbackResponseCallback
Returns
TypeDescription
void

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.