Skip to content

Commit d5b7894

Browse files
Google APIscopybara-github
authored andcommitted
docs: Update hyperlink to the supported languages documentation page
PiperOrigin-RevId: 773858816
1 parent 8b26dd3 commit d5b7894

1 file changed

Lines changed: 23 additions & 13 deletions

File tree

google/cloud/translate/v3beta1/translation_service.proto

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import "google/api/resource.proto";
2323
import "google/longrunning/operations.proto";
2424
import "google/protobuf/timestamp.proto";
2525

26-
option cc_enable_arenas = true;
2726
option csharp_namespace = "Google.Cloud.Translate.V3Beta1";
2827
option go_package = "cloud.google.com/go/translation/apiv3beta1/translationpb;translationpb";
2928
option java_multiple_files = true;
@@ -176,6 +175,7 @@ service TranslationService {
176175
}
177176
}
178177

178+
// -----------------------------------------------------------------------------
179179
// Configures which glossary should be used for a specific target language,
180180
// and defines options for applying that glossary.
181181
message TranslateTextGlossaryConfig {
@@ -202,13 +202,15 @@ message TranslateTextRequest {
202202

203203
// Optional. The BCP-47 language code of the input text if
204204
// known, for example, "en-US" or "sr-Latn". Supported language codes are
205-
// listed in Language Support. If the source language isn't specified, the API
206-
// attempts to identify the source language automatically and returns the
207-
// source language within the response.
205+
// listed in [Language
206+
// Support](https://cloud.google.com/translate/docs/languages). If the source
207+
// language isn't specified, the API attempts to identify the source language
208+
// automatically and returns the source language within the response.
208209
string source_language_code = 4 [(google.api.field_behavior) = OPTIONAL];
209210

210211
// Required. The BCP-47 language code to use for translation of the input
211-
// text, set to one of the language codes listed in Language Support.
212+
// text, set to one of the language codes listed in [Language
213+
// Support](https://cloud.google.com/translate/docs/languages).
212214
string target_language_code = 5 [(google.api.field_behavior) = REQUIRED];
213215

214216
// Required. Project or location to make a call. Must refer to a caller's
@@ -687,14 +689,16 @@ message TranslateDocumentRequest {
687689

688690
// Optional. The BCP-47 language code of the input document if known, for
689691
// example, "en-US" or "sr-Latn". Supported language codes are listed in
690-
// Language Support. If the source language isn't specified, the API attempts
691-
// to identify the source language automatically and returns the source
692-
// language within the response. Source language must be specified if the
693-
// request contains a glossary or a custom model.
692+
// [Language Support](https://cloud.google.com/translate/docs/languages). If
693+
// the source language isn't specified, the API attempts to identify the
694+
// source language automatically and returns the source language within the
695+
// response. Source language must be specified if the request contains a
696+
// glossary or a custom model.
694697
string source_language_code = 2 [(google.api.field_behavior) = OPTIONAL];
695698

696699
// Required. The BCP-47 language code to use for translation of the input
697-
// document, set to one of the language codes listed in Language Support.
700+
// document, set to one of the language codes listed in [Language
701+
// Support](https://cloud.google.com/translate/docs/languages).
698702
string target_language_code = 3 [(google.api.field_behavior) = REQUIRED];
699703

700704
// Required. Input configurations.
@@ -824,10 +828,14 @@ message BatchTranslateTextRequest {
824828
}
825829
];
826830

827-
// Required. Source language code.
831+
// Required. Source language code. Supported language codes are listed in
832+
// [Language
833+
// Support](https://cloud.google.com/translate/docs/languages).
828834
string source_language_code = 2 [(google.api.field_behavior) = REQUIRED];
829835

830-
// Required. Specify up to 10 language codes here.
836+
// Required. Specify up to 10 language codes here. Supported language codes
837+
// are listed in [Language
838+
// Support](https://cloud.google.com/translate/docs/languages).
831839
repeated string target_language_codes = 3
832840
[(google.api.field_behavior) = REQUIRED];
833841

@@ -1227,7 +1235,9 @@ message BatchTranslateDocumentRequest {
12271235
string source_language_code = 2 [(google.api.field_behavior) = REQUIRED];
12281236

12291237
// Required. The BCP-47 language code to use for translation of the input
1230-
// document. Specify up to 10 language codes here.
1238+
// document. Specify up to 10 language codes here. Supported language codes
1239+
// are listed in [Language
1240+
// Support](https://cloud.google.com/translate/docs/languages).
12311241
repeated string target_language_codes = 3
12321242
[(google.api.field_behavior) = REQUIRED];
12331243

0 commit comments

Comments
 (0)