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

Describes the source info for a custom processor.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ vertex_model` | `string` The resource name original model hosted in the vertex AI platform. |
| `↳ product_recognizer_artifact` | `CustomProcessorSourceInfo\ProductRecognizerArtifact` Artifact for product recognizer. |
| `↳ source_type` | `int` The original product which holds the custom processor's functionality. |
| `↳ additional_info` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Output only. Additional info related to the imported custom processor. Data is filled in by app platform during the processor creation. |
| `↳ model_schema` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.CustomProcessorSourceInfo.ModelSchema` Model schema files which specifies the signature of the model. For VERTEX_CUSTOM models, instances schema is required. If instances schema is not specified during the processor creation, VisionAI Platform will try to get it from Vertex, if it doesn't exist, the creation will fail. |

### getVertexModel

The resource name original model hosted in the vertex AI platform.

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

### hasVertexModel

### setVertexModel

The resource name original model hosted in the vertex AI platform.

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

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

### getProductRecognizerArtifact

Artifact for product recognizer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `CustomProcessorSourceInfo\ProductRecognizerArtifact|null` |   |

### hasProductRecognizerArtifact

### setProductRecognizerArtifact

Artifact for product recognizer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `CustomProcessorSourceInfo\ProductRecognizerArtifact` |

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

### getSourceType

The original product which holds the custom processor's functionality.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SourceType](https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.CustomProcessorSourceInfo.SourceType). |

### setSourceType

The original product which holds the custom processor's functionality.

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

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

### getAdditionalInfo

Output only. Additional info related to the imported custom processor.

Data is filled in by app platform during the processor creation.

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

### setAdditionalInfo

Output only. Additional info related to the imported custom processor.

Data is filled in by app platform during the processor creation.

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

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

### getModelSchema

Model schema files which specifies the signature of the model.

For VERTEX_CUSTOM models, instances schema is required.
If instances schema is not specified during the processor creation,
VisionAI Platform will try to get it from Vertex, if it doesn't exist, the
creation will fail.

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

### hasModelSchema

### clearModelSchema

### setModelSchema

Model schema files which specifies the signature of the model.

For VERTEX_CUSTOM models, instances schema is required.
If instances schema is not specified during the processor creation,
VisionAI Platform will try to get it from Vertex, if it doesn't exist, the
creation will fail.

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

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

### getArtifactPath

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