Interface NearestNeighborQuery.EmbeddingOrBuilder

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

public static interface NearestNeighborQuery.EmbeddingOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    getValue(int index)
    Optional.
    int
    Optional.
    Optional.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getValueList

      List<Float> getValueList()
       Optional. Individual value in the embedding.
       
      repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      A list containing the value.
    • getValueCount

      int getValueCount()
       Optional. Individual value in the embedding.
       
      repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The count of value.
    • getValue

      float getValue(int index)
       Optional. Individual value in the embedding.
       
      repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index of the element to return.
      Returns:
      The value at the given index.