Struct gapi_grpc::google::cloud::automl::v1beta1::auto_ml_client::AutoMlClient [−][src]
AutoML Server API.
The resource names are assigned by the server. The server never reuses names that it has created after the resources with those names are deleted.
An ID of a resource is the last element of the item’s resource name. For
projects/{project_id}/locations/{location_id}/datasets/{dataset_id}
, then
the id for the item is {dataset_id}
.
Currently the only supported location_id
is “us-central1”.
On any input that is documented to expect a string parameter in snake_case or kebab-case, either of those cases is accepted.
Implementations
impl AutoMlClient<Channel>
[src]
pub async fn connect<D>(dst: D) -> Result<Self, Error> where
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
[src]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
Attempt to create a new client by connecting to a given endpoint.
impl<T> AutoMlClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
[src]
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
[src]
pub async fn create_dataset(
&mut self,
request: impl IntoRequest<CreateDatasetRequest>
) -> Result<Response<Dataset>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateDatasetRequest>
) -> Result<Response<Dataset>, Status>
Creates a dataset.
pub async fn get_dataset(
&mut self,
request: impl IntoRequest<GetDatasetRequest>
) -> Result<Response<Dataset>, Status>
[src]
&mut self,
request: impl IntoRequest<GetDatasetRequest>
) -> Result<Response<Dataset>, Status>
Gets a dataset.
pub async fn list_datasets(
&mut self,
request: impl IntoRequest<ListDatasetsRequest>
) -> Result<Response<ListDatasetsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListDatasetsRequest>
) -> Result<Response<ListDatasetsResponse>, Status>
Lists datasets in a project.
pub async fn update_dataset(
&mut self,
request: impl IntoRequest<UpdateDatasetRequest>
) -> Result<Response<Dataset>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateDatasetRequest>
) -> Result<Response<Dataset>, Status>
Updates a dataset.
pub async fn delete_dataset(
&mut self,
request: impl IntoRequest<DeleteDatasetRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteDatasetRequest>
) -> Result<Response<Operation>, Status>
Deletes a dataset and all of its contents.
Returns empty response in the
[response][google.longrunning.Operation.response] field when it completes,
and delete_details
in the
[metadata][google.longrunning.Operation.metadata] field.
pub async fn import_data(
&mut self,
request: impl IntoRequest<ImportDataRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<ImportDataRequest>
) -> Result<Response<Operation>, Status>
Imports data into a dataset. For Tables this method can only be called on an empty Dataset.
For Tables:
- A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter must be explicitly set. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
pub async fn export_data(
&mut self,
request: impl IntoRequest<ExportDataRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<ExportDataRequest>
) -> Result<Response<Operation>, Status>
Exports dataset’s data to the provided output location. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
pub async fn get_annotation_spec(
&mut self,
request: impl IntoRequest<GetAnnotationSpecRequest>
) -> Result<Response<AnnotationSpec>, Status>
[src]
&mut self,
request: impl IntoRequest<GetAnnotationSpecRequest>
) -> Result<Response<AnnotationSpec>, Status>
Gets an annotation spec.
pub async fn get_table_spec(
&mut self,
request: impl IntoRequest<GetTableSpecRequest>
) -> Result<Response<TableSpec>, Status>
[src]
&mut self,
request: impl IntoRequest<GetTableSpecRequest>
) -> Result<Response<TableSpec>, Status>
Gets a table spec.
pub async fn list_table_specs(
&mut self,
request: impl IntoRequest<ListTableSpecsRequest>
) -> Result<Response<ListTableSpecsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListTableSpecsRequest>
) -> Result<Response<ListTableSpecsResponse>, Status>
Lists table specs in a dataset.
pub async fn update_table_spec(
&mut self,
request: impl IntoRequest<UpdateTableSpecRequest>
) -> Result<Response<TableSpec>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateTableSpecRequest>
) -> Result<Response<TableSpec>, Status>
Updates a table spec.
pub async fn get_column_spec(
&mut self,
request: impl IntoRequest<GetColumnSpecRequest>
) -> Result<Response<ColumnSpec>, Status>
[src]
&mut self,
request: impl IntoRequest<GetColumnSpecRequest>
) -> Result<Response<ColumnSpec>, Status>
Gets a column spec.
pub async fn list_column_specs(
&mut self,
request: impl IntoRequest<ListColumnSpecsRequest>
) -> Result<Response<ListColumnSpecsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListColumnSpecsRequest>
) -> Result<Response<ListColumnSpecsResponse>, Status>
Lists column specs in a table spec.
pub async fn update_column_spec(
&mut self,
request: impl IntoRequest<UpdateColumnSpecRequest>
) -> Result<Response<ColumnSpec>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateColumnSpecRequest>
) -> Result<Response<ColumnSpec>, Status>
Updates a column spec.
pub async fn create_model(
&mut self,
request: impl IntoRequest<CreateModelRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateModelRequest>
) -> Result<Response<Operation>, Status>
Creates a model. Returns a Model in the [response][google.longrunning.Operation.response] field when it completes. When you create a model, several model evaluations are created for it: a global evaluation, and one evaluation for each annotation spec.
pub async fn get_model(
&mut self,
request: impl IntoRequest<GetModelRequest>
) -> Result<Response<Model>, Status>
[src]
&mut self,
request: impl IntoRequest<GetModelRequest>
) -> Result<Response<Model>, Status>
Gets a model.
pub async fn list_models(
&mut self,
request: impl IntoRequest<ListModelsRequest>
) -> Result<Response<ListModelsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListModelsRequest>
) -> Result<Response<ListModelsResponse>, Status>
Lists models.
pub async fn delete_model(
&mut self,
request: impl IntoRequest<DeleteModelRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteModelRequest>
) -> Result<Response<Operation>, Status>
Deletes a model.
Returns google.protobuf.Empty
in the
[response][google.longrunning.Operation.response] field when it completes,
and delete_details
in the
[metadata][google.longrunning.Operation.metadata] field.
pub async fn deploy_model(
&mut self,
request: impl IntoRequest<DeployModelRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<DeployModelRequest>
) -> Result<Response<Operation>, Status>
Deploys a model. If a model is already deployed, deploying it with the same parameters has no effect. Deploying with different parametrs (as e.g. changing
[node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]) will reset the deployment state without pausing the model’s availability.
Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage deployment automatically.
Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
pub async fn undeploy_model(
&mut self,
request: impl IntoRequest<UndeployModelRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<UndeployModelRequest>
) -> Result<Response<Operation>, Status>
Undeploys a model. If the model is not deployed this method has no effect.
Only applicable for Text Classification, Image Object Detection and Tables; all other domains manage deployment automatically.
Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
pub async fn export_model(
&mut self,
request: impl IntoRequest<ExportModelRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<ExportModelRequest>
) -> Result<Response<Operation>, Status>
Exports a trained, “export-able”, model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in
[ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].
Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
pub async fn export_evaluated_examples(
&mut self,
request: impl IntoRequest<ExportEvaluatedExamplesRequest>
) -> Result<Response<Operation>, Status>
[src]
&mut self,
request: impl IntoRequest<ExportEvaluatedExamplesRequest>
) -> Result<Response<Operation>, Status>
Exports examples on which the model was evaluated (i.e. which were in the TEST set of the dataset the model was created from), together with their ground truth annotations and the annotations created (predicted) by the model. The examples, ground truth and predictions are exported in the state they were at the moment the model was evaluated.
This export is available only for 30 days since the model evaluation is created.
Currently only available for Tables.
Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.
pub async fn get_model_evaluation(
&mut self,
request: impl IntoRequest<GetModelEvaluationRequest>
) -> Result<Response<ModelEvaluation>, Status>
[src]
&mut self,
request: impl IntoRequest<GetModelEvaluationRequest>
) -> Result<Response<ModelEvaluation>, Status>
Gets a model evaluation.
pub async fn list_model_evaluations(
&mut self,
request: impl IntoRequest<ListModelEvaluationsRequest>
) -> Result<Response<ListModelEvaluationsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListModelEvaluationsRequest>
) -> Result<Response<ListModelEvaluationsResponse>, Status>
Lists model evaluations.
Trait Implementations
impl<T: Clone> Clone for AutoMlClient<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for AutoMlClient<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for AutoMlClient<T>
impl<T> Send for AutoMlClient<T> where
T: Send,
T: Send,
impl<T> Sync for AutoMlClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for AutoMlClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for AutoMlClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,