#[non_exhaustive]pub struct SearchDataItemsRequest {
pub dataset: String,
pub saved_query: String,
pub data_labeling_job: String,
pub data_item_filter: String,
pub annotations_filter: String,
pub annotation_filters: Vec<String>,
pub field_mask: Option<FieldMask>,
pub annotations_limit: i32,
pub page_size: i32,
pub order_by: String,
pub page_token: String,
pub order: Option<Order>,
/* private fields */
}Expand description
Request message for DatasetService.SearchDataItems.
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.dataset: StringRequired. The resource name of the Dataset from which to search DataItems.
Format:
projects/{project}/locations/{location}/datasets/{dataset}
saved_query: StringThe resource name of a SavedQuery(annotation set in UI).
Format:
projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}
All of the search will be done in the context of this SavedQuery.
data_labeling_job: StringThe resource name of a DataLabelingJob.
Format:
projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}
If this field is set, all of the search will be done in the context of
this DataLabelingJob.
data_item_filter: StringAn expression for filtering the DataItem that will be returned.
data_item_id- for = or !=.labeled- for = or !=.has_annotation(ANNOTATION_SPEC_ID)- true only for DataItem that have at least one annotation with annotation_spec_id =ANNOTATION_SPEC_IDin the context of SavedQuery or DataLabelingJob.
For example:
data_item=1has_annotation(5)
annotations_filter: StringAn expression for filtering the Annotations that will be returned per DataItem.
annotation_spec_id- for = or !=.
annotation_filters: Vec<String>An expression that specifies what Annotations will be returned per DataItem. Annotations satisfied either of the conditions will be returned.
annotation_spec_id- for = or !=. Must specifysaved_query_id=- saved query id that annotations should belong to.
field_mask: Option<FieldMask>Mask specifying which fields of DataItemView to read.
annotations_limit: i32If set, only up to this many of Annotations will be returned per DataItemView. The maximum value is 1000. If not set, the maximum value will be used.
page_size: i32Requested page size. Server may return fewer results than requested. Default and maximum page size is 100.
order_by: StringA comma-separated list of fields to order by, sorted in ascending order. Use “desc” after a field name for descending.
page_token: StringA token identifying a page of results for the server to return Typically obtained via SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems call.
order: Option<Order>Implementations§
Source§impl SearchDataItemsRequest
impl SearchDataItemsRequest
pub fn new() -> Self
Sourcepub fn set_dataset<T: Into<String>>(self, v: T) -> Self
pub fn set_dataset<T: Into<String>>(self, v: T) -> Self
Sets the value of dataset.
Sourcepub fn set_saved_query<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_saved_query<T: Into<String>>(self, v: T) -> Self
Sets the value of saved_query.
Sourcepub fn set_data_labeling_job<T: Into<String>>(self, v: T) -> Self
pub fn set_data_labeling_job<T: Into<String>>(self, v: T) -> Self
Sets the value of data_labeling_job.
Sourcepub fn set_data_item_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_data_item_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of data_item_filter.
Sourcepub fn set_annotations_filter<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_annotations_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of annotations_filter.
Sourcepub fn set_annotation_filters<T, V>(self, v: T) -> Self
pub fn set_annotation_filters<T, V>(self, v: T) -> Self
Sets the value of annotation_filters.
Sourcepub fn set_field_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
pub fn set_field_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
Sets the value of field_mask.
Sourcepub fn set_annotations_limit<T: Into<i32>>(self, v: T) -> Self
pub fn set_annotations_limit<T: Into<i32>>(self, v: T) -> Self
Sets the value of annotations_limit.
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of page_size.
Sourcepub fn set_order_by<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_order_by<T: Into<String>>(self, v: T) -> Self
Sets the value of order_by.
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
Sourcepub fn set_order<T: Into<Option<Order>>>(self, v: T) -> Self
pub fn set_order<T: Into<Option<Order>>>(self, v: T) -> Self
Sets the value of order.
Note that all the setters affecting order are mutually
exclusive.
Sourcepub fn order_by_data_item(&self) -> Option<&String>
pub fn order_by_data_item(&self) -> Option<&String>
The value of order
if it holds a OrderByDataItem, None if the field is not set or
holds a different branch.
Sourcepub fn set_order_by_data_item<T: Into<String>>(self, v: T) -> Self
pub fn set_order_by_data_item<T: Into<String>>(self, v: T) -> Self
Sets the value of order
to hold a OrderByDataItem.
Note that all the setters affecting order are
mutually exclusive.
Sourcepub fn order_by_annotation(&self) -> Option<&Box<OrderByAnnotation>>
pub fn order_by_annotation(&self) -> Option<&Box<OrderByAnnotation>>
The value of order
if it holds a OrderByAnnotation, None if the field is not set or
holds a different branch.
Sourcepub fn set_order_by_annotation<T: Into<Box<OrderByAnnotation>>>(
self,
v: T,
) -> Self
pub fn set_order_by_annotation<T: Into<Box<OrderByAnnotation>>>( self, v: T, ) -> Self
Sets the value of order
to hold a OrderByAnnotation.
Note that all the setters affecting order are
mutually exclusive.
Trait Implementations§
Source§impl Clone for SearchDataItemsRequest
impl Clone for SearchDataItemsRequest
Source§fn clone(&self) -> SearchDataItemsRequest
fn clone(&self) -> SearchDataItemsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more