Skip to content

Commit

Permalink
feat: expose model_type in v1 processor, so that user can see the mod…
Browse files Browse the repository at this point in the history
…el_type after get or list processor version

PiperOrigin-RevId: 603727585
  • Loading branch information
Google APIs authored and Copybara-Service committed Feb 2, 2024
1 parent c7fd8bd commit 7a9a855
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions google/cloud/documentai/v1/processor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ message ProcessorVersion {
IMPORTING = 8;
}

// The possible model types of the processor version.
enum ModelType {
// The processor version has unspecified model type.
MODEL_TYPE_UNSPECIFIED = 0;

// The processor version has generative model type.
MODEL_TYPE_GENERATIVE = 1;

// The processor version has custom model type.
MODEL_TYPE_CUSTOM = 2;
}

// The resource name of the processor version.
// Format:
// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`
Expand Down Expand Up @@ -113,6 +125,9 @@ message ProcessorVersion {

// If set, information about the eventual deprecation of this version.
DeprecationInfo deprecation_info = 13;

// Output only. The model type of this processor version.
ModelType model_type = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Contains the alias and the aliased resource name of processor version.
Expand Down

0 comments on commit 7a9a855

Please sign in to comment.