@Generated("by gapic-generator-java")
Package com.google.cloud.translate.v3beta1
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()) {
TranslateTextRequest request =
TranslateTextRequest.newBuilder()
.addAllContents(new ArrayList<String>())
.setMimeType("mimeType-1392120434")
.setSourceLanguageCode("sourceLanguageCode1645917472")
.setTargetLanguageCode("targetLanguageCode-106414698")
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setModel("model104069929")
.setGlossaryConfig(TranslateTextGlossaryConfig.newBuilder().build())
.putAllLabels(new HashMap<String, String>())
.build();
TranslateTextResponse response = translationServiceClient.translateText(request);
}
-
Class Summary Class Description BatchDocumentInputConfig Input configuration for BatchTranslateDocument request.BatchDocumentInputConfig.Builder Input configuration for BatchTranslateDocument request.BatchDocumentOutputConfig Output configuration for BatchTranslateDocument request.BatchDocumentOutputConfig.Builder Output configuration for BatchTranslateDocument request.BatchTranslateDocumentMetadata State metadata for the batch translation operation.BatchTranslateDocumentMetadata.Builder State metadata for the batch translation operation.BatchTranslateDocumentRequest The BatchTranslateDocument request.BatchTranslateDocumentRequest.Builder The BatchTranslateDocument request.BatchTranslateDocumentResponse Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by BatchTranslateDocument if at least one document is translated successfully.BatchTranslateDocumentResponse.Builder Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by BatchTranslateDocument if at least one document is translated successfully.BatchTranslateMetadata State metadata for the batch translation operation.BatchTranslateMetadata.Builder State metadata for the batch translation operation.BatchTranslateResponse Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by BatchTranslateText if at least one sentence is translated successfully.BatchTranslateResponse.Builder Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by BatchTranslateText if at least one sentence is translated successfully.BatchTranslateTextRequest The batch translation request.BatchTranslateTextRequest.Builder The batch translation request.CreateGlossaryMetadata Stored in the [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata] field returned by CreateGlossary.CreateGlossaryMetadata.Builder Stored in the [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata] field returned by CreateGlossary.CreateGlossaryRequest Request message for CreateGlossary.CreateGlossaryRequest.Builder Request message for CreateGlossary.DeleteGlossaryMetadata Stored in the [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata] field returned by DeleteGlossary.DeleteGlossaryMetadata.Builder Stored in the [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata] field returned by DeleteGlossary.DeleteGlossaryRequest Request message for DeleteGlossary.DeleteGlossaryRequest.Builder Request message for DeleteGlossary.DeleteGlossaryResponse Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by DeleteGlossary.DeleteGlossaryResponse.Builder Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by DeleteGlossary.DetectedLanguage The response message for language detection.DetectedLanguage.Builder The response message for language detection.DetectLanguageRequest The request message for language detection.DetectLanguageRequest.Builder The request message for language detection.DetectLanguageResponse The response message for language detection.DetectLanguageResponse.Builder The response message for language detection.DocumentInputConfig A document translation request input config.DocumentInputConfig.Builder A document translation request input config.DocumentOutputConfig A document translation request output config.DocumentOutputConfig.Builder A document translation request output config.DocumentTranslation A translated document message.DocumentTranslation.Builder A translated document message.GcsDestination The Google Cloud Storage location for the output content.GcsDestination.Builder The Google Cloud Storage location for the output content.GcsSource The Google Cloud Storage location for the input content.GcsSource.Builder The Google Cloud Storage location for the input content.GetGlossaryRequest Request message for GetGlossary.GetGlossaryRequest.Builder Request message for GetGlossary.GetSupportedLanguagesRequest The request message for discovering supported languages.GetSupportedLanguagesRequest.Builder The request message for discovering supported languages.Glossary Represents a glossary built from user provided data.Glossary.Builder Represents a glossary built from user provided data.Glossary.LanguageCodePair Used with unidirectional glossaries.Glossary.LanguageCodePair.Builder Used with unidirectional glossaries.Glossary.LanguageCodesSet Used with equivalent term set glossaries.Glossary.LanguageCodesSet.Builder Used with equivalent term set glossaries.GlossaryInputConfig Input configuration for glossaries.GlossaryInputConfig.Builder Input configuration for glossaries.GlossaryName GlossaryName.Builder Builder for projects/{project}/locations/{location}/glossaries/{glossary}.InputConfig Input configuration for BatchTranslateText request.InputConfig.Builder Input configuration for BatchTranslateText request.ListGlossariesRequest Request message for ListGlossaries.ListGlossariesRequest.Builder Request message for ListGlossaries.ListGlossariesResponse Response message for ListGlossaries.ListGlossariesResponse.Builder Response message for ListGlossaries.LocationName LocationName.Builder Builder for projects/{project}/locations/{location}.OutputConfig Output configuration for BatchTranslateText request.OutputConfig.Builder Output configuration for BatchTranslateText request.SupportedLanguage A single supported language response corresponds to information related to one supported language.SupportedLanguage.Builder A single supported language response corresponds to information related to one supported language.SupportedLanguages The response message for discovering supported languages.SupportedLanguages.Builder The response message for discovering supported languages.TranslateDocumentRequest A document translation request.TranslateDocumentRequest.Builder A document translation request.TranslateDocumentResponse A translated document response message.TranslateDocumentResponse.Builder A translated document response message.TranslateTextGlossaryConfig Configures which glossary should be used for a specific target language, and defines options for applying that glossary.TranslateTextGlossaryConfig.Builder Configures which glossary should be used for a specific target language, and defines options for applying that glossary.TranslateTextRequest The request message for synchronous translation.TranslateTextRequest.Builder The request message for synchronous translation.TranslateTextResponse Protobuf typegoogle.cloud.translation.v3beta1.TranslateTextResponse
TranslateTextResponse.Builder Protobuf typegoogle.cloud.translation.v3beta1.TranslateTextResponse
Translation A single translation response.Translation.Builder A single translation response.TranslationServiceClient Service Description: Provides natural language translation operations.TranslationServiceClient.ListGlossariesFixedSizeCollection TranslationServiceClient.ListGlossariesPage TranslationServiceClient.ListGlossariesPagedResponse TranslationServiceGrpc Provides natural language translation operations.TranslationServiceGrpc.TranslationServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service TranslationService.TranslationServiceGrpc.TranslationServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService.TranslationServiceGrpc.TranslationServiceImplBase Base class for the server implementation of the service TranslationService.TranslationServiceGrpc.TranslationServiceStub A stub to allow clients to do asynchronous rpc calls to service TranslationService.TranslationServiceProto TranslationServiceSettings Settings class to configure an instance ofTranslationServiceClient
.TranslationServiceSettings.Builder Builder for TranslationServiceSettings. -
Enum Summary Enum Description BatchDocumentInputConfig.SourceCase BatchDocumentOutputConfig.DestinationCase BatchTranslateDocumentMetadata.State State of the job.BatchTranslateMetadata.State State of the job.CreateGlossaryMetadata.State Enumerates the possible states that the creation request can be in.DeleteGlossaryMetadata.State Enumerates the possible states that the creation request can be in.DetectLanguageRequest.SourceCase DocumentInputConfig.SourceCase DocumentOutputConfig.DestinationCase Glossary.LanguagesCase GlossaryInputConfig.SourceCase InputConfig.SourceCase OutputConfig.DestinationCase