@Generated(value="by gapic-generator-java") public class HttpJsonTranslationServiceStub extends TranslationServiceStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
HttpJsonTranslationServiceStub(TranslationServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonTranslationServiceStub, using the given settings.
|
protected |
HttpJsonTranslationServiceStub(TranslationServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonTranslationServiceStub, using the given settings.
|
getOperationsStubprotected HttpJsonTranslationServiceStub(TranslationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected HttpJsonTranslationServiceStub(TranslationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final HttpJsonTranslationServiceStub create(TranslationServiceStubSettings settings) throws IOException
IOExceptionpublic static final HttpJsonTranslationServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final HttpJsonTranslationServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
IOException@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
getHttpJsonOperationsStub in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<TranslateTextRequest,TranslateTextResponse> translateTextCallable()
translateTextCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<RomanizeTextRequest,RomanizeTextResponse> romanizeTextCallable()
romanizeTextCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<DetectLanguageRequest,DetectLanguageResponse> detectLanguageCallable()
detectLanguageCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<GetSupportedLanguagesRequest,SupportedLanguages> getSupportedLanguagesCallable()
getSupportedLanguagesCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<TranslateDocumentRequest,TranslateDocumentResponse> translateDocumentCallable()
translateDocumentCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<BatchTranslateTextRequest,com.google.longrunning.Operation> batchTranslateTextCallable()
batchTranslateTextCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.OperationCallable<BatchTranslateTextRequest,BatchTranslateResponse,BatchTranslateMetadata> batchTranslateTextOperationCallable()
batchTranslateTextOperationCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<BatchTranslateDocumentRequest,com.google.longrunning.Operation> batchTranslateDocumentCallable()
batchTranslateDocumentCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.OperationCallable<BatchTranslateDocumentRequest,BatchTranslateDocumentResponse,BatchTranslateDocumentMetadata> batchTranslateDocumentOperationCallable()
batchTranslateDocumentOperationCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<CreateGlossaryRequest,com.google.longrunning.Operation> createGlossaryCallable()
createGlossaryCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.OperationCallable<CreateGlossaryRequest,Glossary,CreateGlossaryMetadata> createGlossaryOperationCallable()
createGlossaryOperationCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<UpdateGlossaryRequest,com.google.longrunning.Operation> updateGlossaryCallable()
updateGlossaryCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.OperationCallable<UpdateGlossaryRequest,Glossary,UpdateGlossaryMetadata> updateGlossaryOperationCallable()
updateGlossaryOperationCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListGlossariesRequest,ListGlossariesResponse> listGlossariesCallable()
listGlossariesCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListGlossariesRequest,TranslationServiceClient.ListGlossariesPagedResponse> listGlossariesPagedCallable()
listGlossariesPagedCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<GetGlossaryRequest,Glossary> getGlossaryCallable()
getGlossaryCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<DeleteGlossaryRequest,com.google.longrunning.Operation> deleteGlossaryCallable()
deleteGlossaryCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.OperationCallable<DeleteGlossaryRequest,DeleteGlossaryResponse,DeleteGlossaryMetadata> deleteGlossaryOperationCallable()
deleteGlossaryOperationCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<GetGlossaryEntryRequest,GlossaryEntry> getGlossaryEntryCallable()
getGlossaryEntryCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListGlossaryEntriesRequest,ListGlossaryEntriesResponse> listGlossaryEntriesCallable()
listGlossaryEntriesCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListGlossaryEntriesRequest,TranslationServiceClient.ListGlossaryEntriesPagedResponse> listGlossaryEntriesPagedCallable()
listGlossaryEntriesPagedCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<CreateGlossaryEntryRequest,GlossaryEntry> createGlossaryEntryCallable()
createGlossaryEntryCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<UpdateGlossaryEntryRequest,GlossaryEntry> updateGlossaryEntryCallable()
updateGlossaryEntryCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<DeleteGlossaryEntryRequest,com.google.protobuf.Empty> deleteGlossaryEntryCallable()
deleteGlossaryEntryCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<CreateDatasetRequest,com.google.longrunning.Operation> createDatasetCallable()
createDatasetCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.OperationCallable<CreateDatasetRequest,Dataset,CreateDatasetMetadata> createDatasetOperationCallable()
createDatasetOperationCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<GetDatasetRequest,Dataset> getDatasetCallable()
getDatasetCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListDatasetsRequest,ListDatasetsResponse> listDatasetsCallable()
listDatasetsCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListDatasetsRequest,TranslationServiceClient.ListDatasetsPagedResponse> listDatasetsPagedCallable()
listDatasetsPagedCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<DeleteDatasetRequest,com.google.longrunning.Operation> deleteDatasetCallable()
deleteDatasetCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.OperationCallable<DeleteDatasetRequest,com.google.protobuf.Empty,DeleteDatasetMetadata> deleteDatasetOperationCallable()
deleteDatasetOperationCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<CreateAdaptiveMtDatasetRequest,AdaptiveMtDataset> createAdaptiveMtDatasetCallable()
createAdaptiveMtDatasetCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<DeleteAdaptiveMtDatasetRequest,com.google.protobuf.Empty> deleteAdaptiveMtDatasetCallable()
deleteAdaptiveMtDatasetCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<GetAdaptiveMtDatasetRequest,AdaptiveMtDataset> getAdaptiveMtDatasetCallable()
getAdaptiveMtDatasetCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListAdaptiveMtDatasetsRequest,ListAdaptiveMtDatasetsResponse> listAdaptiveMtDatasetsCallable()
listAdaptiveMtDatasetsCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListAdaptiveMtDatasetsRequest,TranslationServiceClient.ListAdaptiveMtDatasetsPagedResponse> listAdaptiveMtDatasetsPagedCallable()
listAdaptiveMtDatasetsPagedCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<AdaptiveMtTranslateRequest,AdaptiveMtTranslateResponse> adaptiveMtTranslateCallable()
adaptiveMtTranslateCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<GetAdaptiveMtFileRequest,AdaptiveMtFile> getAdaptiveMtFileCallable()
getAdaptiveMtFileCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<DeleteAdaptiveMtFileRequest,com.google.protobuf.Empty> deleteAdaptiveMtFileCallable()
deleteAdaptiveMtFileCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ImportAdaptiveMtFileRequest,ImportAdaptiveMtFileResponse> importAdaptiveMtFileCallable()
importAdaptiveMtFileCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListAdaptiveMtFilesRequest,ListAdaptiveMtFilesResponse> listAdaptiveMtFilesCallable()
listAdaptiveMtFilesCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListAdaptiveMtFilesRequest,TranslationServiceClient.ListAdaptiveMtFilesPagedResponse> listAdaptiveMtFilesPagedCallable()
listAdaptiveMtFilesPagedCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListAdaptiveMtSentencesRequest,ListAdaptiveMtSentencesResponse> listAdaptiveMtSentencesCallable()
listAdaptiveMtSentencesCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListAdaptiveMtSentencesRequest,TranslationServiceClient.ListAdaptiveMtSentencesPagedResponse> listAdaptiveMtSentencesPagedCallable()
listAdaptiveMtSentencesPagedCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ImportDataRequest,com.google.longrunning.Operation> importDataCallable()
importDataCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.OperationCallable<ImportDataRequest,com.google.protobuf.Empty,ImportDataMetadata> importDataOperationCallable()
importDataOperationCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ExportDataRequest,com.google.longrunning.Operation> exportDataCallable()
exportDataCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.OperationCallable<ExportDataRequest,com.google.protobuf.Empty,ExportDataMetadata> exportDataOperationCallable()
exportDataOperationCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListExamplesRequest,ListExamplesResponse> listExamplesCallable()
listExamplesCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListExamplesRequest,TranslationServiceClient.ListExamplesPagedResponse> listExamplesPagedCallable()
listExamplesPagedCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<CreateModelRequest,com.google.longrunning.Operation> createModelCallable()
createModelCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.OperationCallable<CreateModelRequest,Model,CreateModelMetadata> createModelOperationCallable()
createModelOperationCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,ListModelsResponse> listModelsCallable()
listModelsCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,TranslationServiceClient.ListModelsPagedResponse> listModelsPagedCallable()
listModelsPagedCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<GetModelRequest,Model> getModelCallable()
getModelCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.UnaryCallable<DeleteModelRequest,com.google.longrunning.Operation> deleteModelCallable()
deleteModelCallable in class TranslationServiceStubpublic com.google.api.gax.rpc.OperationCallable<DeleteModelRequest,com.google.protobuf.Empty,DeleteModelMetadata> deleteModelOperationCallable()
deleteModelOperationCallable in class TranslationServiceStubpublic final void close()
close in interface AutoCloseableclose in class TranslationServiceStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2024 Google LLC. All rights reserved.