Class SearchCriteriaProperty.Builder

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

public static final class SearchCriteriaProperty.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchCriteriaProperty.Builder> implements SearchCriteriaPropertyOrBuilder
 Central configuration for custom search criteria.
 
Protobuf type google.cloud.visionai.v1.SearchCriteriaProperty
  • 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<SearchCriteriaProperty.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<SearchCriteriaProperty.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<SearchCriteriaProperty.Builder>
    • getDefaultInstanceForType

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

      public SearchCriteriaProperty build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public SearchCriteriaProperty.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<SearchCriteriaProperty.Builder>
      Throws:
      IOException
    • getMappedFieldsList

      public com.google.protobuf.ProtocolStringList getMappedFieldsList()
       Each mapped_field corresponds to a UGA key. To understand how this property
       works, take the following example. In the SearchConfig table, the
       user adds this entry:
       search_config {
       name: "person"
       search_criteria_property {
       mapped_fields: "player"
       mapped_fields: "coach"
       }
       }
      
       Now, when a user issues a query like:
       criteria {
       field: "person"
       text_array {
       txt_values: "Tom Brady"
       txt_values: "Bill Belichick"
       }
       }
      
       MWH search will return search documents where (player=Tom Brady ||
       coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
       
      repeated string mapped_fields = 1;
      Specified by:
      getMappedFieldsList in interface SearchCriteriaPropertyOrBuilder
      Returns:
      A list containing the mappedFields.
    • getMappedFieldsCount

      public int getMappedFieldsCount()
       Each mapped_field corresponds to a UGA key. To understand how this property
       works, take the following example. In the SearchConfig table, the
       user adds this entry:
       search_config {
       name: "person"
       search_criteria_property {
       mapped_fields: "player"
       mapped_fields: "coach"
       }
       }
      
       Now, when a user issues a query like:
       criteria {
       field: "person"
       text_array {
       txt_values: "Tom Brady"
       txt_values: "Bill Belichick"
       }
       }
      
       MWH search will return search documents where (player=Tom Brady ||
       coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
       
      repeated string mapped_fields = 1;
      Specified by:
      getMappedFieldsCount in interface SearchCriteriaPropertyOrBuilder
      Returns:
      The count of mappedFields.
    • getMappedFields

      public String getMappedFields(int index)
       Each mapped_field corresponds to a UGA key. To understand how this property
       works, take the following example. In the SearchConfig table, the
       user adds this entry:
       search_config {
       name: "person"
       search_criteria_property {
       mapped_fields: "player"
       mapped_fields: "coach"
       }
       }
      
       Now, when a user issues a query like:
       criteria {
       field: "person"
       text_array {
       txt_values: "Tom Brady"
       txt_values: "Bill Belichick"
       }
       }
      
       MWH search will return search documents where (player=Tom Brady ||
       coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
       
      repeated string mapped_fields = 1;
      Specified by:
      getMappedFields in interface SearchCriteriaPropertyOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The mappedFields at the given index.
    • getMappedFieldsBytes

      public com.google.protobuf.ByteString getMappedFieldsBytes(int index)
       Each mapped_field corresponds to a UGA key. To understand how this property
       works, take the following example. In the SearchConfig table, the
       user adds this entry:
       search_config {
       name: "person"
       search_criteria_property {
       mapped_fields: "player"
       mapped_fields: "coach"
       }
       }
      
       Now, when a user issues a query like:
       criteria {
       field: "person"
       text_array {
       txt_values: "Tom Brady"
       txt_values: "Bill Belichick"
       }
       }
      
       MWH search will return search documents where (player=Tom Brady ||
       coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
       
      repeated string mapped_fields = 1;
      Specified by:
      getMappedFieldsBytes in interface SearchCriteriaPropertyOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the mappedFields at the given index.
    • setMappedFields

      public SearchCriteriaProperty.Builder setMappedFields(int index, String value)
       Each mapped_field corresponds to a UGA key. To understand how this property
       works, take the following example. In the SearchConfig table, the
       user adds this entry:
       search_config {
       name: "person"
       search_criteria_property {
       mapped_fields: "player"
       mapped_fields: "coach"
       }
       }
      
       Now, when a user issues a query like:
       criteria {
       field: "person"
       text_array {
       txt_values: "Tom Brady"
       txt_values: "Bill Belichick"
       }
       }
      
       MWH search will return search documents where (player=Tom Brady ||
       coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
       
      repeated string mapped_fields = 1;
      Parameters:
      index - The index to set the value at.
      value - The mappedFields to set.
      Returns:
      This builder for chaining.
    • addMappedFields

      public SearchCriteriaProperty.Builder addMappedFields(String value)
       Each mapped_field corresponds to a UGA key. To understand how this property
       works, take the following example. In the SearchConfig table, the
       user adds this entry:
       search_config {
       name: "person"
       search_criteria_property {
       mapped_fields: "player"
       mapped_fields: "coach"
       }
       }
      
       Now, when a user issues a query like:
       criteria {
       field: "person"
       text_array {
       txt_values: "Tom Brady"
       txt_values: "Bill Belichick"
       }
       }
      
       MWH search will return search documents where (player=Tom Brady ||
       coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
       
      repeated string mapped_fields = 1;
      Parameters:
      value - The mappedFields to add.
      Returns:
      This builder for chaining.
    • addAllMappedFields

      public SearchCriteriaProperty.Builder addAllMappedFields(Iterable<String> values)
       Each mapped_field corresponds to a UGA key. To understand how this property
       works, take the following example. In the SearchConfig table, the
       user adds this entry:
       search_config {
       name: "person"
       search_criteria_property {
       mapped_fields: "player"
       mapped_fields: "coach"
       }
       }
      
       Now, when a user issues a query like:
       criteria {
       field: "person"
       text_array {
       txt_values: "Tom Brady"
       txt_values: "Bill Belichick"
       }
       }
      
       MWH search will return search documents where (player=Tom Brady ||
       coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
       
      repeated string mapped_fields = 1;
      Parameters:
      values - The mappedFields to add.
      Returns:
      This builder for chaining.
    • clearMappedFields

      public SearchCriteriaProperty.Builder clearMappedFields()
       Each mapped_field corresponds to a UGA key. To understand how this property
       works, take the following example. In the SearchConfig table, the
       user adds this entry:
       search_config {
       name: "person"
       search_criteria_property {
       mapped_fields: "player"
       mapped_fields: "coach"
       }
       }
      
       Now, when a user issues a query like:
       criteria {
       field: "person"
       text_array {
       txt_values: "Tom Brady"
       txt_values: "Bill Belichick"
       }
       }
      
       MWH search will return search documents where (player=Tom Brady ||
       coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
       
      repeated string mapped_fields = 1;
      Returns:
      This builder for chaining.
    • addMappedFieldsBytes

      public SearchCriteriaProperty.Builder addMappedFieldsBytes(com.google.protobuf.ByteString value)
       Each mapped_field corresponds to a UGA key. To understand how this property
       works, take the following example. In the SearchConfig table, the
       user adds this entry:
       search_config {
       name: "person"
       search_criteria_property {
       mapped_fields: "player"
       mapped_fields: "coach"
       }
       }
      
       Now, when a user issues a query like:
       criteria {
       field: "person"
       text_array {
       txt_values: "Tom Brady"
       txt_values: "Bill Belichick"
       }
       }
      
       MWH search will return search documents where (player=Tom Brady ||
       coach=Tom Brady || player=Bill Belichick || coach=Bill Belichick).
       
      repeated string mapped_fields = 1;
      Parameters:
      value - The bytes of the mappedFields to add.
      Returns:
      This builder for chaining.