class Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase
A knowledge base represents a collection of knowledge documents that you provide to Dialogflow. Your knowledge documents contain information that may be useful during conversations with end-users. Some Dialogflow features use knowledge bases when looking for a response to an end-user input. For more information, see the [knowledge base guide](cloud.google.com/ dialogflow/docs/how/knowledge-bases). Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.
Attributes
Required. The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails. Corresponds to the JSON property `displayName` @return [String]
Language which represents the KnowledgeBase. When the KnowledgeBase is created/ updated, this is populated for all non en-us languages. If not populated, the default language en-us applies. Corresponds to the JSON property `languageCode` @return [String]
The knowledge base resource name. The name must be empty when creating a knowledge base. Format: `projects//locations//knowledgeBases/`. Corresponds to the JSON property `name` @return [String]
Public Class Methods
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 12210 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 12215 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @language_code = args[:language_code] if args.key?(:language_code) @name = args[:name] if args.key?(:name) end