public static final class TemplatesServiceGrpc.TemplatesServiceStub extends AbstractAsyncStub<TemplatesServiceGrpc.TemplatesServiceStub>A stub to allow clients to do asynchronous 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.AbstractAsyncStub > TemplatesServiceGrpc.TemplatesServiceStubMethods
build(Channel channel, CallOptions callOptions)
protected TemplatesServiceGrpc.TemplatesServiceStub build(Channel channel, CallOptions callOptions)| Parameters | |
|---|---|
| Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
| Returns | |
|---|---|
| Type | Description |
TemplatesServiceGrpc.TemplatesServiceStub |
|
createJobFromTemplate(CreateJobFromTemplateRequest request, StreamObserver<Job> responseObserver)
public void createJobFromTemplate(CreateJobFromTemplateRequest request, StreamObserver<Job> responseObserver) 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.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateJobFromTemplateRequest |
responseObserver |
io.grpc.stub.StreamObserver<Job> |
getTemplate(GetTemplateRequest request, StreamObserver<GetTemplateResponse> responseObserver)
public void getTemplate(GetTemplateRequest request, StreamObserver<GetTemplateResponse> responseObserver) 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.
| Parameters | |
|---|---|
| Name | Description |
request |
GetTemplateRequest |
responseObserver |
io.grpc.stub.StreamObserver<GetTemplateResponse> |
launchTemplate(LaunchTemplateRequest request, StreamObserver<LaunchTemplateResponse> responseObserver)
public void launchTemplate(LaunchTemplateRequest request, StreamObserver<LaunchTemplateResponse> responseObserver) 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.
| Parameters | |
|---|---|
| Name | Description |
request |
LaunchTemplateRequest |
responseObserver |
io.grpc.stub.StreamObserver<LaunchTemplateResponse> |