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.v1.IndexDatapoint.CrowdingTag
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
public IndexDatapoint.CrowdingTag.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public IndexDatapoint.CrowdingTag build()
Returns
public IndexDatapoint.CrowdingTag buildPartial()
Returns
public IndexDatapoint.CrowdingTag.Builder clear()
Returns
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;
Returns
public IndexDatapoint.CrowdingTag.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public IndexDatapoint.CrowdingTag.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public IndexDatapoint.CrowdingTag.Builder clone()
Returns
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()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public IndexDatapoint.CrowdingTag.Builder mergeFrom(IndexDatapoint.CrowdingTag other)
Parameter
Returns
public IndexDatapoint.CrowdingTag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public IndexDatapoint.CrowdingTag.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final IndexDatapoint.CrowdingTag.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.
|
Returns
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.
|
Returns
public IndexDatapoint.CrowdingTag.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public IndexDatapoint.CrowdingTag.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final IndexDatapoint.CrowdingTag.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides