Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1MessageEntry

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

Overview

Represents a message entry of a conversation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1MessageEntry

Returns a new instance of GoogleCloudDialogflowV2beta1MessageEntry.



17534
17535
17536
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17534

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)


17515
17516
17517
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17515

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)


17522
17523
17524
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17522

def language_code
  @language_code
end

#roleString

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

Returns:

  • (String)


17527
17528
17529
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17527

def role
  @role
end

#textString

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

Returns:

  • (String)


17532
17533
17534
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17532

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17539
17540
17541
17542
17543
17544
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17539

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