Interface NearestNeighborQuery.EmbeddingOrBuilder (3.37.0)

public static interface NearestNeighborQuery.EmbeddingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getValue(int index)

public abstract float getValue(int index)

Optional. Individual value in the embedding.

repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
float

The value at the given index.

getValueCount()

public abstract int getValueCount()

Optional. Individual value in the embedding.

repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of value.

getValueList()

public abstract List<Float> getValueList()

Optional. Individual value in the embedding.

repeated float value = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Float>

A list containing the value.