Class RagFileChunkingConfig.Builder (1.43.0)

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

Specifies the size and overlap of chunks for RagFiles.

Protobuf type google.cloud.vertexai.v1.RagFileChunkingConfig

Static Methods

getDescriptor()

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

Methods

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

clearChunkingConfig()

public RagFileChunkingConfig.Builder clearChunkingConfig()
Returns
Type Description
RagFileChunkingConfig.Builder

clearFixedLengthChunking()

public RagFileChunkingConfig.Builder clearFixedLengthChunking()

Specifies the fixed length chunking config.

.google.cloud.vertexai.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

Returns
Type Description
RagFileChunkingConfig.Builder

getChunkingConfigCase()

public RagFileChunkingConfig.ChunkingConfigCase getChunkingConfigCase()
Returns
Type Description
RagFileChunkingConfig.ChunkingConfigCase

getDefaultInstanceForType()

public RagFileChunkingConfig getDefaultInstanceForType()
Returns
Type Description
RagFileChunkingConfig

getDescriptorForType()

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

getFixedLengthChunking()

public RagFileChunkingConfig.FixedLengthChunking getFixedLengthChunking()

Specifies the fixed length chunking config.

.google.cloud.vertexai.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking

The fixedLengthChunking.

getFixedLengthChunkingBuilder()

public RagFileChunkingConfig.FixedLengthChunking.Builder getFixedLengthChunkingBuilder()

Specifies the fixed length chunking config.

.google.cloud.vertexai.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

Returns
Type Description
RagFileChunkingConfig.FixedLengthChunking.Builder

getFixedLengthChunkingOrBuilder()

public RagFileChunkingConfig.FixedLengthChunkingOrBuilder getFixedLengthChunkingOrBuilder()

Specifies the fixed length chunking config.

.google.cloud.vertexai.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

Returns
Type Description
RagFileChunkingConfig.FixedLengthChunkingOrBuilder

hasFixedLengthChunking()

public boolean hasFixedLengthChunking()

Specifies the fixed length chunking config.

.google.cloud.vertexai.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

Returns
Type Description
boolean

Whether the fixedLengthChunking field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFixedLengthChunking(RagFileChunkingConfig.FixedLengthChunking value)

public RagFileChunkingConfig.Builder mergeFixedLengthChunking(RagFileChunkingConfig.FixedLengthChunking value)

Specifies the fixed length chunking config.

.google.cloud.vertexai.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

Parameter
Name Description
value RagFileChunkingConfig.FixedLengthChunking
Returns
Type Description
RagFileChunkingConfig.Builder

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

setFixedLengthChunking(RagFileChunkingConfig.FixedLengthChunking value)

public RagFileChunkingConfig.Builder setFixedLengthChunking(RagFileChunkingConfig.FixedLengthChunking value)

Specifies the fixed length chunking config.

.google.cloud.vertexai.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

Parameter
Name Description
value RagFileChunkingConfig.FixedLengthChunking
Returns
Type Description
RagFileChunkingConfig.Builder

setFixedLengthChunking(RagFileChunkingConfig.FixedLengthChunking.Builder builderForValue)

public RagFileChunkingConfig.Builder setFixedLengthChunking(RagFileChunkingConfig.FixedLengthChunking.Builder builderForValue)

Specifies the fixed length chunking config.

.google.cloud.vertexai.v1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

Parameter
Name Description
builderForValue RagFileChunkingConfig.FixedLengthChunking.Builder
Returns
Type Description
RagFileChunkingConfig.Builder