public static class TranslationServiceStubSettings.Builder extends StubSettings.Builder<TranslationServiceStubSettings,TranslationServiceStubSettings.Builder>
Builder for TranslationServiceStubSettings.
Constructors
Builder()
Builder(ClientContext clientContext)
protected Builder(ClientContext clientContext)
Builder(TranslationServiceStubSettings settings)
protected Builder(TranslationServiceStubSettings settings)
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 TranslationServiceStubSettings.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.
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.
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.
build()
public TranslationServiceStubSettings build()
Overrides
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.
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.
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.
deleteAdaptiveMtDatasetSettings()
public UnaryCallSettings.Builder<DeleteAdaptiveMtDatasetRequest,Empty> deleteAdaptiveMtDatasetSettings()
Returns the builder for the settings used for calls to deleteAdaptiveMtDataset.
deleteAdaptiveMtFileSettings()
public UnaryCallSettings.Builder<DeleteAdaptiveMtFileRequest,Empty> deleteAdaptiveMtFileSettings()
Returns the builder for the settings used for calls to deleteAdaptiveMtFile.
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.
deleteGlossaryEntrySettings()
public UnaryCallSettings.Builder<DeleteGlossaryEntryRequest,Empty> deleteGlossaryEntrySettings()
Returns the builder for the settings used for calls to deleteGlossaryEntry.
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.
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.
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.
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.
getDatasetSettings()
public UnaryCallSettings.Builder<GetDatasetRequest,Dataset> getDatasetSettings()
Returns the builder for the settings used for calls to getDataset.
getGlossaryEntrySettings()
public UnaryCallSettings.Builder<GetGlossaryEntryRequest,GlossaryEntry> getGlossaryEntrySettings()
Returns the builder for the settings used for calls to getGlossaryEntry.
getGlossarySettings()
public UnaryCallSettings.Builder<GetGlossaryRequest,Glossary> getGlossarySettings()
Returns the builder for the settings used for calls to getGlossary.
getModelSettings()
public UnaryCallSettings.Builder<GetModelRequest,Model> getModelSettings()
Returns the builder for the settings used for calls to getModel.
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.
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.
unaryMethodSettingsBuilders()
public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns |
Type |
Description |
com.google.common.collect.ImmutableList<Builder<?,?>> |
|
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.