public static final class IndexDatapoint.CrowdingTag extends GeneratedMessageV3 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
Static Fields
public static final int CROWDING_ATTRIBUTE_FIELD_NUMBER
Field Value
Static Methods
public static IndexDatapoint.CrowdingTag getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static IndexDatapoint.CrowdingTag.Builder newBuilder()
Returns
public static IndexDatapoint.CrowdingTag.Builder newBuilder(IndexDatapoint.CrowdingTag prototype)
Parameter
Returns
public static IndexDatapoint.CrowdingTag parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static IndexDatapoint.CrowdingTag parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static IndexDatapoint.CrowdingTag parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static IndexDatapoint.CrowdingTag parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static IndexDatapoint.CrowdingTag parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static IndexDatapoint.CrowdingTag parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static IndexDatapoint.CrowdingTag parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static IndexDatapoint.CrowdingTag parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static IndexDatapoint.CrowdingTag parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static IndexDatapoint.CrowdingTag parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static IndexDatapoint.CrowdingTag parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static IndexDatapoint.CrowdingTag parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<IndexDatapoint.CrowdingTag> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
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 Parser<IndexDatapoint.CrowdingTag> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public IndexDatapoint.CrowdingTag.Builder newBuilderForType()
Returns
protected IndexDatapoint.CrowdingTag.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public IndexDatapoint.CrowdingTag.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions