Package com.google.cloud.aiplatform.v1
Class IndexDatapoint.Restriction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.Restriction.Builder>
com.google.cloud.aiplatform.v1.IndexDatapoint.Restriction.Builder
- All Implemented Interfaces:
IndexDatapoint.RestrictionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- IndexDatapoint.Restriction
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowList(Iterable<String> values) The attributes to allow in this namespace. e.g.: 'red'addAllDenyList(Iterable<String> values) The attributes to deny in this namespace. e.g.: 'blue'addAllowList(String value) The attributes to allow in this namespace. e.g.: 'red'addAllowListBytes(com.google.protobuf.ByteString value) The attributes to allow in this namespace. e.g.: 'red'addDenyList(String value) The attributes to deny in this namespace. e.g.: 'blue'addDenyListBytes(com.google.protobuf.ByteString value) The attributes to deny in this namespace. e.g.: 'blue'build()clear()The attributes to allow in this namespace. e.g.: 'red'The attributes to deny in this namespace. e.g.: 'blue'The namespace of this restriction. e.g.: color.getAllowList(int index) The attributes to allow in this namespace. e.g.: 'red'com.google.protobuf.ByteStringgetAllowListBytes(int index) The attributes to allow in this namespace. e.g.: 'red'intThe attributes to allow in this namespace. e.g.: 'red'com.google.protobuf.ProtocolStringListThe attributes to allow in this namespace. e.g.: 'red'getDenyList(int index) The attributes to deny in this namespace. e.g.: 'blue'com.google.protobuf.ByteStringgetDenyListBytes(int index) The attributes to deny in this namespace. e.g.: 'blue'intThe attributes to deny in this namespace. e.g.: 'blue'com.google.protobuf.ProtocolStringListThe attributes to deny in this namespace. e.g.: 'blue'static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe namespace of this restriction. e.g.: color.com.google.protobuf.ByteStringThe namespace of this restriction. e.g.: color.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAllowList(int index, String value) The attributes to allow in this namespace. e.g.: 'red'setDenyList(int index, String value) The attributes to deny in this namespace. e.g.: 'blue'setNamespace(String value) The namespace of this restriction. e.g.: color.setNamespaceBytes(com.google.protobuf.ByteString value) The namespace of this restriction. e.g.: color.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.Restriction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.Restriction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.Restriction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IndexDatapoint.Restriction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<IndexDatapoint.Restriction.Builder>
-
mergeFrom
public IndexDatapoint.Restriction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IndexDatapoint.Restriction.Builder>- Throws:
IOException
-
getNamespace
The namespace of this restriction. e.g.: color.
string namespace = 1;- Specified by:
getNamespacein interfaceIndexDatapoint.RestrictionOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()The namespace of this restriction. e.g.: color.
string namespace = 1;- Specified by:
getNamespaceBytesin interfaceIndexDatapoint.RestrictionOrBuilder- Returns:
- The bytes for namespace.
-
setNamespace
The namespace of this restriction. e.g.: color.
string namespace = 1;- Parameters:
value- The namespace to set.- Returns:
- This builder for chaining.
-
clearNamespace
The namespace of this restriction. e.g.: color.
string namespace = 1;- Returns:
- This builder for chaining.
-
setNamespaceBytes
The namespace of this restriction. e.g.: color.
string namespace = 1;- Parameters:
value- The bytes for namespace to set.- Returns:
- This builder for chaining.
-
getAllowListList
public com.google.protobuf.ProtocolStringList getAllowListList()The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;- Specified by:
getAllowListListin interfaceIndexDatapoint.RestrictionOrBuilder- Returns:
- A list containing the allowList.
-
getAllowListCount
public int getAllowListCount()The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;- Specified by:
getAllowListCountin interfaceIndexDatapoint.RestrictionOrBuilder- Returns:
- The count of allowList.
-
getAllowList
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;- Specified by:
getAllowListin interfaceIndexDatapoint.RestrictionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowList at the given index.
-
getAllowListBytes
public com.google.protobuf.ByteString getAllowListBytes(int index) The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;- Specified by:
getAllowListBytesin interfaceIndexDatapoint.RestrictionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowList at the given index.
-
setAllowList
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;- Parameters:
index- The index to set the value at.value- The allowList to set.- Returns:
- This builder for chaining.
-
addAllowList
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;- Parameters:
value- The allowList to add.- Returns:
- This builder for chaining.
-
addAllAllowList
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;- Parameters:
values- The allowList to add.- Returns:
- This builder for chaining.
-
clearAllowList
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;- Returns:
- This builder for chaining.
-
addAllowListBytes
The attributes to allow in this namespace. e.g.: 'red'
repeated string allow_list = 2;- Parameters:
value- The bytes of the allowList to add.- Returns:
- This builder for chaining.
-
getDenyListList
public com.google.protobuf.ProtocolStringList getDenyListList()The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;- Specified by:
getDenyListListin interfaceIndexDatapoint.RestrictionOrBuilder- Returns:
- A list containing the denyList.
-
getDenyListCount
public int getDenyListCount()The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;- Specified by:
getDenyListCountin interfaceIndexDatapoint.RestrictionOrBuilder- Returns:
- The count of denyList.
-
getDenyList
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;- Specified by:
getDenyListin interfaceIndexDatapoint.RestrictionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The denyList at the given index.
-
getDenyListBytes
public com.google.protobuf.ByteString getDenyListBytes(int index) The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;- Specified by:
getDenyListBytesin interfaceIndexDatapoint.RestrictionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the denyList at the given index.
-
setDenyList
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;- Parameters:
index- The index to set the value at.value- The denyList to set.- Returns:
- This builder for chaining.
-
addDenyList
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;- Parameters:
value- The denyList to add.- Returns:
- This builder for chaining.
-
addAllDenyList
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;- Parameters:
values- The denyList to add.- Returns:
- This builder for chaining.
-
clearDenyList
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;- Returns:
- This builder for chaining.
-
addDenyListBytes
The attributes to deny in this namespace. e.g.: 'blue'
repeated string deny_list = 3;- Parameters:
value- The bytes of the denyList to add.- Returns:
- This builder for chaining.
-