# Google API Core Client - Class Call (1.43.0)

1.43.0 (latest) 1.42.5 1.40.0 1.38.2 1.36.1 1.35.1 Reference documentation and code samples for the Google API Core Client class Call.

Contains information necessary to manage a network request.

## Namespace

Google \\ ApiCore

## Methods

### __construct

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `method` | `string` |
| `decodeType` | `string` |
| `message` | `mixed|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/Message` |
| `descriptor` | `array|null` |
| `callType` | `int` |

### getMethod

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### getCallType

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### getDecodeType

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### getMessage

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `mixed|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/Message` |   |

### getDescriptor

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `array|null` |   |

### withMessage

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `message` | `mixed|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/Message` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/gax/latest/Call` |   |

## Constants

### UNARY_CALL

    Value: 0

### BIDI_STREAMING_CALL

    Value: 1

### CLIENT_STREAMING_CALL

    Value: 2

### SERVER_STREAMING_CALL

    Value: 3

### LONGRUNNING_CALL

    Value: 4

### PAGINATED_CALL

    Value: 5