Class GrpcLanguageServiceStub (2.25.0)

public class GrpcLanguageServiceStub extends LanguageServiceStub

gRPC stub implementation for the LanguageService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > LanguageServiceStub > GrpcLanguageServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcLanguageServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcLanguageServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcLanguageServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcLanguageServiceStub
Exceptions
TypeDescription
IOException

create(LanguageServiceStubSettings settings)

public static final GrpcLanguageServiceStub create(LanguageServiceStubSettings settings)
Parameter
NameDescription
settingsLanguageServiceStubSettings
Returns
TypeDescription
GrpcLanguageServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext)

protected GrpcLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcLanguageServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsLanguageServiceStubSettings
clientContextClientContext

GrpcLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcLanguageServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsLanguageServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

analyzeEntitiesCallable()

public UnaryCallable<AnalyzeEntitiesRequest,AnalyzeEntitiesResponse> analyzeEntitiesCallable()
Returns
TypeDescription
UnaryCallable<AnalyzeEntitiesRequest,AnalyzeEntitiesResponse>
Overrides

analyzeEntitySentimentCallable()

public UnaryCallable<AnalyzeEntitySentimentRequest,AnalyzeEntitySentimentResponse> analyzeEntitySentimentCallable()
Returns
TypeDescription
UnaryCallable<AnalyzeEntitySentimentRequest,AnalyzeEntitySentimentResponse>
Overrides

analyzeSentimentCallable()

public UnaryCallable<AnalyzeSentimentRequest,AnalyzeSentimentResponse> analyzeSentimentCallable()
Returns
TypeDescription
UnaryCallable<AnalyzeSentimentRequest,AnalyzeSentimentResponse>
Overrides

analyzeSyntaxCallable()

public UnaryCallable<AnalyzeSyntaxRequest,AnalyzeSyntaxResponse> analyzeSyntaxCallable()
Returns
TypeDescription
UnaryCallable<AnalyzeSyntaxRequest,AnalyzeSyntaxResponse>
Overrides

annotateTextCallable()

public UnaryCallable<AnnotateTextRequest,AnnotateTextResponse> annotateTextCallable()
Returns
TypeDescription
UnaryCallable<AnnotateTextRequest,AnnotateTextResponse>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

classifyTextCallable()

public UnaryCallable<ClassifyTextRequest,ClassifyTextResponse> classifyTextCallable()
Returns
TypeDescription
UnaryCallable<ClassifyTextRequest,ClassifyTextResponse>
Overrides

close()

public final void close()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

moderateTextCallable()

public UnaryCallable<ModerateTextRequest,ModerateTextResponse> moderateTextCallable()
Returns
TypeDescription
UnaryCallable<ModerateTextRequest,ModerateTextResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()