Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo

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

Chunk information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo

Returns a new instance of GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo.



976
977
978
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 976

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

Instance Attribute Details

#chunkString

Chunk resource name. Corresponds to the JSON property chunk

Returns:

  • (String)


963
964
965
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 963

def chunk
  @chunk
end

#contentString

Chunk textual content. Corresponds to the JSON property content

Returns:

  • (String)


968
969
970
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 968

def content
  @content
end

#document_metadataGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata

Document metadata contains the information of the document of the current chunk. Corresponds to the JSON property documentMetadata



974
975
976
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 974

def 
  @document_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



981
982
983
984
985
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 981

def update!(**args)
  @chunk = args[:chunk] if args.key?(:chunk)
  @content = args[:content] if args.key?(:content)
  @document_metadata = args[:document_metadata] if args.key?(:document_metadata)
end