Class HttpJsonLanguageServiceStub (2.71.0)

publicclass HttpJsonLanguageServiceStubextendsLanguageServiceStub

REST stub implementation for the LanguageService service API.

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

Inheritance

java.lang.Object > LanguageServiceStub > HttpJsonLanguageServiceStub

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonLanguageServiceStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonLanguageServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonLanguageServiceStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonLanguageServiceStub
Exceptions
Type Description
IOException

create(LanguageServiceStubSettings settings)

publicstaticfinalHttpJsonLanguageServiceStubcreate(LanguageServiceStubSettingssettings)
Parameter
Name Description
settings LanguageServiceStubSettings
Returns
Type Description
HttpJsonLanguageServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext)

protectedHttpJsonLanguageServiceStub(LanguageServiceStubSettingssettings,ClientContextclientContext)

Constructs an instance of HttpJsonLanguageServiceStub, 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

HttpJsonLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonLanguageServiceStub(LanguageServiceStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

Constructs an instance of HttpJsonLanguageServiceStub, 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 HttpJsonStubCallableFactory

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

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.