Class HttpJsonToolsStub (0.54.0)

public class HttpJsonToolsStub extends ToolsStub

REST stub implementation for the Tools service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ToolsStub > HttpJsonToolsStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonToolsStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonToolsStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonToolsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonToolsStub
Exceptions
Type Description
IOException

create(ToolsStubSettings settings)

public static final HttpJsonToolsStub create(ToolsStubSettings settings)
Parameter
Name Description
settings ToolsStubSettings
Returns
Type Description
HttpJsonToolsStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonToolsStub(ToolsStubSettings settings, ClientContext clientContext)

protected HttpJsonToolsStub(ToolsStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonToolsStub, 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
Name Description
settings ToolsStubSettings
clientContext ClientContext

HttpJsonToolsStub(ToolsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonToolsStub(ToolsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonToolsStub, 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
Name Description
settings ToolsStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createToolCallable()

public UnaryCallable<CreateToolRequest,Tool> createToolCallable()
Returns
Type Description
UnaryCallable<CreateToolRequest,Tool>
Overrides

deleteToolCallable()

public UnaryCallable<DeleteToolRequest,Empty> deleteToolCallable()
Returns
Type Description
UnaryCallable<DeleteToolRequest,Empty>
Overrides

exportToolsCallable()

public UnaryCallable<ExportToolsRequest,Operation> exportToolsCallable()
Returns
Type Description
UnaryCallable<ExportToolsRequest,Operation>
Overrides

exportToolsOperationCallable()

public OperationCallable<ExportToolsRequest,ExportToolsResponse,ExportToolsMetadata> exportToolsOperationCallable()
Returns
Type Description
OperationCallable<ExportToolsRequest,ExportToolsResponse,ExportToolsMetadata>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getLocationCallable()

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

getToolCallable()

public UnaryCallable<GetToolRequest,Tool> getToolCallable()
Returns
Type Description
UnaryCallable<GetToolRequest,Tool>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLocationsCallable()

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

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ToolsClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

listToolsCallable()

public UnaryCallable<ListToolsRequest,ListToolsResponse> listToolsCallable()
Returns
Type Description
UnaryCallable<ListToolsRequest,ListToolsResponse>
Overrides

listToolsPagedCallable()

public UnaryCallable<ListToolsRequest,ToolsClient.ListToolsPagedResponse> listToolsPagedCallable()
Returns
Type Description
UnaryCallable<ListToolsRequest,ListToolsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateToolCallable()

public UnaryCallable<UpdateToolRequest,Tool> updateToolCallable()
Returns
Type Description
UnaryCallable<UpdateToolRequest,Tool>
Overrides