Class TranslationServiceSettings.Builder (2.58.0)

public static class TranslationServiceSettings.Builder extends ClientSettings.Builder<TranslationServiceSettings,TranslationServiceSettings.Builder>

Builder for TranslationServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > TranslationServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(TranslationServiceSettings settings)

protected Builder(TranslationServiceSettings settings)
Parameter
Name Description
settings TranslationServiceSettings

Builder(TranslationServiceStubSettings.Builder stubSettings)

protected Builder(TranslationServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings TranslationServiceStubSettings.Builder

Methods

adaptiveMtTranslateSettings()

public UnaryCallSettings.Builder<AdaptiveMtTranslateRequest,AdaptiveMtTranslateResponse> adaptiveMtTranslateSettings()

Returns the builder for the settings used for calls to adaptiveMtTranslate.

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public TranslationServiceSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
TranslationServiceSettings.Builder

batchTranslateDocumentOperationSettings()

public OperationCallSettings.Builder<BatchTranslateDocumentRequest,BatchTranslateDocumentResponse,BatchTranslateDocumentMetadata> batchTranslateDocumentOperationSettings()

Returns the builder for the settings used for calls to batchTranslateDocument.

batchTranslateDocumentSettings()

public UnaryCallSettings.Builder<BatchTranslateDocumentRequest,Operation> batchTranslateDocumentSettings()

Returns the builder for the settings used for calls to batchTranslateDocument.

Returns
Type Description
Builder<BatchTranslateDocumentRequest,Operation>

batchTranslateTextOperationSettings()

public OperationCallSettings.Builder<BatchTranslateTextRequest,BatchTranslateResponse,BatchTranslateMetadata> batchTranslateTextOperationSettings()

Returns the builder for the settings used for calls to batchTranslateText.

batchTranslateTextSettings()

public UnaryCallSettings.Builder<BatchTranslateTextRequest,Operation> batchTranslateTextSettings()

Returns the builder for the settings used for calls to batchTranslateText.

Returns
Type Description
Builder<BatchTranslateTextRequest,Operation>

build()

public TranslationServiceSettings build()
Returns
Type Description
TranslationServiceSettings
Overrides
Exceptions
Type Description
IOException

createAdaptiveMtDatasetSettings()

public UnaryCallSettings.Builder<CreateAdaptiveMtDatasetRequest,AdaptiveMtDataset> createAdaptiveMtDatasetSettings()

Returns the builder for the settings used for calls to createAdaptiveMtDataset.

createDatasetOperationSettings()

public OperationCallSettings.Builder<CreateDatasetRequest,Dataset,CreateDatasetMetadata> createDatasetOperationSettings()

Returns the builder for the settings used for calls to createDataset.

createDatasetSettings()

public UnaryCallSettings.Builder<CreateDatasetRequest,Operation> createDatasetSettings()

Returns the builder for the settings used for calls to createDataset.

Returns
Type Description
Builder<CreateDatasetRequest,Operation>

createGlossaryEntrySettings()

public UnaryCallSettings.Builder<CreateGlossaryEntryRequest,GlossaryEntry> createGlossaryEntrySettings()

Returns the builder for the settings used for calls to createGlossaryEntry.

createGlossaryOperationSettings()

public OperationCallSettings.Builder<CreateGlossaryRequest,Glossary,CreateGlossaryMetadata> createGlossaryOperationSettings()

Returns the builder for the settings used for calls to createGlossary.

createGlossarySettings()

public UnaryCallSettings.Builder<CreateGlossaryRequest,Operation> createGlossarySettings()

Returns the builder for the settings used for calls to createGlossary.

Returns
Type Description
Builder<CreateGlossaryRequest,Operation>

createModelOperationSettings()

public OperationCallSettings.Builder<CreateModelRequest,Model,CreateModelMetadata> createModelOperationSettings()

Returns the builder for the settings used for calls to createModel.

createModelSettings()

public UnaryCallSettings.Builder<CreateModelRequest,Operation> createModelSettings()

Returns the builder for the settings used for calls to createModel.

Returns
Type Description
Builder<CreateModelRequest,Operation>

deleteAdaptiveMtDatasetSettings()

public UnaryCallSettings.Builder<DeleteAdaptiveMtDatasetRequest,Empty> deleteAdaptiveMtDatasetSettings()

Returns the builder for the settings used for calls to deleteAdaptiveMtDataset.

Returns
Type Description
Builder<DeleteAdaptiveMtDatasetRequest,Empty>

deleteAdaptiveMtFileSettings()

public UnaryCallSettings.Builder<DeleteAdaptiveMtFileRequest,Empty> deleteAdaptiveMtFileSettings()

Returns the builder for the settings used for calls to deleteAdaptiveMtFile.

Returns
Type Description
Builder<DeleteAdaptiveMtFileRequest,Empty>

deleteDatasetOperationSettings()

public OperationCallSettings.Builder<DeleteDatasetRequest,Empty,DeleteDatasetMetadata> deleteDatasetOperationSettings()

Returns the builder for the settings used for calls to deleteDataset.

deleteDatasetSettings()

public UnaryCallSettings.Builder<DeleteDatasetRequest,Operation> deleteDatasetSettings()

Returns the builder for the settings used for calls to deleteDataset.

Returns
Type Description
Builder<DeleteDatasetRequest,Operation>

deleteGlossaryEntrySettings()

public UnaryCallSettings.Builder<DeleteGlossaryEntryRequest,Empty> deleteGlossaryEntrySettings()

Returns the builder for the settings used for calls to deleteGlossaryEntry.

Returns
Type Description
Builder<DeleteGlossaryEntryRequest,Empty>

deleteGlossaryOperationSettings()

public OperationCallSettings.Builder<DeleteGlossaryRequest,DeleteGlossaryResponse,DeleteGlossaryMetadata> deleteGlossaryOperationSettings()

Returns the builder for the settings used for calls to deleteGlossary.

deleteGlossarySettings()

public UnaryCallSettings.Builder<DeleteGlossaryRequest,Operation> deleteGlossarySettings()

Returns the builder for the settings used for calls to deleteGlossary.

Returns
Type Description
Builder<DeleteGlossaryRequest,Operation>

deleteModelOperationSettings()

public OperationCallSettings.Builder<DeleteModelRequest,Empty,DeleteModelMetadata> deleteModelOperationSettings()

Returns the builder for the settings used for calls to deleteModel.

deleteModelSettings()

public UnaryCallSettings.Builder<DeleteModelRequest,Operation> deleteModelSettings()

Returns the builder for the settings used for calls to deleteModel.

Returns
Type Description
Builder<DeleteModelRequest,Operation>

detectLanguageSettings()

public UnaryCallSettings.Builder<DetectLanguageRequest,DetectLanguageResponse> detectLanguageSettings()

Returns the builder for the settings used for calls to detectLanguage.

exportDataOperationSettings()

public OperationCallSettings.Builder<ExportDataRequest,Empty,ExportDataMetadata> exportDataOperationSettings()

Returns the builder for the settings used for calls to exportData.

exportDataSettings()

public UnaryCallSettings.Builder<ExportDataRequest,Operation> exportDataSettings()

Returns the builder for the settings used for calls to exportData.

Returns
Type Description
Builder<ExportDataRequest,Operation>

getAdaptiveMtDatasetSettings()

public UnaryCallSettings.Builder<GetAdaptiveMtDatasetRequest,AdaptiveMtDataset> getAdaptiveMtDatasetSettings()

Returns the builder for the settings used for calls to getAdaptiveMtDataset.

getAdaptiveMtFileSettings()

public UnaryCallSettings.Builder<GetAdaptiveMtFileRequest,AdaptiveMtFile> getAdaptiveMtFileSettings()

Returns the builder for the settings used for calls to getAdaptiveMtFile.

Returns
Type Description
Builder<GetAdaptiveMtFileRequest,AdaptiveMtFile>

getDatasetSettings()

public UnaryCallSettings.Builder<GetDatasetRequest,Dataset> getDatasetSettings()

Returns the builder for the settings used for calls to getDataset.

Returns
Type Description
Builder<GetDatasetRequest,Dataset>

getGlossaryEntrySettings()

public UnaryCallSettings.Builder<GetGlossaryEntryRequest,GlossaryEntry> getGlossaryEntrySettings()

Returns the builder for the settings used for calls to getGlossaryEntry.

Returns
Type Description
Builder<GetGlossaryEntryRequest,GlossaryEntry>

getGlossarySettings()

public UnaryCallSettings.Builder<GetGlossaryRequest,Glossary> getGlossarySettings()

Returns the builder for the settings used for calls to getGlossary.

Returns
Type Description
Builder<GetGlossaryRequest,Glossary>

getModelSettings()

public UnaryCallSettings.Builder<GetModelRequest,Model> getModelSettings()

Returns the builder for the settings used for calls to getModel.

Returns
Type Description
Builder<GetModelRequest,Model>

getStubSettingsBuilder()

public TranslationServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
TranslationServiceStubSettings.Builder

getSupportedLanguagesSettings()

public UnaryCallSettings.Builder<GetSupportedLanguagesRequest,SupportedLanguages> getSupportedLanguagesSettings()

Returns the builder for the settings used for calls to getSupportedLanguages.

importAdaptiveMtFileSettings()

public UnaryCallSettings.Builder<ImportAdaptiveMtFileRequest,ImportAdaptiveMtFileResponse> importAdaptiveMtFileSettings()

Returns the builder for the settings used for calls to importAdaptiveMtFile.

importDataOperationSettings()

public OperationCallSettings.Builder<ImportDataRequest,Empty,ImportDataMetadata> importDataOperationSettings()

Returns the builder for the settings used for calls to importData.

importDataSettings()

public UnaryCallSettings.Builder<ImportDataRequest,Operation> importDataSettings()

Returns the builder for the settings used for calls to importData.

Returns
Type Description
Builder<ImportDataRequest,Operation>

listAdaptiveMtDatasetsSettings()

public PagedCallSettings.Builder<ListAdaptiveMtDatasetsRequest,ListAdaptiveMtDatasetsResponse,TranslationServiceClient.ListAdaptiveMtDatasetsPagedResponse> listAdaptiveMtDatasetsSettings()

Returns the builder for the settings used for calls to listAdaptiveMtDatasets.

listAdaptiveMtFilesSettings()

public PagedCallSettings.Builder<ListAdaptiveMtFilesRequest,ListAdaptiveMtFilesResponse,TranslationServiceClient.ListAdaptiveMtFilesPagedResponse> listAdaptiveMtFilesSettings()

Returns the builder for the settings used for calls to listAdaptiveMtFiles.

listAdaptiveMtSentencesSettings()

public PagedCallSettings.Builder<ListAdaptiveMtSentencesRequest,ListAdaptiveMtSentencesResponse,TranslationServiceClient.ListAdaptiveMtSentencesPagedResponse> listAdaptiveMtSentencesSettings()

Returns the builder for the settings used for calls to listAdaptiveMtSentences.

listDatasetsSettings()

public PagedCallSettings.Builder<ListDatasetsRequest,ListDatasetsResponse,TranslationServiceClient.ListDatasetsPagedResponse> listDatasetsSettings()

Returns the builder for the settings used for calls to listDatasets.

listExamplesSettings()

public PagedCallSettings.Builder<ListExamplesRequest,ListExamplesResponse,TranslationServiceClient.ListExamplesPagedResponse> listExamplesSettings()

Returns the builder for the settings used for calls to listExamples.

listGlossariesSettings()

public PagedCallSettings.Builder<ListGlossariesRequest,ListGlossariesResponse,TranslationServiceClient.ListGlossariesPagedResponse> listGlossariesSettings()

Returns the builder for the settings used for calls to listGlossaries.

listGlossaryEntriesSettings()

public PagedCallSettings.Builder<ListGlossaryEntriesRequest,ListGlossaryEntriesResponse,TranslationServiceClient.ListGlossaryEntriesPagedResponse> listGlossaryEntriesSettings()

Returns the builder for the settings used for calls to listGlossaryEntries.

listModelsSettings()

public PagedCallSettings.Builder<ListModelsRequest,ListModelsResponse,TranslationServiceClient.ListModelsPagedResponse> listModelsSettings()

Returns the builder for the settings used for calls to listModels.

romanizeTextSettings()

public UnaryCallSettings.Builder<RomanizeTextRequest,RomanizeTextResponse> romanizeTextSettings()

Returns the builder for the settings used for calls to romanizeText.

translateDocumentSettings()

public UnaryCallSettings.Builder<TranslateDocumentRequest,TranslateDocumentResponse> translateDocumentSettings()

Returns the builder for the settings used for calls to translateDocument.

translateTextSettings()

public UnaryCallSettings.Builder<TranslateTextRequest,TranslateTextResponse> translateTextSettings()

Returns the builder for the settings used for calls to translateText.

updateGlossaryEntrySettings()

public UnaryCallSettings.Builder<UpdateGlossaryEntryRequest,GlossaryEntry> updateGlossaryEntrySettings()

Returns the builder for the settings used for calls to updateGlossaryEntry.

updateGlossaryOperationSettings()

public OperationCallSettings.Builder<UpdateGlossaryRequest,Glossary,UpdateGlossaryMetadata> updateGlossaryOperationSettings()

Returns the builder for the settings used for calls to updateGlossary.

updateGlossarySettings()

public UnaryCallSettings.Builder<UpdateGlossaryRequest,Operation> updateGlossarySettings()

Returns the builder for the settings used for calls to updateGlossary.

Returns
Type Description
Builder<UpdateGlossaryRequest,Operation>