Class GrpcModelServiceStub (2.9.8)

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.

Inheritance

java.lang.Object > ModelServiceStub > GrpcModelServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcModelServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcModelServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcModelServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcModelServiceStub
Exceptions
TypeDescription
IOException

create(ModelServiceStubSettings settings)

public static final GrpcModelServiceStub create(ModelServiceStubSettings settings)
Parameter
NameDescription
settingsModelServiceStubSettings
Returns
TypeDescription
GrpcModelServiceStub
Exceptions
TypeDescription
IOException

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
NameDescription
settingsModelServiceStubSettings
clientContextClientContext

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
NameDescription
settingsModelServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

deleteModelCallable()

public UnaryCallable<DeleteModelRequest,Operation> deleteModelCallable()
Returns Overrides

deleteModelOperationCallable()

public OperationCallable<DeleteModelRequest,Empty,DeleteOperationMetadata> deleteModelOperationCallable()
Returns Overrides

exportModelCallable()

public UnaryCallable<ExportModelRequest,Operation> exportModelCallable()
Returns Overrides

exportModelOperationCallable()

public OperationCallable<ExportModelRequest,ExportModelResponse,ExportModelOperationMetadata> exportModelOperationCallable()
Returns Overrides

getModelCallable()

public UnaryCallable<GetModelRequest,Model> getModelCallable()
Returns Overrides

getModelEvaluationCallable()

public UnaryCallable<GetModelEvaluationRequest,ModelEvaluation> getModelEvaluationCallable()
Returns Overrides

getModelEvaluationSliceCallable()

public UnaryCallable<GetModelEvaluationSliceRequest,ModelEvaluationSlice> getModelEvaluationSliceCallable()
Returns Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

importModelEvaluationCallable()

public UnaryCallable<ImportModelEvaluationRequest,ModelEvaluation> importModelEvaluationCallable()
Returns Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listModelEvaluationSlicesCallable()

public UnaryCallable<ListModelEvaluationSlicesRequest,ListModelEvaluationSlicesResponse> listModelEvaluationSlicesCallable()
Returns Overrides

listModelEvaluationSlicesPagedCallable()

public UnaryCallable<ListModelEvaluationSlicesRequest,ModelServiceClient.ListModelEvaluationSlicesPagedResponse> listModelEvaluationSlicesPagedCallable()
Returns Overrides

listModelEvaluationsCallable()

public UnaryCallable<ListModelEvaluationsRequest,ListModelEvaluationsResponse> listModelEvaluationsCallable()
Returns Overrides

listModelEvaluationsPagedCallable()

public UnaryCallable<ListModelEvaluationsRequest,ModelServiceClient.ListModelEvaluationsPagedResponse> listModelEvaluationsPagedCallable()
Returns Overrides

listModelsCallable()

public UnaryCallable<ListModelsRequest,ListModelsResponse> listModelsCallable()
Returns Overrides

listModelsPagedCallable()

public UnaryCallable<ListModelsRequest,ModelServiceClient.ListModelsPagedResponse> listModelsPagedCallable()
Returns Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateModelCallable()

public UnaryCallable<UpdateModelRequest,Model> updateModelCallable()
Returns Overrides

uploadModelCallable()

public UnaryCallable<UploadModelRequest,Operation> uploadModelCallable()
Returns Overrides

uploadModelOperationCallable()

public OperationCallable<UploadModelRequest,UploadModelResponse,UploadModelOperationMetadata> uploadModelOperationCallable()
Returns Overrides