Interface EmbedContentResponse.EmbeddingOrBuilder

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

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

    Modifier and Type
    Method
    Description
    float
    getValues(int index)
    Embedding vector values.
    int
    Embedding vector values.
    Embedding vector values.

    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

    • getValuesList

      List<Float> getValuesList()
       Embedding vector values.
       
      repeated float values = 1;
      Returns:
      A list containing the values.
    • getValuesCount

      int getValuesCount()
       Embedding vector values.
       
      repeated float values = 1;
      Returns:
      The count of values.
    • getValues

      float getValues(int index)
       Embedding vector values.
       
      repeated float values = 1;
      Parameters:
      index - The index of the element to return.
      Returns:
      The values at the given index.