Class GrpcWorkflowsStub
- java.lang.Object
-
- com.google.cloud.workflows.v1beta.stub.WorkflowsStub
-
- com.google.cloud.workflows.v1beta.stub.GrpcWorkflowsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcWorkflowsStub extends WorkflowsStub
gRPC stub implementation for the Workflows service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcWorkflowsStub(WorkflowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcWorkflowsStub, using the given settings.protected
GrpcWorkflowsStub(WorkflowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcWorkflowsStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static GrpcWorkflowsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcWorkflowsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcWorkflowsStub
create(WorkflowsStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateWorkflowRequest,com.google.longrunning.Operation>
createWorkflowCallable()
com.google.api.gax.rpc.OperationCallable<CreateWorkflowRequest,Workflow,OperationMetadata>
createWorkflowOperationCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteWorkflowRequest,com.google.longrunning.Operation>
deleteWorkflowCallable()
com.google.api.gax.rpc.OperationCallable<DeleteWorkflowRequest,com.google.protobuf.Empty,OperationMetadata>
deleteWorkflowOperationCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
com.google.api.gax.rpc.UnaryCallable<GetWorkflowRequest,Workflow>
getWorkflowCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListWorkflowsRequest,ListWorkflowsResponse>
listWorkflowsCallable()
com.google.api.gax.rpc.UnaryCallable<ListWorkflowsRequest,WorkflowsClient.ListWorkflowsPagedResponse>
listWorkflowsPagedCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<UpdateWorkflowRequest,com.google.longrunning.Operation>
updateWorkflowCallable()
com.google.api.gax.rpc.OperationCallable<UpdateWorkflowRequest,Workflow,OperationMetadata>
updateWorkflowOperationCallable()
-
Methods inherited from class com.google.cloud.workflows.v1beta.stub.WorkflowsStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcWorkflowsStub
protected GrpcWorkflowsStub(WorkflowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcWorkflowsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcWorkflowsStub
protected GrpcWorkflowsStub(WorkflowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcWorkflowsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcWorkflowsStub create(WorkflowsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcWorkflowsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcWorkflowsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStub
in classWorkflowsStub
-
listWorkflowsCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkflowsRequest,ListWorkflowsResponse> listWorkflowsCallable()
- Overrides:
listWorkflowsCallable
in classWorkflowsStub
-
listWorkflowsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkflowsRequest,WorkflowsClient.ListWorkflowsPagedResponse> listWorkflowsPagedCallable()
- Overrides:
listWorkflowsPagedCallable
in classWorkflowsStub
-
getWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<GetWorkflowRequest,Workflow> getWorkflowCallable()
- Overrides:
getWorkflowCallable
in classWorkflowsStub
-
createWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<CreateWorkflowRequest,com.google.longrunning.Operation> createWorkflowCallable()
- Overrides:
createWorkflowCallable
in classWorkflowsStub
-
createWorkflowOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateWorkflowRequest,Workflow,OperationMetadata> createWorkflowOperationCallable()
- Overrides:
createWorkflowOperationCallable
in classWorkflowsStub
-
deleteWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteWorkflowRequest,com.google.longrunning.Operation> deleteWorkflowCallable()
- Overrides:
deleteWorkflowCallable
in classWorkflowsStub
-
deleteWorkflowOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteWorkflowRequest,com.google.protobuf.Empty,OperationMetadata> deleteWorkflowOperationCallable()
- Overrides:
deleteWorkflowOperationCallable
in classWorkflowsStub
-
updateWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateWorkflowRequest,com.google.longrunning.Operation> updateWorkflowCallable()
- Overrides:
updateWorkflowCallable
in classWorkflowsStub
-
updateWorkflowOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateWorkflowRequest,Workflow,OperationMetadata> updateWorkflowOperationCallable()
- Overrides:
updateWorkflowOperationCallable
in classWorkflowsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classWorkflowsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-