# Common Protos for Google Cloud APIs Client - Class Query (1.0.0)

1.0.0 (latest) 0.8.3 0.7.0 0.6.0 0.5.2 0.4.2 0.3.8 Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class Query.

Query job statistics.

Generated from protobuf message `google.cloud.audit.BigQueryAuditMetadata.JobStats.Query`

## Namespace

Google \\ Cloud \\ Audit \\ BigQueryAuditMetadata \\ JobStats

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ total_processed_bytes` | `int|string` Total bytes processed by the query job. |
| `↳ total_billed_bytes` | `int|string` Total bytes billed by the query job. |
| `↳ billing_tier` | `int` The tier assigned by the CPU-based billing. |
| `↳ referenced_tables` | `string[]` Tables accessed by the query job. |
| `↳ referenced_views` | `string[]` Views accessed by the query job. |
| `↳ referenced_routines` | `string[]` Routines accessed by the query job. |
| `↳ output_row_count` | `int|string` Number of output rows produced by the query job. |
| `↳ cache_hit` | `bool` True if the query job results were read from the query cache. |

### getTotalProcessedBytes

Total bytes processed by the query job.

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

### setTotalProcessedBytes

Total bytes processed by the query job.

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

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

### getTotalBilledBytes

Total bytes billed by the query job.

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

### setTotalBilledBytes

Total bytes billed by the query job.

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

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

### getBillingTier

The tier assigned by the CPU-based billing.

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

### setBillingTier

The tier assigned by the CPU-based billing.

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

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

### getReferencedTables

Tables accessed by the query job.

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

### setReferencedTables

Tables accessed by the query job.

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

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

### getReferencedViews

Views accessed by the query job.

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

### setReferencedViews

Views accessed by the query job.

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

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

### getReferencedRoutines

Routines accessed by the query job.

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

### setReferencedRoutines

Routines accessed by the query job.

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

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

### getOutputRowCount

Number of output rows produced by the query job.

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

### setOutputRowCount

Number of output rows produced by the query job.

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

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

### getCacheHit

True if the query job results were read from the query cache.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setCacheHit

True if the query job results were read from the query cache.

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

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