Class GrpcToolsStub (0.55.0)

public class GrpcToolsStub extends ToolsStub

gRPC stub implementation for the Tools service API.

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

Inheritance

java.lang.Object > ToolsStub > GrpcToolsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ToolsStubSettings settings)

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

Constructors

GrpcToolsStub(ToolsStubSettings settings, ClientContext clientContext)

protected GrpcToolsStub(ToolsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcToolsStub, 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

GrpcToolsStub(ToolsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcToolsStub(ToolsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcToolsStub, 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 GrpcStubCallableFactory

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

getLocationCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
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