Package com.google.cloud.retail.v2.stub
Class HttpJsonModelServiceStub
java.lang.Object
com.google.cloud.retail.v2.stub.ModelServiceStub
com.google.cloud.retail.v2.stub.HttpJsonModelServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class HttpJsonModelServiceStub
extends ModelServiceStub
REST stub implementation for the ModelService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonModelServiceStub, using the given settings.protectedHttpJsonModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonModelServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonModelServiceStubcreate(ClientContext clientContext) static final HttpJsonModelServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonModelServiceStubcreate(ModelServiceStubSettings settings) UnaryCallable<DeleteModelRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.retail.v2.stub.ModelServiceStub
getOperationsStub
-
Constructor Details
-
HttpJsonModelServiceStub
protected HttpJsonModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonModelServiceStub, 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.- Throws:
IOException
-
HttpJsonModelServiceStub
protected HttpJsonModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonModelServiceStub, 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.- Throws:
IOException
-
-
Method Details
-
create
public static final HttpJsonModelServiceStub create(ModelServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final HttpJsonModelServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getHttpJsonOperationsStub
- Overrides:
getHttpJsonOperationsStubin classModelServiceStub
-
createModelCallable
- Overrides:
createModelCallablein classModelServiceStub
-
createModelOperationCallable
public OperationCallable<CreateModelRequest,Model, createModelOperationCallable()CreateModelMetadata> - Overrides:
createModelOperationCallablein classModelServiceStub
-
getModelCallable
- Overrides:
getModelCallablein classModelServiceStub
-
pauseModelCallable
- Overrides:
pauseModelCallablein classModelServiceStub
-
resumeModelCallable
- Overrides:
resumeModelCallablein classModelServiceStub
-
deleteModelCallable
- Overrides:
deleteModelCallablein classModelServiceStub
-
listModelsCallable
- Overrides:
listModelsCallablein classModelServiceStub
-
listModelsPagedCallable
public UnaryCallable<ListModelsRequest,ModelServiceClient.ListModelsPagedResponse> listModelsPagedCallable()- Overrides:
listModelsPagedCallablein classModelServiceStub
-
updateModelCallable
- Overrides:
updateModelCallablein classModelServiceStub
-
tuneModelCallable
- Overrides:
tuneModelCallablein classModelServiceStub
-
tuneModelOperationCallable
public OperationCallable<TuneModelRequest,TuneModelResponse, tuneModelOperationCallable()TuneModelMetadata> - Overrides:
tuneModelOperationCallablein classModelServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classModelServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-