Class RagFileChunkingConfig.FixedLengthChunking.Builder (1.43.0)

public static final class RagFileChunkingConfig.FixedLengthChunking.Builder extends GeneratedMessage.Builder<RagFileChunkingConfig.FixedLengthChunking.Builder> implements RagFileChunkingConfig.FixedLengthChunkingOrBuilder

Specifies the fixed length chunking config.

Protobuf type google.cloud.vertexai.v1.RagFileChunkingConfig.FixedLengthChunking

Static Methods

getDescriptor()

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

Methods

build()

public RagFileChunkingConfig.FixedLengthChunking build()
Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking

buildPartial()

public RagFileChunkingConfig.FixedLengthChunking buildPartial()
Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking

clear()

public RagFileChunkingConfig.FixedLengthChunking.Builder clear()
Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking.Builder
Overrides

clearChunkOverlap()

public RagFileChunkingConfig.FixedLengthChunking.Builder clearChunkOverlap()

The overlap between chunks.

int32 chunk_overlap = 2;

Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking.Builder

This builder for chaining.

clearChunkSize()

public RagFileChunkingConfig.FixedLengthChunking.Builder clearChunkSize()

The size of the chunks.

int32 chunk_size = 1;

Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking.Builder

This builder for chaining.

getChunkOverlap()

public int getChunkOverlap()

The overlap between chunks.

int32 chunk_overlap = 2;

Returns
Type Description
int

The chunkOverlap.

getChunkSize()

public int getChunkSize()

The size of the chunks.

int32 chunk_size = 1;

Returns
Type Description
int

The chunkSize.

getDefaultInstanceForType()

public RagFileChunkingConfig.FixedLengthChunking getDefaultInstanceForType()
Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RagFileChunkingConfig.FixedLengthChunking other)

public RagFileChunkingConfig.FixedLengthChunking.Builder mergeFrom(RagFileChunkingConfig.FixedLengthChunking other)
Parameter
Name Description
other RagFileChunkingConfig.FixedLengthChunking
Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RagFileChunkingConfig.FixedLengthChunking.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking.Builder
Overrides

setChunkOverlap(int value)

public RagFileChunkingConfig.FixedLengthChunking.Builder setChunkOverlap(int value)

The overlap between chunks.

int32 chunk_overlap = 2;

Parameter
Name Description
value int

The chunkOverlap to set.

Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking.Builder

This builder for chaining.

setChunkSize(int value)

public RagFileChunkingConfig.FixedLengthChunking.Builder setChunkSize(int value)

The size of the chunks.

int32 chunk_size = 1;

Parameter
Name Description
value int

The chunkSize to set.

Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking.Builder

This builder for chaining.