Google Cloud Discovery Engine V1 Client - Class ChunkMetadata (1.3.1)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ChunkMetadata.

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

Generated from protobuf message google.cloud.discoveryengine.v1.Chunk.ChunkMetadata

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ Chunk

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ previous_chunks array<Chunk>

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.

↳ next_chunks array<Chunk>

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.

getPreviousChunks

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.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setPreviousChunks

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.

Parameter
Name Description
var array<Chunk>
Returns
Type Description
$this

getNextChunks

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.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNextChunks

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.

Parameter
Name Description
var array<Chunk>
Returns
Type Description
$this