# Common Protos for Google Cloud APIs Client - Class TableCopy (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 TableCopy.

Table copy job configuration.

Generated from protobuf message `google.cloud.audit.BigQueryAuditMetadata.JobConfig.TableCopy`

## Namespace

Google \\ Cloud \\ Audit \\ BigQueryAuditMetadata \\ JobConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_tables` | `string[]` Source tables. Entire list is truncated if exceeds 50K. |
| `↳ source_tables_truncated` | `bool` True if the source_tables field was truncated. |
| `↳ destination_table` | `string` Destination table. |
| `↳ create_disposition` | `int` Destination table create disposition. |
| `↳ write_disposition` | `int` Destination table write disposition. |
| `↳ destination_table_encryption` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.EncryptionInfo` Result table encryption information. Set when non-default encryption is used. |
| `↳ operation_type` | `int` Supported operation types in the table copy job. |
| `↳ destination_expiration_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Expiration time set on the destination table. Expired tables will be deleted and their storage reclaimed. |

### getSourceTables

Source tables. Entire list is truncated if exceeds 50K.

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

### setSourceTables

Source tables. Entire list is truncated if exceeds 50K.

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

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

### getSourceTablesTruncated

True if the source_tables field was truncated.

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

### setSourceTablesTruncated

True if the source_tables field was truncated.

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

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

### getDestinationTable

Destination table.

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

### setDestinationTable

Destination table.

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

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

### getCreateDisposition

Destination table create disposition.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CreateDisposition](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.CreateDisposition). |

### setCreateDisposition

Destination table create disposition.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CreateDisposition](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.CreateDisposition). |

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

### getWriteDisposition

Destination table write disposition.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [WriteDisposition](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.WriteDisposition). |

### setWriteDisposition

Destination table write disposition.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [WriteDisposition](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.WriteDisposition). |

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

### getDestinationTableEncryption

Result table encryption information. Set when non-default encryption is
used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.EncryptionInfo|null` |   |

### hasDestinationTableEncryption

### clearDestinationTableEncryption

### setDestinationTableEncryption

Result table encryption information. Set when non-default encryption is
used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.EncryptionInfo` |

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

### getOperationType

Supported operation types in the table copy job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [OperationType](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.OperationType). |

### setOperationType

Supported operation types in the table copy job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [OperationType](https://docs.cloud.google.com/php/docs/reference/cloud-common-protos/latest/Audit.BigQueryAuditMetadata.OperationType). |

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

### getDestinationExpirationTime

Expiration time set on the destination table. Expired tables will be
deleted and their storage reclaimed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasDestinationExpirationTime

### clearDestinationExpirationTime

### setDestinationExpirationTime

Expiration time set on the destination table. Expired tables will be
deleted and their storage reclaimed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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