Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ChunkChunkMetadata

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

Metadata of the current chunk. This field is only populated on SearchService. Search API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1ChunkChunkMetadata

Returns a new instance of GoogleCloudDiscoveryengineV1ChunkChunkMetadata.



2092
2093
2094
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2092

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

Instance Attribute Details

#next_chunksArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Chunk>

The next chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only populated on SearchService.Search API. Corresponds to the JSON property nextChunks



2083
2084
2085
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2083

def next_chunks
  @next_chunks
end

#previous_chunksArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Chunk>

The previous chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks. This field is only populated on SearchService.Search API. Corresponds to the JSON property previousChunks



2090
2091
2092
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2090

def previous_chunks
  @previous_chunks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2097
2098
2099
2100
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2097

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