@Generated(value="by gapic-generator-java") public class GrpcTranslationServiceStub extends TranslationServiceStub
This class is for advanced usage and reflects the underlying API directly.
Modifier | Constructor and Description |
---|---|
protected |
GrpcTranslationServiceStub(TranslationServiceStubSettings settings,
ClientContext clientContext)
Constructs an instance of GrpcTranslationServiceStub, using the given settings.
|
protected |
GrpcTranslationServiceStub(TranslationServiceStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcTranslationServiceStub, using the given settings.
|
getHttpJsonOperationsStub
protected GrpcTranslationServiceStub(TranslationServiceStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcTranslationServiceStub(TranslationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcTranslationServiceStub create(TranslationServiceStubSettings settings) throws IOException
IOException
public static final GrpcTranslationServiceStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcTranslationServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public GrpcOperationsStub getOperationsStub()
getOperationsStub
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.