Class TemplatesServiceGrpc.TemplatesServiceBlockingV2Stub (0.66.0)

public static final class TemplatesServiceGrpc.TemplatesServiceBlockingV2Stub extends AbstractBlockingStub<TemplatesServiceGrpc.TemplatesServiceBlockingV2Stub>

A stub to allow clients to do synchronous rpc calls to service TemplatesService.

Provides a method to create Cloud Dataflow jobs from templates.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > TemplatesServiceGrpc.TemplatesServiceBlockingV2Stub

Methods

build(Channel channel, CallOptions callOptions)

protected TemplatesServiceGrpc.TemplatesServiceBlockingV2Stub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
TemplatesServiceGrpc.TemplatesServiceBlockingV2Stub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createJobFromTemplate(CreateJobFromTemplateRequest request)

public Job createJobFromTemplate(CreateJobFromTemplateRequest request)

Creates a Cloud Dataflow job from a template. Do not enter confidential information when you supply string values using the API. To create a job, we recommend using projects.locations.templates.create with a regional endpoint. Using projects.templates.create is not recommended, because your job will always start in us-central1.

Parameter
Name Description
request CreateJobFromTemplateRequest
Returns
Type Description
Job

getTemplate(GetTemplateRequest request)

public GetTemplateResponse getTemplate(GetTemplateRequest request)

Get the template associated with a template. To get the template, we recommend using projects.locations.templates.get with a regional endpoint. Using projects.templates.get is not recommended, because only templates that are running in us-central1 are retrieved.

Parameter
Name Description
request GetTemplateRequest
Returns
Type Description
GetTemplateResponse

launchTemplate(LaunchTemplateRequest request)

public LaunchTemplateResponse launchTemplate(LaunchTemplateRequest request)

Launches a template. To launch a template, we recommend using projects.locations.templates.launch with a regional endpoint. Using projects.templates.launch is not recommended, because jobs launched from the template will always start in us-central1.

Parameter
Name Description
request LaunchTemplateRequest
Returns
Type Description
LaunchTemplateResponse