Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata

Returns a new instance of GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata.



4446
4447
4448
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4446

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#struct_dataHash<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

Returns:

  • (Hash<String,Object>)


4434
4435
4436
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4434

def struct_data
  @struct_data
end

#titleString

Title of the document. Corresponds to the JSON property title

Returns:

  • (String)


4439
4440
4441
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4439

def title
  @title
end

#uriString

Uri of the document. Corresponds to the JSON property uri

Returns:

  • (String)


4444
4445
4446
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4444

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4451
4452
4453
4454
4455
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4451

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