# Class GcpClientCall.SimpleGcpClientCall&lt;ReqT,RespT&gt; (1.11.0)

    public static class GcpClientCall.SimpleGcpClientCall<ReqT,RespT> extends ForwardingClientCall<ReqT,RespT>

A simple wrapper of ClientCall.

It defines the callback function to manage the number of active streams of a ChannelRef
everytime a call is started/closed.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> io.grpc.ClientCall \> io.grpc.PartialForwardingClientCall \> io.grpc.ForwardingClientCall \> GcpClientCall.SimpleGcpClientCall\<ReqT,RespT\>

## Inherited Members

io.grpc.ForwardingClientCall.delegate() io.grpc.ForwardingClientCall.sendMessage(ReqT) io.grpc.ForwardingClientCall.start(io.grpc.ClientCall.Listener\<RespT\>,io.grpc.Metadata) io.grpc.PartialForwardingClientCall.cancel(java.lang.String,java.lang.Throwable) io.grpc.PartialForwardingClientCall.getAttributes() io.grpc.PartialForwardingClientCall.halfClose() io.grpc.PartialForwardingClientCall.isReady() io.grpc.PartialForwardingClientCall.request(int) io.grpc.PartialForwardingClientCall.setMessageCompression(boolean) io.grpc.PartialForwardingClientCall.toString() [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.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-)

| ## Type Parameters ||
|---|---|
| **Name** | **Description** |
| `ReqT` |   |
| `RespT` |   |

## Constructors

### SimpleGcpClientCall(GcpManagedChannel delegateChannel, GcpManagedChannel.ChannelRef channelRef, MethodDescriptor\<ReqT,RespT\> methodDescriptor, CallOptions callOptions)

    protected SimpleGcpClientCall(GcpManagedChannel delegateChannel, GcpManagedChannel.ChannelRef channelRef, MethodDescriptor<ReqT,RespT> methodDescriptor, CallOptions callOptions)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `delegateChannel` | `https://docs.cloud.google.com/java/docs/reference/grpc-gcp/latest/com.google.cloud.grpc.GcpManagedChannel` |
| `channelRef` | `https://docs.cloud.google.com/java/docs/reference/grpc-gcp/latest/com.google.cloud.grpc.GcpManagedChannel.ChannelRef` |
| `methodDescriptor` | `io.grpc.MethodDescriptor<ReqT,RespT>` |
| `callOptions` | `io.grpc.CallOptions` |

## Methods

### cancel(String message, Throwable cause)

    public void cancel(String message, Throwable cause)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `message` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `cause` | `https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html` |

**Overrides** io.grpc.PartialForwardingClientCall.cancel(java.lang.String,java.lang.Throwable)

### delegate()

    protected ClientCall<ReqT,RespT> delegate()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.ClientCall<ReqT,RespT>` |   |

**Overrides** io.grpc.ForwardingClientCall.delegate()

### start(ClientCall.Listener\<RespT\> responseListener, Metadata headers)

    public void start(ClientCall.Listener<RespT> responseListener, Metadata headers)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `responseListener` | `io.grpc.ClientCall.Listener<RespT>` |
| `headers` | `io.grpc.Metadata` |

**Overrides** io.grpc.ForwardingClientCall.start(io.grpc.ClientCall.Listener\<RespT\>,io.grpc.Metadata)