Skip to content

Commit a32df25

Browse files
Google APIscopybara-github
authored andcommitted
feat: added field Processor.processor_version_aliases
feat: added field RawDocument.display_name fix: deprecated OcrConfig.compute_style_info Use PremiumFeatures.compute_style_info instead of OcrConfig.compute_style_info. PiperOrigin-RevId: 567356898
1 parent cd741cd commit a32df25

4 files changed

Lines changed: 26 additions & 7 deletions

File tree

google/cloud/documentai/v1/document_io.proto

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ message RawDocument {
3434
// An IANA MIME type (RFC6838) indicating the nature and format of the
3535
// [content][google.cloud.documentai.v1.RawDocument.content].
3636
string mime_type = 2;
37+
38+
// The display name of the document, it supports all Unicode characters except
39+
// the following:
40+
// `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,`
41+
// `~`, `=` and `:` are reserved.
42+
// If not specified, a default ID will be generated.
43+
string display_name = 3;
3744
}
3845

3946
// Specifies a document stored on Cloud Storage.
@@ -140,5 +147,6 @@ message OcrConfig {
140147
bool enable_symbol = 6;
141148

142149
// Turn on font id model and returns font style information.
143-
bool compute_style_info = 8;
150+
// Use PremiumFeatures.compute_style_info instead.
151+
bool compute_style_info = 8 [deprecated = true];
144152
}

google/cloud/documentai/v1/document_processor_service.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,8 +914,8 @@ message TrainProcessorVersionRequest {
914914
// Options to control the training of the Custom Document Extraction (CDE)
915915
// Processor.
916916
message CustomDocumentExtractionOptions {
917-
// Training Method for CDE. TRAINING_METHOD_UNSPECIFIED will fallback to
918-
// MODEL_BASED.
917+
// Training Method for CDE. `TRAINING_METHOD_UNSPECIFIED` will fall back to
918+
// `MODEL_BASED`.
919919
enum TrainingMethod {
920920
TRAINING_METHOD_UNSPECIFIED = 0;
921921

google/cloud/documentai/v1/documentai_v1.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,4 @@ publishing:
9494
dotnet_settings:
9595
ignored_resources:
9696
- documentai.googleapis.com/Location
97-
- version: google.cloud.documentai.v1beta3
98-
dotnet_settings:
99-
ignored_resources:
100-
- documentai.googleapis.com/Location
10197
proto_reference_documentation_uri: https://cloud.google.com/document-ai/docs/reference/rpc

google/cloud/documentai/v1/processor.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,17 @@ message ProcessorVersion {
115115
DeprecationInfo deprecation_info = 13;
116116
}
117117

118+
// Contains the alias and the aliased resource name of processor version.
119+
message ProcessorVersionAlias {
120+
// The alias in the form of `processor_version` resource name.
121+
string alias = 1;
122+
123+
// The resource name of aliased processor version.
124+
string processor_version = 2 [(google.api.resource_reference) = {
125+
type: "documentai.googleapis.com/ProcessorVersion"
126+
}];
127+
}
128+
118129
// The first-class citizen for Document AI. Each processor defines how to
119130
// extract structural information from a document.
120131
message Processor {
@@ -181,6 +192,10 @@ message Processor {
181192
type: "documentai.googleapis.com/ProcessorVersion"
182193
}];
183194

195+
// Output only. The processor version aliases.
196+
repeated ProcessorVersionAlias processor_version_aliases = 10
197+
[(google.api.field_behavior) = OUTPUT_ONLY];
198+
184199
// Output only. Immutable. The http endpoint that can be called to invoke
185200
// processing.
186201
string process_endpoint = 6 [

0 commit comments

Comments
 (0)