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.



2095
2096
2097
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2095

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

Instance Attribute Details

#titleString

Title of the document. Corresponds to the JSON property title

Returns:

  • (String)


2088
2089
2090
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2088

def title
  @title
end

#uriString

Uri of the document. Corresponds to the JSON property uri

Returns:

  • (String)


2093
2094
2095
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2093

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2100
2101
2102
2103
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2100

def update!(**args)
  @title = args[:title] if args.key?(:title)
  @uri = args[:uri] if args.key?(:uri)
end