public static final class IndexDatapoint.Restriction.Builder extends com.google.protobuf.GeneratedMessageV3.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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
IndexDatapoint.Restriction.Builder |
clearNamespace()
The namespace of this restriction. e.g.: color.
|
IndexDatapoint.Restriction.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
IndexDatapoint.Restriction.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
IndexDatapoint.Restriction.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
IndexDatapoint.Restriction.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>public IndexDatapoint.Restriction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>public IndexDatapoint.Restriction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>public IndexDatapoint.Restriction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>public IndexDatapoint.Restriction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>public IndexDatapoint.Restriction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>public 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.GeneratedMessageV3.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.public final IndexDatapoint.Restriction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>public final IndexDatapoint.Restriction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>Copyright © 2025 Google LLC. All rights reserved.