#[non_exhaustive]pub struct SavedQuery {
pub name: String,
pub display_name: String,
pub metadata: Option<Value>,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub annotation_filter: String,
pub problem_type: String,
pub annotation_spec_count: i32,
pub etag: String,
pub support_automl_training: bool,
/* private fields */
}Expand description
A SavedQuery is a view of the dataset. It references a subset of annotations by problem type and filters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. Resource name of the SavedQuery.
display_name: StringRequired. The user-defined name of the SavedQuery. The name can be up to 128 characters long and can consist of any UTF-8 characters.
metadata: Option<Value>Some additional information about the SavedQuery.
create_time: Option<Timestamp>Output only. Timestamp when this SavedQuery was created.
update_time: Option<Timestamp>Output only. Timestamp when SavedQuery was last updated.
annotation_filter: StringOutput only. Filters on the Annotations in the dataset.
problem_type: StringRequired. Problem type of the SavedQuery. Allowed values:
- IMAGE_CLASSIFICATION_SINGLE_LABEL
- IMAGE_CLASSIFICATION_MULTI_LABEL
- IMAGE_BOUNDING_POLY
- IMAGE_BOUNDING_BOX
- TEXT_CLASSIFICATION_SINGLE_LABEL
- TEXT_CLASSIFICATION_MULTI_LABEL
- TEXT_EXTRACTION
- TEXT_SENTIMENT
- VIDEO_CLASSIFICATION
- VIDEO_OBJECT_TRACKING
annotation_spec_count: i32Output only. Number of AnnotationSpecs in the context of the SavedQuery.
etag: StringUsed to perform a consistent read-modify-write update. If not set, a blind “overwrite” update happens.
support_automl_training: boolOutput only. If the Annotations belonging to the SavedQuery can be used for AutoML training.
Implementations§
Source§impl SavedQuery
impl SavedQuery
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_annotation_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_annotation_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of annotation_filter.
Sourcepub fn set_problem_type<T: Into<String>>(self, v: T) -> Self
pub fn set_problem_type<T: Into<String>>(self, v: T) -> Self
Sets the value of problem_type.
Sourcepub fn set_annotation_spec_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_annotation_spec_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of annotation_spec_count.
Sourcepub fn set_support_automl_training<T: Into<bool>>(self, v: T) -> Self
pub fn set_support_automl_training<T: Into<bool>>(self, v: T) -> Self
Sets the value of support_automl_training.
Trait Implementations§
Source§impl Clone for SavedQuery
impl Clone for SavedQuery
Source§fn clone(&self) -> SavedQuery
fn clone(&self) -> SavedQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more