# Class GrpcToolServiceStub (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

    public class GrpcToolServiceStub extends ToolServiceStub

gRPC stub implementation for the ToolService service API.

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

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> [ToolServiceStub](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub) \> GrpcToolServiceStub

## Inherited Members

[ToolServiceStub.close()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_close__) [ToolServiceStub.executeToolCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_executeToolCallable__) [ToolServiceStub.getLocationCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_getLocationCallable__) [ToolServiceStub.listLocationsCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_listLocationsCallable__) [ToolServiceStub.listLocationsPagedCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_listLocationsPagedCallable__) [ToolServiceStub.retrieveToolSchemaCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_retrieveToolSchemaCallable__) [ToolServiceStub.retrieveToolsCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_retrieveToolsCallable__) [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### create(ClientContext clientContext)

    public static final GrpcToolServiceStub create(ClientContext clientContext)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `clientContext` | `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.ClientContext.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.GrpcToolServiceStub` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

    public static final GrpcToolServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `clientContext` | `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.ClientContext.html` |
| `callableFactory` | `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.grpc.GrpcStubCallableFactory.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.GrpcToolServiceStub` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

### create(ToolServiceStubSettings settings)

    public static final GrpcToolServiceStub create(ToolServiceStubSettings settings)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `settings` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStubSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.GrpcToolServiceStub` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html` |   |

## Constructors

### GrpcToolServiceStub(ToolServiceStubSettings settings, ClientContext clientContext)

    protected GrpcToolServiceStub(ToolServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcToolServiceStub, 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` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStubSettings` |
| `clientContext` | `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.ClientContext.html` |

### GrpcToolServiceStub(ToolServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

    protected GrpcToolServiceStub(ToolServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcToolServiceStub, 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` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStubSettings` |
| `clientContext` | `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.ClientContext.html` |
| `callableFactory` | `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.grpc.GrpcStubCallableFactory.html` |

## Methods

### awaitTermination(long duration, TimeUnit unit)

    public boolean awaitTermination(long duration, TimeUnit unit)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `duration` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `unit` | `https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

| **Exceptions** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html` |   |

### close()

    public final void close()

**Overrides** [ToolServiceStub.close()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_close__)

### executeToolCallable()

    public UnaryCallable<ExecuteToolRequest,ExecuteToolResponse> executeToolCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ExecuteToolRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ExecuteToolResponse>` |   |

**Overrides** [ToolServiceStub.executeToolCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_executeToolCallable__)

### getLocationCallable()

    public UnaryCallable<GetLocationRequest,Location> getLocationCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>` |   |

**Overrides** [ToolServiceStub.getLocationCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_getLocationCallable__)

### getOperationsStub()

    public GrpcOperationsStub getOperationsStub()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.stub.GrpcOperationsStub.html` |   |

### isShutdown()

    public boolean isShutdown()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### isTerminated()

    public boolean isTerminated()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### listLocationsCallable()

    public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>` |   |

**Overrides** [ToolServiceStub.listLocationsCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_listLocationsCallable__)

### listLocationsPagedCallable()

    public UnaryCallable<ListLocationsRequest,ToolServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<com.google.cloud.location.ListLocationsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.ToolServiceClient.ListLocationsPagedResponse>` |   |

**Overrides** [ToolServiceStub.listLocationsPagedCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_listLocationsPagedCallable__)

### retrieveToolSchemaCallable()

    public UnaryCallable<RetrieveToolSchemaRequest,RetrieveToolSchemaResponse> retrieveToolSchemaCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.RetrieveToolSchemaRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.RetrieveToolSchemaResponse>` |   |

**Overrides** [ToolServiceStub.retrieveToolSchemaCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_retrieveToolSchemaCallable__)

### retrieveToolsCallable()

    public UnaryCallable<RetrieveToolsRequest,RetrieveToolsResponse> retrieveToolsCallable()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.rpc.UnaryCallable.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.RetrieveToolsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.RetrieveToolsResponse>` |   |

**Overrides** [ToolServiceStub.retrieveToolsCallable()](https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1beta.stub.ToolServiceStub#com_google_cloud_ces_v1beta_stub_ToolServiceStub_retrieveToolsCallable__)

### shutdown()

    public void shutdown()

### shutdownNow()

    public void shutdownNow()