Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [documentai] added field Processor.processor_version_aliases #4689

Merged
merged 2 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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