Struct googapis::google::cloud::dialogflow::v2beta1::WebhookRequest [−][src]
pub struct WebhookRequest {
pub session: String,
pub response_id: String,
pub query_result: Option<QueryResult>,
pub alternative_query_results: Vec<QueryResult>,
pub original_detect_intent_request: Option<OriginalDetectIntentRequest>,
}
Expand description
The request message for a webhook call.
Fields
session: String
The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Supported formats:
- `projects/
/agent/sessions/ , projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>
,projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>
,projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>
,
response_id: String
The unique identifier of the response. Contains the same value as
\[Streaming\]DetectIntentResponse.response_id
.
query_result: Option<QueryResult>
The result of the conversational query or event processing. Contains the
same value as \[Streaming\]DetectIntentResponse.query_result
.
alternative_query_results: Vec<QueryResult>
Alternative query results from KnowledgeService.
original_detect_intent_request: Option<OriginalDetectIntentRequest>
Optional. The contents of the original request that was passed to
\[Streaming\]DetectIntent
call.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for WebhookRequest
impl Send for WebhookRequest
impl Sync for WebhookRequest
impl Unpin for WebhookRequest
impl UnwindSafe for WebhookRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more