Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/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) ⇒ GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata
Returns a new instance of GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata.
4583 4584 4585 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4583 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
4571 4572 4573 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4571 def struct_data @struct_data end |
#title ⇒ String
Title of the document.
Corresponds to the JSON property title
4576 4577 4578 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4576 def title @title end |
#uri ⇒ String
Uri of the document.
Corresponds to the JSON property uri
4581 4582 4583 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4581 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4588 4589 4590 4591 4592 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4588 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 |