Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageEntry

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

Represents a message entry of a conversation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2MessageEntry

Returns a new instance of GoogleCloudDialogflowV2MessageEntry.



14145
14146
14147
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14145

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Optional. Create time of the message entry. Corresponds to the JSON property createTime

Returns:

  • (String)


14126
14127
14128
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14126

def create_time
  @create_time
end

#language_codeString

Optional. The language of the text. See Language Support for a list of the currently supported language codes. Corresponds to the JSON property languageCode

Returns:

  • (String)


14133
14134
14135
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14133

def language_code
  @language_code
end

#roleString

Optional. Participant role of the message. Corresponds to the JSON property role

Returns:

  • (String)


14138
14139
14140
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14138

def role
  @role
end

#textString

Optional. Transcript content of the message. Corresponds to the JSON property text

Returns:

  • (String)


14143
14144
14145
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14143

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14150
14151
14152
14153
14154
14155
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14150

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @language_code = args[:language_code] if args.key?(:language_code)
  @role = args[:role] if args.key?(:role)
  @text = args[:text] if args.key?(:text)
end