Class Criteria (0.33.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.33.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  Criteria   extends   GeneratedMessageV3   implements   CriteriaOrBuilder  
   Filter criteria applied to current search results.
 Protobuf type google.cloud.visionai.v1.Criteria
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  BOOL_VALUE_FIELD_NUMBER 
  
    
public   static   final   int   BOOL_VALUE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  DATE_TIME_RANGE_ARRAY_FIELD_NUMBER 
  
    
public   static   final   int   DATE_TIME_RANGE_ARRAY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  FETCH_MATCHED_ANNOTATIONS_FIELD_NUMBER 
  
    
public   static   final   int   FETCH_MATCHED_ANNOTATIONS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  FIELD_FIELD_NUMBER 
  
    
public   static   final   int   FIELD_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  FLOAT_RANGE_ARRAY_FIELD_NUMBER 
  
    
public   static   final   int   FLOAT_RANGE_ARRAY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  GEO_LOCATION_ARRAY_FIELD_NUMBER 
  
    
public   static   final   int   GEO_LOCATION_ARRAY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  INT_RANGE_ARRAY_FIELD_NUMBER 
  
    
public   static   final   int   INT_RANGE_ARRAY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TEXT_ARRAY_FIELD_NUMBER 
  
    
public   static   final   int   TEXT_ARRAY_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Criteria   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Criteria . Builder   newBuilder ()  
  
  newBuilder(Criteria prototype) 
  
    
public   static   Criteria . Builder   newBuilder ( Criteria   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeCriteria  
     
  
  
  
    
public   static   Criteria   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   Criteria   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   Criteria   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Criteria   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   Criteria   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Criteria   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Criteria   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   Criteria   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   Criteria   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   Criteria   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Criteria   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Criteria   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<Criteria>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getBoolValue() 
  
    
public   BoolValue   getBoolValue ()  
   A Boolean value.
 .google.cloud.visionai.v1.BoolValue bool_value = 7;
    
      
        Returns  
      
        Type Description  
      
        BoolValue The boolValue.
 
     
  
  getBoolValueOrBuilder() 
  
    
public   BoolValueOrBuilder   getBoolValueOrBuilder ()  
   A Boolean value.
 .google.cloud.visionai.v1.BoolValue bool_value = 7;
getDateTimeRangeArray() 
  
    
public   DateTimeRangeArray   getDateTimeRangeArray ()  
   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;
getDefaultInstanceForType() 
  
    
public   Criteria   getDefaultInstanceForType ()  
  
  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;
    
      
        Returns  
      
        Type Description  
      
        boolean The fetchMatchedAnnotations.
 
     
  
  getField() 
  
   The UGA field or ML field to apply filtering criteria.
 string field = 1;
    
      
        Returns  
      
        Type Description  
      
        String The field.
 
     
  
  getFieldBytes() 
  
    
public   ByteString   getFieldBytes ()  
   The UGA field or ML field to apply filtering criteria.
 string field = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for field.
 
     
  
  getFloatRangeArray() 
  
    
public   FloatRangeArray   getFloatRangeArray ()  
   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;
getGeoLocationArray() 
  
    
public   GeoLocationArray   getGeoLocationArray ()  
   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;
getIntRangeArray() 
  
    
public   IntRangeArray   getIntRangeArray ()  
   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;
getParserForType() 
  
    
public   Parser<Criteria>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getTextArray() 
  
    
public   StringArray   getTextArray ()  
   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;
getValueCase() 
  
    
public   Criteria . ValueCase   getValueCase ()  
  
  hasBoolValue() 
  
    
public   boolean   hasBoolValue ()  
   A Boolean value.
 .google.cloud.visionai.v1.BoolValue bool_value = 7;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the boolValue field is set.
 
     
  
  hasDateTimeRangeArray() 
  
    
public   boolean   hasDateTimeRangeArray ()  
   The datetime ranges associated with the field.
 .google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the dateTimeRangeArray field is set.
 
     
  
  hasFloatRangeArray() 
  
    
public   boolean   hasFloatRangeArray ()  
   The float ranges associated with the field.
 .google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the floatRangeArray field is set.
 
     
  
  hasGeoLocationArray() 
  
    
public   boolean   hasGeoLocationArray ()  
   Geo Location array.
 .google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the geoLocationArray field is set.
 
     
  
  hasIntRangeArray() 
  
    
public   boolean   hasIntRangeArray ()  
   The integer ranges associated with the field.
 .google.cloud.visionai.v1.IntRangeArray int_range_array = 3;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the intRangeArray field is set.
 
     
  
  hasTextArray() 
  
    
public   boolean   hasTextArray ()  
   The text values associated with the field.
 .google.cloud.visionai.v1.StringArray text_array = 2;
    
      
        Returns  
      
        Type Description  
      
        boolean Whether the textArray field is set.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Criteria . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Criteria . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Criteria . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]