Package com.google.privacy.dlp.v2
Class Domain.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Domain.Builder>
com.google.privacy.dlp.v2.Domain.Builder
- All Implemented Interfaces:
DomainOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Domain
public static final class Domain.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Domain.Builder>
implements DomainOrBuilder
A domain represents a thematic category that a data profile can fall under.Protobuf type
google.privacy.dlp.v2.Domain-
Method Summary
Modifier and TypeMethodDescriptionaddAllSignals(Iterable<? extends Domain.Signal> values) The collection of signals that influenced selection of the category.addAllSignalsValue(Iterable<Integer> values) The collection of signals that influenced selection of the category.addSignals(Domain.Signal value) The collection of signals that influenced selection of the category.addSignalsValue(int value) The collection of signals that influenced selection of the category.build()clear()A domain category that this profile is related to.The collection of signals that influenced selection of the category.A domain category that this profile is related to.intA domain category that this profile is related to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetSignals(int index) The collection of signals that influenced selection of the category.intThe collection of signals that influenced selection of the category.The collection of signals that influenced selection of the category.intgetSignalsValue(int index) The collection of signals that influenced selection of the category.The collection of signals that influenced selection of the category.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCategory(Domain.Category value) A domain category that this profile is related to.setCategoryValue(int value) A domain category that this profile is related to.setSignals(int index, Domain.Signal value) The collection of signals that influenced selection of the category.setSignalsValue(int index, int value) The collection of signals that influenced selection of the category.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<Domain.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<Domain.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<Domain.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<Domain.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Domain.Builder>
-
mergeFrom
public Domain.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<Domain.Builder>- Throws:
IOException
-
getCategoryValue
public int getCategoryValue()A domain category that this profile is related to.
.google.privacy.dlp.v2.Domain.Category category = 1;- Specified by:
getCategoryValuein interfaceDomainOrBuilder- Returns:
- The enum numeric value on the wire for category.
-
setCategoryValue
A domain category that this profile is related to.
.google.privacy.dlp.v2.Domain.Category category = 1;- Parameters:
value- The enum numeric value on the wire for category to set.- Returns:
- This builder for chaining.
-
getCategory
A domain category that this profile is related to.
.google.privacy.dlp.v2.Domain.Category category = 1;- Specified by:
getCategoryin interfaceDomainOrBuilder- Returns:
- The category.
-
setCategory
A domain category that this profile is related to.
.google.privacy.dlp.v2.Domain.Category category = 1;- Parameters:
value- The category to set.- Returns:
- This builder for chaining.
-
clearCategory
A domain category that this profile is related to.
.google.privacy.dlp.v2.Domain.Category category = 1;- Returns:
- This builder for chaining.
-
getSignalsList
The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Specified by:
getSignalsListin interfaceDomainOrBuilder- Returns:
- A list containing the signals.
-
getSignalsCount
public int getSignalsCount()The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Specified by:
getSignalsCountin interfaceDomainOrBuilder- Returns:
- The count of signals.
-
getSignals
The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Specified by:
getSignalsin interfaceDomainOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The signals at the given index.
-
setSignals
The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Parameters:
index- The index to set the value at.value- The signals to set.- Returns:
- This builder for chaining.
-
addSignals
The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Parameters:
value- The signals to add.- Returns:
- This builder for chaining.
-
addAllSignals
The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Parameters:
values- The signals to add.- Returns:
- This builder for chaining.
-
clearSignals
The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Returns:
- This builder for chaining.
-
getSignalsValueList
The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Specified by:
getSignalsValueListin interfaceDomainOrBuilder- Returns:
- A list containing the enum numeric values on the wire for signals.
-
getSignalsValue
public int getSignalsValue(int index) The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Specified by:
getSignalsValuein interfaceDomainOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of signals at the given index.
-
setSignalsValue
The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for signals to set.- Returns:
- This builder for chaining.
-
addSignalsValue
The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Parameters:
value- The enum numeric value on the wire for signals to add.- Returns:
- This builder for chaining.
-
addAllSignalsValue
The collection of signals that influenced selection of the category.
repeated .google.privacy.dlp.v2.Domain.Signal signals = 2;- Parameters:
values- The enum numeric values on the wire for signals to add.- Returns:
- This builder for chaining.
-