Class IndexDatapoint.CrowdingTag.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.CrowdingTag.Builder>
com.google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag.Builder
All Implemented Interfaces:
IndexDatapoint.CrowdingTagOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
IndexDatapoint.CrowdingTag

public static final class IndexDatapoint.CrowdingTag.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.CrowdingTag.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.CrowdingTag.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.CrowdingTag.Builder>
    • getDefaultInstanceForType

      public IndexDatapoint.CrowdingTag getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public IndexDatapoint.CrowdingTag buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public IndexDatapoint.CrowdingTag.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IndexDatapoint.CrowdingTag.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.CrowdingTag.Builder>
    • mergeFrom

      public IndexDatapoint.CrowdingTag.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IndexDatapoint.CrowdingTag.Builder>
      Throws:
      IOException
    • getCrowdingAttribute

      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;
      Specified by:
      getCrowdingAttribute in interface IndexDatapoint.CrowdingTagOrBuilder
      Returns:
      The crowdingAttribute.
    • getCrowdingAttributeBytes

      public com.google.protobuf.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;
      Specified by:
      getCrowdingAttributeBytes in interface IndexDatapoint.CrowdingTagOrBuilder
      Returns:
      The bytes for crowdingAttribute.
    • setCrowdingAttribute

      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;
      Parameters:
      value - The crowdingAttribute to set.
      Returns:
      This builder for chaining.
    • clearCrowdingAttribute

      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:
      This builder for chaining.
    • setCrowdingAttributeBytes

      public IndexDatapoint.CrowdingTag.Builder setCrowdingAttributeBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for crowdingAttribute to set.
      Returns:
      This builder for chaining.