Skip to content

Commit 7a9a855

Browse files
Google APIscopybara-github
authored andcommitted
feat: expose model_type in v1 processor, so that user can see the model_type after get or list processor version
PiperOrigin-RevId: 603727585
1 parent c7fd8bd commit 7a9a855

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

google/cloud/documentai/v1/processor.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ message ProcessorVersion {
8282
IMPORTING = 8;
8383
}
8484

85+
// The possible model types of the processor version.
86+
enum ModelType {
87+
// The processor version has unspecified model type.
88+
MODEL_TYPE_UNSPECIFIED = 0;
89+
90+
// The processor version has generative model type.
91+
MODEL_TYPE_GENERATIVE = 1;
92+
93+
// The processor version has custom model type.
94+
MODEL_TYPE_CUSTOM = 2;
95+
}
96+
8597
// The resource name of the processor version.
8698
// Format:
8799
// `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}`
@@ -113,6 +125,9 @@ message ProcessorVersion {
113125

114126
// If set, information about the eventual deprecation of this version.
115127
DeprecationInfo deprecation_info = 13;
128+
129+
// Output only. The model type of this processor version.
130+
ModelType model_type = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
116131
}
117132

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

0 commit comments

Comments
 (0)