Struct google_api_proto::google::cloud::dialogflow::v2beta1::QueryParameters
source · pub struct QueryParameters {
pub time_zone: String,
pub geo_location: Option<LatLng>,
pub contexts: Vec<Context>,
pub reset_contexts: bool,
pub session_entity_types: Vec<SessionEntityType>,
pub payload: Option<Struct>,
pub knowledge_base_names: Vec<String>,
pub sentiment_analysis_request_config: Option<SentimentAnalysisRequestConfig>,
pub sub_agents: Vec<SubAgent>,
pub webhook_headers: BTreeMap<String, String>,
pub platform: String,
}
Expand description
Represents the parameters of the conversational query.
Fields§
§time_zone: String
The time zone of this conversational query from the time zone database, e.g., America/New_York, Europe/Paris. If not provided, the time zone specified in agent settings is used.
geo_location: Option<LatLng>
The geo location of this conversational query.
contexts: Vec<Context>
The collection of contexts to be activated before this query is executed.
reset_contexts: bool
Specifies whether to delete all contexts in the current session before the new ones are activated.
session_entity_types: Vec<SessionEntityType>
Additional session entity types to replace or extend developer entity types with. The entity synonyms apply to all languages and persist for the session of this query.
payload: Option<Struct>
This field can be used to pass custom data to your webhook.
Arbitrary JSON objects are supported.
If supplied, the value is used to populate the
WebhookRequest.original_detect_intent_request.payload
field sent to your webhook.
knowledge_base_names: Vec<String>
KnowledgeBases to get alternative results from. If not set, the
KnowledgeBases enabled in the agent (through UI) will be used.
Format: projects/<Project ID>/knowledgeBases/<Knowledge Base ID>
.
sentiment_analysis_request_config: Option<SentimentAnalysisRequestConfig>
Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed. Note: Sentiment Analysis is only currently available for Essentials Edition agents.
sub_agents: Vec<SubAgent>
For mega agent query, directly specify which sub agents to query. If any specified sub agent is not linked to the mega agent, an error will be returned. If empty, Dialogflow will decide which sub agents to query. If specified for a non-mega-agent query, will be silently ignored.
webhook_headers: BTreeMap<String, String>
This field can be used to pass HTTP headers for a webhook call. These headers will be sent to webhook along with the headers that have been configured through Dialogflow web console. The headers defined within this field will overwrite the headers configured through Dialogflow console if there is a conflict. Header names are case-insensitive. Google’s specified headers are not allowed. Including: “Host”, “Content-Length”, “Connection”, “From”, “User-Agent”, “Accept-Encoding”, “If-Modified-Since”, “If-None-Match”, “X-Forwarded-For”, etc.
platform: String
The platform of the virtual agent response messages.
If not empty, only emits messages from this platform in the response. Valid values are the enum names of [platform][google.cloud.dialogflow.v2beta1.Intent.Message.platform].
Trait Implementations§
source§impl Clone for QueryParameters
impl Clone for QueryParameters
source§fn clone(&self) -> QueryParameters
fn clone(&self) -> QueryParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryParameters
impl Debug for QueryParameters
source§impl Default for QueryParameters
impl Default for QueryParameters
source§impl Message for QueryParameters
impl Message for QueryParameters
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 QueryParameters
impl PartialEq for QueryParameters
source§fn eq(&self, other: &QueryParameters) -> bool
fn eq(&self, other: &QueryParameters) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QueryParameters
Auto Trait Implementations§
impl Freeze for QueryParameters
impl RefUnwindSafe for QueryParameters
impl Send for QueryParameters
impl Sync for QueryParameters
impl Unpin for QueryParameters
impl UnwindSafe for QueryParameters
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