Class WorkflowsGrpc.WorkflowsStub (2.45.0)

public static final class WorkflowsGrpc.WorkflowsStub extends AbstractAsyncStub<WorkflowsGrpc.WorkflowsStub>

A stub to allow clients to do asynchronous rpc calls to service Workflows.

Workflows is used to deploy and execute workflow programs. Workflows makes sure the program executes reliably, despite hardware and networking interruptions.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > WorkflowsGrpc.WorkflowsStub

Methods

build(Channel channel, CallOptions callOptions)

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

createWorkflow(CreateWorkflowRequest request, StreamObserver<Operation> responseObserver)

public void createWorkflow(CreateWorkflowRequest request, StreamObserver<Operation> responseObserver)

Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a ALREADY_EXISTS error.

Parameters
Name Description
request CreateWorkflowRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

deleteWorkflow(DeleteWorkflowRequest request, StreamObserver<Operation> responseObserver)

public void deleteWorkflow(DeleteWorkflowRequest request, StreamObserver<Operation> responseObserver)

Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow.

Parameters
Name Description
request DeleteWorkflowRequest
responseObserver io.grpc.stub.StreamObserver<Operation>

getWorkflow(GetWorkflowRequest request, StreamObserver<Workflow> responseObserver)

public void getWorkflow(GetWorkflowRequest request, StreamObserver<Workflow> responseObserver)

Gets details of a single workflow.

Parameters
Name Description
request GetWorkflowRequest
responseObserver io.grpc.stub.StreamObserver<Workflow>

listWorkflows(ListWorkflowsRequest request, StreamObserver<ListWorkflowsResponse> responseObserver)

public void listWorkflows(ListWorkflowsRequest request, StreamObserver<ListWorkflowsResponse> responseObserver)

Lists workflows in a given project and location. The default order is not specified.

Parameters
Name Description
request ListWorkflowsRequest
responseObserver io.grpc.stub.StreamObserver<ListWorkflowsResponse>

updateWorkflow(UpdateWorkflowRequest request, StreamObserver<Operation> responseObserver)

public void updateWorkflow(UpdateWorkflowRequest request, StreamObserver<Operation> responseObserver)

Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions.

Parameters
Name Description
request UpdateWorkflowRequest
responseObserver io.grpc.stub.StreamObserver<Operation>