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.
Constructors
GrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext)
protected GrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext)
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.
Parameters
GrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcModelServiceStub(ModelServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
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.
Parameters
Methods
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Returns
Exceptions
public final void close()
Overrides
create(ClientContext clientContext)
public static final GrpcModelServiceStub create(ClientContext clientContext)
Parameter
Returns
Exceptions
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcModelServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Returns
Exceptions
public static final GrpcModelServiceStub create(ModelServiceStubSettings settings)
Parameter
Returns
Exceptions
public UnaryCallable<DeleteModelRequest,Operation> deleteModelCallable()
Returns
Overrides
public OperationCallable<DeleteModelRequest,Empty,DeleteOperationMetadata> deleteModelOperationCallable()
Returns
Overrides
public UnaryCallable<ExportModelRequest,Operation> exportModelCallable()
Returns
Overrides
public OperationCallable<ExportModelRequest,ExportModelResponse,ExportModelOperationMetadata> exportModelOperationCallable()
Returns
Overrides
public UnaryCallable<GetModelRequest,Model> getModelCallable()
Returns
Overrides
public UnaryCallable<GetModelEvaluationRequest,ModelEvaluation> getModelEvaluationCallable()
Returns
Overrides
public UnaryCallable<GetModelEvaluationSliceRequest,ModelEvaluationSlice> getModelEvaluationSliceCallable()
Returns
Overrides
public GrpcOperationsStub getOperationsStub()
Returns
Overrides
public boolean isShutdown()
Returns
public boolean isTerminated()
Returns
public UnaryCallable<ListModelEvaluationSlicesRequest,ListModelEvaluationSlicesResponse> listModelEvaluationSlicesCallable()
Returns
Overrides
listModelEvaluationSlicesPagedCallable()
public UnaryCallable<ListModelEvaluationSlicesRequest,ModelServiceClient.ListModelEvaluationSlicesPagedResponse> listModelEvaluationSlicesPagedCallable()
Returns
Overrides
public UnaryCallable<ListModelEvaluationsRequest,ListModelEvaluationsResponse> listModelEvaluationsCallable()
Returns
Overrides
listModelEvaluationsPagedCallable()
public UnaryCallable<ListModelEvaluationsRequest,ModelServiceClient.ListModelEvaluationsPagedResponse> listModelEvaluationsPagedCallable()
Returns
Overrides
public UnaryCallable<ListModelsRequest,ListModelsResponse> listModelsCallable()
Returns
Overrides
listModelsPagedCallable()
public UnaryCallable<ListModelsRequest,ModelServiceClient.ListModelsPagedResponse> listModelsPagedCallable()
Returns
Overrides
public void shutdownNow()
public UnaryCallable<UpdateModelRequest,Model> updateModelCallable()
Returns
Overrides
public UnaryCallable<UploadModelRequest,Operation> uploadModelCallable()
Returns
Overrides
public OperationCallable<UploadModelRequest,UploadModelResponse,UploadModelOperationMetadata> uploadModelOperationCallable()
Returns
Overrides