Package com.google.cloud.aiplatform.v1
Interface IndexDatapointOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
IndexDatapoint
,IndexDatapoint.Builder
public interface IndexDatapointOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IndexDatapoint.CrowdingTag
getCrowdingTag()
Optional.IndexDatapoint.CrowdingTagOrBuilder
getCrowdingTagOrBuilder()
Optional.String
getDatapointId()
Required.com.google.protobuf.ByteString
getDatapointIdBytes()
Required.float
getFeatureVector(int index)
Required.int
getFeatureVectorCount()
Required.List<Float>
getFeatureVectorList()
Required.IndexDatapoint.Restriction
getRestricts(int index)
Optional.int
getRestrictsCount()
Optional.List<IndexDatapoint.Restriction>
getRestrictsList()
Optional.IndexDatapoint.RestrictionOrBuilder
getRestrictsOrBuilder(int index)
Optional.List<? extends IndexDatapoint.RestrictionOrBuilder>
getRestrictsOrBuilderList()
Optional.boolean
hasCrowdingTag()
Optional.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDatapointId
String getDatapointId()
Required. Unique identifier of the datapoint.
string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The datapointId.
-
getDatapointIdBytes
com.google.protobuf.ByteString getDatapointIdBytes()
Required. Unique identifier of the datapoint.
string datapoint_id = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The bytes for datapointId.
-
getFeatureVectorList
List<Float> getFeatureVectorList()
Required. Feature embedding vector. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].
repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- A list containing the featureVector.
-
getFeatureVectorCount
int getFeatureVectorCount()
Required. Feature embedding vector. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].
repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The count of featureVector.
-
getFeatureVector
float getFeatureVector(int index)
Required. Feature embedding vector. An array of numbers with the length of [NearestNeighborSearchConfig.dimensions].
repeated float feature_vector = 2 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
index
- The index of the element to return.- Returns:
- The featureVector at the given index.
-
getRestrictsList
List<IndexDatapoint.Restriction> 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. 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];
-
getRestricts
IndexDatapoint.Restriction getRestricts(int index)
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. 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];
-
getRestrictsCount
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. 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];
-
getRestrictsOrBuilderList
List<? extends IndexDatapoint.RestrictionOrBuilder> 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. 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];
-
getRestrictsOrBuilder
IndexDatapoint.RestrictionOrBuilder getRestrictsOrBuilder(int index)
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. 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];
-
hasCrowdingTag
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];
- Returns:
- Whether the crowdingTag field is set.
-
getCrowdingTag
IndexDatapoint.CrowdingTag 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];
- Returns:
- The crowdingTag.
-
getCrowdingTagOrBuilder
IndexDatapoint.CrowdingTagOrBuilder 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];
-
-