@Generated(value="by GAPIC v0.0.5") @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(LanguageServiceSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcLanguageServiceStub, using the given settings.
|
protected GrpcLanguageServiceStub(LanguageServiceSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcLanguageServiceStub create(LanguageServiceSettings settings) throws IOException
IOExceptionpublic static final GrpcLanguageServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeSentimentRequest,com.google.cloud.language.v1beta2.AnalyzeSentimentResponse> analyzeSentimentCallable()
analyzeSentimentCallable in class LanguageServiceStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeEntitiesRequest,com.google.cloud.language.v1beta2.AnalyzeEntitiesResponse> analyzeEntitiesCallable()
analyzeEntitiesCallable in class LanguageServiceStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest,com.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse> analyzeEntitySentimentCallable()
analyzeEntitySentimentCallable in class LanguageServiceStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeSyntaxRequest,com.google.cloud.language.v1beta2.AnalyzeSyntaxResponse> analyzeSyntaxCallable()
analyzeSyntaxCallable in class LanguageServiceStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.language.v1beta2.ClassifyTextRequest,com.google.cloud.language.v1beta2.ClassifyTextResponse> classifyTextCallable()
classifyTextCallable in class LanguageServiceStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.language.v1beta2.AnnotateTextRequest,com.google.cloud.language.v1beta2.AnnotateTextResponse> annotateTextCallable()
annotateTextCallable in class LanguageServiceStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2017 Google. All rights reserved.