@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
IOException
protected GrpcLanguageServiceStub(LanguageServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcLanguageServiceStub create(LanguageServiceStubSettings settings) throws IOException
IOException
public static final GrpcLanguageServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOException
public static final GrpcLanguageServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOException
public com.google.api.gax.rpc.UnaryCallable<AnalyzeSentimentRequest,AnalyzeSentimentResponse> analyzeSentimentCallable()
analyzeSentimentCallable
in class LanguageServiceStub
public com.google.api.gax.rpc.UnaryCallable<AnalyzeEntitiesRequest,AnalyzeEntitiesResponse> analyzeEntitiesCallable()
analyzeEntitiesCallable
in class LanguageServiceStub
public com.google.api.gax.rpc.UnaryCallable<AnalyzeEntitySentimentRequest,AnalyzeEntitySentimentResponse> analyzeEntitySentimentCallable()
analyzeEntitySentimentCallable
in class LanguageServiceStub
public com.google.api.gax.rpc.UnaryCallable<AnalyzeSyntaxRequest,AnalyzeSyntaxResponse> analyzeSyntaxCallable()
analyzeSyntaxCallable
in class LanguageServiceStub
public com.google.api.gax.rpc.UnaryCallable<ClassifyTextRequest,ClassifyTextResponse> classifyTextCallable()
classifyTextCallable
in class LanguageServiceStub
public com.google.api.gax.rpc.UnaryCallable<AnnotateTextRequest,AnnotateTextResponse> annotateTextCallable()
annotateTextCallable
in class LanguageServiceStub
public final void close()
close
in interface AutoCloseable
close
in class LanguageServiceStub
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.