Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ConversationContext
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ConversationContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Defines context of the conversation
Instance Attribute Summary collapse
-
#active_document ⇒ String
The current active document the user opened.
-
#context_documents ⇒ Array<String>
The current list of documents the user is seeing.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1ConversationContext
constructor
A new instance of GoogleCloudDiscoveryengineV1ConversationContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1ConversationContext
Returns a new instance of GoogleCloudDiscoveryengineV1ConversationContext.
2990 2991 2992 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2990 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active_document ⇒ String
The current active document the user opened. It contains the document resource
reference.
Corresponds to the JSON property activeDocument
2982 2983 2984 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2982 def active_document @active_document end |
#context_documents ⇒ Array<String>
The current list of documents the user is seeing. It contains the document
resource references.
Corresponds to the JSON property contextDocuments
2988 2989 2990 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2988 def context_documents @context_documents end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2995 2996 2997 2998 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2995 def update!(**args) @active_document = args[:active_document] if args.key?(:active_document) @context_documents = args[:context_documents] if args.key?(:context_documents) end |