Class GrpcWorkflowsStub
- java.lang.Object
-
- com.google.cloud.workflows.v1.stub.WorkflowsStub
-
- com.google.cloud.workflows.v1.stub.GrpcWorkflowsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@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 protectedGrpcWorkflowsStub(WorkflowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcWorkflowsStub, using the given settings.protectedGrpcWorkflowsStub(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 booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcWorkflowsStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcWorkflowsStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcWorkflowsStubcreate(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.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>getLocationCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetWorkflowRequest,Workflow>getWorkflowCallable()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>listLocationsCallable()com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,WorkflowsClient.ListLocationsPagedResponse>listLocationsPagedCallable()com.google.api.gax.rpc.UnaryCallable<ListWorkflowsRequest,ListWorkflowsResponse>listWorkflowsCallable()com.google.api.gax.rpc.UnaryCallable<ListWorkflowsRequest,WorkflowsClient.ListWorkflowsPagedResponse>listWorkflowsPagedCallable()voidshutdown()voidshutdownNow()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.v1.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:
getOperationsStubin classWorkflowsStub
-
listWorkflowsCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkflowsRequest,ListWorkflowsResponse> listWorkflowsCallable()
- Overrides:
listWorkflowsCallablein classWorkflowsStub
-
listWorkflowsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListWorkflowsRequest,WorkflowsClient.ListWorkflowsPagedResponse> listWorkflowsPagedCallable()
- Overrides:
listWorkflowsPagedCallablein classWorkflowsStub
-
getWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<GetWorkflowRequest,Workflow> getWorkflowCallable()
- Overrides:
getWorkflowCallablein classWorkflowsStub
-
createWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<CreateWorkflowRequest,com.google.longrunning.Operation> createWorkflowCallable()
- Overrides:
createWorkflowCallablein classWorkflowsStub
-
createWorkflowOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateWorkflowRequest,Workflow,OperationMetadata> createWorkflowOperationCallable()
- Overrides:
createWorkflowOperationCallablein classWorkflowsStub
-
deleteWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteWorkflowRequest,com.google.longrunning.Operation> deleteWorkflowCallable()
- Overrides:
deleteWorkflowCallablein classWorkflowsStub
-
deleteWorkflowOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteWorkflowRequest,com.google.protobuf.Empty,OperationMetadata> deleteWorkflowOperationCallable()
- Overrides:
deleteWorkflowOperationCallablein classWorkflowsStub
-
updateWorkflowCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateWorkflowRequest,com.google.longrunning.Operation> updateWorkflowCallable()
- Overrides:
updateWorkflowCallablein classWorkflowsStub
-
updateWorkflowOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateWorkflowRequest,Workflow,OperationMetadata> updateWorkflowOperationCallable()
- Overrides:
updateWorkflowOperationCallablein classWorkflowsStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classWorkflowsStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,WorkflowsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classWorkflowsStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallablein classWorkflowsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-