Struct gapi_grpc::google::cloud::dialogflow::v2::Message[][src]

pub struct Message {
    pub name: String,
    pub content: String,
    pub language_code: String,
    pub participant: String,
    pub participant_role: i32,
    pub create_time: Option<Timestamp>,
    pub message_annotation: Option<MessageAnnotation>,
}

Represents a message posted into a conversation.

Fields

name: String

The unique identifier of the message. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

content: String

Required. The message content.

language_code: String

Optional. The message language. This should be a BCP-47 language tag. Example: “en-US”.

participant: String

Output only. The participant that sends this message.

participant_role: i32

Output only. The role of the participant.

create_time: Option<Timestamp>

Output only. The time when the message was created.

message_annotation: Option<MessageAnnotation>

Output only. The annotation for the message.

Implementations

impl Message[src]

pub fn participant_role(&self) -> Role[src]

Returns the enum value of participant_role, or the default if the field is set to an invalid enum value.

pub fn set_participant_role(&mut self, value: Role)[src]

Sets participant_role to the provided enum value.

Trait Implementations

impl Clone for Message[src]

impl Debug for Message[src]

impl Default for Message[src]

impl Message for Message[src]

impl PartialEq<Message> for Message[src]

impl StructuralPartialEq for Message[src]

Auto Trait Implementations

impl RefUnwindSafe for Message

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]