Class HttpJsonWorkflowsStub (2.40.0)

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.

Inheritance

java.lang.Object > WorkflowsStub > HttpJsonWorkflowsStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonWorkflowsStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonWorkflowsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonWorkflowsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonWorkflowsStub
Exceptions
TypeDescription
IOException

create(WorkflowsStubSettings settings)

public static final HttpJsonWorkflowsStub create(WorkflowsStubSettings settings)
Parameter
NameDescription
settingsWorkflowsStubSettings
Returns
TypeDescription
HttpJsonWorkflowsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext)

protected HttpJsonWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsWorkflowsStubSettings
clientContextClientContext

HttpJsonWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonWorkflowsStub(WorkflowsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsWorkflowsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createWorkflowCallable()

public UnaryCallable<CreateWorkflowRequest,Operation> createWorkflowCallable()
Returns
TypeDescription
UnaryCallable<CreateWorkflowRequest,Operation>
Overrides

createWorkflowOperationCallable()

public OperationCallable<CreateWorkflowRequest,Workflow,OperationMetadata> createWorkflowOperationCallable()
Returns
TypeDescription
OperationCallable<CreateWorkflowRequest,Workflow,OperationMetadata>
Overrides

deleteWorkflowCallable()

public UnaryCallable<DeleteWorkflowRequest,Operation> deleteWorkflowCallable()
Returns
TypeDescription
UnaryCallable<DeleteWorkflowRequest,Operation>
Overrides

deleteWorkflowOperationCallable()

public OperationCallable<DeleteWorkflowRequest,Empty,OperationMetadata> deleteWorkflowOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteWorkflowRequest,Empty,OperationMetadata>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

getWorkflowCallable()

public UnaryCallable<GetWorkflowRequest,Workflow> getWorkflowCallable()
Returns
TypeDescription
UnaryCallable<GetWorkflowRequest,Workflow>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,WorkflowsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listWorkflowsCallable()

public UnaryCallable<ListWorkflowsRequest,ListWorkflowsResponse> listWorkflowsCallable()
Returns
TypeDescription
UnaryCallable<ListWorkflowsRequest,ListWorkflowsResponse>
Overrides

listWorkflowsPagedCallable()

public UnaryCallable<ListWorkflowsRequest,WorkflowsClient.ListWorkflowsPagedResponse> listWorkflowsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListWorkflowsRequest,ListWorkflowsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateWorkflowCallable()

public UnaryCallable<UpdateWorkflowRequest,Operation> updateWorkflowCallable()
Returns
TypeDescription
UnaryCallable<UpdateWorkflowRequest,Operation>
Overrides

updateWorkflowOperationCallable()

public OperationCallable<UpdateWorkflowRequest,Workflow,OperationMetadata> updateWorkflowOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateWorkflowRequest,Workflow,OperationMetadata>
Overrides