# Google API Core Client - Class ForwardingCall (1.43.0)

1.43.0 (latest) 1.42.5 1.40.0 1.38.2 1.36.1 1.35.1

> [!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).

Reference documentation and code samples for the Google API Core Client class ForwardingCall.

Class ForwardingCall wraps a \\Grpc\\AbstractCall.

## Namespace

Google \\ ApiCore \\ Transport \\ Grpc

## Methods

### __construct

ForwardingCall constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `innerCall` | `Grpc\AbstractCall|https://docs.cloud.google.com/php/docs/reference/gax/latest/Transport.Grpc.ForwardingCall` |

### getMetadata

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `mixed` | The metadata sent by the server |

### getTrailingMetadata

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `mixed` | The trailing metadata sent by the server |

### getPeer

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` | The URI of the endpoint |

### cancel

Cancels the call.