Struct google_api_proto::google::cloud::dialogflow::cx::v3beta1::WebhookRequest
source · pub struct WebhookRequest {
pub detect_intent_response_id: String,
pub language_code: String,
pub fulfillment_info: Option<FulfillmentInfo>,
pub intent_info: Option<IntentInfo>,
pub page_info: Option<PageInfo>,
pub session_info: Option<SessionInfo>,
pub messages: Vec<ResponseMessage>,
pub payload: Option<Struct>,
pub sentiment_analysis_result: Option<SentimentAnalysisResult>,
pub language_info: Option<LanguageInfo>,
pub query: Option<Query>,
}
Expand description
The request message for a webhook call. The request is sent as a JSON object and the field names will be presented in camel cases.
You may see undocumented fields in an actual request. These fields are used internally by Dialogflow and should be ignored.
Fields§
§detect_intent_response_id: String
Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse] that will be returned to the API caller.
language_code: String
The language code specified in the [original request][QueryInput.language_code].
fulfillment_info: Option<FulfillmentInfo>
Always present. Information about the fulfillment that triggered this webhook call.
intent_info: Option<IntentInfo>
Information about the last matched intent.
page_info: Option<PageInfo>
Information about page status.
session_info: Option<SessionInfo>
Information about session status.
messages: Vec<ResponseMessage>
The list of rich message responses to present to the user. Webhook can choose to append or replace this list in [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3beta1.WebhookResponse.fulfillment_response];
payload: Option<Struct>
Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload].
sentiment_analysis_result: Option<SentimentAnalysisResult>
The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request.
language_info: Option<LanguageInfo>
Information about the language of the request.
query: Option<Query>
The original conversational query.
Trait Implementations§
source§impl Clone for WebhookRequest
impl Clone for WebhookRequest
source§fn clone(&self) -> WebhookRequest
fn clone(&self) -> WebhookRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WebhookRequest
impl Debug for WebhookRequest
source§impl Default for WebhookRequest
impl Default for WebhookRequest
source§impl Message for WebhookRequest
impl Message for WebhookRequest
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 WebhookRequest
impl PartialEq for WebhookRequest
source§fn eq(&self, other: &WebhookRequest) -> bool
fn eq(&self, other: &WebhookRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WebhookRequest
Auto Trait Implementations§
impl Freeze for WebhookRequest
impl RefUnwindSafe for WebhookRequest
impl Send for WebhookRequest
impl Sync for WebhookRequest
impl Unpin for WebhookRequest
impl UnwindSafe for WebhookRequest
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