Class HttpJsonSearchTuningServiceStub (0.42.0)

public class HttpJsonSearchTuningServiceStub extends SearchTuningServiceStub

REST stub implementation for the SearchTuningService service API.

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

Inheritance

java.lang.Object > SearchTuningServiceStub > HttpJsonSearchTuningServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SearchTuningServiceStubSettings settings)

public static final HttpJsonSearchTuningServiceStub create(SearchTuningServiceStubSettings settings)
Parameter
Name Description
settings SearchTuningServiceStubSettings
Returns
Type Description
HttpJsonSearchTuningServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonSearchTuningServiceStub(SearchTuningServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonSearchTuningServiceStub(SearchTuningServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonSearchTuningServiceStub, 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 SearchTuningServiceStubSettings
clientContext ClientContext

HttpJsonSearchTuningServiceStub(SearchTuningServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSearchTuningServiceStub(SearchTuningServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonSearchTuningServiceStub, 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 SearchTuningServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

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

close()

public final void close()
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCustomModelsCallable()

public UnaryCallable<ListCustomModelsRequest,ListCustomModelsResponse> listCustomModelsCallable()
Returns
Type Description
UnaryCallable<ListCustomModelsRequest,ListCustomModelsResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

trainCustomModelCallable()

public UnaryCallable<TrainCustomModelRequest,Operation> trainCustomModelCallable()
Returns
Type Description
UnaryCallable<TrainCustomModelRequest,Operation>
Overrides

trainCustomModelOperationCallable()

public OperationCallable<TrainCustomModelRequest,TrainCustomModelResponse,TrainCustomModelMetadata> trainCustomModelOperationCallable()
Returns
Type Description
OperationCallable<TrainCustomModelRequest,TrainCustomModelResponse,TrainCustomModelMetadata>
Overrides