Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata
- 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
Document metadata contains the information of the document of the current chunk.
Instance Attribute Summary collapse
-
#mime_type ⇒ String
The mime type of the document.
-
#struct_data ⇒ Hash<String,Object>
Data representation.
-
#title ⇒ String
Title of the document.
-
#uri ⇒ String
Uri of the document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata
constructor
A new instance of GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata
Returns a new instance of GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata.
22526 22527 22528 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 22526 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mime_type ⇒ String
The mime type of the document. https://www.iana.org/assignments/media-types/
media-types.xhtml.
Corresponds to the JSON property mimeType
22508 22509 22510 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 22508 def mime_type @mime_type end |
#struct_data ⇒ Hash<String,Object>
Data representation. The structured JSON data for the document. It should
conform to the registered Schema or an INVALID_ARGUMENT error is thrown.
Corresponds to the JSON property structData
22514 22515 22516 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 22514 def struct_data @struct_data end |
#title ⇒ String
Title of the document.
Corresponds to the JSON property title
22519 22520 22521 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 22519 def title @title end |
#uri ⇒ String
Uri of the document.
Corresponds to the JSON property uri
22524 22525 22526 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 22524 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22531 22532 22533 22534 22535 22536 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 22531 def update!(**args) @mime_type = args[:mime_type] if args.key?(:mime_type) @struct_data = args[:struct_data] if args.key?(:struct_data) @title = args[:title] if args.key?(:title) @uri = args[:uri] if args.key?(:uri) end |