public static final class IndexDatapoint.Restriction.Builder extends com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.Restriction.Builder> implements IndexDatapoint.RestrictionOrBuilder
Restriction of a datapoint which describe its attributes(tokens) from each of several attribute categories(namespaces).Protobuf type
google.cloud.aiplatform.v1.IndexDatapoint.Restriction| Modifier and Type | Method and Description |
|---|---|
IndexDatapoint.Restriction.Builder |
addAllAllowList(Iterable<String> values)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2; |
IndexDatapoint.Restriction.Builder |
addAllDenyList(Iterable<String> values)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3; |
IndexDatapoint.Restriction.Builder |
addAllowList(String value)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2; |
IndexDatapoint.Restriction.Builder |
addAllowListBytes(com.google.protobuf.ByteString value)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2; |
IndexDatapoint.Restriction.Builder |
addDenyList(String value)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3; |
IndexDatapoint.Restriction.Builder |
addDenyListBytes(com.google.protobuf.ByteString value)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3; |
IndexDatapoint.Restriction |
build() |
IndexDatapoint.Restriction |
buildPartial() |
IndexDatapoint.Restriction.Builder |
clear() |
IndexDatapoint.Restriction.Builder |
clearAllowList()
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2; |
IndexDatapoint.Restriction.Builder |
clearDenyList()
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3; |
IndexDatapoint.Restriction.Builder |
clearNamespace()
The namespace of this restriction. e.g.: color.
|
String |
getAllowList(int index)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2; |
com.google.protobuf.ByteString |
getAllowListBytes(int index)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2; |
int |
getAllowListCount()
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2; |
com.google.protobuf.ProtocolStringList |
getAllowListList()
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2; |
IndexDatapoint.Restriction |
getDefaultInstanceForType() |
String |
getDenyList(int index)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3; |
com.google.protobuf.ByteString |
getDenyListBytes(int index)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3; |
int |
getDenyListCount()
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3; |
com.google.protobuf.ProtocolStringList |
getDenyListList()
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3; |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getNamespace()
The namespace of this restriction. e.g.: color.
|
com.google.protobuf.ByteString |
getNamespaceBytes()
The namespace of this restriction. e.g.: color.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
IndexDatapoint.Restriction.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
IndexDatapoint.Restriction.Builder |
mergeFrom(IndexDatapoint.Restriction other) |
IndexDatapoint.Restriction.Builder |
mergeFrom(com.google.protobuf.Message other) |
IndexDatapoint.Restriction.Builder |
setAllowList(int index,
String value)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2; |
IndexDatapoint.Restriction.Builder |
setDenyList(int index,
String value)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3; |
IndexDatapoint.Restriction.Builder |
setNamespace(String value)
The namespace of this restriction. e.g.: color.
|
IndexDatapoint.Restriction.Builder |
setNamespaceBytes(com.google.protobuf.ByteString value)
The namespace of this restriction. e.g.: color.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.Restriction.Builder>public IndexDatapoint.Restriction.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.Restriction.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.Restriction.Builder>public IndexDatapoint.Restriction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic IndexDatapoint.Restriction build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic IndexDatapoint.Restriction buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic IndexDatapoint.Restriction.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<IndexDatapoint.Restriction.Builder>public IndexDatapoint.Restriction.Builder mergeFrom(IndexDatapoint.Restriction other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.Restriction.Builder>public IndexDatapoint.Restriction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<IndexDatapoint.Restriction.Builder>IOExceptionpublic String getNamespace()
The namespace of this restriction. e.g.: color.
string namespace = 1;getNamespace in interface IndexDatapoint.RestrictionOrBuilderpublic com.google.protobuf.ByteString getNamespaceBytes()
The namespace of this restriction. e.g.: color.
string namespace = 1;getNamespaceBytes in interface IndexDatapoint.RestrictionOrBuilderpublic IndexDatapoint.Restriction.Builder setNamespace(String value)
The namespace of this restriction. e.g.: color.
string namespace = 1;value - The namespace to set.public IndexDatapoint.Restriction.Builder clearNamespace()
The namespace of this restriction. e.g.: color.
string namespace = 1;public IndexDatapoint.Restriction.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
The namespace of this restriction. e.g.: color.
string namespace = 1;value - The bytes for namespace to set.public com.google.protobuf.ProtocolStringList getAllowListList()
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;getAllowListList in interface IndexDatapoint.RestrictionOrBuilderpublic int getAllowListCount()
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;getAllowListCount in interface IndexDatapoint.RestrictionOrBuilderpublic String getAllowList(int index)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;getAllowList in interface IndexDatapoint.RestrictionOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getAllowListBytes(int index)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;getAllowListBytes in interface IndexDatapoint.RestrictionOrBuilderindex - The index of the value to return.public IndexDatapoint.Restriction.Builder setAllowList(int index, String value)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;index - The index to set the value at.value - The allowList to set.public IndexDatapoint.Restriction.Builder addAllowList(String value)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;value - The allowList to add.public IndexDatapoint.Restriction.Builder addAllAllowList(Iterable<String> values)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;values - The allowList to add.public IndexDatapoint.Restriction.Builder clearAllowList()
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;public IndexDatapoint.Restriction.Builder addAllowListBytes(com.google.protobuf.ByteString value)
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;value - The bytes of the allowList to add.public com.google.protobuf.ProtocolStringList getDenyListList()
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;getDenyListList in interface IndexDatapoint.RestrictionOrBuilderpublic int getDenyListCount()
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;getDenyListCount in interface IndexDatapoint.RestrictionOrBuilderpublic String getDenyList(int index)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;getDenyList in interface IndexDatapoint.RestrictionOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getDenyListBytes(int index)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;getDenyListBytes in interface IndexDatapoint.RestrictionOrBuilderindex - The index of the value to return.public IndexDatapoint.Restriction.Builder setDenyList(int index, String value)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;index - The index to set the value at.value - The denyList to set.public IndexDatapoint.Restriction.Builder addDenyList(String value)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;value - The denyList to add.public IndexDatapoint.Restriction.Builder addAllDenyList(Iterable<String> values)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;values - The denyList to add.public IndexDatapoint.Restriction.Builder clearDenyList()
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;public IndexDatapoint.Restriction.Builder addDenyListBytes(com.google.protobuf.ByteString value)
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;value - The bytes of the denyList to add.Copyright © 2026 Google LLC. All rights reserved.