Represents a message posted into a conversation.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#content
def content() -> ::String
Returns
- (::String) — Required. The message content.
#content=
def content=(value) -> ::String
Parameter
- value (::String) — Required. The message content.
Returns
- (::String) — Required. The message content.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The time when the message was created in Contact Center AI.
#language_code
def language_code() -> ::String
Returns
- (::String) — Optional. The message language. This should be a BCP-47 language tag. Example: "en-US".
#language_code=
def language_code=(value) -> ::String
Parameter
- value (::String) — Optional. The message language. This should be a BCP-47 language tag. Example: "en-US".
Returns
- (::String) — Optional. The message language. This should be a BCP-47 language tag. Example: "en-US".
#message_annotation
def message_annotation() -> ::Google::Cloud::Dialogflow::V2::MessageAnnotation
Returns
- (::Google::Cloud::Dialogflow::V2::MessageAnnotation) — Output only. The annotation for the message.
#name
def name() -> ::String
Returns
-
(::String) — Optional. The unique identifier of the message.
Format:
projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>
.
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — Optional. The unique identifier of the message.
Format:
projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>
.
Returns
-
(::String) — Optional. The unique identifier of the message.
Format:
projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>
.
#participant
def participant() -> ::String
Returns
- (::String) — Output only. The participant that sends this message.
#participant_role
def participant_role() -> ::Google::Cloud::Dialogflow::V2::Participant::Role
Returns
- (::Google::Cloud::Dialogflow::V2::Participant::Role) — Output only. The role of the participant.
#send_time
def send_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Optional. The time when the message was sent.
#send_time=
def send_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — Optional. The time when the message was sent.
Returns
- (::Google::Protobuf::Timestamp) — Optional. The time when the message was sent.
#sentiment_analysis
def sentiment_analysis() -> ::Google::Cloud::Dialogflow::V2::SentimentAnalysisResult
Returns
- (::Google::Cloud::Dialogflow::V2::SentimentAnalysisResult) — Output only. The sentiment analysis result for the message.