- Resource: Processor
- ProcessorType
- ModelType
- CustomProcessorSourceInfo
- SourceType
- ModelSchema
- GcsSource
- ProcessorState
- ProcessorIOSpec
- GraphInputChannelSpec
- DataType
- GraphOutputChannelSpec
- InstanceResourceInputBindingSpec
- InstanceResourceOutputBindingSpec
- Methods
Resource: Processor
Message describing Processor object. Next ID: 19
JSON representation |
---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "displayName": string, "description": string, "processorType": enum ( |
Fields | |
---|---|
name |
name of resource. |
createTime |
Output only. [Output only] Create timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. [Output only] Update timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
labels |
Labels as key value pairs. An object containing a list of |
displayName |
Required. A user friendly display name for the processor. |
description |
Illustrative sentences for describing the functionality of the processor. |
processorType |
Output only. Processor Type. |
modelType |
Model Type. |
customProcessorSourceInfo |
Source info for customer created processor. |
state |
Output only. State of the Processor. |
processorIoSpec |
Output only. [Output only] The input / output specifications of a processor, each type of processor has fixed input / output specs which cannot be altered by customer. |
configurationTypeurl |
Output only. The corresponding configuration can be used in the Application to customize the behavior of the processor. |
supportedAnnotationTypes[] |
|
supportsPostProcessing |
Indicates if the processor supports post processing. |
ProcessorType
Type
Enums | |
---|---|
PROCESSOR_TYPE_UNSPECIFIED |
Processor Type UNSPECIFIED. |
PRETRAINED |
Processor Type PRETRAINED. Pretrained processor is developed by Vision AI App Platform with state-of-the-art vision data processing functionality, like occupancy counting or person blur. Pretrained processor is usually publicly available. |
CUSTOM |
Processor Type CUSTOM. Custom processors are specialized processors which are either uploaded by customers or imported from other Google Cloud platforms (for example Vertex AI). Custom processor is only visible to the creator. |
CONNECTOR |
Processor Type CONNECTOR. Connector processors are special processors which perform I/O for the application, they do not processing the data but either deliver the data to other processors or receive data from other processors. |
ModelType
All the supported model types in Vision AI App Platform.
Enums | |
---|---|
MODEL_TYPE_UNSPECIFIED |
Processor Type UNSPECIFIED. |
IMAGE_CLASSIFICATION |
Model Type Image Classification. |
OBJECT_DETECTION |
Model Type Object Detection. |
VIDEO_CLASSIFICATION |
Model Type Video Classification. |
VIDEO_OBJECT_TRACKING |
Model Type Object Tracking. |
VIDEO_ACTION_RECOGNITION |
Model Type Action Recognition. |
OCCUPANCY_COUNTING |
Model Type Occupancy Counting. |
PERSON_BLUR |
Model Type Person Blur. |
VERTEX_CUSTOM |
Model Type Vertex Custom. |
CustomProcessorSourceInfo
Describes the source info for a custom processor.
JSON representation |
---|
{ "sourceType": enum ( |
Fields | |
---|---|
sourceType |
The original product which holds the custom processor's functionality. |
additionalInfo |
Output only. Additional info related to the imported custom processor. Data is filled in by app platform during the processor creation. An object containing a list of |
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. |
Union field artifact_path . The path where App Platform loads the artifacts for the custom processor. artifact_path can be only one of the following: |
|
vertexModel |
The resource name original model hosted in the vertex AI platform. |
SourceType
Source type of the imported custom processor.
Enums | |
---|---|
SOURCE_TYPE_UNSPECIFIED |
Source type unspecified. |
VERTEX_AUTOML |
Custom processors coming from Vertex AutoML product. |
VERTEX_CUSTOM |
Custom processors coming from general custom models from Vertex. |
PRODUCT_RECOGNIZER |
Source for Product Recognizer. |
ModelSchema
The schema is defined as an OpenAPI 3.0.2 Schema Object.
JSON representation |
---|
{ "instancesSchema": { object ( |
Fields | |
---|---|
instancesSchema |
Cloud Storage location to a YAML file that defines the format of a single instance used in prediction and explanation requests. |
parametersSchema |
Cloud Storage location to a YAML file that defines the prediction and explanation parameters. |
predictionsSchema |
Cloud Storage location to a YAML file that defines the format of a single prediction or explanation. |
GcsSource
The Google Cloud Storage location for the input content.
JSON representation |
---|
{ "uris": [ string ] } |
Fields | |
---|---|
uris[] |
Required. References to a Google Cloud Storage paths. |
ProcessorState
Enums | |
---|---|
PROCESSOR_STATE_UNSPECIFIED |
Unspecified Processor state. |
CREATING |
Processor is being created (not ready for use). |
ACTIVE |
Processor is and ready for use. |
DELETING |
Processor is being deleted (not ready for use). |
FAILED |
Processor deleted or creation failed . |
ProcessorIOSpec
Message describing the input / output specifications of a processor.
JSON representation |
---|
{ "graphInputChannelSpecs": [ { object ( |
Fields | |
---|---|
graphInputChannelSpecs[] |
For processors with input_channel_specs, the processor must be explicitly connected to another processor. |
graphOutputChannelSpecs[] |
The output artifact specifications for the current processor. |
instanceResourceInputBindingSpecs[] |
The input resource that needs to be fed from the application instance. |
instanceResourceOutputBindingSpecs[] |
The output resource that the processor will generate per instance. Other than the explicitly listed output bindings here, all the processors' GraphOutputChannels can be binded to stream resource. The bind name then is the same as the GraphOutputChannel's name. |
GraphInputChannelSpec
Message for input channel specification.
JSON representation |
---|
{
"name": string,
"dataType": enum ( |
Fields | |
---|---|
name |
The name of the current input channel. |
dataType |
The data types of the current input channel. When this field has more than 1 value, it means this input channel can be connected to either of these different data types. |
acceptedDataTypeUris[] |
If specified, only those detailed data types can be connected to the processor. For example, jpeg stream for MEDIA, or PredictionResult proto for PROTO type. If unspecified, then any proto is accepted. |
required |
Whether the current input channel is required by the processor. For example, for a processor with required video input and optional audio input, if video input is missing, the application will be rejected while the audio input can be missing as long as the video input exists. |
maxConnectionAllowed |
How many input edges can be connected to this input channel. 0 means unlimited. |
DataType
All supported data types.
Enums | |
---|---|
DATA_TYPE_UNSPECIFIED |
The default value of DataType. |
VIDEO |
Video data type like H264. |
IMAGE |
Image data type. |
PROTO |
Protobuf data type, usually used for general data blob. |
GraphOutputChannelSpec
Message for output channel specification.
JSON representation |
---|
{
"name": string,
"dataType": enum ( |
Fields | |
---|---|
name |
The name of the current output channel. |
dataType |
The data type of the current output channel. |
dataTypeUri |
|
InstanceResourceInputBindingSpec
Message for instance resource channel specification. External resources are virtual nodes which are not expressed in the application graph. Each processor expresses its out-graph spec, so customer is able to override the external source or destinations to the
JSON representation |
---|
{ "name": string, // Union field |
Fields | |
---|---|
name |
Name of the input binding, unique within the processor. |
Union field
|
|
configTypeUri |
The configuration proto that includes the Googleapis resources. I.e. type.googleapis.com/google.cloud.vision.v1.StreamWithAnnotation |
resourceTypeUri |
The direct type url of Googleapis resource. i.e. type.googleapis.com/google.cloud.vision.v1.Asset |
InstanceResourceOutputBindingSpec
JSON representation |
---|
{ "name": string, "resourceTypeUri": string, "explicit": boolean } |
Fields | |
---|---|
name |
Name of the output binding, unique within the processor. |
resourceTypeUri |
The resource type uri of the acceptable output resource. |
explicit |
Whether the output resource needs to be explicitly set in the instance. If it is false, the processor will automatically generate it if required. |
Methods |
|
---|---|
|
Creates a new Processor in a given project and location. |
|
Deletes a single Processor. |
|
Gets details of a single Processor. |
|
Lists Processors in a given project and location. |
|
Updates the parameters of a single Processor. |
|
ListPrebuiltProcessors is a custom pass-through verb that Lists Prebuilt Processors. |