Package com.google.cloud.aiplatform.v1
Class FeatureView.IndexConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.FeatureView.IndexConfig
- All Implemented Interfaces:
FeatureView.IndexConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- FeatureView
public static final class FeatureView.IndexConfig
extends com.google.protobuf.GeneratedMessage
implements FeatureView.IndexConfigOrBuilder
Configuration for vector indexing.Protobuf type
google.cloud.aiplatform.v1.FeatureView.IndexConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final classConfiguration options for using brute force search.static interfacestatic final classConfiguration for vector indexing.static enumThe distance measure used in nearest neighbor search.static final classConfiguration options for the tree-AH algorithm.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.Optional.Optional.com.google.protobuf.ByteStringOptional.static FeatureView.IndexConfigstatic final com.google.protobuf.Descriptors.DescriptorOptional.intOptional.Optional.com.google.protobuf.ByteStringOptional.intOptional.getFilterColumns(int index) Optional.com.google.protobuf.ByteStringgetFilterColumnsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.com.google.protobuf.Parser<FeatureView.IndexConfig>intOptional.Optional.booleanOptional.booleanOptional.inthashCode()booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(FeatureView.IndexConfig prototype) protected FeatureView.IndexConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static FeatureView.IndexConfigparseDelimitedFrom(InputStream input) static FeatureView.IndexConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FeatureView.IndexConfigparseFrom(byte[] data) static FeatureView.IndexConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FeatureView.IndexConfigparseFrom(com.google.protobuf.ByteString data) static FeatureView.IndexConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FeatureView.IndexConfigparseFrom(com.google.protobuf.CodedInputStream input) static FeatureView.IndexConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FeatureView.IndexConfigparseFrom(InputStream input) static FeatureView.IndexConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FeatureView.IndexConfigparseFrom(ByteBuffer data) static FeatureView.IndexConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FeatureView.IndexConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TREE_AH_CONFIG_FIELD_NUMBER
public static final int TREE_AH_CONFIG_FIELD_NUMBER- See Also:
-
BRUTE_FORCE_CONFIG_FIELD_NUMBER
public static final int BRUTE_FORCE_CONFIG_FIELD_NUMBER- See Also:
-
EMBEDDING_COLUMN_FIELD_NUMBER
public static final int EMBEDDING_COLUMN_FIELD_NUMBER- See Also:
-
FILTER_COLUMNS_FIELD_NUMBER
public static final int FILTER_COLUMNS_FIELD_NUMBER- See Also:
-
CROWDING_COLUMN_FIELD_NUMBER
public static final int CROWDING_COLUMN_FIELD_NUMBER- See Also:
-
EMBEDDING_DIMENSION_FIELD_NUMBER
public static final int EMBEDDING_DIMENSION_FIELD_NUMBER- See Also:
-
DISTANCE_MEASURE_TYPE_FIELD_NUMBER
public static final int DISTANCE_MEASURE_TYPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getAlgorithmConfigCase
- Specified by:
getAlgorithmConfigCasein interfaceFeatureView.IndexConfigOrBuilder
-
hasTreeAhConfig
public boolean hasTreeAhConfig()Optional. Configuration options for the tree-AH algorithm (Shallow tree + Asymmetric Hashing). Please refer to this paper for more details: https://arxiv.org/abs/1908.10396
.google.cloud.aiplatform.v1.FeatureView.IndexConfig.TreeAHConfig tree_ah_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTreeAhConfigin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- Whether the treeAhConfig field is set.
-
getTreeAhConfig
Optional. Configuration options for the tree-AH algorithm (Shallow tree + Asymmetric Hashing). Please refer to this paper for more details: https://arxiv.org/abs/1908.10396
.google.cloud.aiplatform.v1.FeatureView.IndexConfig.TreeAHConfig tree_ah_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTreeAhConfigin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- The treeAhConfig.
-
getTreeAhConfigOrBuilder
Optional. Configuration options for the tree-AH algorithm (Shallow tree + Asymmetric Hashing). Please refer to this paper for more details: https://arxiv.org/abs/1908.10396
.google.cloud.aiplatform.v1.FeatureView.IndexConfig.TreeAHConfig tree_ah_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTreeAhConfigOrBuilderin interfaceFeatureView.IndexConfigOrBuilder
-
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.v1.FeatureView.IndexConfig.BruteForceConfig brute_force_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasBruteForceConfigin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- Whether the bruteForceConfig field is set.
-
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.v1.FeatureView.IndexConfig.BruteForceConfig brute_force_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBruteForceConfigin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- The bruteForceConfig.
-
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.v1.FeatureView.IndexConfig.BruteForceConfig brute_force_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getBruteForceConfigOrBuilderin interfaceFeatureView.IndexConfigOrBuilder
-
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 = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmbeddingColumnin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- The embeddingColumn.
-
getEmbeddingColumnBytes
public com.google.protobuf.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 = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmbeddingColumnBytesin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- The bytes for embeddingColumn.
-
getFilterColumnsList
public com.google.protobuf.ProtocolStringList getFilterColumnsList()Optional. Columns of features that're used to filter vector search results.
repeated string filter_columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterColumnsListin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- A list containing the filterColumns.
-
getFilterColumnsCount
public int getFilterColumnsCount()Optional. Columns of features that're used to filter vector search results.
repeated string filter_columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterColumnsCountin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- The count of filterColumns.
-
getFilterColumns
Optional. Columns of features that're used to filter vector search results.
repeated string filter_columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterColumnsin interfaceFeatureView.IndexConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The filterColumns at the given index.
-
getFilterColumnsBytes
public com.google.protobuf.ByteString getFilterColumnsBytes(int index) Optional. Columns of features that're used to filter vector search results.
repeated string filter_columns = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFilterColumnsBytesin interfaceFeatureView.IndexConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the filterColumns at the given index.
-
getCrowdingColumn
Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by [FeatureOnlineStoreService.SearchNearestEntities][google.cloud.aiplatform.v1.FeatureOnlineStoreService.SearchNearestEntities] to diversify search results. If [NearestNeighborQuery.per_crowding_attribute_neighbor_count][google.cloud.aiplatform.v1.NearestNeighborQuery.per_crowding_attribute_neighbor_count] is set to K in [SearchNearestEntitiesRequest][google.cloud.aiplatform.v1.SearchNearestEntitiesRequest], it's guaranteed that no more than K entities of the same crowding attribute are returned in the response.
string crowding_column = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCrowdingColumnin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- The crowdingColumn.
-
getCrowdingColumnBytes
public com.google.protobuf.ByteString getCrowdingColumnBytes()Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by [FeatureOnlineStoreService.SearchNearestEntities][google.cloud.aiplatform.v1.FeatureOnlineStoreService.SearchNearestEntities] to diversify search results. If [NearestNeighborQuery.per_crowding_attribute_neighbor_count][google.cloud.aiplatform.v1.NearestNeighborQuery.per_crowding_attribute_neighbor_count] is set to K in [SearchNearestEntitiesRequest][google.cloud.aiplatform.v1.SearchNearestEntitiesRequest], it's guaranteed that no more than K entities of the same crowding attribute are returned in the response.
string crowding_column = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCrowdingColumnBytesin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- The bytes for crowdingColumn.
-
hasEmbeddingDimension
public boolean hasEmbeddingDimension()Optional. The number of dimensions of the input embedding.
optional int32 embedding_dimension = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEmbeddingDimensionin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- Whether the embeddingDimension field is set.
-
getEmbeddingDimension
public int getEmbeddingDimension()Optional. The number of dimensions of the input embedding.
optional int32 embedding_dimension = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmbeddingDimensionin interfaceFeatureView.IndexConfigOrBuilder- Returns:
- The embeddingDimension.
-
getDistanceMeasureTypeValue
public int getDistanceMeasureTypeValue()Optional. The distance measure used in nearest neighbor search.
.google.cloud.aiplatform.v1.FeatureView.IndexConfig.DistanceMeasureType distance_measure_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDistanceMeasureTypeValuein interfaceFeatureView.IndexConfigOrBuilder- Returns:
- The enum numeric value on the wire for distanceMeasureType.
-
getDistanceMeasureType
Optional. The distance measure used in nearest neighbor search.
.google.cloud.aiplatform.v1.FeatureView.IndexConfig.DistanceMeasureType distance_measure_type = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDistanceMeasureTypein interfaceFeatureView.IndexConfigOrBuilder- Returns:
- The distanceMeasureType.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FeatureView.IndexConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FeatureView.IndexConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FeatureView.IndexConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FeatureView.IndexConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FeatureView.IndexConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FeatureView.IndexConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FeatureView.IndexConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FeatureView.IndexConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static FeatureView.IndexConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static FeatureView.IndexConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FeatureView.IndexConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-