public static final class InfoTypeTransformations.Builder extends GeneratedMessageV3.Builder<InfoTypeTransformations.Builder> implements InfoTypeTransformationsOrBuilder
A type of transformation that will scan unstructured text and
apply various PrimitiveTransformation
s to each finding, where the
transformation is applied to only values that were identified as a specific
info_type.
Protobuf type google.privacy.dlp.v2.InfoTypeTransformations
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public InfoTypeTransformations.Builder addAllTransformations(Iterable<? extends InfoTypeTransformations.InfoTypeTransformation> values)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
values | Iterable<? extends com.google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation>
|
Returns
public InfoTypeTransformations.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public InfoTypeTransformations.Builder addTransformations(InfoTypeTransformations.InfoTypeTransformation value)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public InfoTypeTransformations.Builder addTransformations(InfoTypeTransformations.InfoTypeTransformation.Builder builderForValue)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public InfoTypeTransformations.Builder addTransformations(int index, InfoTypeTransformations.InfoTypeTransformation value)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
public InfoTypeTransformations.Builder addTransformations(int index, InfoTypeTransformations.InfoTypeTransformation.Builder builderForValue)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
public InfoTypeTransformations.InfoTypeTransformation.Builder addTransformationsBuilder()
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public InfoTypeTransformations.InfoTypeTransformation.Builder addTransformationsBuilder(int index)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public InfoTypeTransformations build()
Returns
public InfoTypeTransformations buildPartial()
Returns
public InfoTypeTransformations.Builder clear()
Returns
Overrides
public InfoTypeTransformations.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public InfoTypeTransformations.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public InfoTypeTransformations.Builder clearTransformations()
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public InfoTypeTransformations.Builder clone()
Returns
Overrides
public InfoTypeTransformations getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public InfoTypeTransformations.InfoTypeTransformation getTransformations(int index)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public InfoTypeTransformations.InfoTypeTransformation.Builder getTransformationsBuilder(int index)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public List<InfoTypeTransformations.InfoTypeTransformation.Builder> getTransformationsBuilderList()
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public int getTransformationsCount()
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public List<InfoTypeTransformations.InfoTypeTransformation> getTransformationsList()
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
public InfoTypeTransformations.InfoTypeTransformationOrBuilder getTransformationsOrBuilder(int index)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public List<? extends InfoTypeTransformations.InfoTypeTransformationOrBuilder> getTransformationsOrBuilderList()
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
List<? extends com.google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformationOrBuilder> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public InfoTypeTransformations.Builder mergeFrom(InfoTypeTransformations other)
Parameter
Returns
public InfoTypeTransformations.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public InfoTypeTransformations.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final InfoTypeTransformations.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public InfoTypeTransformations.Builder removeTransformations(int index)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
public InfoTypeTransformations.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public InfoTypeTransformations.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public InfoTypeTransformations.Builder setTransformations(int index, InfoTypeTransformations.InfoTypeTransformation value)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
public InfoTypeTransformations.Builder setTransformations(int index, InfoTypeTransformations.InfoTypeTransformation.Builder builderForValue)
Required. Transformation for each infoType. Cannot specify more than one
for a given infoType.
repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
public final InfoTypeTransformations.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides