Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ChunkDocumentMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ChunkDocumentMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Document metadata contains the information of the document of the current chunk.
Instance Attribute Summary collapse
-
#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) ⇒ GoogleCloudDiscoveryengineV1ChunkDocumentMetadata
constructor
A new instance of GoogleCloudDiscoveryengineV1ChunkDocumentMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1ChunkDocumentMetadata
Returns a new instance of GoogleCloudDiscoveryengineV1ChunkDocumentMetadata.
2790 2791 2792 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2790 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
2778 2779 2780 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2778 def struct_data @struct_data end |
#title ⇒ String
Title of the document.
Corresponds to the JSON property title
2783 2784 2785 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2783 def title @title end |
#uri ⇒ String
Uri of the document.
Corresponds to the JSON property uri
2788 2789 2790 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2788 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2795 2796 2797 2798 2799 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2795 def update!(**args) @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 |