Class GrpcLanguageServiceStub (2.56.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
Name Description
clientContext ClientContext
Returns
Type Description
GrpcLanguageServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcLanguageServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcLanguageServiceStub
Exceptions
Type Description
IOException

create(LanguageServiceStubSettings settings)

public static final GrpcLanguageServiceStub create(LanguageServiceStubSettings settings)
Parameter
Name Description
settings LanguageServiceStubSettings
Returns
Type Description
GrpcLanguageServiceStub
Exceptions
Type Description
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
Name Description
settings LanguageServiceStubSettings
clientContext ClientContext

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
Name Description
settings LanguageServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

analyzeEntitiesCallable()

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

analyzeSentimentCallable()

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

annotateTextCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

classifyTextCallable()

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

close()

public final void close()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

moderateTextCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()