Class RagFileChunkingConfig.Builder (3.48.0)

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

Specifies the size and overlap of chunks for RagFiles.

Protobuf type google.cloud.aiplatform.v1beta1.RagFileChunkingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RagFileChunkingConfig build()
Returns
Type Description
RagFileChunkingConfig

buildPartial()

public RagFileChunkingConfig buildPartial()
Returns
Type Description
RagFileChunkingConfig

clear()

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

clearChunkOverlap()

public RagFileChunkingConfig.Builder clearChunkOverlap()

The overlap between chunks.

int32 chunk_overlap = 2;

Returns
Type Description
RagFileChunkingConfig.Builder

This builder for chaining.

clearChunkSize()

public RagFileChunkingConfig.Builder clearChunkSize()

The size of the chunks.

int32 chunk_size = 1;

Returns
Type Description
RagFileChunkingConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public RagFileChunkingConfig.Builder clone()
Returns
Type Description
RagFileChunkingConfig.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 getDefaultInstanceForType()
Returns
Type Description
RagFileChunkingConfig

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 other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setChunkOverlap(int value)

public RagFileChunkingConfig.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.Builder

This builder for chaining.

setChunkSize(int value)

public RagFileChunkingConfig.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.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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