2.5.4 (latest) 2.5.3 2.3.1 2.2.1 2.1.5 2.0.0 1.10.4 1.9.0 1.8.0 1.7.1 1.6.0 1.5.0 1.4.1 1.3.2 1.2.12 Reference documentation and code samples for the Google BigQuery Storage V1 Client class ProtoData.

ProtoData contains the data rows and schema when constructing append
requests.

Generated from protobuf message `google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData`

## Namespace

Google \\ Cloud \\ BigQuery \\ Storage \\ V1 \\ AppendRowsRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ writer_schema` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-storage/latest/V1.ProtoSchema` Optional. The protocol buffer schema used to serialize the data. Provide this value whenever: \* \* You send the first request of an RPC connection. \* \* You change the input schema. \* \* You specify a new destination table. |
| `↳ rows` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-storage/latest/V1.ProtoRows` Required. Serialized row data in protobuf message format. Currently, the backend expects the serialized rows to adhere to proto2 semantics when appending rows, particularly with respect to how default values are encoded. |

### getWriterSchema

Optional. The protocol buffer schema used to serialize the data. Provide
this value whenever:

- You send the first request of an RPC connection.

- You change the input schema.

- You specify a new destination table.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-storage/latest/V1.ProtoSchema|null` |   |

### hasWriterSchema

### clearWriterSchema

### setWriterSchema

Optional. The protocol buffer schema used to serialize the data. Provide
this value whenever:

- You send the first request of an RPC connection.

- You change the input schema.

- You specify a new destination table.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-storage/latest/V1.ProtoSchema` |

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

### getRows

Required. Serialized row data in protobuf message format.

Currently, the backend expects the serialized rows to adhere to
proto2 semantics when appending rows, particularly with respect to
how default values are encoded.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-storage/latest/V1.ProtoRows|null` |   |

### hasRows

### clearRows

### setRows

Required. Serialized row data in protobuf message format.

Currently, the backend expects the serialized rows to adhere to
proto2 semantics when appending rows, particularly with respect to
how default values are encoded.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-storage/latest/V1.ProtoRows` |

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