Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Message (v0.30.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Message.

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

#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

#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

#send_time

def send_time() -> ::Google::Protobuf::Timestamp
Returns

#send_time=

def send_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
Returns

#sentiment_analysis

def sentiment_analysis() -> ::Google::Cloud::Dialogflow::V2::SentimentAnalysisResult
Returns