Class InfoTypeTransformations.Builder (3.48.0)

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 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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InfoTypeTransformations.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InfoTypeTransformations.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public InfoTypeTransformations.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InfoTypeTransformations.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InfoTypeTransformations.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InfoTypeTransformations.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public InfoTypeTransformations.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InfoTypeTransformations.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InfoTypeTransformations.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InfoTypeTransformations.Builder
Overrides

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

setUnknownFields(UnknownFieldSet unknownFields)

public final InfoTypeTransformations.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InfoTypeTransformations.Builder
Overrides