Struct google_api_proto::google::cloud::discoveryengine::v1alpha::AnswerQueryRequest
source · pub struct AnswerQueryRequest {
pub serving_config: String,
pub query: Option<Query>,
pub session: String,
pub safety_spec: Option<SafetySpec>,
pub related_questions_spec: Option<RelatedQuestionsSpec>,
pub answer_generation_spec: Option<AnswerGenerationSpec>,
pub search_spec: Option<SearchSpec>,
pub query_understanding_spec: Option<QueryUnderstandingSpec>,
pub asynchronous_mode: bool,
pub user_pseudo_id: String,
pub user_labels: BTreeMap<String, String>,
}
Expand description
Request message for [ConversationalSearchService.AnswerQuery][google.cloud.discoveryengine.v1alpha.ConversationalSearchService.AnswerQuery] method.
Fields§
§serving_config: String
Required. The resource name of the Search serving config, such as
projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config
,
or
projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config
.
This field is used to identify the serving configuration name, set
of models used to make the search.
query: Option<Query>
Required. Current user query.
session: String
The session resource name. Not required.
When session field is not set, the API is in sessionless mode.
We support auto session mode: users can use the wildcard symbol -
as
session ID. A new ID will be automatically generated and assigned.
safety_spec: Option<SafetySpec>
Model specification.
Related questions specification.
answer_generation_spec: Option<AnswerGenerationSpec>
Answer generation specification.
search_spec: Option<SearchSpec>
Search specification.
query_understanding_spec: Option<QueryUnderstandingSpec>
Query understanding specification.
asynchronous_mode: bool
Asynchronous mode control.
If enabled, the response will be returned with answer/session resource name without final answer. The API users need to do the polling to get the latest status of answer/session by calling [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1alpha.ConversationalSearchService.GetAnswer] or [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1alpha.ConversationalSearchService.GetSession] method.
user_pseudo_id: String
A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website.
This field should NOT have a fixed value such as unknown_visitor
.
The field must be a UTF-8 encoded string with a length limit of 128
characters. Otherwise, an INVALID_ARGUMENT
error is returned.
user_labels: BTreeMap<String, String>
The user labels applied to a resource must meet the following requirements:
- Each resource can have multiple labels, up to a maximum of 64.
- Each label must be a key-value pair.
- Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters.
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed.
- The key portion of a label must be unique. However, you can use the same key with multiple resources.
- Keys must start with a lowercase letter or international character.
See Google Cloud Document for more details.
Trait Implementations§
source§impl Clone for AnswerQueryRequest
impl Clone for AnswerQueryRequest
source§fn clone(&self) -> AnswerQueryRequest
fn clone(&self) -> AnswerQueryRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnswerQueryRequest
impl Debug for AnswerQueryRequest
source§impl Default for AnswerQueryRequest
impl Default for AnswerQueryRequest
source§impl Message for AnswerQueryRequest
impl Message for AnswerQueryRequest
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 AnswerQueryRequest
impl PartialEq for AnswerQueryRequest
source§fn eq(&self, other: &AnswerQueryRequest) -> bool
fn eq(&self, other: &AnswerQueryRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnswerQueryRequest
Auto Trait Implementations§
impl Freeze for AnswerQueryRequest
impl RefUnwindSafe for AnswerQueryRequest
impl Send for AnswerQueryRequest
impl Sync for AnswerQueryRequest
impl Unpin for AnswerQueryRequest
impl UnwindSafe for AnswerQueryRequest
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