Class RagFileChunkingConfig.FixedLengthChunking.Builder (3.56.0)

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

Specifies the fixed length chunking config.

Protobuf type google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

public RagFileChunkingConfig.FixedLengthChunking.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RagFileChunkingConfig.FixedLengthChunking.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RagFileChunkingConfig.FixedLengthChunking.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final RagFileChunkingConfig.FixedLengthChunking.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking.Builder
Overrides