Interface Index.IndexField.VectorConfigOrBuilder (3.27.2)

public static interface Index.IndexField.VectorConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDimension()

public abstract int getDimension()

Required. The vector dimension this configuration applies to.

The resulting index will only include vectors of this dimension, and can be used for vector search with the same dimension.

int32 dimension = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The dimension.

getFlat()

public abstract Index.IndexField.VectorConfig.FlatIndex getFlat()

Indicates the vector index is a flat index.

.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex flat = 2;

Returns
Type Description
Index.IndexField.VectorConfig.FlatIndex

The flat.

getFlatOrBuilder()

public abstract Index.IndexField.VectorConfig.FlatIndexOrBuilder getFlatOrBuilder()

Indicates the vector index is a flat index.

.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex flat = 2;

Returns
Type Description
Index.IndexField.VectorConfig.FlatIndexOrBuilder

getTypeCase()

public abstract Index.IndexField.VectorConfig.TypeCase getTypeCase()
Returns
Type Description
Index.IndexField.VectorConfig.TypeCase

hasFlat()

public abstract boolean hasFlat()

Indicates the vector index is a flat index.

.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex flat = 2;

Returns
Type Description
boolean

Whether the flat field is set.