Class Chunk.ChunkMetadata.Builder (0.43.0)

public static final class Chunk.ChunkMetadata.Builder extends GeneratedMessageV3.Builder<Chunk.ChunkMetadata.Builder> implements Chunk.ChunkMetadataOrBuilder

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

Protobuf type google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNextChunks(Iterable<? extends Chunk> values)

public Chunk.ChunkMetadata.Builder addAllNextChunks(Iterable<? extends Chunk> values)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.Chunk>
Returns
Type Description
Chunk.ChunkMetadata.Builder

addAllPreviousChunks(Iterable<? extends Chunk> values)

public Chunk.ChunkMetadata.Builder addAllPreviousChunks(Iterable<? extends Chunk> values)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.Chunk>
Returns
Type Description
Chunk.ChunkMetadata.Builder

addNextChunks(Chunk value)

public Chunk.ChunkMetadata.Builder addNextChunks(Chunk value)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameter
Name Description
value Chunk
Returns
Type Description
Chunk.ChunkMetadata.Builder

addNextChunks(Chunk.Builder builderForValue)

public Chunk.ChunkMetadata.Builder addNextChunks(Chunk.Builder builderForValue)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameter
Name Description
builderForValue Chunk.Builder
Returns
Type Description
Chunk.ChunkMetadata.Builder

addNextChunks(int index, Chunk value)

public Chunk.ChunkMetadata.Builder addNextChunks(int index, Chunk value)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameters
Name Description
index int
value Chunk
Returns
Type Description
Chunk.ChunkMetadata.Builder

addNextChunks(int index, Chunk.Builder builderForValue)

public Chunk.ChunkMetadata.Builder addNextChunks(int index, Chunk.Builder builderForValue)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameters
Name Description
index int
builderForValue Chunk.Builder
Returns
Type Description
Chunk.ChunkMetadata.Builder

addNextChunksBuilder()

public Chunk.Builder addNextChunksBuilder()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Returns
Type Description
Chunk.Builder

addNextChunksBuilder(int index)

public Chunk.Builder addNextChunksBuilder(int index)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameter
Name Description
index int
Returns
Type Description
Chunk.Builder

addPreviousChunks(Chunk value)

public Chunk.ChunkMetadata.Builder addPreviousChunks(Chunk value)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameter
Name Description
value Chunk
Returns
Type Description
Chunk.ChunkMetadata.Builder

addPreviousChunks(Chunk.Builder builderForValue)

public Chunk.ChunkMetadata.Builder addPreviousChunks(Chunk.Builder builderForValue)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameter
Name Description
builderForValue Chunk.Builder
Returns
Type Description
Chunk.ChunkMetadata.Builder

addPreviousChunks(int index, Chunk value)

public Chunk.ChunkMetadata.Builder addPreviousChunks(int index, Chunk value)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameters
Name Description
index int
value Chunk
Returns
Type Description
Chunk.ChunkMetadata.Builder

addPreviousChunks(int index, Chunk.Builder builderForValue)

public Chunk.ChunkMetadata.Builder addPreviousChunks(int index, Chunk.Builder builderForValue)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameters
Name Description
index int
builderForValue Chunk.Builder
Returns
Type Description
Chunk.ChunkMetadata.Builder

addPreviousChunksBuilder()

public Chunk.Builder addPreviousChunksBuilder()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Returns
Type Description
Chunk.Builder

addPreviousChunksBuilder(int index)

public Chunk.Builder addPreviousChunksBuilder(int index)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameter
Name Description
index int
Returns
Type Description
Chunk.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Chunk.ChunkMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides

build()

public Chunk.ChunkMetadata build()
Returns
Type Description
Chunk.ChunkMetadata

buildPartial()

public Chunk.ChunkMetadata buildPartial()
Returns
Type Description
Chunk.ChunkMetadata

clear()

public Chunk.ChunkMetadata.Builder clear()
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Chunk.ChunkMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides

clearNextChunks()

public Chunk.ChunkMetadata.Builder clearNextChunks()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Returns
Type Description
Chunk.ChunkMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Chunk.ChunkMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides

clearPreviousChunks()

public Chunk.ChunkMetadata.Builder clearPreviousChunks()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Returns
Type Description
Chunk.ChunkMetadata.Builder

clone()

public Chunk.ChunkMetadata.Builder clone()
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides

getDefaultInstanceForType()

public Chunk.ChunkMetadata getDefaultInstanceForType()
Returns
Type Description
Chunk.ChunkMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextChunks(int index)

public Chunk getNextChunks(int index)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameter
Name Description
index int
Returns
Type Description
Chunk

getNextChunksBuilder(int index)

public Chunk.Builder getNextChunksBuilder(int index)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameter
Name Description
index int
Returns
Type Description
Chunk.Builder

getNextChunksBuilderList()

public List<Chunk.Builder> getNextChunksBuilderList()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Returns
Type Description
List<Builder>

getNextChunksCount()

public int getNextChunksCount()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Returns
Type Description
int

getNextChunksList()

public List<Chunk> getNextChunksList()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Returns
Type Description
List<Chunk>

getNextChunksOrBuilder(int index)

public ChunkOrBuilder getNextChunksOrBuilder(int index)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameter
Name Description
index int
Returns
Type Description
ChunkOrBuilder

getNextChunksOrBuilderList()

public List<? extends ChunkOrBuilder> getNextChunksOrBuilderList()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder>

getPreviousChunks(int index)

public Chunk getPreviousChunks(int index)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameter
Name Description
index int
Returns
Type Description
Chunk

getPreviousChunksBuilder(int index)

public Chunk.Builder getPreviousChunksBuilder(int index)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameter
Name Description
index int
Returns
Type Description
Chunk.Builder

getPreviousChunksBuilderList()

public List<Chunk.Builder> getPreviousChunksBuilderList()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Returns
Type Description
List<Builder>

getPreviousChunksCount()

public int getPreviousChunksCount()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Returns
Type Description
int

getPreviousChunksList()

public List<Chunk> getPreviousChunksList()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Returns
Type Description
List<Chunk>

getPreviousChunksOrBuilder(int index)

public ChunkOrBuilder getPreviousChunksOrBuilder(int index)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameter
Name Description
index int
Returns
Type Description
ChunkOrBuilder

getPreviousChunksOrBuilderList()

public List<? extends ChunkOrBuilder> getPreviousChunksOrBuilderList()

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Chunk.ChunkMetadata other)

public Chunk.ChunkMetadata.Builder mergeFrom(Chunk.ChunkMetadata other)
Parameter
Name Description
other Chunk.ChunkMetadata
Returns
Type Description
Chunk.ChunkMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Chunk.ChunkMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Chunk.ChunkMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Chunk.ChunkMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides

removeNextChunks(int index)

public Chunk.ChunkMetadata.Builder removeNextChunks(int index)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameter
Name Description
index int
Returns
Type Description
Chunk.ChunkMetadata.Builder

removePreviousChunks(int index)

public Chunk.ChunkMetadata.Builder removePreviousChunks(int index)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameter
Name Description
index int
Returns
Type Description
Chunk.ChunkMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Chunk.ChunkMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides

setNextChunks(int index, Chunk value)

public Chunk.ChunkMetadata.Builder setNextChunks(int index, Chunk value)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameters
Name Description
index int
value Chunk
Returns
Type Description
Chunk.ChunkMetadata.Builder

setNextChunks(int index, Chunk.Builder builderForValue)

public Chunk.ChunkMetadata.Builder setNextChunks(int index, Chunk.Builder builderForValue)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk next_chunks = 2;

Parameters
Name Description
index int
builderForValue Chunk.Builder
Returns
Type Description
Chunk.ChunkMetadata.Builder

setPreviousChunks(int index, Chunk value)

public Chunk.ChunkMetadata.Builder setPreviousChunks(int index, Chunk value)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameters
Name Description
index int
value Chunk
Returns
Type Description
Chunk.ChunkMetadata.Builder

setPreviousChunks(int index, Chunk.Builder builderForValue)

public Chunk.ChunkMetadata.Builder setPreviousChunks(int index, Chunk.Builder builderForValue)

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.

repeated .google.cloud.discoveryengine.v1beta.Chunk previous_chunks = 1;

Parameters
Name Description
index int
builderForValue Chunk.Builder
Returns
Type Description
Chunk.ChunkMetadata.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Chunk.ChunkMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Chunk.ChunkMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Chunk.ChunkMetadata.Builder
Overrides