Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaConversationContext

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

Overview

Defines context of the conversation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaConversationContext

Returns a new instance of GoogleCloudDiscoveryengineV1betaConversationContext.



8073
8074
8075
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8073

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

Instance Attribute Details

#active_documentString

The current active document the user opened. It contains the document resource reference. Corresponds to the JSON property activeDocument

Returns:

  • (String)


8065
8066
8067
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8065

def active_document
  @active_document
end

#context_documentsArray<String>

The current list of documents the user is seeing. It contains the document resource references. Corresponds to the JSON property contextDocuments

Returns:

  • (Array<String>)


8071
8072
8073
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8071

def context_documents
  @context_documents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8078
8079
8080
8081
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 8078

def update!(**args)
  @active_document = args[:active_document] if args.key?(:active_document)
  @context_documents = args[:context_documents] if args.key?(:context_documents)
end