Class IndexDatapoint.Restriction.Builder

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

public static final class IndexDatapoint.Restriction.Builder extends com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.Restriction.Builder> implements IndexDatapoint.RestrictionOrBuilder
 Restriction of a datapoint which describe its attributes(tokens) from each
 of several attribute categories(namespaces).
 
Protobuf type google.cloud.aiplatform.v1.IndexDatapoint.Restriction
  • 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.Restriction.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.Restriction.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.Restriction.Builder>
    • getDefaultInstanceForType

      public IndexDatapoint.Restriction 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.Restriction buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public IndexDatapoint.Restriction.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.Restriction.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.Restriction.Builder>
    • mergeFrom

      public IndexDatapoint.Restriction.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.Restriction.Builder>
      Throws:
      IOException
    • getNamespace

      public String getNamespace()
       The namespace of this restriction. e.g.: color.
       
      string namespace = 1;
      Specified by:
      getNamespace in interface IndexDatapoint.RestrictionOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       The namespace of this restriction. e.g.: color.
       
      string namespace = 1;
      Specified by:
      getNamespaceBytes in interface IndexDatapoint.RestrictionOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

      public IndexDatapoint.Restriction.Builder setNamespace(String value)
       The namespace of this restriction. e.g.: color.
       
      string namespace = 1;
      Parameters:
      value - The namespace to set.
      Returns:
      This builder for chaining.
    • clearNamespace

      public IndexDatapoint.Restriction.Builder clearNamespace()
       The namespace of this restriction. e.g.: color.
       
      string namespace = 1;
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public IndexDatapoint.Restriction.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
       The namespace of this restriction. e.g.: color.
       
      string namespace = 1;
      Parameters:
      value - The bytes for namespace to set.
      Returns:
      This builder for chaining.
    • getAllowListList

      public com.google.protobuf.ProtocolStringList getAllowListList()
       The attributes to allow in this namespace. e.g.: 'red'
       
      repeated string allow_list = 2;
      Specified by:
      getAllowListList in interface IndexDatapoint.RestrictionOrBuilder
      Returns:
      A list containing the allowList.
    • getAllowListCount

      public int getAllowListCount()
       The attributes to allow in this namespace. e.g.: 'red'
       
      repeated string allow_list = 2;
      Specified by:
      getAllowListCount in interface IndexDatapoint.RestrictionOrBuilder
      Returns:
      The count of allowList.
    • getAllowList

      public String getAllowList(int index)
       The attributes to allow in this namespace. e.g.: 'red'
       
      repeated string allow_list = 2;
      Specified by:
      getAllowList in interface IndexDatapoint.RestrictionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The allowList at the given index.
    • getAllowListBytes

      public com.google.protobuf.ByteString getAllowListBytes(int index)
       The attributes to allow in this namespace. e.g.: 'red'
       
      repeated string allow_list = 2;
      Specified by:
      getAllowListBytes in interface IndexDatapoint.RestrictionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the allowList at the given index.
    • setAllowList

      public IndexDatapoint.Restriction.Builder setAllowList(int index, String value)
       The attributes to allow in this namespace. e.g.: 'red'
       
      repeated string allow_list = 2;
      Parameters:
      index - The index to set the value at.
      value - The allowList to set.
      Returns:
      This builder for chaining.
    • addAllowList

      public IndexDatapoint.Restriction.Builder addAllowList(String value)
       The attributes to allow in this namespace. e.g.: 'red'
       
      repeated string allow_list = 2;
      Parameters:
      value - The allowList to add.
      Returns:
      This builder for chaining.
    • addAllAllowList

      public IndexDatapoint.Restriction.Builder addAllAllowList(Iterable<String> values)
       The attributes to allow in this namespace. e.g.: 'red'
       
      repeated string allow_list = 2;
      Parameters:
      values - The allowList to add.
      Returns:
      This builder for chaining.
    • clearAllowList

      public IndexDatapoint.Restriction.Builder clearAllowList()
       The attributes to allow in this namespace. e.g.: 'red'
       
      repeated string allow_list = 2;
      Returns:
      This builder for chaining.
    • addAllowListBytes

      public IndexDatapoint.Restriction.Builder addAllowListBytes(com.google.protobuf.ByteString value)
       The attributes to allow in this namespace. e.g.: 'red'
       
      repeated string allow_list = 2;
      Parameters:
      value - The bytes of the allowList to add.
      Returns:
      This builder for chaining.
    • getDenyListList

      public com.google.protobuf.ProtocolStringList getDenyListList()
       The attributes to deny in this namespace. e.g.: 'blue'
       
      repeated string deny_list = 3;
      Specified by:
      getDenyListList in interface IndexDatapoint.RestrictionOrBuilder
      Returns:
      A list containing the denyList.
    • getDenyListCount

      public int getDenyListCount()
       The attributes to deny in this namespace. e.g.: 'blue'
       
      repeated string deny_list = 3;
      Specified by:
      getDenyListCount in interface IndexDatapoint.RestrictionOrBuilder
      Returns:
      The count of denyList.
    • getDenyList

      public String getDenyList(int index)
       The attributes to deny in this namespace. e.g.: 'blue'
       
      repeated string deny_list = 3;
      Specified by:
      getDenyList in interface IndexDatapoint.RestrictionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The denyList at the given index.
    • getDenyListBytes

      public com.google.protobuf.ByteString getDenyListBytes(int index)
       The attributes to deny in this namespace. e.g.: 'blue'
       
      repeated string deny_list = 3;
      Specified by:
      getDenyListBytes in interface IndexDatapoint.RestrictionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the denyList at the given index.
    • setDenyList

      public IndexDatapoint.Restriction.Builder setDenyList(int index, String value)
       The attributes to deny in this namespace. e.g.: 'blue'
       
      repeated string deny_list = 3;
      Parameters:
      index - The index to set the value at.
      value - The denyList to set.
      Returns:
      This builder for chaining.
    • addDenyList

      public IndexDatapoint.Restriction.Builder addDenyList(String value)
       The attributes to deny in this namespace. e.g.: 'blue'
       
      repeated string deny_list = 3;
      Parameters:
      value - The denyList to add.
      Returns:
      This builder for chaining.
    • addAllDenyList

      public IndexDatapoint.Restriction.Builder addAllDenyList(Iterable<String> values)
       The attributes to deny in this namespace. e.g.: 'blue'
       
      repeated string deny_list = 3;
      Parameters:
      values - The denyList to add.
      Returns:
      This builder for chaining.
    • clearDenyList

      public IndexDatapoint.Restriction.Builder clearDenyList()
       The attributes to deny in this namespace. e.g.: 'blue'
       
      repeated string deny_list = 3;
      Returns:
      This builder for chaining.
    • addDenyListBytes

      public IndexDatapoint.Restriction.Builder addDenyListBytes(com.google.protobuf.ByteString value)
       The attributes to deny in this namespace. e.g.: 'blue'
       
      repeated string deny_list = 3;
      Parameters:
      value - The bytes of the denyList to add.
      Returns:
      This builder for chaining.