# Google API Common Protos Client - Class BatchingDescriptorProto (4.14.0)

4.14.0 (latest) 4.13.0 4.12.5 4.11.0 4.10.0 4.9.0 4.8.3 Reference documentation and code samples for the Google API Common Protos Client class BatchingDescriptorProto.

`BatchingDescriptorProto` specifies the fields of the request message to be
used for batching, and, optionally, the fields of the response message to be
used for demultiplexing.

Generated from protobuf message `google.api.BatchingDescriptorProto`

## Namespace

Google \\ Api

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ batched_field` | `string` The repeated field in the request message to be aggregated by batching. |
| `↳ discriminator_fields` | `string[]` A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests. |
| `↳ subresponse_field` | `string` Optional. When present, indicates the field in the response message to be used to demultiplex the response into multiple response messages, in correspondence with the multiple request messages originally batched together. |

### getBatchedField

The repeated field in the request message to be aggregated by batching.

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

### setBatchedField

The repeated field in the request message to be aggregated by batching.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDiscriminatorFields

A list of the fields in the request message. Two requests will be batched
together only if the values of every field specified in
`request_discriminator_fields` is equal between the two requests.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setDiscriminatorFields

A list of the fields in the request message. Two requests will be batched
together only if the values of every field specified in
`request_discriminator_fields` is equal between the two requests.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSubresponseField

Optional. When present, indicates the field in the response message to be
used to demultiplex the response into multiple response messages, in
correspondence with the multiple request messages originally batched
together.

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

### setSubresponseField

Optional. When present, indicates the field in the response message to be
used to demultiplex the response into multiple response messages, in
correspondence with the multiple request messages originally batched
together.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |