Class RagVectorDbConfig.RagManagedDb.ANN.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RagVectorDbConfig.RagManagedDb.ANN.Builder>
com.google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN.Builder
All Implemented Interfaces:
RagVectorDbConfig.RagManagedDb.ANNOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RagVectorDbConfig.RagManagedDb.ANN

public static final class RagVectorDbConfig.RagManagedDb.ANN.Builder extends com.google.protobuf.GeneratedMessage.Builder<RagVectorDbConfig.RagManagedDb.ANN.Builder> implements RagVectorDbConfig.RagManagedDb.ANNOrBuilder
 Config for ANN search.

 RagManagedDb uses a tree-based structure to partition data and
 facilitate faster searches. As a tradeoff, it requires longer indexing
 time and manual triggering of index rebuild via the ImportRagFiles and
 UpdateRagCorpus API.
 
Protobuf type google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN
  • 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<RagVectorDbConfig.RagManagedDb.ANN.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<RagVectorDbConfig.RagManagedDb.ANN.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<RagVectorDbConfig.RagManagedDb.ANN.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public RagVectorDbConfig.RagManagedDb.ANN.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<RagVectorDbConfig.RagManagedDb.ANN.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<RagVectorDbConfig.RagManagedDb.ANN.Builder>
    • mergeFrom

      public RagVectorDbConfig.RagManagedDb.ANN.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<RagVectorDbConfig.RagManagedDb.ANN.Builder>
      Throws:
      IOException
    • getTreeDepth

      public int getTreeDepth()
       The depth of the tree-based structure. Only depth values of 2 and 3 are
       supported.
      
       Recommended value is 2 if you have if you have O(10K) files in the
       RagCorpus and set this to 3 if more than that.
      
       Default value is 2.
       
      int32 tree_depth = 1;
      Specified by:
      getTreeDepth in interface RagVectorDbConfig.RagManagedDb.ANNOrBuilder
      Returns:
      The treeDepth.
    • setTreeDepth

      public RagVectorDbConfig.RagManagedDb.ANN.Builder setTreeDepth(int value)
       The depth of the tree-based structure. Only depth values of 2 and 3 are
       supported.
      
       Recommended value is 2 if you have if you have O(10K) files in the
       RagCorpus and set this to 3 if more than that.
      
       Default value is 2.
       
      int32 tree_depth = 1;
      Parameters:
      value - The treeDepth to set.
      Returns:
      This builder for chaining.
    • clearTreeDepth

       The depth of the tree-based structure. Only depth values of 2 and 3 are
       supported.
      
       Recommended value is 2 if you have if you have O(10K) files in the
       RagCorpus and set this to 3 if more than that.
      
       Default value is 2.
       
      int32 tree_depth = 1;
      Returns:
      This builder for chaining.
    • getLeafCount

      public int getLeafCount()
       Number of leaf nodes in the tree-based structure. Each leaf node
       contains groups of closely related vectors along with their
       corresponding centroid.
      
       Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
      
       Default value is 500.
       
      int32 leaf_count = 2;
      Specified by:
      getLeafCount in interface RagVectorDbConfig.RagManagedDb.ANNOrBuilder
      Returns:
      The leafCount.
    • setLeafCount

      public RagVectorDbConfig.RagManagedDb.ANN.Builder setLeafCount(int value)
       Number of leaf nodes in the tree-based structure. Each leaf node
       contains groups of closely related vectors along with their
       corresponding centroid.
      
       Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
      
       Default value is 500.
       
      int32 leaf_count = 2;
      Parameters:
      value - The leafCount to set.
      Returns:
      This builder for chaining.
    • clearLeafCount

       Number of leaf nodes in the tree-based structure. Each leaf node
       contains groups of closely related vectors along with their
       corresponding centroid.
      
       Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus).
      
       Default value is 500.
       
      int32 leaf_count = 2;
      Returns:
      This builder for chaining.