Class InfoTypeTransformations.Builder (3.4.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 3.4.0keyboard_arrow_down
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
Name
Description
index
int
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
Name
Description
index
int
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
Name
Description
index
int
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
Name
Description
index
int
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
Name
Description
index
int
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[],null,[]]