Class Criteria

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.Criteria
All Implemented Interfaces:
CriteriaOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Criteria extends com.google.protobuf.GeneratedMessage implements CriteriaOrBuilder
 Filter criteria applied to current search results.
 
Protobuf type google.cloud.visionai.v1.Criteria
See Also:
  • Field Details

    • TEXT_ARRAY_FIELD_NUMBER

      public static final int TEXT_ARRAY_FIELD_NUMBER
      See Also:
    • INT_RANGE_ARRAY_FIELD_NUMBER

      public static final int INT_RANGE_ARRAY_FIELD_NUMBER
      See Also:
    • FLOAT_RANGE_ARRAY_FIELD_NUMBER

      public static final int FLOAT_RANGE_ARRAY_FIELD_NUMBER
      See Also:
    • DATE_TIME_RANGE_ARRAY_FIELD_NUMBER

      public static final int DATE_TIME_RANGE_ARRAY_FIELD_NUMBER
      See Also:
    • GEO_LOCATION_ARRAY_FIELD_NUMBER

      public static final int GEO_LOCATION_ARRAY_FIELD_NUMBER
      See Also:
    • BOOL_VALUE_FIELD_NUMBER

      public static final int BOOL_VALUE_FIELD_NUMBER
      See Also:
    • FIELD_FIELD_NUMBER

      public static final int FIELD_FIELD_NUMBER
      See Also:
    • FETCH_MATCHED_ANNOTATIONS_FIELD_NUMBER

      public static final int FETCH_MATCHED_ANNOTATIONS_FIELD_NUMBER
      See Also:
  • 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
    • getValueCase

      public Criteria.ValueCase getValueCase()
      Specified by:
      getValueCase in interface CriteriaOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Criteria parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Criteria parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Criteria parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Criteria parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Criteria parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Criteria parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Criteria parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Criteria parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Criteria parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Criteria parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Criteria parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Criteria parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Criteria.Builder newBuilder()
    • newBuilder

      public static Criteria.Builder newBuilder(Criteria prototype)
    • toBuilder

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

      protected Criteria.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Criteria getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Criteria> parser()
    • getParserForType

      public com.google.protobuf.Parser<Criteria> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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