Class AutoMlConnection (2.12.0)

This interface defines virtual methods for each of the user-facing overload sets in AutoMlClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type AutoMlClient.

To create a concrete instance, see MakeAutoMlConnection().

For mocking, see automl_v1_mocks::MockAutoMlConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateDataset(google::cloud::automl::v1::CreateDatasetRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::CreateDatasetRequest const &
Returns
Type Description
future< StatusOr< google::cloud::automl::v1::Dataset > >

virtual GetDataset(google::cloud::automl::v1::GetDatasetRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::GetDatasetRequest const &
Returns
Type Description
StatusOr< google::cloud::automl::v1::Dataset >

virtual ListDatasets(google::cloud::automl::v1::ListDatasetsRequest)

Parameter
Name Description
request google::cloud::automl::v1::ListDatasetsRequest
Returns
Type Description
StreamRange< google::cloud::automl::v1::Dataset >

virtual UpdateDataset(google::cloud::automl::v1::UpdateDatasetRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::UpdateDatasetRequest const &
Returns
Type Description
StatusOr< google::cloud::automl::v1::Dataset >

virtual DeleteDataset(google::cloud::automl::v1::DeleteDatasetRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::DeleteDatasetRequest const &
Returns
Type Description
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

virtual ImportData(google::cloud::automl::v1::ImportDataRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::ImportDataRequest const &
Returns
Type Description
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

virtual ExportData(google::cloud::automl::v1::ExportDataRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::ExportDataRequest const &
Returns
Type Description
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

virtual GetAnnotationSpec(google::cloud::automl::v1::GetAnnotationSpecRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::GetAnnotationSpecRequest const &
Returns
Type Description
StatusOr< google::cloud::automl::v1::AnnotationSpec >

virtual CreateModel(google::cloud::automl::v1::CreateModelRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::CreateModelRequest const &
Returns
Type Description
future< StatusOr< google::cloud::automl::v1::Model > >

virtual GetModel(google::cloud::automl::v1::GetModelRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::GetModelRequest const &
Returns
Type Description
StatusOr< google::cloud::automl::v1::Model >

virtual ListModels(google::cloud::automl::v1::ListModelsRequest)

Parameter
Name Description
request google::cloud::automl::v1::ListModelsRequest
Returns
Type Description
StreamRange< google::cloud::automl::v1::Model >

virtual DeleteModel(google::cloud::automl::v1::DeleteModelRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::DeleteModelRequest const &
Returns
Type Description
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

virtual UpdateModel(google::cloud::automl::v1::UpdateModelRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::UpdateModelRequest const &
Returns
Type Description
StatusOr< google::cloud::automl::v1::Model >

virtual DeployModel(google::cloud::automl::v1::DeployModelRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::DeployModelRequest const &
Returns
Type Description
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

virtual UndeployModel(google::cloud::automl::v1::UndeployModelRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::UndeployModelRequest const &
Returns
Type Description
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

virtual ExportModel(google::cloud::automl::v1::ExportModelRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::ExportModelRequest const &
Returns
Type Description
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

virtual GetModelEvaluation(google::cloud::automl::v1::GetModelEvaluationRequest const &)

Parameter
Name Description
request google::cloud::automl::v1::GetModelEvaluationRequest const &
Returns
Type Description
StatusOr< google::cloud::automl::v1::ModelEvaluation >

virtual ListModelEvaluations(google::cloud::automl::v1::ListModelEvaluationsRequest)

Parameter
Name Description
request google::cloud::automl::v1::ListModelEvaluationsRequest
Returns
Type Description
StreamRange< google::cloud::automl::v1::ModelEvaluation >