Class HttpJsonRecommendationServiceStub (0.18.0)

public class HttpJsonRecommendationServiceStub extends RecommendationServiceStub

REST stub implementation for the RecommendationService service API.

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

Inheritance

java.lang.Object > RecommendationServiceStub > HttpJsonRecommendationServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonRecommendationServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonRecommendationServiceStub
Exceptions
TypeDescription
IOException

create(RecommendationServiceStubSettings settings)

public static final HttpJsonRecommendationServiceStub create(RecommendationServiceStubSettings settings)
Parameter
NameDescription
settingsRecommendationServiceStubSettings
Returns
TypeDescription
HttpJsonRecommendationServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonRecommendationServiceStub(RecommendationServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonRecommendationServiceStub(RecommendationServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRecommendationServiceStub, 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
settingsRecommendationServiceStubSettings
clientContextClientContext

HttpJsonRecommendationServiceStub(RecommendationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRecommendationServiceStub(RecommendationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonRecommendationServiceStub, 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
settingsRecommendationServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

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

close()

public final void close()
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

recommendCallable()

public UnaryCallable<RecommendRequest,RecommendResponse> recommendCallable()
Returns
TypeDescription
UnaryCallable<RecommendRequest,RecommendResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()