public static final class IndexDatapoint.CrowdingTag.Builder extends GeneratedMessageV3.Builder<IndexDatapoint.CrowdingTag.Builder> implements IndexDatapoint.CrowdingTagOrBuilder
Crowding 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.
Protobuf type google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public IndexDatapoint.CrowdingTag.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public IndexDatapoint.CrowdingTag build()
public IndexDatapoint.CrowdingTag buildPartial()
public IndexDatapoint.CrowdingTag.Builder clear()
Overrides
public IndexDatapoint.CrowdingTag.Builder clearCrowdingAttribute()
The attribute value used for crowding. The maximum number of neighbors
to return per crowding attribute value
(per_crowding_attribute_num_neighbors) is configured per-query. This
field is ignored if per_crowding_attribute_num_neighbors is larger than
the total number of neighbors to return for a given query.
string crowding_attribute = 1;
public IndexDatapoint.CrowdingTag.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public IndexDatapoint.CrowdingTag.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public IndexDatapoint.CrowdingTag.Builder clone()
Overrides
public String getCrowdingAttribute()
The attribute value used for crowding. The maximum number of neighbors
to return per crowding attribute value
(per_crowding_attribute_num_neighbors) is configured per-query. This
field is ignored if per_crowding_attribute_num_neighbors is larger than
the total number of neighbors to return for a given query.
string crowding_attribute = 1;
Returns |
Type |
Description |
String |
The crowdingAttribute.
|
public ByteString getCrowdingAttributeBytes()
The attribute value used for crowding. The maximum number of neighbors
to return per crowding attribute value
(per_crowding_attribute_num_neighbors) is configured per-query. This
field is ignored if per_crowding_attribute_num_neighbors is larger than
the total number of neighbors to return for a given query.
string crowding_attribute = 1;
Returns |
Type |
Description |
ByteString |
The bytes for crowdingAttribute.
|
public IndexDatapoint.CrowdingTag getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public IndexDatapoint.CrowdingTag.Builder mergeFrom(IndexDatapoint.CrowdingTag other)
public IndexDatapoint.CrowdingTag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public IndexDatapoint.CrowdingTag.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final IndexDatapoint.CrowdingTag.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public IndexDatapoint.CrowdingTag.Builder setCrowdingAttribute(String value)
The attribute value used for crowding. The maximum number of neighbors
to return per crowding attribute value
(per_crowding_attribute_num_neighbors) is configured per-query. This
field is ignored if per_crowding_attribute_num_neighbors is larger than
the total number of neighbors to return for a given query.
string crowding_attribute = 1;
Parameter |
Name |
Description |
value |
String
The crowdingAttribute to set.
|
public IndexDatapoint.CrowdingTag.Builder setCrowdingAttributeBytes(ByteString value)
The attribute value used for crowding. The maximum number of neighbors
to return per crowding attribute value
(per_crowding_attribute_num_neighbors) is configured per-query. This
field is ignored if per_crowding_attribute_num_neighbors is larger than
the total number of neighbors to return for a given query.
string crowding_attribute = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for crowdingAttribute to set.
|
public IndexDatapoint.CrowdingTag.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public IndexDatapoint.CrowdingTag.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final IndexDatapoint.CrowdingTag.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides