public static final class NearestNeighborQuery.StringFilter extends com.google.protobuf.GeneratedMessageV3 implements NearestNeighborQuery.StringFilterOrBuilder
String filter is used to search a subset of the entities by using boolean
rules on string columns.
For example: if a query specifies string filter
with 'name = color, allow_tokens = {red, blue}, deny_tokens = {purple}','
then that query will match entities that are red or blue, but if those
points are also purple, then they will be excluded even if they are
red/blue. Only string filter is supported for now, numeric filter will be
supported in the near future.
Protobuf type google.cloud.aiplatform.v1beta1.NearestNeighborQuery.StringFilter| Modifier and Type | Class and Description |
|---|---|
static class |
NearestNeighborQuery.StringFilter.Builder
String filter is used to search a subset of the entities by using boolean
rules on string columns.
|
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 |
ALLOW_TOKENS_FIELD_NUMBER |
static int |
DENY_TOKENS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAllowTokens(int index)
Optional.
|
com.google.protobuf.ByteString |
getAllowTokensBytes(int index)
Optional.
|
int |
getAllowTokensCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getAllowTokensList()
Optional.
|
static NearestNeighborQuery.StringFilter |
getDefaultInstance() |
NearestNeighborQuery.StringFilter |
getDefaultInstanceForType() |
String |
getDenyTokens(int index)
Optional.
|
com.google.protobuf.ByteString |
getDenyTokensBytes(int index)
Optional.
|
int |
getDenyTokensCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getDenyTokensList()
Optional.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Parser<NearestNeighborQuery.StringFilter> |
getParserForType() |
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static NearestNeighborQuery.StringFilter.Builder |
newBuilder() |
static NearestNeighborQuery.StringFilter.Builder |
newBuilder(NearestNeighborQuery.StringFilter prototype) |
NearestNeighborQuery.StringFilter.Builder |
newBuilderForType() |
protected NearestNeighborQuery.StringFilter.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static NearestNeighborQuery.StringFilter |
parseDelimitedFrom(InputStream input) |
static NearestNeighborQuery.StringFilter |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NearestNeighborQuery.StringFilter |
parseFrom(byte[] data) |
static NearestNeighborQuery.StringFilter |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NearestNeighborQuery.StringFilter |
parseFrom(ByteBuffer data) |
static NearestNeighborQuery.StringFilter |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NearestNeighborQuery.StringFilter |
parseFrom(com.google.protobuf.ByteString data) |
static NearestNeighborQuery.StringFilter |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NearestNeighborQuery.StringFilter |
parseFrom(com.google.protobuf.CodedInputStream input) |
static NearestNeighborQuery.StringFilter |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static NearestNeighborQuery.StringFilter |
parseFrom(InputStream input) |
static NearestNeighborQuery.StringFilter |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<NearestNeighborQuery.StringFilter> |
parser() |
NearestNeighborQuery.StringFilter.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 NAME_FIELD_NUMBER
public static final int ALLOW_TOKENS_FIELD_NUMBER
public static final int DENY_TOKENS_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 String getName()
Required. Column names in BigQuery that used as filters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getName in interface NearestNeighborQuery.StringFilterOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. Column names in BigQuery that used as filters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getNameBytes in interface NearestNeighborQuery.StringFilterOrBuilderpublic com.google.protobuf.ProtocolStringList getAllowTokensList()
Optional. The allowed tokens.
repeated string allow_tokens = 2 [(.google.api.field_behavior) = OPTIONAL];getAllowTokensList in interface NearestNeighborQuery.StringFilterOrBuilderpublic int getAllowTokensCount()
Optional. The allowed tokens.
repeated string allow_tokens = 2 [(.google.api.field_behavior) = OPTIONAL];getAllowTokensCount in interface NearestNeighborQuery.StringFilterOrBuilderpublic String getAllowTokens(int index)
Optional. The allowed tokens.
repeated string allow_tokens = 2 [(.google.api.field_behavior) = OPTIONAL];getAllowTokens in interface NearestNeighborQuery.StringFilterOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAllowTokensBytes(int index)
Optional. The allowed tokens.
repeated string allow_tokens = 2 [(.google.api.field_behavior) = OPTIONAL];getAllowTokensBytes in interface NearestNeighborQuery.StringFilterOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getDenyTokensList()
Optional. The denied tokens.
repeated string deny_tokens = 3 [(.google.api.field_behavior) = OPTIONAL];getDenyTokensList in interface NearestNeighborQuery.StringFilterOrBuilderpublic int getDenyTokensCount()
Optional. The denied tokens.
repeated string deny_tokens = 3 [(.google.api.field_behavior) = OPTIONAL];getDenyTokensCount in interface NearestNeighborQuery.StringFilterOrBuilderpublic String getDenyTokens(int index)
Optional. The denied tokens.
repeated string deny_tokens = 3 [(.google.api.field_behavior) = OPTIONAL];getDenyTokens in interface NearestNeighborQuery.StringFilterOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getDenyTokensBytes(int index)
Optional. The denied tokens.
repeated string deny_tokens = 3 [(.google.api.field_behavior) = OPTIONAL];getDenyTokensBytes in interface NearestNeighborQuery.StringFilterOrBuilderindex - The index of the value to return.public 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.StringFilter parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.StringFilter parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.StringFilter parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.StringFilter parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.StringFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.StringFilter parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static NearestNeighborQuery.StringFilter parseFrom(InputStream input) throws IOException
IOExceptionpublic static NearestNeighborQuery.StringFilter parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static NearestNeighborQuery.StringFilter parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static NearestNeighborQuery.StringFilter parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static NearestNeighborQuery.StringFilter parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static NearestNeighborQuery.StringFilter parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic NearestNeighborQuery.StringFilter.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static NearestNeighborQuery.StringFilter.Builder newBuilder()
public static NearestNeighborQuery.StringFilter.Builder newBuilder(NearestNeighborQuery.StringFilter prototype)
public NearestNeighborQuery.StringFilter.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected NearestNeighborQuery.StringFilter.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static NearestNeighborQuery.StringFilter getDefaultInstance()
public static com.google.protobuf.Parser<NearestNeighborQuery.StringFilter> parser()
public com.google.protobuf.Parser<NearestNeighborQuery.StringFilter> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public NearestNeighborQuery.StringFilter getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.