Package com.google.cloud.retail.v2.stub
Class GrpcModelServiceStub
java.lang.Object
com.google.cloud.retail.v2.stub.ModelServiceStub
com.google.cloud.retail.v2.stub.GrpcModelServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the ModelService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcModelServiceStub, using the given settings.protectedGrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcModelServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcModelServiceStubcreate(ClientContext clientContext) static final GrpcModelServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcModelServiceStubcreate(ModelServiceStubSettings settings) UnaryCallable<DeleteModelRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.retail.v2.stub.ModelServiceStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcModelServiceStub
protected GrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcModelServiceStub, 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
-
GrpcModelServiceStub
protected GrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcModelServiceStub, 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 GrpcModelServiceStub create(ModelServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcModelServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin 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
-