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.
Generated from protobuf message google.cloud.visionai.v1.CustomProcessorSourceInfo.ModelSchema
Namespace
Google \ Cloud \ VisionAI \ V1 \ CustomProcessorSourceInfoMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ instances_schema |
Google\Cloud\VisionAI\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 |
Google\Cloud\VisionAI\V1\GcsSource
Cloud Storage location to a YAML file that defines the prediction and explanation parameters. |
↳ predictions_schema |
Google\Cloud\VisionAI\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 |
Google\Cloud\VisionAI\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 |
Google\Cloud\VisionAI\V1\GcsSource
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getParametersSchema
Cloud Storage location to a YAML file that defines the prediction and explanation parameters.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\VisionAI\V1\GcsSource|null |
|
hasParametersSchema
clearParametersSchema
setParametersSchema
Cloud Storage location to a YAML file that defines the prediction and explanation parameters.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\VisionAI\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 |
Google\Cloud\VisionAI\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 |
Google\Cloud\VisionAI\V1\GcsSource
|
| Returns | |
|---|---|
| Type | Description |
$this |
|