@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcLanguageServiceStub extends LanguageServiceStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcLanguageServiceStub(LanguageServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcLanguageServiceStub, using the given settings.
|
protected |
GrpcLanguageServiceStub(LanguageServiceStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcLanguageServiceStub, using the given settings.
|
protected GrpcLanguageServiceStub(LanguageServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected GrpcLanguageServiceStub(LanguageServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcLanguageServiceStub create(LanguageServiceStubSettings settings) throws IOException
IOExceptionpublic static final GrpcLanguageServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcLanguageServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic com.google.api.gax.rpc.UnaryCallable<AnalyzeSentimentRequest,AnalyzeSentimentResponse> analyzeSentimentCallable()
analyzeSentimentCallable in class LanguageServiceStubpublic com.google.api.gax.rpc.UnaryCallable<AnalyzeEntitiesRequest,AnalyzeEntitiesResponse> analyzeEntitiesCallable()
analyzeEntitiesCallable in class LanguageServiceStubpublic com.google.api.gax.rpc.UnaryCallable<AnalyzeEntitySentimentRequest,AnalyzeEntitySentimentResponse> analyzeEntitySentimentCallable()
analyzeEntitySentimentCallable in class LanguageServiceStubpublic com.google.api.gax.rpc.UnaryCallable<AnalyzeSyntaxRequest,AnalyzeSyntaxResponse> analyzeSyntaxCallable()
analyzeSyntaxCallable in class LanguageServiceStubpublic com.google.api.gax.rpc.UnaryCallable<ClassifyTextRequest,ClassifyTextResponse> classifyTextCallable()
classifyTextCallable in class LanguageServiceStubpublic com.google.api.gax.rpc.UnaryCallable<AnnotateTextRequest,AnnotateTextResponse> annotateTextCallable()
annotateTextCallable in class LanguageServiceStubpublic final void close()
close in interface AutoCloseableclose in class LanguageServiceStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2019 Google LLC. All rights reserved.