Class AutoMlConnection (2.16.0-rc)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::automl::v1::CreateDatasetRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::automl::v1::Dataset > >

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

Parameter
NameDescription
request google::cloud::automl::v1::GetDatasetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::automl::v1::Dataset >

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

Parameter
NameDescription
request google::cloud::automl::v1::ListDatasetsRequest
Returns
TypeDescription
StreamRange< google::cloud::automl::v1::Dataset >

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

Parameter
NameDescription
request google::cloud::automl::v1::UpdateDatasetRequest const &
Returns
TypeDescription
StatusOr< google::cloud::automl::v1::Dataset >

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

Parameter
NameDescription
request google::cloud::automl::v1::DeleteDatasetRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::automl::v1::ImportDataRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::automl::v1::ExportDataRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::automl::v1::GetAnnotationSpecRequest const &
Returns
TypeDescription
StatusOr< google::cloud::automl::v1::AnnotationSpec >

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

Parameter
NameDescription
request google::cloud::automl::v1::CreateModelRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::automl::v1::Model > >

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

Parameter
NameDescription
request google::cloud::automl::v1::GetModelRequest const &
Returns
TypeDescription
StatusOr< google::cloud::automl::v1::Model >

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

Parameter
NameDescription
request google::cloud::automl::v1::ListModelsRequest
Returns
TypeDescription
StreamRange< google::cloud::automl::v1::Model >

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

Parameter
NameDescription
request google::cloud::automl::v1::DeleteModelRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::automl::v1::UpdateModelRequest const &
Returns
TypeDescription
StatusOr< google::cloud::automl::v1::Model >

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

Parameter
NameDescription
request google::cloud::automl::v1::DeployModelRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::automl::v1::UndeployModelRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::automl::v1::ExportModelRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::automl::v1::OperationMetadata > >

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

Parameter
NameDescription
request google::cloud::automl::v1::GetModelEvaluationRequest const &
Returns
TypeDescription
StatusOr< google::cloud::automl::v1::ModelEvaluation >

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

Parameter
NameDescription
request google::cloud::automl::v1::ListModelEvaluationsRequest
Returns
TypeDescription
StreamRange< google::cloud::automl::v1::ModelEvaluation >