Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversationMessage

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

Overview

Defines a conversation message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaConversationMessage

Returns a new instance of GoogleCloudDiscoveryengineV1alphaConversationMessage.



5193
5194
5195
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5193

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


5181
5182
5183
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5181

def create_time
  @create_time
end

#replyGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaReply

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



5186
5187
5188
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5186

def reply
  @reply
end

#user_inputGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTextInput

Defines text input. Corresponds to the JSON property userInput



5191
5192
5193
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5191

def user_input
  @user_input
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5198
5199
5200
5201
5202
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5198

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