Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo

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

Chunk information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo.



5004
5005
5006
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5004

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

Instance Attribute Details

#chunkString

Chunk resource name. Corresponds to the JSON property chunk

Returns:

  • (String)


4991
4992
4993
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4991

def chunk
  @chunk
end

#contentString

Chunk textual content. Corresponds to the JSON property content

Returns:

  • (String)


4996
4997
4998
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4996

def content
  @content
end

#document_metadataGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata

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



5002
5003
5004
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5002

def 
  @document_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5009
5010
5011
5012
5013
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5009

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