Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaChunkChunkMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/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) ⇒ GoogleCloudDiscoveryengineV1betaChunkChunkMetadata

Returns a new instance of GoogleCloudDiscoveryengineV1betaChunkChunkMetadata.



21843
21844
21845
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21843

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

Instance Attribute Details

#next_chunksArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaChunk>

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



21834
21835
21836
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21834

def next_chunks
  @next_chunks
end

#previous_chunksArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaChunk>

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



21841
21842
21843
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21841

def previous_chunks
  @previous_chunks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21848
21849
21850
21851
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21848

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