Struct google_api_proto::google::cloud::discoveryengine::v1::SearchInfo
source · pub struct SearchInfo {
pub search_query: String,
pub order_by: String,
pub offset: Option<i32>,
}
Expand description
Detailed search information.
Fields§
§search_query: String
The user’s search query.
See [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query] for definition.
The value must be a UTF-8 encoded string with a length limit of 5,000
characters. Otherwise, an INVALID_ARGUMENT
error is returned.
At least one of
[search_query][google.cloud.discoveryengine.v1.SearchInfo.search_query] or
[PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category]
is required for search
events. Other event types should not set this
field. Otherwise, an INVALID_ARGUMENT
error is returned.
order_by: String
The order in which products are returned, if applicable.
See [SearchRequest.order_by][google.cloud.discoveryengine.v1.SearchRequest.order_by] for definition and syntax.
The value must be a UTF-8 encoded string with a length limit of 1,000
characters. Otherwise, an INVALID_ARGUMENT
error is returned.
This can only be set for search
events. Other event types should not set
this field. Otherwise, an INVALID_ARGUMENT
error is returned.
offset: Option<i32>
An integer that specifies the current offset for pagination (the 0-indexed starting location, amongst the products deemed by the API as relevant).
See [SearchRequest.offset][google.cloud.discoveryengine.v1.SearchRequest.offset] for definition.
If this field is negative, an INVALID_ARGUMENT
is returned.
This can only be set for search
events. Other event types should not set
this field. Otherwise, an INVALID_ARGUMENT
error is returned.
Implementations§
Trait Implementations§
source§impl Clone for SearchInfo
impl Clone for SearchInfo
source§fn clone(&self) -> SearchInfo
fn clone(&self) -> SearchInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchInfo
impl Debug for SearchInfo
source§impl Default for SearchInfo
impl Default for SearchInfo
source§impl Message for SearchInfo
impl Message for SearchInfo
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 SearchInfo
impl PartialEq for SearchInfo
source§fn eq(&self, other: &SearchInfo) -> bool
fn eq(&self, other: &SearchInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchInfo
Auto Trait Implementations§
impl Freeze for SearchInfo
impl RefUnwindSafe for SearchInfo
impl Send for SearchInfo
impl Sync for SearchInfo
impl Unpin for SearchInfo
impl UnwindSafe for SearchInfo
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