Struct google_api_proto::google::cloud::dataqna::v1alpha::SuggestQueriesRequest
source · pub struct SuggestQueriesRequest {
pub parent: String,
pub scopes: Vec<String>,
pub query: String,
pub suggestion_types: Vec<i32>,
}
Expand description
Request for query suggestions.
Fields§
§parent: String
Required. The parent of the suggestion query is the resource denoting the project and location.
scopes: Vec<String>
The scopes to which this search is restricted. The only supported scope
pattern is
//bigquery.googleapis.com/projects/{GCP-PROJECT-ID}/datasets/{DATASET-ID}/tables/{TABLE-ID}
.
query: String
User query for which to generate suggestions. If the query is empty, zero state suggestions are returned. This allows UIs to display suggestions right away, helping the user to get a sense of what a query might look like.
suggestion_types: Vec<i32>
The requested suggestion type. Multiple suggestion types can be requested, but there is no guarantee that the service will return suggestions for each type. Suggestions for a requested type might rank lower than suggestions for other types and the service may decide to cut these suggestions off.
Implementations§
source§impl SuggestQueriesRequest
impl SuggestQueriesRequest
sourcepub fn suggestion_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<SuggestionType>>
pub fn suggestion_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<SuggestionType>>
Returns an iterator which yields the valid enum values contained in suggestion_types
.
sourcepub fn push_suggestion_types(&mut self, value: SuggestionType)
pub fn push_suggestion_types(&mut self, value: SuggestionType)
Appends the provided enum value to suggestion_types
.
Trait Implementations§
source§impl Clone for SuggestQueriesRequest
impl Clone for SuggestQueriesRequest
source§fn clone(&self) -> SuggestQueriesRequest
fn clone(&self) -> SuggestQueriesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SuggestQueriesRequest
impl Debug for SuggestQueriesRequest
source§impl Default for SuggestQueriesRequest
impl Default for SuggestQueriesRequest
source§impl Message for SuggestQueriesRequest
impl Message for SuggestQueriesRequest
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 SuggestQueriesRequest
impl PartialEq for SuggestQueriesRequest
source§fn eq(&self, other: &SuggestQueriesRequest) -> bool
fn eq(&self, other: &SuggestQueriesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SuggestQueriesRequest
Auto Trait Implementations§
impl Freeze for SuggestQueriesRequest
impl RefUnwindSafe for SuggestQueriesRequest
impl Send for SuggestQueriesRequest
impl Sync for SuggestQueriesRequest
impl Unpin for SuggestQueriesRequest
impl UnwindSafe for SuggestQueriesRequest
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