public static final class Index.IndexField.VectorConfig.Builder extends GeneratedMessage.Builder<Index.IndexField.VectorConfig.Builder> implements Index.IndexField.VectorConfigOrBuilderThe index configuration to support vector search operations
Protobuf type google.firestore.admin.v1.Index.IndexField.VectorConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Index.IndexField.VectorConfig.BuilderImplements
Index.IndexField.VectorConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Index.IndexField.VectorConfig build()| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig |
|
buildPartial()
public Index.IndexField.VectorConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig |
|
clear()
public Index.IndexField.VectorConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig.Builder |
|
clearDimension()
public Index.IndexField.VectorConfig.Builder clearDimension()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 |
Index.IndexField.VectorConfig.Builder |
This builder for chaining. |
clearFlat()
public Index.IndexField.VectorConfig.Builder clearFlat()Indicates the vector index is a flat index.
.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex flat = 2;
| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig.Builder |
|
clearType()
public Index.IndexField.VectorConfig.Builder clearType()| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig.Builder |
|
getDefaultInstanceForType()
public Index.IndexField.VectorConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDimension()
public 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 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. |
getFlatBuilder()
public Index.IndexField.VectorConfig.FlatIndex.Builder getFlatBuilder()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.Builder |
|
getFlatOrBuilder()
public 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 Index.IndexField.VectorConfig.TypeCase getTypeCase()| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig.TypeCase |
|
hasFlat()
public 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFlat(Index.IndexField.VectorConfig.FlatIndex value)
public Index.IndexField.VectorConfig.Builder mergeFlat(Index.IndexField.VectorConfig.FlatIndex value)Indicates the vector index is a flat index.
.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex flat = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Index.IndexField.VectorConfig.FlatIndex |
| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig.Builder |
|
mergeFrom(Index.IndexField.VectorConfig other)
public Index.IndexField.VectorConfig.Builder mergeFrom(Index.IndexField.VectorConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
Index.IndexField.VectorConfig |
| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Index.IndexField.VectorConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Index.IndexField.VectorConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig.Builder |
|
setDimension(int value)
public Index.IndexField.VectorConfig.Builder setDimension(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe dimension to set. |
| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig.Builder |
This builder for chaining. |
setFlat(Index.IndexField.VectorConfig.FlatIndex value)
public Index.IndexField.VectorConfig.Builder setFlat(Index.IndexField.VectorConfig.FlatIndex value)Indicates the vector index is a flat index.
.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex flat = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Index.IndexField.VectorConfig.FlatIndex |
| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig.Builder |
|
setFlat(Index.IndexField.VectorConfig.FlatIndex.Builder builderForValue)
public Index.IndexField.VectorConfig.Builder setFlat(Index.IndexField.VectorConfig.FlatIndex.Builder builderForValue)Indicates the vector index is a flat index.
.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex flat = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Index.IndexField.VectorConfig.FlatIndex.Builder |
| Returns | |
|---|---|
| Type | Description |
Index.IndexField.VectorConfig.Builder |
|