Class HttpJsonLanguageServiceStub (2.53.0)

public class HttpJsonLanguageServiceStub extends LanguageServiceStub

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)

public static final HttpJsonLanguageServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonLanguageServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(LanguageServiceStubSettings settings)

public static final HttpJsonLanguageServiceStub create(LanguageServiceStubSettings settings)
Parameter
Name Description
settings LanguageServiceStubSettings
Returns
Type Description
HttpJsonLanguageServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext)

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)

protected HttpJsonLanguageServiceStub(LanguageServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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

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