Send feedback
  
   
 
  
    
      Class RagVectorDbConfig.RagManagedDb.ANN.Builder (3.79.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  RagVectorDbConfig . RagManagedDb . ANN . Builder   extends   GeneratedMessageV3 . 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
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN   build ()  
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN   buildPartial ()  
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   clear ()  
  
  Overrides 
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   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;
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   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;
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   clone ()  
  
  Overrides 
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN   getDefaultInstanceForType ()  
  
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  
    
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;
    
      
        Returns  
      
        Type Description  
      
        int The leafCount.
 
     
  
  
    
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;
    
      
        Returns  
      
        Type Description  
      
        int The treeDepth.
 
     
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   mergeFrom ( RagVectorDbConfig . RagManagedDb . ANN   other )  
  
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  
    
public   final   RagVectorDbConfig . RagManagedDb . ANN . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
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;
    
      
        Parameter  
      
        Name Description  
      
        valueint The leafCount to set.
 
     
  
  
  
    
public   RagVectorDbConfig . RagManagedDb . ANN . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  
    
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;
    
      
        Parameter  
      
        Name Description  
      
        valueint The treeDepth to set.
 
     
  
  
  
    
public   final   RagVectorDbConfig . RagManagedDb . ANN . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]