Class GrpcModelServiceStub (2.4.0)

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

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

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

deleteModelCallable()

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

deleteModelOperationCallable()

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

exportModelCallable()

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

exportModelOperationCallable()

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

getModelCallable()

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

getModelEvaluationCallable()

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

getModelEvaluationSliceCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listModelEvaluationSlicesCallable()

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

listModelEvaluationSlicesPagedCallable()

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

listModelEvaluationsCallable()

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

listModelEvaluationsPagedCallable()

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

listModelsCallable()

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

listModelsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateModelCallable()

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

uploadModelCallable()

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

uploadModelOperationCallable()

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