pub struct GoogleCloudDialogflowV2QueryParameters {
pub contexts: Option<Vec<GoogleCloudDialogflowV2Context>>,
pub geo_location: Option<GoogleTypeLatLng>,
pub payload: Option<HashMap<String, Value>>,
pub platform: Option<String>,
pub reset_contexts: Option<bool>,
pub sentiment_analysis_request_config: Option<GoogleCloudDialogflowV2SentimentAnalysisRequestConfig>,
pub session_entity_types: Option<Vec<GoogleCloudDialogflowV2SessionEntityType>>,
pub time_zone: Option<String>,
pub webhook_headers: Option<HashMap<String, String>>,
}
Expand description
Represents the parameters of the conversational query.
This type is not used in any activity, and only used as part of another schema.
Fields§
§contexts: Option<Vec<GoogleCloudDialogflowV2Context>>
The collection of contexts to be activated before this query is executed.
geo_location: Option<GoogleTypeLatLng>
The geo location of this conversational query.
payload: Option<HashMap<String, Value>>
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.
platform: Option<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.
reset_contexts: Option<bool>
Specifies whether to delete all contexts in the current session before the new ones are activated.
sentiment_analysis_request_config: Option<GoogleCloudDialogflowV2SentimentAnalysisRequestConfig>
Configures the type of sentiment analysis to perform. If not provided, sentiment analysis is not performed.
session_entity_types: Option<Vec<GoogleCloudDialogflowV2SessionEntityType>>
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.
time_zone: Option<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.
webhook_headers: Option<HashMap<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 the Dialogflow web console. The headers defined within this field will overwrite the headers configured through the 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.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowV2QueryParameters
impl Clone for GoogleCloudDialogflowV2QueryParameters
Source§fn clone(&self) -> GoogleCloudDialogflowV2QueryParameters
fn clone(&self) -> GoogleCloudDialogflowV2QueryParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowV2QueryParameters
impl Default for GoogleCloudDialogflowV2QueryParameters
Source§fn default() -> GoogleCloudDialogflowV2QueryParameters
fn default() -> GoogleCloudDialogflowV2QueryParameters
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2QueryParameters
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2QueryParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDialogflowV2QueryParameters
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowV2QueryParameters
impl RefUnwindSafe for GoogleCloudDialogflowV2QueryParameters
impl Send for GoogleCloudDialogflowV2QueryParameters
impl Sync for GoogleCloudDialogflowV2QueryParameters
impl Unpin for GoogleCloudDialogflowV2QueryParameters
impl UnwindSafe for GoogleCloudDialogflowV2QueryParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more