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.v1beta1.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.v1beta1.IndexDatapoint.Restriction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexDatapoint.Restriction.Builder
addAllAllowList(Iterable<String> values)
The attributes to allow in this namespace.IndexDatapoint.Restriction.Builder
addAllDenyList(Iterable<String> values)
The attributes to deny in this namespace.IndexDatapoint.Restriction.Builder
addAllowList(String value)
The attributes to allow in this namespace.IndexDatapoint.Restriction.Builder
addAllowListBytes(com.google.protobuf.ByteString value)
The attributes to allow in this namespace.IndexDatapoint.Restriction.Builder
addDenyList(String value)
The attributes to deny in this namespace.IndexDatapoint.Restriction.Builder
addDenyListBytes(com.google.protobuf.ByteString value)
The attributes to deny in this namespace.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.IndexDatapoint.Restriction.Builder
clearDenyList()
The attributes to deny in this namespace.IndexDatapoint.Restriction.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
IndexDatapoint.Restriction.Builder
clearNamespace()
The namespace of this restriction.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.com.google.protobuf.ByteString
getAllowListBytes(int index)
The attributes to allow in this namespace.int
getAllowListCount()
The attributes to allow in this namespace.com.google.protobuf.ProtocolStringList
getAllowListList()
The attributes to allow in this namespace.IndexDatapoint.Restriction
getDefaultInstanceForType()
String
getDenyList(int index)
The attributes to deny in this namespace.com.google.protobuf.ByteString
getDenyListBytes(int index)
The attributes to deny in this namespace.int
getDenyListCount()
The attributes to deny in this namespace.com.google.protobuf.ProtocolStringList
getDenyListList()
The attributes to deny in this namespace.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNamespace()
The namespace of this restriction.com.google.protobuf.ByteString
getNamespaceBytes()
The namespace of this restriction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
IndexDatapoint.Restriction.Builder
mergeFrom(IndexDatapoint.Restriction other)
IndexDatapoint.Restriction.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
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.IndexDatapoint.Restriction.Builder
setDenyList(int index, String value)
The attributes to deny in this namespace.IndexDatapoint.Restriction.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
IndexDatapoint.Restriction.Builder
setNamespace(String value)
The namespace of this restriction.IndexDatapoint.Restriction.Builder
setNamespaceBytes(com.google.protobuf.ByteString value)
The namespace of this restriction.IndexDatapoint.Restriction.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
IndexDatapoint.Restriction.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
clear
public IndexDatapoint.Restriction.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
getDefaultInstanceForType
public IndexDatapoint.Restriction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public IndexDatapoint.Restriction build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public IndexDatapoint.Restriction buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public IndexDatapoint.Restriction.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
setField
public IndexDatapoint.Restriction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
clearField
public IndexDatapoint.Restriction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
clearOneof
public IndexDatapoint.Restriction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
addRepeatedField
public IndexDatapoint.Restriction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
mergeFrom
public IndexDatapoint.Restriction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<IndexDatapoint.Restriction.Builder>
-
mergeFrom
public IndexDatapoint.Restriction.Builder mergeFrom(IndexDatapoint.Restriction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getNamespace
in interfaceIndexDatapoint.RestrictionOrBuilder
- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()
The namespace of this restriction. eg: color.
string namespace = 1;
- Specified by:
getNamespaceBytes
in 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:
getAllowListList
in 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:
getAllowListCount
in 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:
getAllowList
in 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:
getAllowListBytes
in 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:
getDenyListList
in 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:
getDenyListCount
in 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:
getDenyList
in 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:
getDenyListBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
mergeUnknownFields
public final IndexDatapoint.Restriction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<IndexDatapoint.Restriction.Builder>
-
-