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

Commit d76272a

Browse files
feat: remove the translation fields in document.proto (#181)
1 parent a3ca979 commit d76272a

File tree

5 files changed

+4
-493
lines changed

5 files changed

+4
-493
lines changed

protos/google/cloud/documentai/v1beta3/document.proto

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -487,27 +487,6 @@ message Document {
487487
string relation = 3;
488488
}
489489

490-
// A translation of the text segment.
491-
message Translation {
492-
// Provenance of the translation.
493-
// Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a
494-
// single `TextAnchor.text_segments` element. If the start and
495-
// end index of the text segment are the same, the text change is inserted
496-
// before that index.
497-
TextAnchor text_anchor = 1;
498-
499-
// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
500-
// information, see
501-
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
502-
string language_code = 2;
503-
504-
// Text translated into the target language.
505-
string translated_text = 3;
506-
507-
// The history of this annotation.
508-
repeated Provenance provenance = 4;
509-
}
510-
511490
// Text reference indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
512491
message TextAnchor {
513492
// A text segment in the [Document.text][google.cloud.documentai.v1beta3.Document.text]. The indices may be out of bounds
@@ -724,10 +703,6 @@ message Document {
724703
// Relationship among [Document.entities][google.cloud.documentai.v1beta3.Document.entities].
725704
repeated EntityRelation entity_relations = 8;
726705

727-
// A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards,
728-
// translations in this list may cross shard boundaries.
729-
repeated Translation translations = 12;
730-
731706
// A list of text corrections made to [Document.text]. This is usually
732707
// used for annotating corrections to OCR mistakes. Text changes for a given
733708
// revision may not overlap with each other.

protos/protos.d.ts

Lines changed: 0 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)