Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

feat: remove the translation fields in document.proto #181

Merged
merged 3 commits into from
Mar 12, 2021
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
27 changes: 1 addition & 26 deletions protos/google/cloud/documentai/v1beta3/document.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -487,27 +487,6 @@ message Document {
string relation = 3;
}

// A translation of the text segment.
message Translation {
// Provenance of the translation.
// Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a
// single `TextAnchor.text_segments` element. If the start and
// end index of the text segment are the same, the text change is inserted
// before that index.
TextAnchor text_anchor = 1;

// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
// information, see
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string language_code = 2;

// Text translated into the target language.
string translated_text = 3;

// The history of this annotation.
repeated Provenance provenance = 4;
}

// Text reference indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
message TextAnchor {
// A text segment in the [Document.text][google.cloud.documentai.v1beta3.Document.text]. The indices may be out of bounds
Expand Down Expand Up @@ -724,10 +703,6 @@ message Document {
// Relationship among [Document.entities][google.cloud.documentai.v1beta3.Document.entities].
repeated EntityRelation entity_relations = 8;

// A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards,
// translations in this list may cross shard boundaries.
repeated Translation translations = 12;

// A list of text corrections made to [Document.text]. This is usually
// used for annotating corrections to OCR mistakes. Text changes for a given
// revision may not overlap with each other.
Expand Down
114 changes: 0 additions & 114 deletions protos/protos.d.ts

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

Loading