Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversation

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

External conversation proto definition.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaConversation

Returns a new instance of GoogleCloudDiscoveryengineV1alphaConversation.



914
915
916
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 914

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

Instance Attribute Details

#end_timeString

Output only. The time the conversation finished. Corresponds to the JSON property endTime

Returns:

  • (String)


886
887
888
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 886

def end_time
  @end_time
end

#messagesArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversationMessage>

Conversation messages. Corresponds to the JSON property messages



891
892
893
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 891

def messages
  @messages
end

#nameString

Immutable. Fully qualified name project/*/locations/global/collections/ collection/dataStore/*/conversations/* Corresponds to the JSON property name

Returns:

  • (String)


897
898
899
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 897

def name
  @name
end

#start_timeString

Output only. The time the conversation started. Corresponds to the JSON property startTime

Returns:

  • (String)


902
903
904
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 902

def start_time
  @start_time
end

#stateString

The state of the Conversation. Corresponds to the JSON property state

Returns:

  • (String)


907
908
909
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 907

def state
  @state
end

#user_pseudo_idString

A unique identifier for tracking users. Corresponds to the JSON property userPseudoId

Returns:

  • (String)


912
913
914
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 912

def user_pseudo_id
  @user_pseudo_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



919
920
921
922
923
924
925
926
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 919

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @messages = args[:messages] if args.key?(:messages)
  @name = args[:name] if args.key?(:name)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @user_pseudo_id = args[:user_pseudo_id] if args.key?(:user_pseudo_id)
end