Interface IndexDatapoint.SparseEmbeddingOrBuilder (3.54.0)

public static interface IndexDatapoint.SparseEmbeddingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDimensions(int index)

public abstract long getDimensions(int index)

Required. The list of indexes for the embedding values of the sparse vector.

repeated int64 dimensions = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

The dimensions at the given index.

getDimensionsCount()

public abstract int getDimensionsCount()

Required. The list of indexes for the embedding values of the sparse vector.

repeated int64 dimensions = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of dimensions.

getDimensionsList()

public abstract List<Long> getDimensionsList()

Required. The list of indexes for the embedding values of the sparse vector.

repeated int64 dimensions = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Long>

A list containing the dimensions.

getValues(int index)

public abstract float getValues(int index)

Required. The list of embedding values of the sparse vector.

repeated float values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
float

The values at the given index.

getValuesCount()

public abstract int getValuesCount()

Required. The list of embedding values of the sparse vector.

repeated float values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of values.

getValuesList()

public abstract List<Float> getValuesList()

Required. The list of embedding values of the sparse vector.

repeated float values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Float>

A list containing the values.