Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ConversationMessage

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

Overview

Defines a conversation message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1ConversationMessage

Returns a new instance of GoogleCloudDiscoveryengineV1ConversationMessage.



3462
3463
3464
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3462

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

Instance Attribute Details

#create_timeString

Output only. Message creation timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)


3450
3451
3452
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3450

def create_time
  @create_time
end

#replyGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Reply

Defines a reply message to user. Corresponds to the JSON property reply



3455
3456
3457
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3455

def reply
  @reply
end

#user_inputGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1TextInput

Defines text input. Corresponds to the JSON property userInput



3460
3461
3462
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3460

def user_input
  @user_input
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3467
3468
3469
3470
3471
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3467

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @reply = args[:reply] if args.key?(:reply)
  @user_input = args[:user_input] if args.key?(:user_input)
end