Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssistantSession

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

Represents a conversation session with the Assistant Agent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1AssistantSession

Returns a new instance of GoogleCloudContactcenterinsightsV1AssistantSession.



1119
1120
1121
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1119

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

Instance Attribute Details

#create_timeString

Output only. The time the session was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1086
1087
1088
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1086

def create_time
  @create_time
end

#display_nameString

Optional. The display name of the session. Corresponds to the JSON property displayName

Returns:

  • (String)


1091
1092
1093
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1091

def display_name
  @display_name
end

#messagesArray<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AssistantMessage>

Optional. History of messages in the session. Corresponds to the JSON property messages



1096
1097
1098
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1096

def messages
  @messages
end

#nameString

Identifier. Resource name of the session. Format: projects/project/locations/ location/assistantSessions/assistant_session Corresponds to the JSON property name

Returns:

  • (String)


1102
1103
1104
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1102

def name
  @name
end

#requesterString

Output only. The user who initiated the session. Corresponds to the JSON property requester

Returns:

  • (String)


1107
1108
1109
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1107

def requester
  @requester
end

#stateString

Output only. The status of the session. Corresponds to the JSON property state

Returns:

  • (String)


1112
1113
1114
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1112

def state
  @state
end

#update_timeString

Output only. The time the session was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1117
1118
1119
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1117

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1124
1125
1126
1127
1128
1129
1130
1131
1132
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1124

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @messages = args[:messages] if args.key?(:messages)
  @name = args[:name] if args.key?(:name)
  @requester = args[:requester] if args.key?(:requester)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end