Package com.google.cloud.aiplatform.v1
Class IndexDatapoint
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.IndexDatapoint
- All Implemented Interfaces:
IndexDatapointOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class IndexDatapoint
extends com.google.protobuf.GeneratedMessage
implements IndexDatapointOrBuilder
A datapoint of Index.Protobuf type
google.cloud.aiplatform.v1.IndexDatapoint- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA datapoint of Index.static final classCrowding tag 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.static interfacestatic final classThis field allows restricts to be based on numeric comparisons rather than categorical tokens.static interfacestatic final classRestriction of a datapoint which describe its attributes(tokens) from each of several attribute categories(namespaces).static interfacestatic final classFeature embedding vector for sparse index.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.Required.com.google.protobuf.ByteStringRequired.static IndexDatapointstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructOptional.com.google.protobuf.StructOrBuilderOptional.floatgetFeatureVector(int index) Required.intRequired.Required.getNumericRestricts(int index) Optional.intOptional.Optional.getNumericRestrictsOrBuilder(int index) Optional.List<? extends IndexDatapoint.NumericRestrictionOrBuilder>Optional.com.google.protobuf.Parser<IndexDatapoint>getRestricts(int index) Optional.intOptional.Optional.getRestrictsOrBuilder(int index) Optional.List<? extends IndexDatapoint.RestrictionOrBuilder>Optional.intOptional.Optional.booleanOptional.booleanOptional.inthashCode()booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic IndexDatapoint.Builderstatic IndexDatapoint.BuildernewBuilder(IndexDatapoint prototype) protected IndexDatapoint.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static IndexDatapointparseDelimitedFrom(InputStream input) static IndexDatapointparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IndexDatapointparseFrom(byte[] data) static IndexDatapointparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IndexDatapointparseFrom(com.google.protobuf.ByteString data) static IndexDatapointparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IndexDatapointparseFrom(com.google.protobuf.CodedInputStream input) static IndexDatapointparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IndexDatapointparseFrom(InputStream input) static IndexDatapointparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static IndexDatapointparseFrom(ByteBuffer data) static IndexDatapointparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<IndexDatapoint>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
-
DATAPOINT_ID_FIELD_NUMBER
public static final int DATAPOINT_ID_FIELD_NUMBER- See Also:
-
FEATURE_VECTOR_FIELD_NUMBER
public static final int FEATURE_VECTOR_FIELD_NUMBER- See Also:
-
SPARSE_EMBEDDING_FIELD_NUMBER
public static final int SPARSE_EMBEDDING_FIELD_NUMBER- See Also:
-
RESTRICTS_FIELD_NUMBER
public static final int RESTRICTS_FIELD_NUMBER- See Also:
-
NUMERIC_RESTRICTS_FIELD_NUMBER
public static final int NUMERIC_RESTRICTS_FIELD_NUMBER- See Also:
-
CROWDING_TAG_FIELD_NUMBER
public static final int CROWDING_TAG_FIELD_NUMBER- See Also:
-
EMBEDDING_METADATA_FIELD_NUMBER
public static final int EMBEDDING_METADATA_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
-
getDatapointId
Required. Unique identifier of the datapoint.
string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatapointIdin interfaceIndexDatapointOrBuilder- Returns:
- The datapointId.
-
getDatapointIdBytes
public com.google.protobuf.ByteString getDatapointIdBytes()Required. Unique identifier of the datapoint.
string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatapointIdBytesin interfaceIndexDatapointOrBuilder- Returns:
- The bytes for datapointId.
-
getFeatureVectorList
Required. Feature embedding vector for dense index. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].
repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFeatureVectorListin interfaceIndexDatapointOrBuilder- Returns:
- A list containing the featureVector.
-
getFeatureVectorCount
public int getFeatureVectorCount()Required. Feature embedding vector for dense index. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].
repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFeatureVectorCountin interfaceIndexDatapointOrBuilder- Returns:
- The count of featureVector.
-
getFeatureVector
public float getFeatureVector(int index) Required. Feature embedding vector for dense index. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].
repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFeatureVectorin interfaceIndexDatapointOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The featureVector at the given index.
-
hasSparseEmbedding
public boolean hasSparseEmbedding()Optional. Feature embedding vector for sparse index.
.google.cloud.aiplatform.v1.IndexDatapoint.SparseEmbedding sparse_embedding = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSparseEmbeddingin interfaceIndexDatapointOrBuilder- Returns:
- Whether the sparseEmbedding field is set.
-
getSparseEmbedding
Optional. Feature embedding vector for sparse index.
.google.cloud.aiplatform.v1.IndexDatapoint.SparseEmbedding sparse_embedding = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSparseEmbeddingin interfaceIndexDatapointOrBuilder- Returns:
- The sparseEmbedding.
-
getSparseEmbeddingOrBuilder
Optional. Feature embedding vector for sparse index.
.google.cloud.aiplatform.v1.IndexDatapoint.SparseEmbedding sparse_embedding = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSparseEmbeddingOrBuilderin interfaceIndexDatapointOrBuilder
-
getRestrictsList
Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRestrictsListin interfaceIndexDatapointOrBuilder
-
getRestrictsOrBuilderList
Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRestrictsOrBuilderListin interfaceIndexDatapointOrBuilder
-
getRestrictsCount
public int getRestrictsCount()Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRestrictsCountin interfaceIndexDatapointOrBuilder
-
getRestricts
Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRestrictsin interfaceIndexDatapointOrBuilder
-
getRestrictsOrBuilder
Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses categorical tokens. See: https://cloud.google.com/vertex-ai/docs/matching-engine/filtering
repeated .google.cloud.aiplatform.v1.IndexDatapoint.Restriction restricts = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRestrictsOrBuilderin interfaceIndexDatapointOrBuilder
-
getNumericRestrictsList
Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses numeric comparisons.
repeated .google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction numeric_restricts = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNumericRestrictsListin interfaceIndexDatapointOrBuilder
-
getNumericRestrictsOrBuilderList
public List<? extends IndexDatapoint.NumericRestrictionOrBuilder> getNumericRestrictsOrBuilderList()Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses numeric comparisons.
repeated .google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction numeric_restricts = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNumericRestrictsOrBuilderListin interfaceIndexDatapointOrBuilder
-
getNumericRestrictsCount
public int getNumericRestrictsCount()Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses numeric comparisons.
repeated .google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction numeric_restricts = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNumericRestrictsCountin interfaceIndexDatapointOrBuilder
-
getNumericRestricts
Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses numeric comparisons.
repeated .google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction numeric_restricts = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNumericRestrictsin interfaceIndexDatapointOrBuilder
-
getNumericRestrictsOrBuilder
Optional. List of Restrict of the datapoint, used to perform "restricted searches" where boolean rule are used to filter the subset of the database eligible for matching. This uses numeric comparisons.
repeated .google.cloud.aiplatform.v1.IndexDatapoint.NumericRestriction numeric_restricts = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getNumericRestrictsOrBuilderin interfaceIndexDatapointOrBuilder
-
hasCrowdingTag
public boolean hasCrowdingTag()Optional. CrowdingTag of the datapoint, the number of neighbors to return in each crowding can be configured during query.
.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCrowdingTagin interfaceIndexDatapointOrBuilder- Returns:
- Whether the crowdingTag field is set.
-
getCrowdingTag
Optional. CrowdingTag of the datapoint, the number of neighbors to return in each crowding can be configured during query.
.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCrowdingTagin interfaceIndexDatapointOrBuilder- Returns:
- The crowdingTag.
-
getCrowdingTagOrBuilder
Optional. CrowdingTag of the datapoint, the number of neighbors to return in each crowding can be configured during query.
.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag crowding_tag = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCrowdingTagOrBuilderin interfaceIndexDatapointOrBuilder
-
hasEmbeddingMetadata
public boolean hasEmbeddingMetadata()Optional. The key-value map of additional metadata for the datapoint.
.google.protobuf.Struct embedding_metadata = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEmbeddingMetadatain interfaceIndexDatapointOrBuilder- Returns:
- Whether the embeddingMetadata field is set.
-
getEmbeddingMetadata
public com.google.protobuf.Struct getEmbeddingMetadata()Optional. The key-value map of additional metadata for the datapoint.
.google.protobuf.Struct embedding_metadata = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmbeddingMetadatain interfaceIndexDatapointOrBuilder- Returns:
- The embeddingMetadata.
-
getEmbeddingMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getEmbeddingMetadataOrBuilder()Optional. The key-value map of additional metadata for the datapoint.
.google.protobuf.Struct embedding_metadata = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEmbeddingMetadataOrBuilderin interfaceIndexDatapointOrBuilder
-
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 IndexDatapoint parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IndexDatapoint parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IndexDatapoint parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IndexDatapoint parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IndexDatapoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static IndexDatapoint parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static IndexDatapoint parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static IndexDatapoint parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static IndexDatapoint parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static IndexDatapoint 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 IndexDatapoint.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
-