Struct google_api_proto::google::cloud::dialogflow::v2beta1::SuggestionInput
source · pub struct SuggestionInput {
pub answer_record: String,
pub text_override: Option<TextInput>,
pub parameters: Option<Struct>,
pub intent_input: Option<IntentInput>,
}
Expand description
Represents the selection of a suggestion.
Fields§
§answer_record: String
Required. The ID of a suggestion selected by the human agent.
The suggestion(s) were generated in a previous call to
request Dialogflow assist.
The format is:
projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>
where
text_override: Option<TextInput>
Optional. If the customer edited the suggestion before using it, include the revised text here.
parameters: Option<Struct>
In Dialogflow assist for v3, the user can submit a form by sending a [SuggestionInput][google.cloud.dialogflow.v2beta1.SuggestionInput]. The form is uniquely determined by the [answer_record][google.cloud.dialogflow.v2beta1.SuggestionInput.answer_record] field, which identifies a v3 [QueryResult][google.cloud.dialogflow.v3alpha1.QueryResult] containing the current [page][google.cloud.dialogflow.v3alpha1.Page]. The form parameters are specified via the [parameters][google.cloud.dialogflow.v2beta1.SuggestionInput.parameters] field.
Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type: If parameter’s entity type is a composite entity then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map.
- MapValue value: If parameter’s entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
intent_input: Option<IntentInput>
The intent to be triggered on V3 agent.
Trait Implementations§
source§impl Clone for SuggestionInput
impl Clone for SuggestionInput
source§fn clone(&self) -> SuggestionInput
fn clone(&self) -> SuggestionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SuggestionInput
impl Debug for SuggestionInput
source§impl Default for SuggestionInput
impl Default for SuggestionInput
source§impl Message for SuggestionInput
impl Message for SuggestionInput
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 SuggestionInput
impl PartialEq for SuggestionInput
source§fn eq(&self, other: &SuggestionInput) -> bool
fn eq(&self, other: &SuggestionInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SuggestionInput
Auto Trait Implementations§
impl Freeze for SuggestionInput
impl RefUnwindSafe for SuggestionInput
impl Send for SuggestionInput
impl Sync for SuggestionInput
impl Unpin for SuggestionInput
impl UnwindSafe for SuggestionInput
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