Class RagFileChunkingConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RagFileChunkingConfig.Builder>
com.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.Builder
All Implemented Interfaces:
RagFileChunkingConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RagFileChunkingConfig

public static final class RagFileChunkingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<RagFileChunkingConfig.Builder> implements RagFileChunkingConfigOrBuilder
 Specifies the size and overlap of chunks for RagFiles.
 
Protobuf type google.cloud.aiplatform.v1beta1.RagFileChunkingConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RagFileChunkingConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RagFileChunkingConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RagFileChunkingConfig.Builder>
    • getDefaultInstanceForType

      public RagFileChunkingConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public RagFileChunkingConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public RagFileChunkingConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RagFileChunkingConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RagFileChunkingConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RagFileChunkingConfig.Builder>
    • mergeFrom

      public RagFileChunkingConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RagFileChunkingConfig.Builder>
      Throws:
      IOException
    • getChunkingConfigCase

      public RagFileChunkingConfig.ChunkingConfigCase getChunkingConfigCase()
      Specified by:
      getChunkingConfigCase in interface RagFileChunkingConfigOrBuilder
    • clearChunkingConfig

      public RagFileChunkingConfig.Builder clearChunkingConfig()
    • hasFixedLengthChunking

      public boolean hasFixedLengthChunking()
       Specifies the fixed length chunking config.
       
      .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;
      Specified by:
      hasFixedLengthChunking in interface RagFileChunkingConfigOrBuilder
      Returns:
      Whether the fixedLengthChunking field is set.
    • getFixedLengthChunking

      public RagFileChunkingConfig.FixedLengthChunking getFixedLengthChunking()
       Specifies the fixed length chunking config.
       
      .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;
      Specified by:
      getFixedLengthChunking in interface RagFileChunkingConfigOrBuilder
      Returns:
      The fixedLengthChunking.
    • setFixedLengthChunking

       Specifies the fixed length chunking config.
       
      .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;
    • setFixedLengthChunking

       Specifies the fixed length chunking config.
       
      .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;
    • mergeFixedLengthChunking

       Specifies the fixed length chunking config.
       
      .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;
    • clearFixedLengthChunking

      public RagFileChunkingConfig.Builder clearFixedLengthChunking()
       Specifies the fixed length chunking config.
       
      .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;
    • getFixedLengthChunkingBuilder

      public RagFileChunkingConfig.FixedLengthChunking.Builder getFixedLengthChunkingBuilder()
       Specifies the fixed length chunking config.
       
      .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;
    • getFixedLengthChunkingOrBuilder

      public RagFileChunkingConfig.FixedLengthChunkingOrBuilder getFixedLengthChunkingOrBuilder()
       Specifies the fixed length chunking config.
       
      .google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.FixedLengthChunking fixed_length_chunking = 3;
      Specified by:
      getFixedLengthChunkingOrBuilder in interface RagFileChunkingConfigOrBuilder
    • 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=534
       The size of the chunks.
       
      int32 chunk_size = 1 [deprecated = true];
      Specified by:
      getChunkSize in interface RagFileChunkingConfigOrBuilder
      Returns:
      The chunkSize.
    • setChunkSize

      @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=534
       The size of the chunks.
       
      int32 chunk_size = 1 [deprecated = true];
      Parameters:
      value - The chunkSize to set.
      Returns:
      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=534
       The size of the chunks.
       
      int32 chunk_size = 1 [deprecated = true];
      Returns:
      This builder for chaining.
    • 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=537
       The overlap between chunks.
       
      int32 chunk_overlap = 2 [deprecated = true];
      Specified by:
      getChunkOverlap in interface RagFileChunkingConfigOrBuilder
      Returns:
      The chunkOverlap.
    • setChunkOverlap

      @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=537
       The overlap between chunks.
       
      int32 chunk_overlap = 2 [deprecated = true];
      Parameters:
      value - The chunkOverlap to set.
      Returns:
      This builder for chaining.
    • 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=537
       The overlap between chunks.
       
      int32 chunk_overlap = 2 [deprecated = true];
      Returns:
      This builder for chaining.