Resource: ProcessorVersion
A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version.
| JSON representation |
|---|
{ "name": string, "displayName": string, "documentSchema": { object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the processor version. Format: |
displayName |
The display name of the processor version. |
documentSchema |
Output only. The schema of the processor version. Describes the output. |
state |
Output only. The state of the processor version. |
createTime |
Output only. The time the processor version was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
latestEvaluation |
Output only. The most recently invoked evaluation for the processor version. |
kmsKeyName |
Output only. The KMS key name used for encryption. |
kmsKeyVersionName |
Output only. The KMS key version with which data is encrypted. |
googleManaged |
Output only. Denotes that this |
deprecationInfo |
Output only. If set, information about the eventual deprecation of this version. |
modelType |
Output only. The model type of this processor version. |
satisfiesPzs |
Output only. Reserved for future use. |
satisfiesPzi |
Output only. Reserved for future use. |
genAiModelInfo |
Output only. Information about Generative AI model-based processor versions. |
State
The possible states of the processor version.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
The processor version is in an unspecified state. |
DEPLOYED |
The processor version is deployed and can be used for processing. |
DEPLOYING |
The processor version is being deployed. |
UNDEPLOYED |
The processor version is not deployed and cannot be used for processing. |
UNDEPLOYING |
The processor version is being undeployed. |
CREATING |
The processor version is being created. |
DELETING |
The processor version is being deleted. |
FAILED |
The processor version failed and is in an indeterminate state. |
IMPORTING |
The processor version is being imported. |
EvaluationReference
Gives a short summary of an evaluation, and links to the evaluation itself.
| JSON representation |
|---|
{ "operation": string, "evaluation": string, "aggregateMetrics": { object ( |
| Fields | |
|---|---|
operation |
The resource name of the Long Running Operation for the evaluation. |
evaluation |
The resource name of the evaluation. |
aggregateMetrics |
An aggregate of the statistics for the evaluation with fuzzy matching on. |
aggregateMetricsExact |
An aggregate of the statistics for the evaluation with fuzzy matching off. |
DeprecationInfo
Information about the upcoming deprecation of this processor version.
| JSON representation |
|---|
{ "deprecationTime": string, "replacementProcessorVersion": string } |
| Fields | |
|---|---|
deprecationTime |
The time at which this processor version will be deprecated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
replacementProcessorVersion |
If set, the processor version that will be used as a replacement. |
ModelType
The possible model types of the processor version.
| Enums | |
|---|---|
MODEL_TYPE_UNSPECIFIED |
The processor version has unspecified model type. |
MODEL_TYPE_GENERATIVE |
The processor version has generative model type. |
MODEL_TYPE_CUSTOM |
The processor version has custom model type. |
GenAiModelInfo
Information about Generative AI model-based processor versions.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field model_info. The processor version is either a pretrained Google-managed foundation model or a custom Generative AI model created by the user. model_info can be only one of the following: |
|
foundationGenAiModelInfo |
Information for a pretrained Google-managed foundation model. |
customGenAiModelInfo |
Information for a custom Generative AI model created by the user. |
FoundationGenAiModelInfo
Information for a pretrained Google-managed foundation model.
| JSON representation |
|---|
{ "finetuningAllowed": boolean, "minTrainLabeledDocuments": integer } |
| Fields | |
|---|---|
finetuningAllowed |
Whether fine tuning is allowed for this base processor version. |
minTrainLabeledDocuments |
The minimum number of labeled documents in the training dataset required for fine tuning. |
CustomGenAiModelInfo
Information for a custom Generative AI model created by the user. These are created with Create New Version in either the Call foundation
model or Fine tuning tabs.
| JSON representation |
|---|
{
"customModelType": enum ( |
| Fields | |
|---|---|
customModelType |
The type of custom model created by the user. |
baseProcessorVersionId |
The base processor version ID for the custom model. |
CustomModelType
The type of custom model created by the user.
| Enums | |
|---|---|
CUSTOM_MODEL_TYPE_UNSPECIFIED |
The model type is unspecified. |
VERSIONED_FOUNDATION |
The model is a versioned foundation model. |
FINE_TUNED |
The model is a finetuned foundation model. |
Methods |
|
|---|---|
|
LRO endpoint to batch process many documents. |
|
Deletes the processor version, all artifacts under the processor version will be deleted. |
|
Deploys the processor version. |
|
Evaluates a ProcessorVersion against annotated documents, producing an Evaluation. |
|
Gets a processor version detail. |
|
Lists all versions of a processor. |
|
Processes a single document. |
|
Trains a new processor version. |
|
Undeploys the processor version. |