Class RagFileChunkingConfig.Builder (3.56.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() (deprecated)

public RagFileChunkingConfig.Builder clearChunkOverlap()

Deprecated. google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=407

The overlap between chunks.

int32 chunk_overlap = 2 [deprecated = true];

Returns
Type Description
RagFileChunkingConfig.Builder

This builder for chaining.

clearChunkSize() (deprecated)

public RagFileChunkingConfig.Builder clearChunkSize()

Deprecated. google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=404

The size of the chunks.

int32 chunk_size = 1 [deprecated = true];

Returns
Type Description
RagFileChunkingConfig.Builder

This builder for chaining.

clearChunkingConfig()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFixedLengthChunking()

public RagFileChunkingConfig.Builder clearFixedLengthChunking()

Specifies the fixed length chunking config.

.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

Returns
Type Description
RagFileChunkingConfig.Builder

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() (deprecated)

public int getChunkOverlap()

Deprecated. google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=407

The overlap between chunks.

int32 chunk_overlap = 2 [deprecated = true];

Returns
Type Description
int

The chunkOverlap.

getChunkSize() (deprecated)

public int getChunkSize()

Deprecated. google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=404

The size of the chunks.

int32 chunk_size = 1 [deprecated = true];

Returns
Type Description
int

The chunkSize.

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.aiplatform.v1beta1.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.aiplatform.v1beta1.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.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

Returns
Type Description
RagFileChunkingConfig.FixedLengthChunkingOrBuilder

hasFixedLengthChunking()

public boolean hasFixedLengthChunking()

Specifies the fixed length chunking config.

.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

Returns
Type Description
boolean

Whether the fixedLengthChunking field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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.aiplatform.v1beta1.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setChunkOverlap(int value) (deprecated)

public RagFileChunkingConfig.Builder setChunkOverlap(int value)

Deprecated. google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=407

The overlap between chunks.

int32 chunk_overlap = 2 [deprecated = true];

Parameter
Name Description
value int

The chunkOverlap to set.

Returns
Type Description
RagFileChunkingConfig.Builder

This builder for chaining.

setChunkSize(int value) (deprecated)

public RagFileChunkingConfig.Builder setChunkSize(int value)

Deprecated. google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=404

The size of the chunks.

int32 chunk_size = 1 [deprecated = true];

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

setFixedLengthChunking(RagFileChunkingConfig.FixedLengthChunking value)

public RagFileChunkingConfig.Builder setFixedLengthChunking(RagFileChunkingConfig.FixedLengthChunking value)

Specifies the fixed length chunking config.

.google.cloud.aiplatform.v1beta1.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.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;

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

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