Class AutoMlConnection (2.33.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 CreateDataset(NoAwaitTag, google::cloud::automl::v1::CreateDatasetRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::automl::v1::CreateDatasetRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateDataset(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 DeleteDataset(NoAwaitTag, google::cloud::automl::v1::DeleteDatasetRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::automl::v1::DeleteDatasetRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteDataset(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 ImportData(NoAwaitTag, google::cloud::automl::v1::ImportDataRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::automl::v1::ImportDataRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ImportData(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 ExportData(NoAwaitTag, google::cloud::automl::v1::ExportDataRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::automl::v1::ExportDataRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ExportData(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 CreateModel(NoAwaitTag, google::cloud::automl::v1::CreateModelRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::automl::v1::CreateModelRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateModel(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 DeleteModel(NoAwaitTag, google::cloud::automl::v1::DeleteModelRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::automl::v1::DeleteModelRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteModel(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 DeployModel(NoAwaitTag, google::cloud::automl::v1::DeployModelRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::automl::v1::DeployModelRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeployModel(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 UndeployModel(NoAwaitTag, google::cloud::automl::v1::UndeployModelRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::automl::v1::UndeployModelRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UndeployModel(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 ExportModel(NoAwaitTag, google::cloud::automl::v1::ExportModelRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::automl::v1::ExportModelRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ExportModel(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation 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 >