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

feat: added v3 proto for online/batch document translation and updated v3beta1 proto for format conversion #719

Merged
merged 3 commits into from Sep 10, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.