Package com.google.privacy.dlp.v2
Class TransformationDescription.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TransformationDescription.Builder>
-
- com.google.privacy.dlp.v2.TransformationDescription.Builder
-
- All Implemented Interfaces:
TransformationDescriptionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TransformationDescription
public static final class TransformationDescription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TransformationDescription.Builder> implements TransformationDescriptionOrBuilder
A flattened description of a `PrimitiveTransformation` or `RecordSuppression`.
Protobuf typegoogle.privacy.dlp.v2.TransformationDescription
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransformationDescription.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransformationDescriptionbuild()TransformationDescriptionbuildPartial()TransformationDescription.Builderclear()TransformationDescription.BuilderclearCondition()A human-readable string representation of the `RecordCondition` corresponding to this transformation.TransformationDescription.BuilderclearDescription()A description of the transformation.TransformationDescription.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TransformationDescription.BuilderclearInfoType()Set if the transformation was limited to a specific `InfoType`.TransformationDescription.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TransformationDescription.BuilderclearType()The transformation type.TransformationDescription.Builderclone()StringgetCondition()A human-readable string representation of the `RecordCondition` corresponding to this transformation.com.google.protobuf.ByteStringgetConditionBytes()A human-readable string representation of the `RecordCondition` corresponding to this transformation.TransformationDescriptiongetDefaultInstanceForType()StringgetDescription()A description of the transformation.com.google.protobuf.ByteStringgetDescriptionBytes()A description of the transformation.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()InfoTypegetInfoType()Set if the transformation was limited to a specific `InfoType`.InfoType.BuildergetInfoTypeBuilder()Set if the transformation was limited to a specific `InfoType`.InfoTypeOrBuildergetInfoTypeOrBuilder()Set if the transformation was limited to a specific `InfoType`.TransformationTypegetType()The transformation type.intgetTypeValue()The transformation type.booleanhasInfoType()Set if the transformation was limited to a specific `InfoType`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TransformationDescription.BuildermergeFrom(TransformationDescription other)TransformationDescription.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TransformationDescription.BuildermergeFrom(com.google.protobuf.Message other)TransformationDescription.BuildermergeInfoType(InfoType value)Set if the transformation was limited to a specific `InfoType`.TransformationDescription.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TransformationDescription.BuildersetCondition(String value)A human-readable string representation of the `RecordCondition` corresponding to this transformation.TransformationDescription.BuildersetConditionBytes(com.google.protobuf.ByteString value)A human-readable string representation of the `RecordCondition` corresponding to this transformation.TransformationDescription.BuildersetDescription(String value)A description of the transformation.TransformationDescription.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)A description of the transformation.TransformationDescription.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransformationDescription.BuildersetInfoType(InfoType value)Set if the transformation was limited to a specific `InfoType`.TransformationDescription.BuildersetInfoType(InfoType.Builder builderForValue)Set if the transformation was limited to a specific `InfoType`.TransformationDescription.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TransformationDescription.BuildersetType(TransformationType value)The transformation type.TransformationDescription.BuildersetTypeValue(int value)The transformation type.TransformationDescription.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<TransformationDescription.Builder>
-
clear
public TransformationDescription.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<TransformationDescription.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<TransformationDescription.Builder>
-
getDefaultInstanceForType
public TransformationDescription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TransformationDescription build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TransformationDescription buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TransformationDescription.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<TransformationDescription.Builder>
-
setField
public TransformationDescription.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<TransformationDescription.Builder>
-
clearField
public TransformationDescription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationDescription.Builder>
-
clearOneof
public TransformationDescription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationDescription.Builder>
-
setRepeatedField
public TransformationDescription.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<TransformationDescription.Builder>
-
addRepeatedField
public TransformationDescription.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<TransformationDescription.Builder>
-
mergeFrom
public TransformationDescription.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransformationDescription.Builder>
-
mergeFrom
public TransformationDescription.Builder mergeFrom(TransformationDescription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationDescription.Builder>
-
mergeFrom
public TransformationDescription.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<TransformationDescription.Builder>- Throws:
IOException
-
getTypeValue
public int getTypeValue()
The transformation type.
.google.privacy.dlp.v2.TransformationType type = 1;- Specified by:
getTypeValuein interfaceTransformationDescriptionOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public TransformationDescription.Builder setTypeValue(int value)
The transformation type.
.google.privacy.dlp.v2.TransformationType type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public TransformationType getType()
The transformation type.
.google.privacy.dlp.v2.TransformationType type = 1;- Specified by:
getTypein interfaceTransformationDescriptionOrBuilder- Returns:
- The type.
-
setType
public TransformationDescription.Builder setType(TransformationType value)
The transformation type.
.google.privacy.dlp.v2.TransformationType type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public TransformationDescription.Builder clearType()
The transformation type.
.google.privacy.dlp.v2.TransformationType type = 1;- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
A description of the transformation. This is empty for a RECORD_SUPPRESSION, or is the output of calling toString() on the `PrimitiveTransformation` protocol buffer message for any other type of transformation.
string description = 2;- Specified by:
getDescriptionin interfaceTransformationDescriptionOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A description of the transformation. This is empty for a RECORD_SUPPRESSION, or is the output of calling toString() on the `PrimitiveTransformation` protocol buffer message for any other type of transformation.
string description = 2;- Specified by:
getDescriptionBytesin interfaceTransformationDescriptionOrBuilder- Returns:
- The bytes for description.
-
setDescription
public TransformationDescription.Builder setDescription(String value)
A description of the transformation. This is empty for a RECORD_SUPPRESSION, or is the output of calling toString() on the `PrimitiveTransformation` protocol buffer message for any other type of transformation.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public TransformationDescription.Builder clearDescription()
A description of the transformation. This is empty for a RECORD_SUPPRESSION, or is the output of calling toString() on the `PrimitiveTransformation` protocol buffer message for any other type of transformation.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public TransformationDescription.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A description of the transformation. This is empty for a RECORD_SUPPRESSION, or is the output of calling toString() on the `PrimitiveTransformation` protocol buffer message for any other type of transformation.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getCondition
public String getCondition()
A human-readable string representation of the `RecordCondition` corresponding to this transformation. Set if a `RecordCondition` was used to determine whether or not to apply this transformation. Examples: * (age_field > 85) * (age_field <= 18) * (zip_field exists) * (zip_field == 01234) && (city_field != "Springville") * (zip_field == 01234) && (age_field <= 18) && (city_field exists)string condition = 3;- Specified by:
getConditionin interfaceTransformationDescriptionOrBuilder- Returns:
- The condition.
-
getConditionBytes
public com.google.protobuf.ByteString getConditionBytes()
A human-readable string representation of the `RecordCondition` corresponding to this transformation. Set if a `RecordCondition` was used to determine whether or not to apply this transformation. Examples: * (age_field > 85) * (age_field <= 18) * (zip_field exists) * (zip_field == 01234) && (city_field != "Springville") * (zip_field == 01234) && (age_field <= 18) && (city_field exists)string condition = 3;- Specified by:
getConditionBytesin interfaceTransformationDescriptionOrBuilder- Returns:
- The bytes for condition.
-
setCondition
public TransformationDescription.Builder setCondition(String value)
A human-readable string representation of the `RecordCondition` corresponding to this transformation. Set if a `RecordCondition` was used to determine whether or not to apply this transformation. Examples: * (age_field > 85) * (age_field <= 18) * (zip_field exists) * (zip_field == 01234) && (city_field != "Springville") * (zip_field == 01234) && (age_field <= 18) && (city_field exists)string condition = 3;- Parameters:
value- The condition to set.- Returns:
- This builder for chaining.
-
clearCondition
public TransformationDescription.Builder clearCondition()
A human-readable string representation of the `RecordCondition` corresponding to this transformation. Set if a `RecordCondition` was used to determine whether or not to apply this transformation. Examples: * (age_field > 85) * (age_field <= 18) * (zip_field exists) * (zip_field == 01234) && (city_field != "Springville") * (zip_field == 01234) && (age_field <= 18) && (city_field exists)string condition = 3;- Returns:
- This builder for chaining.
-
setConditionBytes
public TransformationDescription.Builder setConditionBytes(com.google.protobuf.ByteString value)
A human-readable string representation of the `RecordCondition` corresponding to this transformation. Set if a `RecordCondition` was used to determine whether or not to apply this transformation. Examples: * (age_field > 85) * (age_field <= 18) * (zip_field exists) * (zip_field == 01234) && (city_field != "Springville") * (zip_field == 01234) && (age_field <= 18) && (city_field exists)string condition = 3;- Parameters:
value- The bytes for condition to set.- Returns:
- This builder for chaining.
-
hasInfoType
public boolean hasInfoType()
Set if the transformation was limited to a specific `InfoType`.
.google.privacy.dlp.v2.InfoType info_type = 4;- Specified by:
hasInfoTypein interfaceTransformationDescriptionOrBuilder- Returns:
- Whether the infoType field is set.
-
getInfoType
public InfoType getInfoType()
Set if the transformation was limited to a specific `InfoType`.
.google.privacy.dlp.v2.InfoType info_type = 4;- Specified by:
getInfoTypein interfaceTransformationDescriptionOrBuilder- Returns:
- The infoType.
-
setInfoType
public TransformationDescription.Builder setInfoType(InfoType value)
Set if the transformation was limited to a specific `InfoType`.
.google.privacy.dlp.v2.InfoType info_type = 4;
-
setInfoType
public TransformationDescription.Builder setInfoType(InfoType.Builder builderForValue)
Set if the transformation was limited to a specific `InfoType`.
.google.privacy.dlp.v2.InfoType info_type = 4;
-
mergeInfoType
public TransformationDescription.Builder mergeInfoType(InfoType value)
Set if the transformation was limited to a specific `InfoType`.
.google.privacy.dlp.v2.InfoType info_type = 4;
-
clearInfoType
public TransformationDescription.Builder clearInfoType()
Set if the transformation was limited to a specific `InfoType`.
.google.privacy.dlp.v2.InfoType info_type = 4;
-
getInfoTypeBuilder
public InfoType.Builder getInfoTypeBuilder()
Set if the transformation was limited to a specific `InfoType`.
.google.privacy.dlp.v2.InfoType info_type = 4;
-
getInfoTypeOrBuilder
public InfoTypeOrBuilder getInfoTypeOrBuilder()
Set if the transformation was limited to a specific `InfoType`.
.google.privacy.dlp.v2.InfoType info_type = 4;- Specified by:
getInfoTypeOrBuilderin interfaceTransformationDescriptionOrBuilder
-
setUnknownFields
public final TransformationDescription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationDescription.Builder>
-
mergeUnknownFields
public final TransformationDescription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationDescription.Builder>
-
-