Class GrpcModelServiceStub (3.19.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

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

batchImportEvaluatedAnnotationsCallable()

public UnaryCallable<BatchImportEvaluatedAnnotationsRequest,BatchImportEvaluatedAnnotationsResponse> batchImportEvaluatedAnnotationsCallable()
Returns
TypeDescription
UnaryCallable<BatchImportEvaluatedAnnotationsRequest,BatchImportEvaluatedAnnotationsResponse>
Overrides

batchImportModelEvaluationSlicesCallable()

public UnaryCallable<BatchImportModelEvaluationSlicesRequest,BatchImportModelEvaluationSlicesResponse> batchImportModelEvaluationSlicesCallable()
Returns
TypeDescription
UnaryCallable<BatchImportModelEvaluationSlicesRequest,BatchImportModelEvaluationSlicesResponse>
Overrides

close()

public final void close()
Overrides

copyModelCallable()

public UnaryCallable<CopyModelRequest,Operation> copyModelCallable()
Returns
TypeDescription
UnaryCallable<CopyModelRequest,Operation>
Overrides

copyModelOperationCallable()

public OperationCallable<CopyModelRequest,CopyModelResponse,CopyModelOperationMetadata> copyModelOperationCallable()
Returns
TypeDescription
OperationCallable<CopyModelRequest,CopyModelResponse,CopyModelOperationMetadata>
Overrides

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

deleteModelVersionCallable()

public UnaryCallable<DeleteModelVersionRequest,Operation> deleteModelVersionCallable()
Returns
TypeDescription
UnaryCallable<DeleteModelVersionRequest,Operation>
Overrides

deleteModelVersionOperationCallable()

public OperationCallable<DeleteModelVersionRequest,Empty,DeleteOperationMetadata> deleteModelVersionOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteModelVersionRequest,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

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
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

importModelEvaluationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ModelServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

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

listModelVersionsCallable()

public UnaryCallable<ListModelVersionsRequest,ListModelVersionsResponse> listModelVersionsCallable()
Returns
TypeDescription
UnaryCallable<ListModelVersionsRequest,ListModelVersionsResponse>
Overrides

listModelVersionsPagedCallable()

public UnaryCallable<ListModelVersionsRequest,ModelServiceClient.ListModelVersionsPagedResponse> listModelVersionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListModelVersionsRequest,ListModelVersionsPagedResponse>
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

mergeVersionAliasesCallable()

public UnaryCallable<MergeVersionAliasesRequest,Model> mergeVersionAliasesCallable()
Returns
TypeDescription
UnaryCallable<MergeVersionAliasesRequest,Model>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateExplanationDatasetCallable()

public UnaryCallable<UpdateExplanationDatasetRequest,Operation> updateExplanationDatasetCallable()
Returns
TypeDescription
UnaryCallable<UpdateExplanationDatasetRequest,Operation>
Overrides

updateExplanationDatasetOperationCallable()

public OperationCallable<UpdateExplanationDatasetRequest,UpdateExplanationDatasetResponse,UpdateExplanationDatasetOperationMetadata> updateExplanationDatasetOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateExplanationDatasetRequest,UpdateExplanationDatasetResponse,UpdateExplanationDatasetOperationMetadata>
Overrides

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