@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
UnaryCallable<com.google.cloud.translate.v3beta1.BatchTranslateTextRequest,Operation> |
batchTranslateTextCallable() |
OperationCallable<com.google.cloud.translate.v3beta1.BatchTranslateTextRequest,com.google.cloud.translate.v3beta1.BatchTranslateResponse,com.google.cloud.translate.v3beta1.BatchTranslateMetadata> |
batchTranslateTextOperationCallable() |
void |
close() |
static GrpcTranslationServiceStub |
create(ClientContext clientContext) |
static GrpcTranslationServiceStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcTranslationServiceStub |
create(TranslationServiceStubSettings settings) |
UnaryCallable<com.google.cloud.translate.v3beta1.CreateGlossaryRequest,Operation> |
createGlossaryCallable() |
OperationCallable<com.google.cloud.translate.v3beta1.CreateGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary,com.google.cloud.translate.v3beta1.CreateGlossaryMetadata> |
createGlossaryOperationCallable() |
UnaryCallable<com.google.cloud.translate.v3beta1.DeleteGlossaryRequest,Operation> |
deleteGlossaryCallable() |
OperationCallable<com.google.cloud.translate.v3beta1.DeleteGlossaryRequest,com.google.cloud.translate.v3beta1.DeleteGlossaryResponse,com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata> |
deleteGlossaryOperationCallable() |
UnaryCallable<com.google.cloud.translate.v3beta1.DetectLanguageRequest,com.google.cloud.translate.v3beta1.DetectLanguageResponse> |
detectLanguageCallable() |
UnaryCallable<com.google.cloud.translate.v3beta1.GetGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary> |
getGlossaryCallable() |
GrpcOperationsStub |
getOperationsStub() |
UnaryCallable<com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest,com.google.cloud.translate.v3beta1.SupportedLanguages> |
getSupportedLanguagesCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
UnaryCallable<com.google.cloud.translate.v3beta1.ListGlossariesRequest,com.google.cloud.translate.v3beta1.ListGlossariesResponse> |
listGlossariesCallable() |
UnaryCallable<com.google.cloud.translate.v3beta1.ListGlossariesRequest,TranslationServiceClient.ListGlossariesPagedResponse> |
listGlossariesPagedCallable() |
void |
shutdown() |
void |
shutdownNow() |
UnaryCallable<com.google.cloud.translate.v3beta1.TranslateTextRequest,com.google.cloud.translate.v3beta1.TranslateTextResponse> |
translateTextCallable() |
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
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public GrpcOperationsStub getOperationsStub()
getOperationsStub
in class TranslationServiceStub
public UnaryCallable<com.google.cloud.translate.v3beta1.TranslateTextRequest,com.google.cloud.translate.v3beta1.TranslateTextResponse> translateTextCallable()
translateTextCallable
in class TranslationServiceStub
public UnaryCallable<com.google.cloud.translate.v3beta1.DetectLanguageRequest,com.google.cloud.translate.v3beta1.DetectLanguageResponse> detectLanguageCallable()
detectLanguageCallable
in class TranslationServiceStub
public UnaryCallable<com.google.cloud.translate.v3beta1.GetSupportedLanguagesRequest,com.google.cloud.translate.v3beta1.SupportedLanguages> getSupportedLanguagesCallable()
getSupportedLanguagesCallable
in class TranslationServiceStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.translate.v3beta1.BatchTranslateTextRequest,com.google.cloud.translate.v3beta1.BatchTranslateResponse,com.google.cloud.translate.v3beta1.BatchTranslateMetadata> batchTranslateTextOperationCallable()
batchTranslateTextOperationCallable
in class TranslationServiceStub
public UnaryCallable<com.google.cloud.translate.v3beta1.BatchTranslateTextRequest,Operation> batchTranslateTextCallable()
batchTranslateTextCallable
in class TranslationServiceStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.translate.v3beta1.CreateGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary,com.google.cloud.translate.v3beta1.CreateGlossaryMetadata> createGlossaryOperationCallable()
createGlossaryOperationCallable
in class TranslationServiceStub
public UnaryCallable<com.google.cloud.translate.v3beta1.CreateGlossaryRequest,Operation> createGlossaryCallable()
createGlossaryCallable
in class TranslationServiceStub
public UnaryCallable<com.google.cloud.translate.v3beta1.ListGlossariesRequest,TranslationServiceClient.ListGlossariesPagedResponse> listGlossariesPagedCallable()
listGlossariesPagedCallable
in class TranslationServiceStub
public UnaryCallable<com.google.cloud.translate.v3beta1.ListGlossariesRequest,com.google.cloud.translate.v3beta1.ListGlossariesResponse> listGlossariesCallable()
listGlossariesCallable
in class TranslationServiceStub
public UnaryCallable<com.google.cloud.translate.v3beta1.GetGlossaryRequest,com.google.cloud.translate.v3beta1.Glossary> getGlossaryCallable()
getGlossaryCallable
in class TranslationServiceStub
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallable<com.google.cloud.translate.v3beta1.DeleteGlossaryRequest,com.google.cloud.translate.v3beta1.DeleteGlossaryResponse,com.google.cloud.translate.v3beta1.DeleteGlossaryMetadata> deleteGlossaryOperationCallable()
deleteGlossaryOperationCallable
in class TranslationServiceStub
public UnaryCallable<com.google.cloud.translate.v3beta1.DeleteGlossaryRequest,Operation> deleteGlossaryCallable()
deleteGlossaryCallable
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 © 2019 Google LLC. All rights reserved.