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.GeneratedMessageV3.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.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 typegoogle.cloud.aiplatform.v1.IndexDatapoint.Restriction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexDatapoint.Restriction.BuilderaddAllAllowList(Iterable<String> values)The attributes to allow in this namespace.IndexDatapoint.Restriction.BuilderaddAllDenyList(Iterable<String> values)The attributes to deny in this namespace.IndexDatapoint.Restriction.BuilderaddAllowList(String value)The attributes to allow in this namespace.IndexDatapoint.Restriction.BuilderaddAllowListBytes(com.google.protobuf.ByteString value)The attributes to allow in this namespace.IndexDatapoint.Restriction.BuilderaddDenyList(String value)The attributes to deny in this namespace.IndexDatapoint.Restriction.BuilderaddDenyListBytes(com.google.protobuf.ByteString value)The attributes to deny in this namespace.IndexDatapoint.Restriction.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)IndexDatapoint.Restrictionbuild()IndexDatapoint.RestrictionbuildPartial()IndexDatapoint.Restriction.Builderclear()IndexDatapoint.Restriction.BuilderclearAllowList()The attributes to allow in this namespace.IndexDatapoint.Restriction.BuilderclearDenyList()The attributes to deny in this namespace.IndexDatapoint.Restriction.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)IndexDatapoint.Restriction.BuilderclearNamespace()The namespace of this restriction.IndexDatapoint.Restriction.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)IndexDatapoint.Restriction.Builderclone()StringgetAllowList(int index)The attributes to allow in this namespace.com.google.protobuf.ByteStringgetAllowListBytes(int index)The attributes to allow in this namespace.intgetAllowListCount()The attributes to allow in this namespace.com.google.protobuf.ProtocolStringListgetAllowListList()The attributes to allow in this namespace.IndexDatapoint.RestrictiongetDefaultInstanceForType()StringgetDenyList(int index)The attributes to deny in this namespace.com.google.protobuf.ByteStringgetDenyListBytes(int index)The attributes to deny in this namespace.intgetDenyListCount()The attributes to deny in this namespace.com.google.protobuf.ProtocolStringListgetDenyListList()The attributes to deny in this namespace.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetNamespace()The namespace of this restriction.com.google.protobuf.ByteStringgetNamespaceBytes()The namespace of this restriction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()IndexDatapoint.Restriction.BuildermergeFrom(IndexDatapoint.Restriction other)IndexDatapoint.Restriction.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)IndexDatapoint.Restriction.BuildermergeFrom(com.google.protobuf.Message other)IndexDatapoint.Restriction.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)IndexDatapoint.Restriction.BuildersetAllowList(int index, String value)The attributes to allow in this namespace.IndexDatapoint.Restriction.BuildersetDenyList(int index, String value)The attributes to deny in this namespace.IndexDatapoint.Restriction.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)IndexDatapoint.Restriction.BuildersetNamespace(String value)The namespace of this restriction.IndexDatapoint.Restriction.BuildersetNamespaceBytes(com.google.protobuf.ByteString value)The namespace of this restriction.IndexDatapoint.Restriction.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)IndexDatapoint.Restriction.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
getDefaultInstanceForType
public IndexDatapoint.Restriction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public IndexDatapoint.Restriction build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public IndexDatapoint.Restriction buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public IndexDatapoint.Restriction.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
setField
public IndexDatapoint.Restriction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
clearField
public IndexDatapoint.Restriction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
clearOneof
public IndexDatapoint.Restriction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
setRepeatedField
public IndexDatapoint.Restriction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
addRepeatedField
public IndexDatapoint.Restriction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
mergeFrom
public IndexDatapoint.Restriction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IndexDatapoint.Restriction.Builder>
-
mergeFrom
public IndexDatapoint.Restriction.Builder mergeFrom(IndexDatapoint.Restriction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String getNamespace()
The namespace of this restriction. eg: color.
string namespace = 1;- Specified by:
getNamespacein interfaceIndexDatapoint.RestrictionOrBuilder- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()
The namespace of this restriction. eg: color.
string namespace = 1;- Specified by:
getNamespaceBytesin interfaceIndexDatapoint.RestrictionOrBuilder- Returns:
- The bytes for namespace.
-
setNamespace
public IndexDatapoint.Restriction.Builder setNamespace(String value)
The namespace of this restriction. eg: color.
string namespace = 1;- Parameters:
value- The namespace to set.- Returns:
- This builder for chaining.
-
clearNamespace
public IndexDatapoint.Restriction.Builder clearNamespace()
The namespace of this restriction. eg: color.
string namespace = 1;- Returns:
- This builder for chaining.
-
setNamespaceBytes
public IndexDatapoint.Restriction.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
The namespace of this restriction. eg: 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. eg: '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. eg: 'red'
repeated string allow_list = 2;- Specified by:
getAllowListCountin interfaceIndexDatapoint.RestrictionOrBuilder- Returns:
- The count of allowList.
-
getAllowList
public String getAllowList(int index)
The attributes to allow in this namespace. eg: '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. eg: '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
public IndexDatapoint.Restriction.Builder setAllowList(int index, String value)
The attributes to allow in this namespace. eg: '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
public IndexDatapoint.Restriction.Builder addAllowList(String value)
The attributes to allow in this namespace. eg: 'red'
repeated string allow_list = 2;- Parameters:
value- The allowList to add.- Returns:
- This builder for chaining.
-
addAllAllowList
public IndexDatapoint.Restriction.Builder addAllAllowList(Iterable<String> values)
The attributes to allow in this namespace. eg: 'red'
repeated string allow_list = 2;- Parameters:
values- The allowList to add.- Returns:
- This builder for chaining.
-
clearAllowList
public IndexDatapoint.Restriction.Builder clearAllowList()
The attributes to allow in this namespace. eg: 'red'
repeated string allow_list = 2;- Returns:
- This builder for chaining.
-
addAllowListBytes
public IndexDatapoint.Restriction.Builder addAllowListBytes(com.google.protobuf.ByteString value)
The attributes to allow in this namespace. eg: '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. eg: '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. eg: 'blue'
repeated string deny_list = 3;- Specified by:
getDenyListCountin interfaceIndexDatapoint.RestrictionOrBuilder- Returns:
- The count of denyList.
-
getDenyList
public String getDenyList(int index)
The attributes to deny in this namespace. eg: '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. eg: '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
public IndexDatapoint.Restriction.Builder setDenyList(int index, String value)
The attributes to deny in this namespace. eg: '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
public IndexDatapoint.Restriction.Builder addDenyList(String value)
The attributes to deny in this namespace. eg: 'blue'
repeated string deny_list = 3;- Parameters:
value- The denyList to add.- Returns:
- This builder for chaining.
-
addAllDenyList
public IndexDatapoint.Restriction.Builder addAllDenyList(Iterable<String> values)
The attributes to deny in this namespace. eg: 'blue'
repeated string deny_list = 3;- Parameters:
values- The denyList to add.- Returns:
- This builder for chaining.
-
clearDenyList
public IndexDatapoint.Restriction.Builder clearDenyList()
The attributes to deny in this namespace. eg: 'blue'
repeated string deny_list = 3;- Returns:
- This builder for chaining.
-
addDenyListBytes
public IndexDatapoint.Restriction.Builder addDenyListBytes(com.google.protobuf.ByteString value)
The attributes to deny in this namespace. eg: 'blue'
repeated string deny_list = 3;- Parameters:
value- The bytes of the denyList to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final IndexDatapoint.Restriction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
mergeUnknownFields
public final IndexDatapoint.Restriction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
-