Package com.google.cloud.translate.v3 (2.24.0)

A client to Cloud Translation API

The interfaces provided are listed below, along with usage samples.

TranslationServiceClient

Service Description: Provides natural language translation operations.

Sample for TranslationServiceClient:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   String targetLanguageCode = "targetLanguageCode-106414698";
   List<String> contents = new ArrayList<>();
   TranslateTextResponse response =
       translationServiceClient.translateText(parent, targetLanguageCode, contents);
 }
 

Classes

BatchDocumentInputConfig

Input configuration for BatchTranslateDocument request.

Protobuf type google.cloud.translation.v3.BatchDocumentInputConfig

BatchDocumentInputConfig.Builder

Input configuration for BatchTranslateDocument request.

Protobuf type google.cloud.translation.v3.BatchDocumentInputConfig

BatchDocumentOutputConfig

Output configuration for BatchTranslateDocument request.

Protobuf type google.cloud.translation.v3.BatchDocumentOutputConfig

BatchDocumentOutputConfig.Builder

Output configuration for BatchTranslateDocument request.

Protobuf type google.cloud.translation.v3.BatchDocumentOutputConfig

BatchTranslateDocumentMetadata

State metadata for the batch translation operation.

Protobuf type google.cloud.translation.v3.BatchTranslateDocumentMetadata

BatchTranslateDocumentMetadata.Builder

State metadata for the batch translation operation.

Protobuf type google.cloud.translation.v3.BatchTranslateDocumentMetadata

BatchTranslateDocumentRequest

The BatchTranslateDocument request.

Protobuf type google.cloud.translation.v3.BatchTranslateDocumentRequest

BatchTranslateDocumentRequest.Builder

The BatchTranslateDocument request.

Protobuf type google.cloud.translation.v3.BatchTranslateDocumentRequest

BatchTranslateDocumentResponse

Stored in the google.longrunning.Operation.response field returned by BatchTranslateDocument if at least one document is translated successfully.

Protobuf type google.cloud.translation.v3.BatchTranslateDocumentResponse

BatchTranslateDocumentResponse.Builder

Stored in the google.longrunning.Operation.response field returned by BatchTranslateDocument if at least one document is translated successfully.

Protobuf type google.cloud.translation.v3.BatchTranslateDocumentResponse

BatchTranslateMetadata

State metadata for the batch translation operation.

Protobuf type google.cloud.translation.v3.BatchTranslateMetadata

BatchTranslateMetadata.Builder

State metadata for the batch translation operation.

Protobuf type google.cloud.translation.v3.BatchTranslateMetadata

BatchTranslateResponse

Stored in the google.longrunning.Operation.response field returned by BatchTranslateText if at least one sentence is translated successfully.

Protobuf type google.cloud.translation.v3.BatchTranslateResponse

BatchTranslateResponse.Builder

Stored in the google.longrunning.Operation.response field returned by BatchTranslateText if at least one sentence is translated successfully.

Protobuf type google.cloud.translation.v3.BatchTranslateResponse

BatchTranslateTextRequest

The batch translation request.

Protobuf type google.cloud.translation.v3.BatchTranslateTextRequest

BatchTranslateTextRequest.Builder

The batch translation request.

Protobuf type google.cloud.translation.v3.BatchTranslateTextRequest