Send feedback
Class NearestNeighborQuery.NumericFilter (3.53.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.53.0keyboard_arrow_down
public static final class NearestNeighborQuery . NumericFilter extends GeneratedMessageV3 implements NearestNeighborQuery . NumericFilterOrBuilder
Numeric filter is used to search a subset of the entities by using boolean
rules on numeric columns.
For example:
Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0}
Database Point 1: {name: “a” value_int: 10} {name: “b” value_float: 2.0}
Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0}
Query: {name: “a” value_int: 12 operator: LESS} // Matches Point 1, 2
{name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1
Protobuf type google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter
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
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int OP_FIELD_NUMBER
Field Value
Type
Description
int
public static final int VALUE_DOUBLE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int VALUE_FLOAT_FIELD_NUMBER
Field Value
Type
Description
int
public static final int VALUE_INT_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static NearestNeighborQuery . NumericFilter getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static NearestNeighborQuery . NumericFilter . Builder newBuilder ()
public static NearestNeighborQuery . NumericFilter . Builder newBuilder ( NearestNeighborQuery . NumericFilter prototype )
public static NearestNeighborQuery . NumericFilter parseDelimitedFrom ( InputStream input )
public static NearestNeighborQuery . NumericFilter parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static NearestNeighborQuery . NumericFilter parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static NearestNeighborQuery . NumericFilter parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static NearestNeighborQuery . NumericFilter parseFrom ( ByteString data )
public static NearestNeighborQuery . NumericFilter parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static NearestNeighborQuery . NumericFilter parseFrom ( CodedInputStream input )
public static NearestNeighborQuery . NumericFilter parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static NearestNeighborQuery . NumericFilter parseFrom ( InputStream input )
public static NearestNeighborQuery . NumericFilter parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static NearestNeighborQuery . NumericFilter parseFrom ( ByteBuffer data )
public static NearestNeighborQuery . NumericFilter parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<NearestNeighborQuery . NumericFilter > parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public NearestNeighborQuery . NumericFilter getDefaultInstanceForType ()
Required. Column name in BigQuery that used as filters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The name.
public ByteString getNameBytes ()
Required. Column name in BigQuery that used as filters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for name.
public NearestNeighborQuery . NumericFilter . Operator getOp ()
Optional. This MUST be specified for queries and must NOT be specified
for database points.
optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL];
Optional. This MUST be specified for queries and must NOT be specified
for database points.
optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
The enum numeric value on the wire for op.
public Parser<NearestNeighborQuery . NumericFilter > getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public NearestNeighborQuery . NumericFilter . ValueCase getValueCase ()
public double getValueDouble ()
double value type.
double value_double = 4;
Returns
Type
Description
double
The valueDouble.
public float getValueFloat ()
float value type.
float value_float = 3;
Returns
Type
Description
float
The valueFloat.
public long getValueInt ()
int value type.
int64 value_int = 2;
Returns
Type
Description
long
The valueInt.
Optional. This MUST be specified for queries and must NOT be specified
for database points.
optional .google.cloud.aiplatform.v1.NearestNeighborQuery.NumericFilter.Operator op = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
Whether the op field is set.
public boolean hasValueDouble ()
double value type.
double value_double = 4;
Returns
Type
Description
boolean
Whether the valueDouble field is set.
public boolean hasValueFloat ()
float value type.
float value_float = 3;
Returns
Type
Description
boolean
Whether the valueFloat field is set.
public boolean hasValueInt ()
int value type.
int64 value_int = 2;
Returns
Type
Description
boolean
Whether the valueInt field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public NearestNeighborQuery . NumericFilter . Builder newBuilderForType ()
protected NearestNeighborQuery . NumericFilter . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public NearestNeighborQuery . NumericFilter . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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-07-02 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[],[]]