@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,
ClientContext clientContext)
Constructs an instance of GrpcLanguageServiceStub, using the given settings.
|
protected |
GrpcLanguageServiceStub(LanguageServiceStubSettings settings,
ClientContext clientContext,
GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcLanguageServiceStub, using the given settings.
|
Modifier and Type | Method and Description |
---|---|
UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeEntitiesRequest,com.google.cloud.language.v1beta2.AnalyzeEntitiesResponse> |
analyzeEntitiesCallable() |
UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest,com.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse> |
analyzeEntitySentimentCallable() |
UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeSentimentRequest,com.google.cloud.language.v1beta2.AnalyzeSentimentResponse> |
analyzeSentimentCallable() |
UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeSyntaxRequest,com.google.cloud.language.v1beta2.AnalyzeSyntaxResponse> |
analyzeSyntaxCallable() |
UnaryCallable<com.google.cloud.language.v1beta2.AnnotateTextRequest,com.google.cloud.language.v1beta2.AnnotateTextResponse> |
annotateTextCallable() |
boolean |
awaitTermination(long duration,
TimeUnit unit) |
UnaryCallable<com.google.cloud.language.v1beta2.ClassifyTextRequest,com.google.cloud.language.v1beta2.ClassifyTextResponse> |
classifyTextCallable() |
void |
close() |
static GrpcLanguageServiceStub |
create(ClientContext clientContext) |
static GrpcLanguageServiceStub |
create(ClientContext clientContext,
GrpcStubCallableFactory callableFactory) |
static GrpcLanguageServiceStub |
create(LanguageServiceStubSettings settings) |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
void |
shutdownNow() |
protected GrpcLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext) throws IOException
IOException
protected GrpcLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public static final GrpcLanguageServiceStub create(LanguageServiceStubSettings settings) throws IOException
IOException
public static final GrpcLanguageServiceStub create(ClientContext clientContext) throws IOException
IOException
public static final GrpcLanguageServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException
IOException
public UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeSentimentRequest,com.google.cloud.language.v1beta2.AnalyzeSentimentResponse> analyzeSentimentCallable()
analyzeSentimentCallable
in class LanguageServiceStub
public UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeEntitiesRequest,com.google.cloud.language.v1beta2.AnalyzeEntitiesResponse> analyzeEntitiesCallable()
analyzeEntitiesCallable
in class LanguageServiceStub
public UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest,com.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse> analyzeEntitySentimentCallable()
analyzeEntitySentimentCallable
in class LanguageServiceStub
public UnaryCallable<com.google.cloud.language.v1beta2.AnalyzeSyntaxRequest,com.google.cloud.language.v1beta2.AnalyzeSyntaxResponse> analyzeSyntaxCallable()
analyzeSyntaxCallable
in class LanguageServiceStub
public UnaryCallable<com.google.cloud.language.v1beta2.ClassifyTextRequest,com.google.cloud.language.v1beta2.ClassifyTextResponse> classifyTextCallable()
classifyTextCallable
in class LanguageServiceStub
public UnaryCallable<com.google.cloud.language.v1beta2.AnnotateTextRequest,com.google.cloud.language.v1beta2.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.