Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssistantMessage

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

Overview

A message in an assistant session.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1AssistantMessage

Returns a new instance of GoogleCloudContactcenterinsightsV1AssistantMessage.



1067
1068
1069
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1067

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

Instance Attribute Details

#chunksArray<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssistantChunk>

Required. Content of the message. Corresponds to the JSON property chunks



1055
1056
1057
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1055

def chunks
  @chunks
end

#event_timeString

Required. Timestamp when the message was sent or received. Corresponds to the JSON property eventTime

Returns:

  • (String)


1060
1061
1062
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1060

def event_time
  @event_time
end

#roleString

Required. Role within the conversation. Corresponds to the JSON property role

Returns:

  • (String)


1065
1066
1067
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1065

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1072
1073
1074
1075
1076
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1072

def update!(**args)
  @chunks = args[:chunks] if args.key?(:chunks)
  @event_time = args[:event_time] if args.key?(:event_time)
  @role = args[:role] if args.key?(:role)
end