Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Document
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Document
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Instance Attribute Summary collapse
-
#content_uri ⇒ String
Corresponds to the JSON property
contentUri. -
#display_name ⇒ String
Corresponds to the JSON property
displayName. -
#enable_auto_reload ⇒ Boolean
(also: #enable_auto_reload?)
Corresponds to the JSON property
enableAutoReload. -
#knowledge_types ⇒ Array<String>
Corresponds to the JSON property
knowledgeTypes. -
#latest_reload_status ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DocumentReloadStatus
Corresponds to the JSON property
latestReloadStatus. -
#metadata ⇒ Hash<String,String>
Corresponds to the JSON property
metadata. -
#mime_type ⇒ String
Corresponds to the JSON property
mimeType. -
#name ⇒ String
Corresponds to the JSON property
name. -
#raw_content ⇒ String
Corresponds to the JSON property
rawContentNOTE: Values are automatically base64 encoded/decoded in the client library. -
#state ⇒ String
Corresponds to the JSON property
state.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2Document
constructor
A new instance of GoogleCloudDialogflowV2Document.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2Document
Returns a new instance of GoogleCloudDialogflowV2Document.
9292 9293 9294 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9292 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_uri ⇒ String
Corresponds to the JSON property contentUri
9243 9244 9245 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9243 def content_uri @content_uri end |
#display_name ⇒ String
Corresponds to the JSON property displayName
9248 9249 9250 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9248 def display_name @display_name end |
#enable_auto_reload ⇒ Boolean Also known as: enable_auto_reload?
Corresponds to the JSON property enableAutoReload
9253 9254 9255 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9253 def enable_auto_reload @enable_auto_reload end |
#knowledge_types ⇒ Array<String>
Corresponds to the JSON property knowledgeTypes
9259 9260 9261 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9259 def knowledge_types @knowledge_types end |
#latest_reload_status ⇒ Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DocumentReloadStatus
Corresponds to the JSON property latestReloadStatus
9264 9265 9266 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9264 def latest_reload_status @latest_reload_status end |
#metadata ⇒ Hash<String,String>
Corresponds to the JSON property metadata
9269 9270 9271 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9269 def @metadata end |
#mime_type ⇒ String
Corresponds to the JSON property mimeType
9274 9275 9276 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9274 def mime_type @mime_type end |
#name ⇒ String
Corresponds to the JSON property name
9279 9280 9281 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9279 def name @name end |
#raw_content ⇒ String
Corresponds to the JSON property rawContent
NOTE: Values are automatically base64 encoded/decoded in the client library.
9285 9286 9287 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9285 def raw_content @raw_content end |
#state ⇒ String
Corresponds to the JSON property state
9290 9291 9292 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9290 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9297 def update!(**args) @content_uri = args[:content_uri] if args.key?(:content_uri) @display_name = args[:display_name] if args.key?(:display_name) @enable_auto_reload = args[:enable_auto_reload] if args.key?(:enable_auto_reload) @knowledge_types = args[:knowledge_types] if args.key?(:knowledge_types) @latest_reload_status = args[:latest_reload_status] if args.key?(:latest_reload_status) @metadata = args[:metadata] if args.key?(:metadata) @mime_type = args[:mime_type] if args.key?(:mime_type) @name = args[:name] if args.key?(:name) @raw_content = args[:raw_content] if args.key?(:raw_content) @state = args[:state] if args.key?(:state) end |