Skip to content

Commit

Permalink
feat: added field Processor.processor_version_aliases
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Google APIs authored and Copybara-Service committed Sep 21, 2023
1 parent cd741cd commit a32df25
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
10 changes: 9 additions & 1 deletion google/cloud/documentai/v1/document_io.proto
Expand Up @@ -34,6 +34,13 @@ message RawDocument {
// An IANA MIME type (RFC6838) indicating the nature and format of the
// [content][google.cloud.documentai.v1.RawDocument.content].
string mime_type = 2;

// The display name of the document, it supports all Unicode characters except
// the following:
// `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,`
// `~`, `=` and `:` are reserved.
// If not specified, a default ID will be generated.
string display_name = 3;
}

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

// Turn on font id model and returns font style information.
bool compute_style_info = 8;
// Use PremiumFeatures.compute_style_info instead.
bool compute_style_info = 8 [deprecated = true];
}
4 changes: 2 additions & 2 deletions google/cloud/documentai/v1/document_processor_service.proto
Expand Up @@ -914,8 +914,8 @@ message TrainProcessorVersionRequest {
// Options to control the training of the Custom Document Extraction (CDE)
// Processor.
message CustomDocumentExtractionOptions {
// Training Method for CDE. TRAINING_METHOD_UNSPECIFIED will fallback to
// MODEL_BASED.
// Training Method for CDE. `TRAINING_METHOD_UNSPECIFIED` will fall back to
// `MODEL_BASED`.
enum TrainingMethod {
TRAINING_METHOD_UNSPECIFIED = 0;

Expand Down
4 changes: 0 additions & 4 deletions google/cloud/documentai/v1/documentai_v1.yaml
Expand Up @@ -94,8 +94,4 @@ publishing:
dotnet_settings:
ignored_resources:
- documentai.googleapis.com/Location
- version: google.cloud.documentai.v1beta3
dotnet_settings:
ignored_resources:
- documentai.googleapis.com/Location
proto_reference_documentation_uri: https://cloud.google.com/document-ai/docs/reference/rpc
15 changes: 15 additions & 0 deletions google/cloud/documentai/v1/processor.proto
Expand Up @@ -115,6 +115,17 @@ message ProcessorVersion {
DeprecationInfo deprecation_info = 13;
}

// Contains the alias and the aliased resource name of processor version.
message ProcessorVersionAlias {
// The alias in the form of `processor_version` resource name.
string alias = 1;

// The resource name of aliased processor version.
string processor_version = 2 [(google.api.resource_reference) = {
type: "documentai.googleapis.com/ProcessorVersion"
}];
}

// The first-class citizen for Document AI. Each processor defines how to
// extract structural information from a document.
message Processor {
Expand Down Expand Up @@ -181,6 +192,10 @@ message Processor {
type: "documentai.googleapis.com/ProcessorVersion"
}];

// Output only. The processor version aliases.
repeated ProcessorVersionAlias processor_version_aliases = 10
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Immutable. The http endpoint that can be called to invoke
// processing.
string process_endpoint = 6 [
Expand Down

0 comments on commit a32df25

Please sign in to comment.