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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2MessageEntry

Returns a new instance of GoogleCloudDialogflowV2MessageEntry.



14284
14285
14286
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14284

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

Instance Attribute Details

#create_timeString

Corresponds to the JSON property createTime

Returns:

  • (String)


14267
14268
14269
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14267

def create_time
  @create_time
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


14272
14273
14274
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14272

def language_code
  @language_code
end

#roleString

Corresponds to the JSON property role

Returns:

  • (String)


14277
14278
14279
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14277

def role
  @role
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


14282
14283
14284
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14282

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14289
14290
14291
14292
14293
14294
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14289

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