Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversationContext
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversationContext
- 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
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) ⇒ GoogleCloudDiscoveryengineV1alphaConversationContext
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaConversationContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaConversationContext
Returns a new instance of GoogleCloudDiscoveryengineV1alphaConversationContext.
5163 5164 5165 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5163 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
5155 5156 5157 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5155 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
5161 5162 5163 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5161 def context_documents @context_documents end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5168 5169 5170 5171 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5168 def update!(**args) @active_document = args[:active_document] if args.key?(:active_document) @context_documents = args[:context_documents] if args.key?(:context_documents) end |