# Google Cloud Vision Ai V1 Client - Class CreateDataSchemaRequest (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class CreateDataSchemaRequest.

Request message for CreateDataSchema.

Generated from protobuf message `google.cloud.visionai.v1.CreateDataSchemaRequest`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource where this data schema will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}` |
| `↳ data_schema` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.DataSchema` Required. The data schema to create. |

### getParent

Required. The parent resource where this data schema will be created.

Format:
`projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`

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

### setParent

Required. The parent resource where this data schema will be created.

Format:
`projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`

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

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

### getDataSchema

Required. The data schema to create.

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

### hasDataSchema

### clearDataSchema

### setDataSchema

Required. The data schema to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource where this data schema will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}` Please see WarehouseClient::corpusName() for help formatting this field. |
| `dataSchema` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.DataSchema` Required. The data schema to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.CreateDataSchemaRequest` |   |