Class HttpJsonWorkflowsStub
- java.lang.Object
-
- com.google.cloud.workflows.v1beta.stub.WorkflowsStub
-
- com.google.cloud.workflows.v1beta.stub.HttpJsonWorkflowsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonWorkflowsStub extends WorkflowsStub
REST 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
HttpJsonWorkflowsStub(WorkflowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonWorkflowsStub, using the given settings.protected
HttpJsonWorkflowsStub(WorkflowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonWorkflowsStub, 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 HttpJsonWorkflowsStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonWorkflowsStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonWorkflowsStub
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.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
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
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonWorkflowsStub
protected HttpJsonWorkflowsStub(WorkflowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonWorkflowsStub, 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
-
HttpJsonWorkflowsStub
protected HttpJsonWorkflowsStub(WorkflowsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonWorkflowsStub, 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 HttpJsonWorkflowsStub create(WorkflowsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonWorkflowsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonWorkflowsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
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
-
-