Package com.google.cloud.visionai.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()A Boolean value.The datetime ranges associated with the field.If true, return query matched annotations for this criteria.The UGA field or ML field to apply filtering criteria.The float ranges associated with the field.Geo Location array.The integer ranges associated with the field.The text values associated with the field.A Boolean value.A Boolean value.A Boolean value.The datetime ranges associated with the field.The datetime ranges associated with the field.The datetime ranges associated with the field.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf true, return query matched annotations for this criteria.getField()The UGA field or ML field to apply filtering criteria.com.google.protobuf.ByteStringThe UGA field or ML field to apply filtering criteria.The float ranges associated with the field.The float ranges associated with the field.The float ranges associated with the field.Geo Location array.Geo Location array.Geo Location array.The integer ranges associated with the field.The integer ranges associated with the field.The integer ranges associated with the field.The text values associated with the field.The text values associated with the field.The text values associated with the field.booleanA Boolean value.booleanThe datetime ranges associated with the field.booleanThe float ranges associated with the field.booleanGeo Location array.booleanThe integer ranges associated with the field.booleanThe text values associated with the field.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBoolValue(BoolValue value) A Boolean value.The datetime ranges associated with the field.The float ranges associated with the field.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Geo Location array.mergeIntRangeArray(IntRangeArray value) The integer ranges associated with the field.mergeTextArray(StringArray value) The text values associated with the field.setBoolValue(BoolValue value) A Boolean value.setBoolValue(BoolValue.Builder builderForValue) A Boolean value.The datetime ranges associated with the field.setDateTimeRangeArray(DateTimeRangeArray.Builder builderForValue) The datetime ranges associated with the field.setFetchMatchedAnnotations(boolean value) If true, return query matched annotations for this criteria.The UGA field or ML field to apply filtering criteria.setFieldBytes(com.google.protobuf.ByteString value) The UGA field or ML field to apply filtering criteria.The float ranges associated with the field.setFloatRangeArray(FloatRangeArray.Builder builderForValue) The float ranges associated with the field.Geo Location array.setGeoLocationArray(GeoLocationArray.Builder builderForValue) Geo Location array.setIntRangeArray(IntRangeArray value) The integer ranges associated with the field.setIntRangeArray(IntRangeArray.Builder builderForValue) The integer ranges associated with the field.setTextArray(StringArray value) The text values associated with the field.setTextArray(StringArray.Builder builderForValue) The text values associated with the field.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Criteria.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Criteria.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Criteria.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Criteria.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Criteria.Builder>- Throws:
IOException
-
getValueCase
- Specified by:
getValueCasein interfaceCriteriaOrBuilder
-
clearValue
-
hasTextArray
public boolean hasTextArray()The text values associated with the field.
.google.cloud.visionai.v1.StringArray text_array = 2;- Specified by:
hasTextArrayin interfaceCriteriaOrBuilder- Returns:
- Whether the textArray field is set.
-
getTextArray
The text values associated with the field.
.google.cloud.visionai.v1.StringArray text_array = 2;- Specified by:
getTextArrayin interfaceCriteriaOrBuilder- Returns:
- The textArray.
-
setTextArray
The text values associated with the field.
.google.cloud.visionai.v1.StringArray text_array = 2; -
setTextArray
The text values associated with the field.
.google.cloud.visionai.v1.StringArray text_array = 2; -
mergeTextArray
The text values associated with the field.
.google.cloud.visionai.v1.StringArray text_array = 2; -
clearTextArray
The text values associated with the field.
.google.cloud.visionai.v1.StringArray text_array = 2; -
getTextArrayBuilder
The text values associated with the field.
.google.cloud.visionai.v1.StringArray text_array = 2; -
getTextArrayOrBuilder
The text values associated with the field.
.google.cloud.visionai.v1.StringArray text_array = 2;- Specified by:
getTextArrayOrBuilderin interfaceCriteriaOrBuilder
-
hasIntRangeArray
public boolean hasIntRangeArray()The integer ranges associated with the field.
.google.cloud.visionai.v1.IntRangeArray int_range_array = 3;- Specified by:
hasIntRangeArrayin interfaceCriteriaOrBuilder- Returns:
- Whether the intRangeArray field is set.
-
getIntRangeArray
The integer ranges associated with the field.
.google.cloud.visionai.v1.IntRangeArray int_range_array = 3;- Specified by:
getIntRangeArrayin interfaceCriteriaOrBuilder- Returns:
- The intRangeArray.
-
setIntRangeArray
The integer ranges associated with the field.
.google.cloud.visionai.v1.IntRangeArray int_range_array = 3; -
setIntRangeArray
The integer ranges associated with the field.
.google.cloud.visionai.v1.IntRangeArray int_range_array = 3; -
mergeIntRangeArray
The integer ranges associated with the field.
.google.cloud.visionai.v1.IntRangeArray int_range_array = 3; -
clearIntRangeArray
The integer ranges associated with the field.
.google.cloud.visionai.v1.IntRangeArray int_range_array = 3; -
getIntRangeArrayBuilder
The integer ranges associated with the field.
.google.cloud.visionai.v1.IntRangeArray int_range_array = 3; -
getIntRangeArrayOrBuilder
The integer ranges associated with the field.
.google.cloud.visionai.v1.IntRangeArray int_range_array = 3;- Specified by:
getIntRangeArrayOrBuilderin interfaceCriteriaOrBuilder
-
hasFloatRangeArray
public boolean hasFloatRangeArray()The float ranges associated with the field.
.google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;- Specified by:
hasFloatRangeArrayin interfaceCriteriaOrBuilder- Returns:
- Whether the floatRangeArray field is set.
-
getFloatRangeArray
The float ranges associated with the field.
.google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;- Specified by:
getFloatRangeArrayin interfaceCriteriaOrBuilder- Returns:
- The floatRangeArray.
-
setFloatRangeArray
The float ranges associated with the field.
.google.cloud.visionai.v1.FloatRangeArray float_range_array = 4; -
setFloatRangeArray
The float ranges associated with the field.
.google.cloud.visionai.v1.FloatRangeArray float_range_array = 4; -
mergeFloatRangeArray
The float ranges associated with the field.
.google.cloud.visionai.v1.FloatRangeArray float_range_array = 4; -
clearFloatRangeArray
The float ranges associated with the field.
.google.cloud.visionai.v1.FloatRangeArray float_range_array = 4; -
getFloatRangeArrayBuilder
The float ranges associated with the field.
.google.cloud.visionai.v1.FloatRangeArray float_range_array = 4; -
getFloatRangeArrayOrBuilder
The float ranges associated with the field.
.google.cloud.visionai.v1.FloatRangeArray float_range_array = 4;- Specified by:
getFloatRangeArrayOrBuilderin interfaceCriteriaOrBuilder
-
hasDateTimeRangeArray
public boolean hasDateTimeRangeArray()The datetime ranges associated with the field.
.google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;- Specified by:
hasDateTimeRangeArrayin interfaceCriteriaOrBuilder- Returns:
- Whether the dateTimeRangeArray field is set.
-
getDateTimeRangeArray
The datetime ranges associated with the field.
.google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;- Specified by:
getDateTimeRangeArrayin interfaceCriteriaOrBuilder- Returns:
- The dateTimeRangeArray.
-
setDateTimeRangeArray
The datetime ranges associated with the field.
.google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5; -
setDateTimeRangeArray
The datetime ranges associated with the field.
.google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5; -
mergeDateTimeRangeArray
The datetime ranges associated with the field.
.google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5; -
clearDateTimeRangeArray
The datetime ranges associated with the field.
.google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5; -
getDateTimeRangeArrayBuilder
The datetime ranges associated with the field.
.google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5; -
getDateTimeRangeArrayOrBuilder
The datetime ranges associated with the field.
.google.cloud.visionai.v1.DateTimeRangeArray date_time_range_array = 5;- Specified by:
getDateTimeRangeArrayOrBuilderin interfaceCriteriaOrBuilder
-
hasGeoLocationArray
public boolean hasGeoLocationArray()Geo Location array.
.google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;- Specified by:
hasGeoLocationArrayin interfaceCriteriaOrBuilder- Returns:
- Whether the geoLocationArray field is set.
-
getGeoLocationArray
Geo Location array.
.google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;- Specified by:
getGeoLocationArrayin interfaceCriteriaOrBuilder- Returns:
- The geoLocationArray.
-
setGeoLocationArray
Geo Location array.
.google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6; -
setGeoLocationArray
Geo Location array.
.google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6; -
mergeGeoLocationArray
Geo Location array.
.google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6; -
clearGeoLocationArray
Geo Location array.
.google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6; -
getGeoLocationArrayBuilder
Geo Location array.
.google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6; -
getGeoLocationArrayOrBuilder
Geo Location array.
.google.cloud.visionai.v1.GeoLocationArray geo_location_array = 6;- Specified by:
getGeoLocationArrayOrBuilderin interfaceCriteriaOrBuilder
-
hasBoolValue
public boolean hasBoolValue()A Boolean value.
.google.cloud.visionai.v1.BoolValue bool_value = 7;- Specified by:
hasBoolValuein interfaceCriteriaOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
A Boolean value.
.google.cloud.visionai.v1.BoolValue bool_value = 7;- Specified by:
getBoolValuein interfaceCriteriaOrBuilder- Returns:
- The boolValue.
-
setBoolValue
A Boolean value.
.google.cloud.visionai.v1.BoolValue bool_value = 7; -
setBoolValue
A Boolean value.
.google.cloud.visionai.v1.BoolValue bool_value = 7; -
mergeBoolValue
A Boolean value.
.google.cloud.visionai.v1.BoolValue bool_value = 7; -
clearBoolValue
A Boolean value.
.google.cloud.visionai.v1.BoolValue bool_value = 7; -
getBoolValueBuilder
A Boolean value.
.google.cloud.visionai.v1.BoolValue bool_value = 7; -
getBoolValueOrBuilder
A Boolean value.
.google.cloud.visionai.v1.BoolValue bool_value = 7;- Specified by:
getBoolValueOrBuilderin interfaceCriteriaOrBuilder
-
getField
The UGA field or ML field to apply filtering criteria.
string field = 1;- Specified by:
getFieldin interfaceCriteriaOrBuilder- 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:
getFieldBytesin interfaceCriteriaOrBuilder- Returns:
- The bytes for field.
-
setField
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
The UGA field or ML field to apply filtering criteria.
string field = 1;- Returns:
- This builder for chaining.
-
setFieldBytes
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:
getFetchMatchedAnnotationsin interfaceCriteriaOrBuilder- Returns:
- The fetchMatchedAnnotations.
-
setFetchMatchedAnnotations
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
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.
-