Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata

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

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) ⇒ GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata

Returns a new instance of GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata.



4551
4552
4553
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4551

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

Instance Attribute Details

#next_chunksArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunk>

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



4542
4543
4544
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4542

def next_chunks
  @next_chunks
end

#previous_chunksArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaChunk>

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



4549
4550
4551
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4549

def previous_chunks
  @previous_chunks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4556
4557
4558
4559
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4556

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