Class FeatureView.VectorSearchConfig (3.36.0)

public static final class FeatureView.VectorSearchConfig extends GeneratedMessageV3 implements FeatureView.VectorSearchConfigOrBuilder

Configuration for vector search.

Protobuf type google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > FeatureView.VectorSearchConfig

Static Fields

BRUTE_FORCE_CONFIG_FIELD_NUMBER

public static final int BRUTE_FORCE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

CROWDING_COLUMN_FIELD_NUMBER

public static final int CROWDING_COLUMN_FIELD_NUMBER
Field Value
TypeDescription
int

DISTANCE_MEASURE_TYPE_FIELD_NUMBER

public static final int DISTANCE_MEASURE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

EMBEDDING_COLUMN_FIELD_NUMBER

public static final int EMBEDDING_COLUMN_FIELD_NUMBER
Field Value
TypeDescription
int

EMBEDDING_DIMENSION_FIELD_NUMBER

public static final int EMBEDDING_DIMENSION_FIELD_NUMBER
Field Value
TypeDescription
int

FILTER_COLUMNS_FIELD_NUMBER

public static final int FILTER_COLUMNS_FIELD_NUMBER
Field Value
TypeDescription
int

TREE_AH_CONFIG_FIELD_NUMBER

public static final int TREE_AH_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static FeatureView.VectorSearchConfig getDefaultInstance()
Returns
TypeDescription
FeatureView.VectorSearchConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static FeatureView.VectorSearchConfig.Builder newBuilder()
Returns
TypeDescription
FeatureView.VectorSearchConfig.Builder

newBuilder(FeatureView.VectorSearchConfig prototype)

public static FeatureView.VectorSearchConfig.Builder newBuilder(FeatureView.VectorSearchConfig prototype)
Parameter
NameDescription
prototypeFeatureView.VectorSearchConfig
Returns
TypeDescription
FeatureView.VectorSearchConfig.Builder

parseDelimitedFrom(InputStream input)

public static FeatureView.VectorSearchConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FeatureView.VectorSearchConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static FeatureView.VectorSearchConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FeatureView.VectorSearchConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FeatureView.VectorSearchConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FeatureView.VectorSearchConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FeatureView.VectorSearchConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FeatureView.VectorSearchConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static FeatureView.VectorSearchConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FeatureView.VectorSearchConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static FeatureView.VectorSearchConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FeatureView.VectorSearchConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FeatureView.VectorSearchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<FeatureView.VectorSearchConfig> parser()
Returns
TypeDescription
Parser<VectorSearchConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAlgorithmConfigCase()

public FeatureView.VectorSearchConfig.AlgorithmConfigCase getAlgorithmConfigCase()
Returns
TypeDescription
FeatureView.VectorSearchConfig.AlgorithmConfigCase

getBruteForceConfig()

public FeatureView.VectorSearchConfig.BruteForceConfig getBruteForceConfig()

Optional. Configuration options for using brute force search, which simply implements the standard linear search in the database for each query. It is primarily meant for benchmarking and to generate the ground truth for approximate search.

.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig.BruteForceConfig brute_force_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FeatureView.VectorSearchConfig.BruteForceConfig

The bruteForceConfig.

getBruteForceConfigOrBuilder()

public FeatureView.VectorSearchConfig.BruteForceConfigOrBuilder getBruteForceConfigOrBuilder()

Optional. Configuration options for using brute force search, which simply implements the standard linear search in the database for each query. It is primarily meant for benchmarking and to generate the ground truth for approximate search.

.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig.BruteForceConfig brute_force_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FeatureView.VectorSearchConfig.BruteForceConfigOrBuilder

getCrowdingColumn()

public String getCrowdingColumn()

Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some value k' of the k neighbors returned have the same value of crowding_attribute.

string crowding_column = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The crowdingColumn.

getCrowdingColumnBytes()

public ByteString getCrowdingColumnBytes()

Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some value k' of the k neighbors returned have the same value of crowding_attribute.

string crowding_column = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for crowdingColumn.

getDefaultInstanceForType()

public FeatureView.VectorSearchConfig getDefaultInstanceForType()
Returns
TypeDescription
FeatureView.VectorSearchConfig

getDistanceMeasureType()

public FeatureView.VectorSearchConfig.DistanceMeasureType getDistanceMeasureType()

Optional. The distance measure used in nearest neighbor search.

.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig.DistanceMeasureType distance_measure_type = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FeatureView.VectorSearchConfig.DistanceMeasureType

The distanceMeasureType.

getDistanceMeasureTypeValue()

public int getDistanceMeasureTypeValue()

Optional. The distance measure used in nearest neighbor search.

.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig.DistanceMeasureType distance_measure_type = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for distanceMeasureType.

getEmbeddingColumn()

public String getEmbeddingColumn()

Optional. Column of embedding. This column contains the source data to create index for vector search. embedding_column must be set when using vector search.

string embedding_column = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The embeddingColumn.

getEmbeddingColumnBytes()

public ByteString getEmbeddingColumnBytes()

Optional. Column of embedding. This column contains the source data to create index for vector search. embedding_column must be set when using vector search.

string embedding_column = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for embeddingColumn.

getEmbeddingDimension()

public int getEmbeddingDimension()

Optional. The number of dimensions of the input embedding.

optional int32 embedding_dimension = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The embeddingDimension.

getFilterColumns(int index)

public String getFilterColumns(int index)

Optional. Columns of features that're used to filter vector search results.

repeated string filter_columns = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The filterColumns at the given index.

getFilterColumnsBytes(int index)

public ByteString getFilterColumnsBytes(int index)

Optional. Columns of features that're used to filter vector search results.

repeated string filter_columns = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the filterColumns at the given index.

getFilterColumnsCount()

public int getFilterColumnsCount()

Optional. Columns of features that're used to filter vector search results.

repeated string filter_columns = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of filterColumns.

getFilterColumnsList()

public ProtocolStringList getFilterColumnsList()

Optional. Columns of features that're used to filter vector search results.

repeated string filter_columns = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the filterColumns.

getParserForType()

public Parser<FeatureView.VectorSearchConfig> getParserForType()
Returns
TypeDescription
Parser<VectorSearchConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTreeAhConfig()

public FeatureView.VectorSearchConfig.TreeAHConfig getTreeAhConfig()

Optional. Configuration options for the tree-AH algorithm (Shallow tree

.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig.TreeAHConfig tree_ah_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FeatureView.VectorSearchConfig.TreeAHConfig

The treeAhConfig.

getTreeAhConfigOrBuilder()

public FeatureView.VectorSearchConfig.TreeAHConfigOrBuilder getTreeAhConfigOrBuilder()

Optional. Configuration options for the tree-AH algorithm (Shallow tree

.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig.TreeAHConfig tree_ah_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FeatureView.VectorSearchConfig.TreeAHConfigOrBuilder

hasBruteForceConfig()

public boolean hasBruteForceConfig()

Optional. Configuration options for using brute force search, which simply implements the standard linear search in the database for each query. It is primarily meant for benchmarking and to generate the ground truth for approximate search.

.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig.BruteForceConfig brute_force_config = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the bruteForceConfig field is set.

hasEmbeddingDimension()

public boolean hasEmbeddingDimension()

Optional. The number of dimensions of the input embedding.

optional int32 embedding_dimension = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the embeddingDimension field is set.

hasTreeAhConfig()

public boolean hasTreeAhConfig()

Optional. Configuration options for the tree-AH algorithm (Shallow tree

.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig.TreeAHConfig tree_ah_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the treeAhConfig field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public FeatureView.VectorSearchConfig.Builder newBuilderForType()
Returns
TypeDescription
FeatureView.VectorSearchConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FeatureView.VectorSearchConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
FeatureView.VectorSearchConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public FeatureView.VectorSearchConfig.Builder toBuilder()
Returns
TypeDescription
FeatureView.VectorSearchConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException