public static final class NearestNeighborQuery.NumericFilter extends com.google.protobuf.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| Modifier and Type | Class and Description |
|---|---|
static class |
NearestNeighborQuery.NumericFilter.Builder
Numeric filter is used to search a subset of the entities by using boolean
rules on numeric columns.
|
static class |
NearestNeighborQuery.NumericFilter.Operator
Datapoints for which Operator is true relative to the query's Value
field will be allowlisted.
|
static class |
NearestNeighborQuery.NumericFilter.ValueCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
NAME_FIELD_NUMBER |
static int |
OP_FIELD_NUMBER |
static int |
VALUE_DOUBLE_FIELD_NUMBER |
static int |
VALUE_FLOAT_FIELD_NUMBER |
static int |
VALUE_INT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static NearestNeighborQuery.NumericFilter |
getDefaultInstance() |
NearestNeighborQuery.NumericFilter |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
NearestNeighborQuery.NumericFilter.Operator |
getOp()
Optional.
|
int |
getOpValue()
Optional.
|
com.google.protobuf.Parser<NearestNeighborQuery.NumericFilter> |
getParserForType() |
int |
getSerializedSize() |
NearestNeighborQuery.NumericFilter.ValueCase |
getValueCase() |
double |
getValueDouble()
double value type.
|
float |
getValueFloat()
float value type.
|
long |
getValueInt()
int value type.
|
int |
hashCode() |
boolean |
hasOp()
Optional.
|
boolean |
hasValueDouble()
double value type.
|
boolean |
hasValueFloat()
float value type.
|
boolean |
hasValueInt()
int value type.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static NearestNeighborQuery.NumericFilter.Builder |
newBuilder() |
static NearestNeighborQuery.NumericFilter.Builder |
newBuilder(NearestNeighborQuery.NumericFilter prototype) |
NearestNeighborQuery.NumericFilter.Builder |
newBuilderForType() |
protected NearestNeighborQuery.NumericFilter.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static NearestNeighborQuery.NumericFilter |
parseDelimitedFrom(InputStream input) |
static NearestNeighborQuery.NumericFilter |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NearestNeighborQuery.NumericFilter |
parseFrom(byte[] data) |
static NearestNeighborQuery.NumericFilter |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NearestNeighborQuery.NumericFilter |
parseFrom(ByteBuffer data) |
static NearestNeighborQuery.NumericFilter |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NearestNeighborQuery.NumericFilter |
parseFrom(com.google.protobuf.ByteString data) |
static NearestNeighborQuery.NumericFilter |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NearestNeighborQuery.NumericFilter |
parseFrom(com.google.protobuf.CodedInputStream input) |
static NearestNeighborQuery.NumericFilter |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NearestNeighborQuery.NumericFilter |
parseFrom(InputStream input) |
static NearestNeighborQuery.NumericFilter |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<NearestNeighborQuery.NumericFilter> |
parser() |
NearestNeighborQuery.NumericFilter.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int VALUE_INT_FIELD_NUMBER
public static final int VALUE_FLOAT_FIELD_NUMBER
public static final int VALUE_DOUBLE_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int OP_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public NearestNeighborQuery.NumericFilter.ValueCase getValueCase()
getValueCase in interface NearestNeighborQuery.NumericFilterOrBuilderpublic boolean hasValueInt()
int value type.
int64 value_int = 2;hasValueInt in interface NearestNeighborQuery.NumericFilterOrBuilderpublic long getValueInt()
int value type.
int64 value_int = 2;getValueInt in interface NearestNeighborQuery.NumericFilterOrBuilderpublic boolean hasValueFloat()
float value type.
float value_float = 3;hasValueFloat in interface NearestNeighborQuery.NumericFilterOrBuilderpublic float getValueFloat()
float value type.
float value_float = 3;getValueFloat in interface NearestNeighborQuery.NumericFilterOrBuilderpublic boolean hasValueDouble()
double value type.
double value_double = 4;hasValueDouble in interface NearestNeighborQuery.NumericFilterOrBuilderpublic double getValueDouble()
double value type.
double value_double = 4;getValueDouble in interface NearestNeighborQuery.NumericFilterOrBuilderpublic String getName()
Required. Column name in BigQuery that used as filters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getName in interface NearestNeighborQuery.NumericFilterOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. Column name in BigQuery that used as filters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getNameBytes in interface NearestNeighborQuery.NumericFilterOrBuilderpublic boolean hasOp()
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];
hasOp in interface NearestNeighborQuery.NumericFilterOrBuilderpublic int getOpValue()
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];
getOpValue in interface NearestNeighborQuery.NumericFilterOrBuilderpublic 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];
getOp in interface NearestNeighborQuery.NumericFilterOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static NearestNeighborQuery.NumericFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.NumericFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.NumericFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.NumericFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.NumericFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.NumericFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.NumericFilter parseFrom(InputStream input) throws IOException
IOExceptionpublic static NearestNeighborQuery.NumericFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static NearestNeighborQuery.NumericFilter parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static NearestNeighborQuery.NumericFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static NearestNeighborQuery.NumericFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static NearestNeighborQuery.NumericFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic NearestNeighborQuery.NumericFilter.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static NearestNeighborQuery.NumericFilter.Builder newBuilder()
public static NearestNeighborQuery.NumericFilter.Builder newBuilder(NearestNeighborQuery.NumericFilter prototype)
public NearestNeighborQuery.NumericFilter.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected NearestNeighborQuery.NumericFilter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static NearestNeighborQuery.NumericFilter getDefaultInstance()
public static com.google.protobuf.Parser<NearestNeighborQuery.NumericFilter> parser()
public com.google.protobuf.Parser<NearestNeighborQuery.NumericFilter> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public NearestNeighborQuery.NumericFilter getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.