Class GrpcModelServiceStub
- java.lang.Object
-
- com.google.cloud.retail.v2alpha.stub.ModelServiceStub
-
- com.google.cloud.retail.v2alpha.stub.GrpcModelServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcModelServiceStub extends ModelServiceStub
gRPC stub implementation for the ModelService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcModelServiceStub(ModelServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcModelServiceStub, using the given settings.protectedGrpcModelServiceStub(ModelServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcModelServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcModelServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcModelServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcModelServiceStubcreate(ModelServiceStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateModelRequest,com.google.longrunning.Operation>createModelCallable()com.google.api.gax.rpc.OperationCallable<CreateModelRequest,Model,CreateModelMetadata>createModelOperationCallable()com.google.api.gax.rpc.UnaryCallable<DeleteModelRequest,com.google.protobuf.Empty>deleteModelCallable()com.google.api.gax.rpc.UnaryCallable<GetModelRequest,Model>getModelCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()booleanisShutdown()booleanisTerminated()com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,ListModelsResponse>listModelsCallable()com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,ModelServiceClient.ListModelsPagedResponse>listModelsPagedCallable()com.google.api.gax.rpc.UnaryCallable<PauseModelRequest,Model>pauseModelCallable()com.google.api.gax.rpc.UnaryCallable<ResumeModelRequest,Model>resumeModelCallable()voidshutdown()voidshutdownNow()com.google.api.gax.rpc.UnaryCallable<TuneModelRequest,com.google.longrunning.Operation>tuneModelCallable()com.google.api.gax.rpc.OperationCallable<TuneModelRequest,TuneModelResponse,TuneModelMetadata>tuneModelOperationCallable()com.google.api.gax.rpc.UnaryCallable<UpdateModelRequest,Model>updateModelCallable()-
Methods inherited from class com.google.cloud.retail.v2alpha.stub.ModelServiceStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcModelServiceStub
protected GrpcModelServiceStub(ModelServiceStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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 Detail
-
create
public static final GrpcModelServiceStub create(ModelServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcModelServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcModelServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classModelServiceStub
-
createModelCallable
public com.google.api.gax.rpc.UnaryCallable<CreateModelRequest,com.google.longrunning.Operation> createModelCallable()
- Overrides:
createModelCallablein classModelServiceStub
-
createModelOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateModelRequest,Model,CreateModelMetadata> createModelOperationCallable()
- Overrides:
createModelOperationCallablein classModelServiceStub
-
getModelCallable
public com.google.api.gax.rpc.UnaryCallable<GetModelRequest,Model> getModelCallable()
- Overrides:
getModelCallablein classModelServiceStub
-
pauseModelCallable
public com.google.api.gax.rpc.UnaryCallable<PauseModelRequest,Model> pauseModelCallable()
- Overrides:
pauseModelCallablein classModelServiceStub
-
resumeModelCallable
public com.google.api.gax.rpc.UnaryCallable<ResumeModelRequest,Model> resumeModelCallable()
- Overrides:
resumeModelCallablein classModelServiceStub
-
deleteModelCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteModelRequest,com.google.protobuf.Empty> deleteModelCallable()
- Overrides:
deleteModelCallablein classModelServiceStub
-
listModelsCallable
public com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,ListModelsResponse> listModelsCallable()
- Overrides:
listModelsCallablein classModelServiceStub
-
listModelsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListModelsRequest,ModelServiceClient.ListModelsPagedResponse> listModelsPagedCallable()
- Overrides:
listModelsPagedCallablein classModelServiceStub
-
updateModelCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateModelRequest,Model> updateModelCallable()
- Overrides:
updateModelCallablein classModelServiceStub
-
tuneModelCallable
public com.google.api.gax.rpc.UnaryCallable<TuneModelRequest,com.google.longrunning.Operation> tuneModelCallable()
- Overrides:
tuneModelCallablein classModelServiceStub
-
tuneModelOperationCallable
public com.google.api.gax.rpc.OperationCallable<TuneModelRequest,TuneModelResponse,TuneModelMetadata> tuneModelOperationCallable()
- 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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-