Interface NearestNeighborQuery.EmbeddingOrBuilder (3.92.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static interface NearestNeighborQuery.EmbeddingOrBuilder extends MessageOrBuilder
Methods
public abstract float getValue(int index)
Optional. Individual value in the embedding.
repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
float |
The value at the given index.
|
public abstract int getValueCount()
Optional. Individual value in the embedding.
repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The count of value.
|
public abstract List<Float> getValueList()
Optional. Individual value in the embedding.
repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<Float> |
A list containing the value.
|
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 2026-08-05 UTC.
[null,null,["Last updated 2026-08-05 UTC."],[],[]]