# Google Cloud Vision Ai V1 Client - Class ModelSchema (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 ModelSchema.

The schema is defined as an OpenAPI 3.0.2 [Schema
Object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.2.md#schemaObject).

Generated from protobuf message `google.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1 \\ CustomProcessorSourceInfo

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ instances_schema` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.GcsSource` Cloud Storage location to a YAML file that defines the format of a single instance used in prediction and explanation requests. |
| `↳ parameters_schema` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.GcsSource` Cloud Storage location to a YAML file that defines the prediction and explanation parameters. |
| `↳ predictions_schema` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.GcsSource` Cloud Storage location to a YAML file that defines the format of a single prediction or explanation. |

### getInstancesSchema

Cloud Storage location to a YAML file that defines the format of a single
instance used in prediction and explanation requests.

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

### hasInstancesSchema

### clearInstancesSchema

### setInstancesSchema

Cloud Storage location to a YAML file that defines the format of a single
instance used in prediction and explanation requests.

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

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

### getParametersSchema

Cloud Storage location to a YAML file that defines the prediction and
explanation parameters.

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

### hasParametersSchema

### clearParametersSchema

### setParametersSchema

Cloud Storage location to a YAML file that defines the prediction and
explanation parameters.

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

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

### getPredictionsSchema

Cloud Storage location to a YAML file that defines the format of a single
prediction or explanation.

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

### hasPredictionsSchema

### clearPredictionsSchema

### setPredictionsSchema

Cloud Storage location to a YAML file that defines the format of a single
prediction or explanation.

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

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