@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.v1.AnalyzeEntitiesRequest,com.google.cloud.language.v1.AnalyzeEntitiesResponse> |
analyzeEntitiesCallable() |
UnaryCallable<com.google.cloud.language.v1.AnalyzeEntitySentimentRequest,com.google.cloud.language.v1.AnalyzeEntitySentimentResponse> |
analyzeEntitySentimentCallable() |
UnaryCallable<com.google.cloud.language.v1.AnalyzeSentimentRequest,com.google.cloud.language.v1.AnalyzeSentimentResponse> |
analyzeSentimentCallable() |
UnaryCallable<com.google.cloud.language.v1.AnalyzeSyntaxRequest,com.google.cloud.language.v1.AnalyzeSyntaxResponse> |
analyzeSyntaxCallable() |
UnaryCallable<com.google.cloud.language.v1.AnnotateTextRequest,com.google.cloud.language.v1.AnnotateTextResponse> |
annotateTextCallable() |
boolean |
awaitTermination(long duration,
TimeUnit unit) |
UnaryCallable<com.google.cloud.language.v1.ClassifyTextRequest,com.google.cloud.language.v1.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.v1.AnalyzeSentimentRequest,com.google.cloud.language.v1.AnalyzeSentimentResponse> analyzeSentimentCallable()
analyzeSentimentCallable
in class LanguageServiceStub
public UnaryCallable<com.google.cloud.language.v1.AnalyzeEntitiesRequest,com.google.cloud.language.v1.AnalyzeEntitiesResponse> analyzeEntitiesCallable()
analyzeEntitiesCallable
in class LanguageServiceStub
public UnaryCallable<com.google.cloud.language.v1.AnalyzeEntitySentimentRequest,com.google.cloud.language.v1.AnalyzeEntitySentimentResponse> analyzeEntitySentimentCallable()
analyzeEntitySentimentCallable
in class LanguageServiceStub
public UnaryCallable<com.google.cloud.language.v1.AnalyzeSyntaxRequest,com.google.cloud.language.v1.AnalyzeSyntaxResponse> analyzeSyntaxCallable()
analyzeSyntaxCallable
in class LanguageServiceStub
public UnaryCallable<com.google.cloud.language.v1.ClassifyTextRequest,com.google.cloud.language.v1.ClassifyTextResponse> classifyTextCallable()
classifyTextCallable
in class LanguageServiceStub
public UnaryCallable<com.google.cloud.language.v1.AnnotateTextRequest,com.google.cloud.language.v1.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.