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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TransformationDescription
build()
TransformationDescription
buildPartial()
TransformationDescription.Builder
clear()
TransformationDescription.Builder
clearCondition()
A human-readable string representation of the `RecordCondition` corresponding to this transformation.TransformationDescription.Builder
clearDescription()
A description of the transformation.TransformationDescription.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TransformationDescription.Builder
clearInfoType()
Set if the transformation was limited to a specific `InfoType`.TransformationDescription.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TransformationDescription.Builder
clearType()
The transformation type.TransformationDescription.Builder
clone()
String
getCondition()
A human-readable string representation of the `RecordCondition` corresponding to this transformation.com.google.protobuf.ByteString
getConditionBytes()
A human-readable string representation of the `RecordCondition` corresponding to this transformation.TransformationDescription
getDefaultInstanceForType()
String
getDescription()
A description of the transformation.com.google.protobuf.ByteString
getDescriptionBytes()
A description of the transformation.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
InfoType
getInfoType()
Set if the transformation was limited to a specific `InfoType`.InfoType.Builder
getInfoTypeBuilder()
Set if the transformation was limited to a specific `InfoType`.InfoTypeOrBuilder
getInfoTypeOrBuilder()
Set if the transformation was limited to a specific `InfoType`.TransformationType
getType()
The transformation type.int
getTypeValue()
The transformation type.boolean
hasInfoType()
Set if the transformation was limited to a specific `InfoType`.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TransformationDescription.Builder
mergeFrom(TransformationDescription other)
TransformationDescription.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TransformationDescription.Builder
mergeFrom(com.google.protobuf.Message other)
TransformationDescription.Builder
mergeInfoType(InfoType value)
Set if the transformation was limited to a specific `InfoType`.TransformationDescription.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TransformationDescription.Builder
setCondition(String value)
A human-readable string representation of the `RecordCondition` corresponding to this transformation.TransformationDescription.Builder
setConditionBytes(com.google.protobuf.ByteString value)
A human-readable string representation of the `RecordCondition` corresponding to this transformation.TransformationDescription.Builder
setDescription(String value)
A description of the transformation.TransformationDescription.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
A description of the transformation.TransformationDescription.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TransformationDescription.Builder
setInfoType(InfoType value)
Set if the transformation was limited to a specific `InfoType`.TransformationDescription.Builder
setInfoType(InfoType.Builder builderForValue)
Set if the transformation was limited to a specific `InfoType`.TransformationDescription.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TransformationDescription.Builder
setType(TransformationType value)
The transformation type.TransformationDescription.Builder
setTypeValue(int value)
The transformation type.TransformationDescription.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<TransformationDescription.Builder>
-
clear
public TransformationDescription.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<TransformationDescription.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<TransformationDescription.Builder>
-
getDefaultInstanceForType
public TransformationDescription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TransformationDescription build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TransformationDescription buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TransformationDescription.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<TransformationDescription.Builder>
-
setField
public TransformationDescription.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<TransformationDescription.Builder>
-
clearField
public TransformationDescription.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<TransformationDescription.Builder>
-
clearOneof
public TransformationDescription.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<TransformationDescription.Builder>
-
setRepeatedField
public TransformationDescription.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<TransformationDescription.Builder>
-
addRepeatedField
public TransformationDescription.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<TransformationDescription.Builder>
-
mergeFrom
public TransformationDescription.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TransformationDescription.Builder>
-
mergeFrom
public TransformationDescription.Builder mergeFrom(TransformationDescription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getTypeValue
in 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:
getType
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getCondition
in 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:
getConditionBytes
in 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:
hasInfoType
in 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:
getInfoType
in 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:
getInfoTypeOrBuilder
in interfaceTransformationDescriptionOrBuilder
-
setUnknownFields
public final TransformationDescription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationDescription.Builder>
-
mergeUnknownFields
public final TransformationDescription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransformationDescription.Builder>
-
-