Class protos.google.dataflow.v1beta3.TemplatesService (2.1.2)

Represents a TemplatesService

Inheritance

$protobuf.rpc.Service > protos.google.dataflow.v1beta3.TemplatesService

Package

@google-cloud/dataflow

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new TemplatesService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TemplatesService;

Creates new TemplatesService service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
TemplatesService

RPC service. Useful where requests and/or responses are streamed.

createJobFromTemplate(request, callback)

public createJobFromTemplate(request: google.dataflow.v1beta3.ICreateJobFromTemplateRequest, callback: google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplateCallback): void;

Calls CreateJobFromTemplate.

Parameters
NameDescription
request google.dataflow.v1beta3.ICreateJobFromTemplateRequest

CreateJobFromTemplateRequest message or plain object

callback google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplateCallback

Node-style callback called with the error, if any, and Job

Returns
TypeDescription
void

createJobFromTemplate(request)

public createJobFromTemplate(request: google.dataflow.v1beta3.ICreateJobFromTemplateRequest): Promise<google.dataflow.v1beta3.Job>;

Calls CreateJobFromTemplate.

Parameter
NameDescription
request google.dataflow.v1beta3.ICreateJobFromTemplateRequest

CreateJobFromTemplateRequest message or plain object

Returns
TypeDescription
Promise<google.dataflow.v1beta3.Job>

Promise

getTemplate(request, callback)

public getTemplate(request: google.dataflow.v1beta3.IGetTemplateRequest, callback: google.dataflow.v1beta3.TemplatesService.GetTemplateCallback): void;

Calls GetTemplate.

Parameters
NameDescription
request google.dataflow.v1beta3.IGetTemplateRequest

GetTemplateRequest message or plain object

callback google.dataflow.v1beta3.TemplatesService.GetTemplateCallback

Node-style callback called with the error, if any, and GetTemplateResponse

Returns
TypeDescription
void

getTemplate(request)

public getTemplate(request: google.dataflow.v1beta3.IGetTemplateRequest): Promise<google.dataflow.v1beta3.GetTemplateResponse>;

Calls GetTemplate.

Parameter
NameDescription
request google.dataflow.v1beta3.IGetTemplateRequest

GetTemplateRequest message or plain object

Returns
TypeDescription
Promise<google.dataflow.v1beta3.GetTemplateResponse>

Promise

launchTemplate(request, callback)

public launchTemplate(request: google.dataflow.v1beta3.ILaunchTemplateRequest, callback: google.dataflow.v1beta3.TemplatesService.LaunchTemplateCallback): void;

Calls LaunchTemplate.

Parameters
NameDescription
request ILaunchTemplateRequest

LaunchTemplateRequest message or plain object

callback google.dataflow.v1beta3.TemplatesService.LaunchTemplateCallback

Node-style callback called with the error, if any, and LaunchTemplateResponse

Returns
TypeDescription
void

launchTemplate(request)

public launchTemplate(request: google.dataflow.v1beta3.ILaunchTemplateRequest): Promise<google.dataflow.v1beta3.LaunchTemplateResponse>;

Calls LaunchTemplate.

Parameter
NameDescription
request ILaunchTemplateRequest

LaunchTemplateRequest message or plain object

Returns
TypeDescription
Promise<google.dataflow.v1beta3.LaunchTemplateResponse>

Promise