Class InfoTypeTransformations.Builder (3.9.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation>
Returns
TypeDescription
InfoTypeTransformations.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InfoTypeTransformations.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInfoTypeTransformations.InfoTypeTransformation
Returns
TypeDescription
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
NameDescription
builderForValueInfoTypeTransformations.InfoTypeTransformation.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInfoTypeTransformations.InfoTypeTransformation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInfoTypeTransformations.InfoTypeTransformation.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

build()

public InfoTypeTransformations build()
Returns
TypeDescription
InfoTypeTransformations

buildPartial()

public InfoTypeTransformations buildPartial()
Returns
TypeDescription
InfoTypeTransformations

clear()

public InfoTypeTransformations.Builder clear()
Returns
TypeDescription
InfoTypeTransformations.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InfoTypeTransformations.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InfoTypeTransformations.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InfoTypeTransformations.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
InfoTypeTransformations.Builder

clone()

public InfoTypeTransformations.Builder clone()
Returns
TypeDescription
InfoTypeTransformations.Builder
Overrides

getDefaultInstanceForType()

public InfoTypeTransformations getDefaultInstanceForType()
Returns
TypeDescription
InfoTypeTransformations

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InfoTypeTransformations other)

public InfoTypeTransformations.Builder mergeFrom(InfoTypeTransformations other)
Parameter
NameDescription
otherInfoTypeTransformations
Returns
TypeDescription
InfoTypeTransformations.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InfoTypeTransformations.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InfoTypeTransformations.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InfoTypeTransformations.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InfoTypeTransformations.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InfoTypeTransformations.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InfoTypeTransformations.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InfoTypeTransformations.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InfoTypeTransformations.Builder
Overrides

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

public InfoTypeTransformations.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueInfoTypeTransformations.InfoTypeTransformation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInfoTypeTransformations.InfoTypeTransformation.Builder
Returns
TypeDescription
InfoTypeTransformations.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final InfoTypeTransformations.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InfoTypeTransformations.Builder
Overrides