Skip to content

Commit

Permalink
feat: [documentai] added field Processor.processor_version_aliases (#…
Browse files Browse the repository at this point in the history
…4689)

* 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

Source-Link: googleapis/googleapis@a32df25

Source-Link: googleapis/googleapis-gen@f3288e6
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6ImYzMjg4ZTYyZWQ1NmEyYzk3OWE2MzU2NjdiZGY5MWM3MTEzMWRjOTMifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Sep 21, 2023
1 parent 606e6e5 commit effcc26
Show file tree
Hide file tree
Showing 6 changed files with 467 additions and 4 deletions.
Original file line number Diff line number Diff line change
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];
}
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
115 changes: 115 additions & 0 deletions packages/google-cloud-documentai/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit effcc26

Please sign in to comment.