Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaConversationContext
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaConversationContext
- 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
-
#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) ⇒ GoogleCloudDiscoveryengineV1betaConversationContext
constructor
A new instance of GoogleCloudDiscoveryengineV1betaConversationContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaConversationContext
Returns a new instance of GoogleCloudDiscoveryengineV1betaConversationContext.
7729 7730 7731 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7729 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
7721 7722 7723 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7721 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
7727 7728 7729 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7727 def context_documents @context_documents end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7734 7735 7736 7737 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7734 def update!(**args) @active_document = args[:active_document] if args.key?(:active_document) @context_documents = args[:context_documents] if args.key?(:context_documents) end |