#[non_exhaustive]pub struct QueryDataObjectsRequest {
pub parent: String,
pub filter: Option<Struct>,
pub output_fields: Option<OutputFields>,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Expand description
Request message for DataObjectSearchService.QueryDataObjects.
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.parent: StringRequired. The resource name of the Collection for which to query.
Format: projects/{project}/locations/{location}/collections/{collection}
filter: Option<Struct>Optional. A JSON filter expression, e.g. {“genre”: {“$eq”: “sci-fi”}}, represented as a google.protobuf.Struct.
output_fields: Option<OutputFields>Optional. Mask specifying which fields to return.
page_size: i32Optional. The standard list page size. Default is 100. The maximum value is 1000; values above 1000 will be coerced to 1000.
page_token: StringOptional. The standard list page token. Typically obtained via QueryDataObjectsResponse.next_page_token of the previous DataObjectSearchService.QueryDataObjects call.
Implementations§
Source§impl QueryDataObjectsRequest
impl QueryDataObjectsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_filter<T>(self, v: T) -> Self
pub fn set_filter<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_filter<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_filter<T>(self, v: Option<T>) -> Self
Sourcepub fn set_output_fields<T>(self, v: T) -> Selfwhere
T: Into<OutputFields>,
pub fn set_output_fields<T>(self, v: T) -> Selfwhere
T: Into<OutputFields>,
Sets the value of output_fields.
§Example
use google_cloud_vectorsearch_v1::model::OutputFields;
let x = QueryDataObjectsRequest::new().set_output_fields(OutputFields::default()/* use setters */);Sourcepub fn set_or_clear_output_fields<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutputFields>,
pub fn set_or_clear_output_fields<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutputFields>,
Sets or clears the value of output_fields.
§Example
use google_cloud_vectorsearch_v1::model::OutputFields;
let x = QueryDataObjectsRequest::new().set_or_clear_output_fields(Some(OutputFields::default()/* use setters */));
let x = QueryDataObjectsRequest::new().set_or_clear_output_fields(None::<OutputFields>);Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
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.
§Example
let x = QueryDataObjectsRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for QueryDataObjectsRequest
impl Clone for QueryDataObjectsRequest
Source§fn clone(&self) -> QueryDataObjectsRequest
fn clone(&self) -> QueryDataObjectsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more