Send feedback
Class GrpcTranslationServiceStub (2.49.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public class GrpcTranslationServiceStub extends TranslationServiceStub
gRPC stub implementation for the TranslationService service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcTranslationServiceStub create ( ClientContext clientContext )
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcTranslationServiceStub create ( ClientContext clientContext , GrpcStubCallableFactory callableFactory )
create(TranslationServiceStubSettings settings)
public static final GrpcTranslationServiceStub create ( TranslationServiceStubSettings settings )
Constructors
GrpcTranslationServiceStub(TranslationServiceStubSettings settings, ClientContext clientContext)
protected GrpcTranslationServiceStub ( TranslationServiceStubSettings settings , ClientContext clientContext )
Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is
protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.
GrpcTranslationServiceStub(TranslationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcTranslationServiceStub ( TranslationServiceStubSettings settings , ClientContext clientContext , GrpcStubCallableFactory callableFactory )
Constructs an instance of GrpcTranslationServiceStub, using the given settings. This is
protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.
Methods
adaptiveMtTranslateCallable()
public UnaryCallable<AdaptiveMtTranslateRequest , AdaptiveMtTranslateResponse> adaptiveMtTranslateCallable ()
Overrides
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination ( long duration , TimeUnit unit )
batchTranslateDocumentCallable()
public UnaryCallable<BatchTranslateDocumentRequest , Operation> batchTranslateDocumentCallable ()
Overrides
batchTranslateDocumentOperationCallable()
public OperationCallable<BatchTranslateDocumentRequest , BatchTranslateDocumentResponse , BatchTranslateDocumentMetadata> batchTranslateDocumentOperationCallable ()
Overrides
batchTranslateTextCallable()
public UnaryCallable<BatchTranslateTextRequest , Operation> batchTranslateTextCallable ()
Overrides
batchTranslateTextOperationCallable()
public OperationCallable<BatchTranslateTextRequest , BatchTranslateResponse , BatchTranslateMetadata> batchTranslateTextOperationCallable ()
Overrides
close()
public final void close ()
Overrides
createAdaptiveMtDatasetCallable()
public UnaryCallable<CreateAdaptiveMtDatasetRequest , AdaptiveMtDataset> createAdaptiveMtDatasetCallable ()
Overrides
createDatasetCallable()
public UnaryCallable<CreateDatasetRequest , Operation> createDatasetCallable ()
Overrides
createDatasetOperationCallable()
public OperationCallable<CreateDatasetRequest , Dataset , CreateDatasetMetadata> createDatasetOperationCallable ()
Overrides
createGlossaryCallable()
public UnaryCallable<CreateGlossaryRequest , Operation> createGlossaryCallable ()
Overrides
createGlossaryEntryCallable()
public UnaryCallable<CreateGlossaryEntryRequest , GlossaryEntry> createGlossaryEntryCallable ()
Overrides
createGlossaryOperationCallable()
public OperationCallable<CreateGlossaryRequest , Glossary , CreateGlossaryMetadata> createGlossaryOperationCallable ()
Overrides
createModelCallable()
public UnaryCallable<CreateModelRequest , Operation> createModelCallable ()
Overrides
createModelOperationCallable()
public OperationCallable<CreateModelRequest , Model , CreateModelMetadata> createModelOperationCallable ()
Overrides
deleteAdaptiveMtDatasetCallable()
public UnaryCallable<DeleteAdaptiveMtDatasetRequest , Empty> deleteAdaptiveMtDatasetCallable ()
Overrides
deleteAdaptiveMtFileCallable()
public UnaryCallable<DeleteAdaptiveMtFileRequest , Empty> deleteAdaptiveMtFileCallable ()
Overrides
deleteDatasetCallable()
public UnaryCallable<DeleteDatasetRequest , Operation> deleteDatasetCallable ()
Overrides
deleteDatasetOperationCallable()
public OperationCallable<DeleteDatasetRequest , Empty , DeleteDatasetMetadata> deleteDatasetOperationCallable ()
Overrides
deleteGlossaryCallable()
public UnaryCallable<DeleteGlossaryRequest , Operation> deleteGlossaryCallable ()
Overrides
deleteGlossaryEntryCallable()
public UnaryCallable<DeleteGlossaryEntryRequest , Empty> deleteGlossaryEntryCallable ()
Overrides
deleteGlossaryOperationCallable()
public OperationCallable<DeleteGlossaryRequest , DeleteGlossaryResponse , DeleteGlossaryMetadata> deleteGlossaryOperationCallable ()
Overrides
deleteModelCallable()
public UnaryCallable<DeleteModelRequest , Operation> deleteModelCallable ()
Overrides
deleteModelOperationCallable()
public OperationCallable<DeleteModelRequest , Empty , DeleteModelMetadata> deleteModelOperationCallable ()
Overrides
detectLanguageCallable()
public UnaryCallable<DetectLanguageRequest , DetectLanguageResponse> detectLanguageCallable ()
Overrides
exportDataCallable()
public UnaryCallable<ExportDataRequest , Operation> exportDataCallable ()
Overrides
exportDataOperationCallable()
public OperationCallable<ExportDataRequest , Empty , ExportDataMetadata> exportDataOperationCallable ()
Overrides
getAdaptiveMtDatasetCallable()
public UnaryCallable<GetAdaptiveMtDatasetRequest , AdaptiveMtDataset> getAdaptiveMtDatasetCallable ()
Overrides
getAdaptiveMtFileCallable()
public UnaryCallable<GetAdaptiveMtFileRequest , AdaptiveMtFile> getAdaptiveMtFileCallable ()
Overrides
getDatasetCallable()
public UnaryCallable<GetDatasetRequest , Dataset> getDatasetCallable ()
Overrides
getGlossaryCallable()
public UnaryCallable<GetGlossaryRequest , Glossary> getGlossaryCallable ()
Overrides
getGlossaryEntryCallable()
public UnaryCallable<GetGlossaryEntryRequest , GlossaryEntry> getGlossaryEntryCallable ()
Overrides
getModelCallable()
public UnaryCallable<GetModelRequest , Model> getModelCallable ()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub ()
Overrides
getSupportedLanguagesCallable()
public UnaryCallable<GetSupportedLanguagesRequest , SupportedLanguages> getSupportedLanguagesCallable ()
Overrides
importAdaptiveMtFileCallable()
public UnaryCallable<ImportAdaptiveMtFileRequest , ImportAdaptiveMtFileResponse> importAdaptiveMtFileCallable ()
Overrides
importDataCallable()
public UnaryCallable<ImportDataRequest , Operation> importDataCallable ()
Overrides
importDataOperationCallable()
public OperationCallable<ImportDataRequest , Empty , ImportDataMetadata> importDataOperationCallable ()
Overrides
isShutdown()
public boolean isShutdown ()
isTerminated()
public boolean isTerminated ()
listAdaptiveMtDatasetsCallable()
public UnaryCallable<ListAdaptiveMtDatasetsRequest , ListAdaptiveMtDatasetsResponse> listAdaptiveMtDatasetsCallable ()
Overrides
listAdaptiveMtDatasetsPagedCallable()
public UnaryCallable<ListAdaptiveMtDatasetsRequest , TranslationServiceClient . ListAdaptiveMtDatasetsPagedResponse> listAdaptiveMtDatasetsPagedCallable ()
Overrides
listAdaptiveMtFilesCallable()
public UnaryCallable<ListAdaptiveMtFilesRequest , ListAdaptiveMtFilesResponse> listAdaptiveMtFilesCallable ()
Overrides
listAdaptiveMtFilesPagedCallable()
public UnaryCallable<ListAdaptiveMtFilesRequest , TranslationServiceClient . ListAdaptiveMtFilesPagedResponse> listAdaptiveMtFilesPagedCallable ()
Overrides
listAdaptiveMtSentencesCallable()
public UnaryCallable<ListAdaptiveMtSentencesRequest , ListAdaptiveMtSentencesResponse> listAdaptiveMtSentencesCallable ()
Overrides
listAdaptiveMtSentencesPagedCallable()
public UnaryCallable<ListAdaptiveMtSentencesRequest , TranslationServiceClient . ListAdaptiveMtSentencesPagedResponse> listAdaptiveMtSentencesPagedCallable ()
Overrides
listDatasetsCallable()
public UnaryCallable<ListDatasetsRequest , ListDatasetsResponse> listDatasetsCallable ()
Overrides
listDatasetsPagedCallable()
public UnaryCallable<ListDatasetsRequest , TranslationServiceClient . ListDatasetsPagedResponse> listDatasetsPagedCallable ()
Overrides
listExamplesCallable()
public UnaryCallable<ListExamplesRequest , ListExamplesResponse> listExamplesCallable ()
Overrides
listExamplesPagedCallable()
public UnaryCallable<ListExamplesRequest , TranslationServiceClient . ListExamplesPagedResponse> listExamplesPagedCallable ()
Overrides
listGlossariesCallable()
public UnaryCallable<ListGlossariesRequest , ListGlossariesResponse> listGlossariesCallable ()
Overrides
listGlossariesPagedCallable()
public UnaryCallable<ListGlossariesRequest , TranslationServiceClient . ListGlossariesPagedResponse> listGlossariesPagedCallable ()
Overrides
listGlossaryEntriesCallable()
public UnaryCallable<ListGlossaryEntriesRequest , ListGlossaryEntriesResponse> listGlossaryEntriesCallable ()
Overrides
listGlossaryEntriesPagedCallable()
public UnaryCallable<ListGlossaryEntriesRequest , TranslationServiceClient . ListGlossaryEntriesPagedResponse> listGlossaryEntriesPagedCallable ()
Overrides
listModelsCallable()
public UnaryCallable<ListModelsRequest , ListModelsResponse> listModelsCallable ()
Overrides
listModelsPagedCallable()
public UnaryCallable<ListModelsRequest , TranslationServiceClient . ListModelsPagedResponse> listModelsPagedCallable ()
Overrides
romanizeTextCallable()
public UnaryCallable<RomanizeTextRequest , RomanizeTextResponse> romanizeTextCallable ()
Overrides
shutdown()
shutdownNow()
public void shutdownNow ()
translateDocumentCallable()
public UnaryCallable<TranslateDocumentRequest , TranslateDocumentResponse> translateDocumentCallable ()
Overrides
translateTextCallable()
public UnaryCallable<TranslateTextRequest , TranslateTextResponse> translateTextCallable ()
Overrides
updateGlossaryCallable()
public UnaryCallable<UpdateGlossaryRequest , Operation> updateGlossaryCallable ()
Overrides
updateGlossaryEntryCallable()
public UnaryCallable<UpdateGlossaryEntryRequest , GlossaryEntry> updateGlossaryEntryCallable ()
Overrides
updateGlossaryOperationCallable()
public OperationCallable<UpdateGlossaryRequest , Glossary , UpdateGlossaryMetadata> updateGlossaryOperationCallable ()
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-01 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-10-01 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-01 UTC."]]