Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerReferenceChunkInfoDocumentMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerReferenceChunkInfoDocumentMetadata

Returns a new instance of GoogleCloudDiscoveryengineV1AnswerReferenceChunkInfoDocumentMetadata.



1247
1248
1249
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1247

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

Instance Attribute Details

#documentString

Document resource name. Corresponds to the JSON property document

Returns:

  • (String)


1224
1225
1226
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1224

def document
  @document
end

#page_identifierString

Page identifier. Corresponds to the JSON property pageIdentifier

Returns:

  • (String)


1229
1230
1231
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1229

def page_identifier
  @page_identifier
end

#struct_dataHash<String,Object>

The structured JSON metadata for the document. It is populated from the struct data from the Chunk in search result. Corresponds to the JSON property structData

Returns:

  • (Hash<String,Object>)


1235
1236
1237
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1235

def struct_data
  @struct_data
end

#titleString

Title. Corresponds to the JSON property title

Returns:

  • (String)


1240
1241
1242
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1240

def title
  @title
end

#uriString

URI for the document. Corresponds to the JSON property uri

Returns:

  • (String)


1245
1246
1247
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1245

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1252
1253
1254
1255
1256
1257
1258
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1252

def update!(**args)
  @document = args[:document] if args.key?(:document)
  @page_identifier = args[:page_identifier] if args.key?(:page_identifier)
  @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