@Generated(value="by gapic-generator-java") @BetaApi 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<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<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 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 © 2023 Google LLC. All rights reserved.