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

Commit

Permalink
feat: added v3 proto for online/batch document translation and update…
Browse files Browse the repository at this point in the history
…d v3beta1 proto for format conversion (#719)

PiperOrigin-RevId: 393656336
Source-Link: googleapis/googleapis@17d3fb2
Source-Link: googleapis/googleapis-gen@00ca50b
  • Loading branch information
gcf-owl-bot[bot] committed Sep 10, 2021
1 parent 26b9ba7 commit 76c9a13
Show file tree
Hide file tree
Showing 10 changed files with 9,511 additions and 3,071 deletions.
594 changes: 564 additions & 30 deletions protos/google/cloud/translate/v3/translation_service.proto

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions protos/google/cloud/translate/v3beta1/translation_service.proto
Expand Up @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Translate.V3Beta1";
Expand Down Expand Up @@ -1241,6 +1242,19 @@ message BatchTranslateDocumentRequest {
// Optional. Glossaries to be applied. It's keyed by target language code.
map<string, TranslateTextGlossaryConfig> glossaries = 7
[(google.api.field_behavior) = OPTIONAL];

// Optional. File format conversion map to be applied to all input files.
// Map's key is the original mime_type. Map's value is the target mime_type of
// translated documents.
//
// Supported file format conversion includes:
// - `application/pdf` to
// `application/vnd.openxmlformats-officedocument.wordprocessingml.document`
//
// If nothing specified, output files will be in the same format as the
// original file.
map<string, string> format_conversions = 8
[(google.api.field_behavior) = OPTIONAL];
}

// Input configuration for BatchTranslateDocument request.
Expand Down
2,751 changes: 1,982 additions & 769 deletions protos/protos.d.ts

Large diffs are not rendered by default.

8,033 changes: 5,777 additions & 2,256 deletions protos/protos.js

Large diffs are not rendered by default.

0 comments on commit 76c9a13

Please sign in to comment.