Interface NearestNeighborQuery.EmbeddingOrBuilder (3.44.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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Type Description
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
Type Description
List<Float>

A list containing the value.