Class IndexDatapoint (3.24.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 3.24.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  IndexDatapoint   extends   GeneratedMessageV3   implements   IndexDatapointOrBuilder  
   A datapoint of Index.
 Protobuf type google.cloud.aiplatform.v1beta1.IndexDatapoint
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  
  
    
public   static   final   int   CROWDING_TAG_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   DATAPOINT_ID_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   FEATURE_VECTOR_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  
  
    
public   static   final   int   RESTRICTS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  
    
public   static   IndexDatapoint   getDefaultInstance ()  
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  
    
public   static   IndexDatapoint . Builder   newBuilder ()  
  
  
    
public   static   IndexDatapoint . Builder   newBuilder ( IndexDatapoint   prototype )  
  
  
  
    
public   static   IndexDatapoint   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   IndexDatapoint   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   IndexDatapoint   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  
    
public   static   IndexDatapoint   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   IndexDatapoint   parseFrom ( ByteString   data )  
  
  
  
  
    
public   static   IndexDatapoint   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   IndexDatapoint   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   IndexDatapoint   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   IndexDatapoint   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   IndexDatapoint   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   IndexDatapoint   parseFrom ( ByteBuffer   data )  
  
  
  
  
    
public   static   IndexDatapoint   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Parser<IndexDatapoint>   parser ()  
  
  Methods
   
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  
    
public   IndexDatapoint . CrowdingTag   getCrowdingTag ()  
   Optional. CrowdingTag of the datapoint, the number of neighbors to return
 in each crowding can be configured during query.
 
 .google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
 
    
public   IndexDatapoint . CrowdingTagOrBuilder   getCrowdingTagOrBuilder ()  
   Optional. CrowdingTag of the datapoint, the number of neighbors to return
 in each crowding can be configured during query.
 
 .google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
 
    
public   String   getDatapointId ()  
   Required. Unique identifier of the datapoint.
 string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        String The datapointId.
 
     
  
  
    
public   ByteString   getDatapointIdBytes ()  
   Required. Unique identifier of the datapoint.
 string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for datapointId.
 
     
  
  
    
public   IndexDatapoint   getDefaultInstanceForType ()  
  
  
    
public   float   getFeatureVector ( int   index )  
   Required. Feature embedding vector. An array of numbers with the length of
 [NearestNeighborSearchConfig.dimensions].
 repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the element to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        float The featureVector at the given index.
 
     
  
  
    
public   int   getFeatureVectorCount ()  
   Required. Feature embedding vector. An array of numbers with the length of
 [NearestNeighborSearchConfig.dimensions].
 repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        int The count of featureVector.
 
     
  
  
    
public   List<Float>   getFeatureVectorList ()  
   Required. Feature embedding vector. An array of numbers with the length of
 [NearestNeighborSearchConfig.dimensions].
 repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
    
      
        Returns  
      
        Type Description  
      
        List <Float >A list containing the featureVector.
 
     
  
  
    
public   Parser<IndexDatapoint>   getParserForType ()  
  
  Overrides 
  
  
    
public   IndexDatapoint . Restriction   getRestricts ( int   index )  
   Optional. List of Restrict of the datapoint, used to perform "restricted
 searches" where boolean rule are used to filter the subset of the database
 eligible for matching. See:
 https://cloud.google.com/vertex-ai/docs/matching-engine/filtering 
 
 repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  
    
public   int   getRestrictsCount ()  
   Optional. List of Restrict of the datapoint, used to perform "restricted
 searches" where boolean rule are used to filter the subset of the database
 eligible for matching. See:
 https://cloud.google.com/vertex-ai/docs/matching-engine/filtering 
 
 repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  
    
public   List<IndexDatapoint . Restriction >  getRestrictsList ()  
   Optional. List of Restrict of the datapoint, used to perform "restricted
 searches" where boolean rule are used to filter the subset of the database
 eligible for matching. See:
 https://cloud.google.com/vertex-ai/docs/matching-engine/filtering 
 
 repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
 
    
public   IndexDatapoint . RestrictionOrBuilder   getRestrictsOrBuilder ( int   index )  
   Optional. List of Restrict of the datapoint, used to perform "restricted
 searches" where boolean rule are used to filter the subset of the database
 eligible for matching. See:
 https://cloud.google.com/vertex-ai/docs/matching-engine/filtering 
 
 repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  
    
public   List <?   extends   IndexDatapoint . RestrictionOrBuilder >  getRestrictsOrBuilderList ()  
   Optional. List of Restrict of the datapoint, used to perform "restricted
 searches" where boolean rule are used to filter the subset of the database
 eligible for matching. See:
 https://cloud.google.com/vertex-ai/docs/matching-engine/filtering 
 
 repeated .google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.aiplatform.v1beta1.IndexDatapoint.RestrictionOrBuilder > 
     
  
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
public   boolean   hasCrowdingTag ()  
   Optional. CrowdingTag of the datapoint, the number of neighbors to return
 in each crowding can be configured during query.
 
 .google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];
 
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the crowdingTag field is set.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   IndexDatapoint . Builder   newBuilderForType ()  
  
  
    
protected   IndexDatapoint . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  
    
public   IndexDatapoint . Builder   toBuilder ()  
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]