Class InfoTypeTransformations.Builder (3.87.0)

public static final class InfoTypeTransformations.Builder extends GeneratedMessage.Builder<InfoTypeTransformations.Builder> implements InfoTypeTransformationsOrBuilder

A type of transformation that will scan unstructured text and apply various PrimitiveTransformations 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

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTransformations(Iterable<? extends InfoTypeTransformations.InfoTypeTransformation> values)

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
Type Description
InfoTypeTransformations.Builder

addTransformations(InfoTypeTransformations.InfoTypeTransformation value)

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
Name Description
value InfoTypeTransformations.InfoTypeTransformation
Returns
Type Description
InfoTypeTransformations.Builder

addTransformations(InfoTypeTransformations.InfoTypeTransformation.Builder builderForValue)

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
Name Description
builderForValue InfoTypeTransformations.InfoTypeTransformation.Builder
Returns
Type Description
InfoTypeTransformations.Builder

addTransformations(int index, InfoTypeTransformations.InfoTypeTransformation value)

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
Name Description
index int
value InfoTypeTransformations.InfoTypeTransformation
Returns
Type Description
InfoTypeTransformations.Builder

addTransformations(int index, InfoTypeTransformations.InfoTypeTransformation.Builder builderForValue)

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
Name Description
index int
builderForValue InfoTypeTransformations.InfoTypeTransformation.Builder
Returns
Type Description
InfoTypeTransformations.Builder

addTransformationsBuilder()

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
Type Description
InfoTypeTransformations.InfoTypeTransformation.Builder

addTransformationsBuilder(int index)

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
Type Description
InfoTypeTransformations.InfoTypeTransformation.Builder

build()

public InfoTypeTransformations build()
Returns
Type Description
InfoTypeTransformations

buildPartial()

public InfoTypeTransformations buildPartial()
Returns
Type Description
InfoTypeTransformations

clear()

public InfoTypeTransformations.Builder clear()
Returns
Type Description
InfoTypeTransformations.Builder
Overrides

clearTransformations()

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
Type Description
InfoTypeTransformations.Builder

getDefaultInstanceForType()

public InfoTypeTransformations getDefaultInstanceForType()
Returns
Type Description
InfoTypeTransformations

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTransformations(int index)

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
Type Description
InfoTypeTransformations.InfoTypeTransformation

getTransformationsBuilder(int index)

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
Type Description
InfoTypeTransformations.InfoTypeTransformation.Builder

getTransformationsBuilderList()

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
Type Description
List<Builder>

getTransformationsCount()

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
Type Description
int

getTransformationsList()

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
Type Description
List<InfoTypeTransformation>

getTransformationsOrBuilder(int index)

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
Type Description
InfoTypeTransformations.InfoTypeTransformationOrBuilder

getTransformationsOrBuilderList()

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>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InfoTypeTransformations other)

public InfoTypeTransformations.Builder mergeFrom(InfoTypeTransformations other)
Parameter
Name Description
other InfoTypeTransformations
Returns
Type Description
InfoTypeTransformations.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InfoTypeTransformations.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InfoTypeTransformations.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InfoTypeTransformations.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InfoTypeTransformations.Builder
Overrides

removeTransformations(int index)

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
Type Description
InfoTypeTransformations.Builder

setTransformations(int index, InfoTypeTransformations.InfoTypeTransformation value)

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
Name Description
index int
value InfoTypeTransformations.InfoTypeTransformation
Returns
Type Description
InfoTypeTransformations.Builder

setTransformations(int index, InfoTypeTransformations.InfoTypeTransformation.Builder builderForValue)

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
Name Description
index int
builderForValue InfoTypeTransformations.InfoTypeTransformation.Builder
Returns
Type Description
InfoTypeTransformations.Builder