API Reference google_api_translate v0.12.3

Modules

API client metadata for GoogleApi.Translate.V2.

API calls for all endpoints tagged Detections.

API calls for all endpoints tagged Languages.

API calls for all endpoints tagged Translations.

Handle Tesla connections for GoogleApi.Translate.V2.

The request message for language detection.

Attributes

  • detections (type: list(list(GoogleApi.Translate.V2.Model.DetectionsResource.t)), default: nil) - A detections contains detection results of several text

Attributes

  • confidence (type: number(), default: nil) - The confidence of the detection result of this language.
  • isReliable (type: boolean(), default: nil) - A boolean to indicate is the language detection result reliable.
  • language (type: String.t, default: nil) - The language we detected.

The request message for discovering supported languages.

Attributes

  • languages (type: list(GoogleApi.Translate.V2.Model.LanguagesResource.t), default: nil) - List of source/target languages supported by the translation API. If target parameter is unspecified, the list is sorted by the ASCII code point order of the language code. If target parameter is specified, the list is sorted by the collation order of the language name in the target language.

Attributes

  • language (type: String.t, default: nil) - Supported language code, generally consisting of its ISO 639-1 identifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including language + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH')
  • name (type: String.t, default: nil) - Human readable name of the language localized to the target language.

The main translation request message for the Cloud Translation API.

The main language translation response message.

Attributes

  • detectedSourceLanguage (type: String.t, default: nil) - The source language of the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language will not occur and this field will be empty.
  • model (type: String.t, default: nil) - The model type used for this translation. Valid values are listed in public documentation. Can be different from requested model. Present only if specific model type was explicitly requested.
  • translatedText (type: String.t, default: nil) - Text translated into the target language.

API client metadata for GoogleApi.Translate.V3.

API calls for all endpoints tagged Projects.

Handle Tesla connections for GoogleApi.Translate.V3.

The request message for Operations.CancelOperation.

The request message for language detection.

The response message for language detection.

The response message for language detection.

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty is empty JSON object {}.

The Google Cloud Storage location for the output content.

The Google Cloud Storage location for the input content.

Represents a glossary built from user provided data.

Input configuration for glossaries.

Input configuration for BatchTranslateText request.

Used with unidirectional glossaries.

Used with equivalent term set glossaries.

Response message for ListGlossaries.

The response message for Locations.ListLocations.

The response message for Operations.ListOperations.

A resource that represents Google Cloud Platform location.

This resource represents a long-running operation that is the result of a network API call.

Output configuration for BatchTranslateText request.

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

A single supported language response corresponds to information related to one supported language.

The response message for discovering supported languages.

Configures which glossary should be used for a specific target language, and defines options for applying that glossary.

The request message for synchronous translation.

Attributes

  • glossaryTranslations (type: list(GoogleApi.Translate.V3.Model.Translation.t), default: nil) - Text translation responses if a glossary is provided in the request. This can be the same as translations if no terms apply. This field has the same length as contents.
  • translations (type: list(GoogleApi.Translate.V3.Model.Translation.t), default: nil) - Text translation responses with no glossary applied. This field has the same length as contents.

A single translation response.

The request message for Operations.WaitOperation.