# Google Cloud Dataplex V1 Client - Class IncompatibleDataSchema (1.14.0)

1.14.0 (latest) 1.13.0 1.12.0 1.11.0 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 0.16.1 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataplex V1 Client class IncompatibleDataSchema.

Action details for incompatible schemas detected by discovery.

Generated from protobuf message `google.cloud.dataplex.v1.Action.IncompatibleDataSchema`

## Namespace

Google \\ Cloud \\ Dataplex \\ V1 \\ Action

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ table` | `string` The name of the table containing invalid data. |
| `↳ existing_schema` | `string` The existing and expected schema of the table. The schema is provided as a JSON formatted structure listing columns and data types. |
| `↳ new_schema` | `string` The new and incompatible schema within the table. The schema is provided as a JSON formatted structured listing columns and data types. |
| `↳ sampled_data_locations` | `string[]` The list of data locations sampled and used for format/schema inference. |
| `↳ schema_change` | `int` Whether the action relates to a schema that is incompatible or modified. |

### getTable

The name of the table containing invalid data.

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

### setTable

The name of the table containing invalid data.

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

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

### getExistingSchema

The existing and expected schema of the table. The schema is provided as
a JSON formatted structure listing columns and data types.

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

### setExistingSchema

The existing and expected schema of the table. The schema is provided as
a JSON formatted structure listing columns and data types.

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

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

### getNewSchema

The new and incompatible schema within the table. The schema is provided
as a JSON formatted structured listing columns and data types.

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

### setNewSchema

The new and incompatible schema within the table. The schema is provided
as a JSON formatted structured listing columns and data types.

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

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

### getSampledDataLocations

The list of data locations sampled and used for format/schema
inference.

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

### setSampledDataLocations

The list of data locations sampled and used for format/schema
inference.

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

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

### getSchemaChange

Whether the action relates to a schema that is incompatible or modified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SchemaChange](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.IncompatibleDataSchema.SchemaChange). |

### setSchemaChange

Whether the action relates to a schema that is incompatible or modified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SchemaChange](https://docs.cloud.google.com/php/docs/reference/cloud-dataplex/latest/V1.Action.IncompatibleDataSchema.SchemaChange). |

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