Class GrpcLanguageServiceStub (2.65.0)

publicclass GrpcLanguageServiceStubextendsLanguageServiceStub

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)

publicstaticfinalGrpcLanguageServiceStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcLanguageServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

publicstaticfinalGrpcLanguageServiceStubcreate(ClientContextclientContext,GrpcStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcLanguageServiceStub
Exceptions
Type Description
IOException

create(LanguageServiceStubSettings settings)

publicstaticfinalGrpcLanguageServiceStubcreate(LanguageServiceStubSettingssettings)
Parameter
Name Description
settings LanguageServiceStubSettings
Returns
Type Description
GrpcLanguageServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext)

protectedGrpcLanguageServiceStub(LanguageServiceStubSettingssettings,ClientContextclientContext)

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)

protectedGrpcLanguageServiceStub(LanguageServiceStubSettingssettings,ClientContextclientContext,GrpcStubCallableFactorycallableFactory)

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()

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

analyzeSentimentCallable()

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

annotateTextCallable()

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

awaitTermination(long duration, TimeUnit unit)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

classifyTextCallable()

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

close()

publicfinalvoidclose()
Overrides

getOperationsStub()

publicGrpcOperationsStubgetOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

moderateTextCallable()

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

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.