@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,
ClientContext clientContext)
Constructs an instance of HttpJsonTranslationServiceStub, using the given settings.
|
protected |
HttpJsonTranslationServiceStub(TranslationServiceStubSettings settings,
ClientContext clientContext,
HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonTranslationServiceStub, using the given settings.
|
getOperationsStub
protected HttpJsonTranslationServiceStub(TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected HttpJsonTranslationServiceStub(TranslationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException
IOException
public static final HttpJsonTranslationServiceStub create(TranslationServiceStubSettings settings) throws IOException
IOException
public static final HttpJsonTranslationServiceStub create(ClientContext clientContext) throws IOException
IOException
public static final HttpJsonTranslationServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException
IOException
@InternalApi public static List<ApiMethodDescriptor> getMethodDescriptors()
public HttpJsonOperationsStub getHttpJsonOperationsStub()
getHttpJsonOperationsStub
in class TranslationServiceStub
public UnaryCallable<TranslateTextRequest,TranslateTextResponse> translateTextCallable()
translateTextCallable
in class TranslationServiceStub
public UnaryCallable<DetectLanguageRequest,DetectLanguageResponse> detectLanguageCallable()
detectLanguageCallable
in class TranslationServiceStub
public UnaryCallable<GetSupportedLanguagesRequest,SupportedLanguages> getSupportedLanguagesCallable()
getSupportedLanguagesCallable
in class TranslationServiceStub
public UnaryCallable<TranslateDocumentRequest,TranslateDocumentResponse> translateDocumentCallable()
translateDocumentCallable
in class TranslationServiceStub
public UnaryCallable<BatchTranslateTextRequest,Operation> batchTranslateTextCallable()
batchTranslateTextCallable
in class TranslationServiceStub
public OperationCallable<BatchTranslateTextRequest,BatchTranslateResponse,BatchTranslateMetadata> batchTranslateTextOperationCallable()
batchTranslateTextOperationCallable
in class TranslationServiceStub
public UnaryCallable<BatchTranslateDocumentRequest,Operation> batchTranslateDocumentCallable()
batchTranslateDocumentCallable
in class TranslationServiceStub
public OperationCallable<BatchTranslateDocumentRequest,BatchTranslateDocumentResponse,BatchTranslateDocumentMetadata> batchTranslateDocumentOperationCallable()
batchTranslateDocumentOperationCallable
in class TranslationServiceStub
public UnaryCallable<CreateGlossaryRequest,Operation> createGlossaryCallable()
createGlossaryCallable
in class TranslationServiceStub
public OperationCallable<CreateGlossaryRequest,Glossary,CreateGlossaryMetadata> createGlossaryOperationCallable()
createGlossaryOperationCallable
in class TranslationServiceStub
public UnaryCallable<ListGlossariesRequest,ListGlossariesResponse> listGlossariesCallable()
listGlossariesCallable
in class TranslationServiceStub
public UnaryCallable<ListGlossariesRequest,TranslationServiceClient.ListGlossariesPagedResponse> listGlossariesPagedCallable()
listGlossariesPagedCallable
in class TranslationServiceStub
public UnaryCallable<GetGlossaryRequest,Glossary> getGlossaryCallable()
getGlossaryCallable
in class TranslationServiceStub
public UnaryCallable<DeleteGlossaryRequest,Operation> deleteGlossaryCallable()
deleteGlossaryCallable
in class TranslationServiceStub
public OperationCallable<DeleteGlossaryRequest,DeleteGlossaryResponse,DeleteGlossaryMetadata> deleteGlossaryOperationCallable()
deleteGlossaryOperationCallable
in class TranslationServiceStub
public final void close()
close
in interface AutoCloseable
close
in class TranslationServiceStub
public void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
InterruptedException
Copyright © 2022 Google LLC. All rights reserved.