Struct google_api_proto::google::cloud::visionai::v1::SearchAssetsRequest
source · pub struct SearchAssetsRequest {
pub corpus: String,
pub page_size: i32,
pub page_token: String,
pub content_time_ranges: Option<DateTimeRangeArray>,
pub criteria: Vec<Criteria>,
pub facet_selections: Vec<FacetGroup>,
pub result_annotation_keys: Vec<String>,
pub search_query: String,
pub sort_spec: Option<SortSpec>,
}
Expand description
Request message for SearchAssets.
Fields§
§corpus: String
Required. The parent corpus to search. Format: `projects/{project_id}/locations/{location_id}/corpora/{corpus_id}’
page_size: i32
The number of results to be returned in this page. If it’s 0, the server will decide the appropriate page_size.
page_token: String
The continuation token to fetch the next page. If empty, it means it is fetching the first page.
content_time_ranges: Option<DateTimeRangeArray>
Time ranges that matching video content must fall within. If no ranges are provided, there will be no time restriction. This field is treated just like the criteria below, but defined separately for convenience as it is used frequently. Note that if the end_time is in the future, it will be clamped to the time the request was received.
criteria: Vec<Criteria>
Criteria applied to search results.
facet_selections: Vec<FacetGroup>
Stores most recent facet selection state. Only facet groups with user’s selection will be presented here. Selection state is either selected or unselected. Only selected facet buckets will be used as search criteria.
result_annotation_keys: Vec<String>
A list of annotation keys to specify the annotations to be retrieved and returned with each search result. Annotation granularity must be GRANULARITY_ASSET_LEVEL and its search strategy must not be NO_SEARCH.
search_query: String
Global search query. Allows user to search assets without needing to specify which field the value belongs to.
sort_spec: Option<SortSpec>
Sorting specification. If this field is not specified, by default:
- STREAM_VIDEO: search results are sorted by the start time.
Trait Implementations§
source§impl Clone for SearchAssetsRequest
impl Clone for SearchAssetsRequest
source§fn clone(&self) -> SearchAssetsRequest
fn clone(&self) -> SearchAssetsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchAssetsRequest
impl Debug for SearchAssetsRequest
source§impl Default for SearchAssetsRequest
impl Default for SearchAssetsRequest
source§impl Message for SearchAssetsRequest
impl Message for SearchAssetsRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SearchAssetsRequest
impl PartialEq for SearchAssetsRequest
source§fn eq(&self, other: &SearchAssetsRequest) -> bool
fn eq(&self, other: &SearchAssetsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchAssetsRequest
Auto Trait Implementations§
impl Freeze for SearchAssetsRequest
impl RefUnwindSafe for SearchAssetsRequest
impl Send for SearchAssetsRequest
impl Sync for SearchAssetsRequest
impl Unpin for SearchAssetsRequest
impl UnwindSafe for SearchAssetsRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request