Interface StructuredQuery.FindNearestOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
StructuredQuery.FindNearest, StructuredQuery.FindNearest.Builder
Enclosing class:
StructuredQuery

public static interface StructuredQuery.FindNearestOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasVectorField

      boolean hasVectorField()
       Required. An indexed vector field to search upon. Only documents which
       contain vectors whose dimensionality match the query_vector can be
       returned.
       
      .google.firestore.v1.StructuredQuery.FieldReference vector_field = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      Whether the vectorField field is set.
    • getVectorField

       Required. An indexed vector field to search upon. Only documents which
       contain vectors whose dimensionality match the query_vector can be
       returned.
       
      .google.firestore.v1.StructuredQuery.FieldReference vector_field = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The vectorField.
    • getVectorFieldOrBuilder

      StructuredQuery.FieldReferenceOrBuilder getVectorFieldOrBuilder()
       Required. An indexed vector field to search upon. Only documents which
       contain vectors whose dimensionality match the query_vector can be
       returned.
       
      .google.firestore.v1.StructuredQuery.FieldReference vector_field = 1 [(.google.api.field_behavior) = REQUIRED];
    • hasQueryVector

      boolean hasQueryVector()
       Required. The query vector that we are searching on. Must be a vector of
       no more than 2048 dimensions.
       
      .google.firestore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      Whether the queryVector field is set.
    • getQueryVector

      Value getQueryVector()
       Required. The query vector that we are searching on. Must be a vector of
       no more than 2048 dimensions.
       
      .google.firestore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The queryVector.
    • getQueryVectorOrBuilder

      ValueOrBuilder getQueryVectorOrBuilder()
       Required. The query vector that we are searching on. Must be a vector of
       no more than 2048 dimensions.
       
      .google.firestore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDistanceMeasureValue

      int getDistanceMeasureValue()
       Required. The Distance Measure to use, required.
       
      .google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure distance_measure = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The enum numeric value on the wire for distanceMeasure.
    • getDistanceMeasure

       Required. The Distance Measure to use, required.
       
      .google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure distance_measure = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The distanceMeasure.
    • hasLimit

      boolean hasLimit()
       Required. The number of nearest neighbors to return. Must be a positive
       integer of no more than 1000.
       
      .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      Whether the limit field is set.
    • getLimit

      com.google.protobuf.Int32Value getLimit()
       Required. The number of nearest neighbors to return. Must be a positive
       integer of no more than 1000.
       
      .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The limit.
    • getLimitOrBuilder

      com.google.protobuf.Int32ValueOrBuilder getLimitOrBuilder()
       Required. The number of nearest neighbors to return. Must be a positive
       integer of no more than 1000.
       
      .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED];