Class Criteria.Builder

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

public static final class Criteria.Builder extends com.google.protobuf.GeneratedMessage.Builder<Criteria.Builder> implements CriteriaOrBuilder
 Filter criteria applied to current search results.
 
Protobuf type google.cloud.visionai.v1.Criteria
  • 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<Criteria.Builder>
    • clear

      public Criteria.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<Criteria.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<Criteria.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Criteria.Builder mergeFrom(Criteria other)
    • isInitialized

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

      public Criteria.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<Criteria.Builder>
      Throws:
      IOException
    • getValueCase

      public Criteria.ValueCase getValueCase()
      Specified by:
      getValueCase in interface CriteriaOrBuilder
    • clearValue

      public Criteria.Builder clearValue()
    • hasTextArray

      public boolean hasTextArray()
       The text values associated with the field.
       
      .google.cloud.visionai.v1.StringArray text_array = 2;
      Specified by:
      hasTextArray in interface CriteriaOrBuilder
      Returns:
      Whether the textArray field is set.
    • getTextArray

      public StringArray getTextArray()
       The text values associated with the field.
       
      .google.cloud.visionai.v1.StringArray text_array = 2;
      Specified by:
      getTextArray in interface CriteriaOrBuilder
      Returns:
      The textArray.
    • setTextArray

      public Criteria.Builder setTextArray(StringArray value)
       The text values associated with the field.
       
      .google.cloud.visionai.v1.StringArray text_array = 2;
    • setTextArray

      public Criteria.Builder setTextArray(StringArray.Builder builderForValue)
       The text values associated with the field.
       
      .google.cloud.visionai.v1.StringArray text_array = 2;
    • mergeTextArray

      public Criteria.Builder mergeTextArray(StringArray value)
       The text values associated with the field.
       
      .google.cloud.visionai.v1.StringArray text_array = 2;
    • clearTextArray

      public Criteria.Builder clearTextArray()
       The text values associated with the field.
       
      .google.cloud.visionai.v1.StringArray text_array = 2;
    • getTextArrayBuilder

      public StringArray.Builder getTextArrayBuilder()
       The text values associated with the field.
       
      .google.cloud.visionai.v1.StringArray text_array = 2;
    • getTextArrayOrBuilder

      public StringArrayOrBuilder getTextArrayOrBuilder()
       The text values associated with the field.
       
      .google.cloud.visionai.v1.StringArray text_array = 2;
      Specified by:
      getTextArrayOrBuilder in interface CriteriaOrBuilder
    • hasIntRangeArray

      public boolean hasIntRangeArray()
       The integer ranges associated with the field.
       
      .google.cloud.visionai.v1.IntRangeArray int_range_array = 3;
      Specified by:
      hasIntRangeArray in interface CriteriaOrBuilder
      Returns:
      Whether the intRangeArray field is set.
    • getIntRangeArray

      public IntRangeArray getIntRangeArray()
       The integer ranges associated with the field.
       
      .google.cloud.visionai.v1.IntRangeArray int_range_array = 3;
      Specified by:
      getIntRangeArray in interface CriteriaOrBuilder
      Returns:
      The intRangeArray.
    • setIntRangeArray

      public Criteria.Builder setIntRangeArray(IntRangeArray value)
       The integer ranges associated with the field.
       
      .google.cloud.visionai.v1.IntRangeArray int_range_array = 3;
    • setIntRangeArray

      public Criteria.Builder setIntRangeArray(IntRangeArray.Builder builderForValue)
       The integer ranges associated with the field.
       
      .google.cloud.visionai.v1.IntRangeArray int_range_array = 3;
    • mergeIntRangeArray

      public Criteria.Builder mergeIntRangeArray(IntRangeArray value)
       The integer ranges associated with the field.
       
      .google.cloud.visionai.v1.IntRangeArray int_range_array = 3;
    • clearIntRangeArray

      public Criteria.Builder clearIntRangeArray()
       The integer ranges associated with the field.
       
      .google.cloud.visionai.v1.IntRangeArray int_range_array = 3;
    • getIntRangeArrayBuilder

      public IntRangeArray.Builder getIntRangeArrayBuilder()
       The integer ranges associated with the field.
       
      .google.cloud.visionai.v1.IntRangeArray int_range_array = 3;
    • getIntRangeArrayOrBuilder

      public IntRangeArrayOrBuilder getIntRangeArrayOrBuilder()
       The integer ranges associated with the field.
       
      .google.cloud.visionai.v1.IntRangeArray int_range_array = 3;
      Specified by:
      getIntRangeArrayOrBuilder in interface CriteriaOrBuilder
    • hasFloatRangeArray

      public boolean hasFloatRangeArray()
       The float ranges associated with the field.
       
      .google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;
      Specified by:
      hasFloatRangeArray in interface CriteriaOrBuilder
      Returns:
      Whether the floatRangeArray field is set.
    • getFloatRangeArray

      public FloatRangeArray getFloatRangeArray()
       The float ranges associated with the field.
       
      .google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;
      Specified by:
      getFloatRangeArray in interface CriteriaOrBuilder
      Returns:
      The floatRangeArray.
    • setFloatRangeArray

      public Criteria.Builder setFloatRangeArray(FloatRangeArray value)
       The float ranges associated with the field.
       
      .google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;
    • setFloatRangeArray

      public Criteria.Builder setFloatRangeArray(FloatRangeArray.Builder builderForValue)
       The float ranges associated with the field.
       
      .google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;
    • mergeFloatRangeArray

      public Criteria.Builder mergeFloatRangeArray(FloatRangeArray value)
       The float ranges associated with the field.
       
      .google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;
    • clearFloatRangeArray

      public Criteria.Builder clearFloatRangeArray()
       The float ranges associated with the field.
       
      .google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;
    • getFloatRangeArrayBuilder

      public FloatRangeArray.Builder getFloatRangeArrayBuilder()
       The float ranges associated with the field.
       
      .google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;
    • getFloatRangeArrayOrBuilder

      public FloatRangeArrayOrBuilder getFloatRangeArrayOrBuilder()
       The float ranges associated with the field.
       
      .google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;
      Specified by:
      getFloatRangeArrayOrBuilder in interface CriteriaOrBuilder
    • hasDateTimeRangeArray

      public boolean hasDateTimeRangeArray()
       The datetime ranges associated with the field.
       
      .google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;
      Specified by:
      hasDateTimeRangeArray in interface CriteriaOrBuilder
      Returns:
      Whether the dateTimeRangeArray field is set.
    • getDateTimeRangeArray

      public DateTimeRangeArray getDateTimeRangeArray()
       The datetime ranges associated with the field.
       
      .google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;
      Specified by:
      getDateTimeRangeArray in interface CriteriaOrBuilder
      Returns:
      The dateTimeRangeArray.
    • setDateTimeRangeArray

      public Criteria.Builder setDateTimeRangeArray(DateTimeRangeArray value)
       The datetime ranges associated with the field.
       
      .google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;
    • setDateTimeRangeArray

      public Criteria.Builder setDateTimeRangeArray(DateTimeRangeArray.Builder builderForValue)
       The datetime ranges associated with the field.
       
      .google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;
    • mergeDateTimeRangeArray

      public Criteria.Builder mergeDateTimeRangeArray(DateTimeRangeArray value)
       The datetime ranges associated with the field.
       
      .google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;
    • clearDateTimeRangeArray

      public Criteria.Builder clearDateTimeRangeArray()
       The datetime ranges associated with the field.
       
      .google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;
    • getDateTimeRangeArrayBuilder

      public DateTimeRangeArray.Builder getDateTimeRangeArrayBuilder()
       The datetime ranges associated with the field.
       
      .google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;
    • getDateTimeRangeArrayOrBuilder

      public DateTimeRangeArrayOrBuilder getDateTimeRangeArrayOrBuilder()
       The datetime ranges associated with the field.
       
      .google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;
      Specified by:
      getDateTimeRangeArrayOrBuilder in interface CriteriaOrBuilder
    • hasGeoLocationArray

      public boolean hasGeoLocationArray()
       Geo Location array.
       
      .google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;
      Specified by:
      hasGeoLocationArray in interface CriteriaOrBuilder
      Returns:
      Whether the geoLocationArray field is set.
    • getGeoLocationArray

      public GeoLocationArray getGeoLocationArray()
       Geo Location array.
       
      .google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;
      Specified by:
      getGeoLocationArray in interface CriteriaOrBuilder
      Returns:
      The geoLocationArray.
    • setGeoLocationArray

      public Criteria.Builder setGeoLocationArray(GeoLocationArray value)
       Geo Location array.
       
      .google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;
    • setGeoLocationArray

      public Criteria.Builder setGeoLocationArray(GeoLocationArray.Builder builderForValue)
       Geo Location array.
       
      .google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;
    • mergeGeoLocationArray

      public Criteria.Builder mergeGeoLocationArray(GeoLocationArray value)
       Geo Location array.
       
      .google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;
    • clearGeoLocationArray

      public Criteria.Builder clearGeoLocationArray()
       Geo Location array.
       
      .google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;
    • getGeoLocationArrayBuilder

      public GeoLocationArray.Builder getGeoLocationArrayBuilder()
       Geo Location array.
       
      .google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;
    • getGeoLocationArrayOrBuilder

      public GeoLocationArrayOrBuilder getGeoLocationArrayOrBuilder()
       Geo Location array.
       
      .google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;
      Specified by:
      getGeoLocationArrayOrBuilder in interface CriteriaOrBuilder
    • hasBoolValue

      public boolean hasBoolValue()
       A Boolean value.
       
      .google.cloud.visionai.v1.BoolValue bool_value = 7;
      Specified by:
      hasBoolValue in interface CriteriaOrBuilder
      Returns:
      Whether the boolValue field is set.
    • getBoolValue

      public BoolValue getBoolValue()
       A Boolean value.
       
      .google.cloud.visionai.v1.BoolValue bool_value = 7;
      Specified by:
      getBoolValue in interface CriteriaOrBuilder
      Returns:
      The boolValue.
    • setBoolValue

      public Criteria.Builder setBoolValue(BoolValue value)
       A Boolean value.
       
      .google.cloud.visionai.v1.BoolValue bool_value = 7;
    • setBoolValue

      public Criteria.Builder setBoolValue(BoolValue.Builder builderForValue)
       A Boolean value.
       
      .google.cloud.visionai.v1.BoolValue bool_value = 7;
    • mergeBoolValue

      public Criteria.Builder mergeBoolValue(BoolValue value)
       A Boolean value.
       
      .google.cloud.visionai.v1.BoolValue bool_value = 7;
    • clearBoolValue

      public Criteria.Builder clearBoolValue()
       A Boolean value.
       
      .google.cloud.visionai.v1.BoolValue bool_value = 7;
    • getBoolValueBuilder

      public BoolValue.Builder getBoolValueBuilder()
       A Boolean value.
       
      .google.cloud.visionai.v1.BoolValue bool_value = 7;
    • getBoolValueOrBuilder

      public BoolValueOrBuilder getBoolValueOrBuilder()
       A Boolean value.
       
      .google.cloud.visionai.v1.BoolValue bool_value = 7;
      Specified by:
      getBoolValueOrBuilder in interface CriteriaOrBuilder
    • getField

      public String getField()
       The UGA field or ML field to apply filtering criteria.
       
      string field = 1;
      Specified by:
      getField in interface CriteriaOrBuilder
      Returns:
      The field.
    • getFieldBytes

      public com.google.protobuf.ByteString getFieldBytes()
       The UGA field or ML field to apply filtering criteria.
       
      string field = 1;
      Specified by:
      getFieldBytes in interface CriteriaOrBuilder
      Returns:
      The bytes for field.
    • setField

      public Criteria.Builder setField(String value)
       The UGA field or ML field to apply filtering criteria.
       
      string field = 1;
      Parameters:
      value - The field to set.
      Returns:
      This builder for chaining.
    • clearField

      public Criteria.Builder clearField()
       The UGA field or ML field to apply filtering criteria.
       
      string field = 1;
      Returns:
      This builder for chaining.
    • setFieldBytes

      public Criteria.Builder setFieldBytes(com.google.protobuf.ByteString value)
       The UGA field or ML field to apply filtering criteria.
       
      string field = 1;
      Parameters:
      value - The bytes for field to set.
      Returns:
      This builder for chaining.
    • getFetchMatchedAnnotations

      public boolean getFetchMatchedAnnotations()
       If true, return query matched annotations for this criteria.
       This option is only applicable for inclusion criteria, i.e., not exclusion
       criteria, with partition level annotations.  It supports the following data
       types:
       - INTEGER
       - FLOAT
       - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only)
       - BOOLEAN
       
      bool fetch_matched_annotations = 8;
      Specified by:
      getFetchMatchedAnnotations in interface CriteriaOrBuilder
      Returns:
      The fetchMatchedAnnotations.
    • setFetchMatchedAnnotations

      public Criteria.Builder setFetchMatchedAnnotations(boolean value)
       If true, return query matched annotations for this criteria.
       This option is only applicable for inclusion criteria, i.e., not exclusion
       criteria, with partition level annotations.  It supports the following data
       types:
       - INTEGER
       - FLOAT
       - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only)
       - BOOLEAN
       
      bool fetch_matched_annotations = 8;
      Parameters:
      value - The fetchMatchedAnnotations to set.
      Returns:
      This builder for chaining.
    • clearFetchMatchedAnnotations

      public Criteria.Builder clearFetchMatchedAnnotations()
       If true, return query matched annotations for this criteria.
       This option is only applicable for inclusion criteria, i.e., not exclusion
       criteria, with partition level annotations.  It supports the following data
       types:
       - INTEGER
       - FLOAT
       - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only)
       - BOOLEAN
       
      bool fetch_matched_annotations = 8;
      Returns:
      This builder for chaining.