Class InfoTypeTransformations.InfoTypeTransformation.Builder (3.4.0)

public static final class InfoTypeTransformations.InfoTypeTransformation.Builder extends GeneratedMessageV3.Builder<InfoTypeTransformations.InfoTypeTransformation.Builder> implements InfoTypeTransformations.InfoTypeTransformationOrBuilder

A transformation to apply to text that is identified as a specific info_type.

Protobuf type google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > InfoTypeTransformations.InfoTypeTransformation.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllInfoTypes(Iterable<? extends InfoType> values)

public InfoTypeTransformations.InfoTypeTransformation.Builder addAllInfoTypes(Iterable<? extends InfoType> values)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.InfoType>
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

addInfoTypes(InfoType value)

public InfoTypeTransformations.InfoTypeTransformation.Builder addInfoTypes(InfoType value)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
NameDescription
valueInfoType
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

addInfoTypes(InfoType.Builder builderForValue)

public InfoTypeTransformations.InfoTypeTransformation.Builder addInfoTypes(InfoType.Builder builderForValue)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
NameDescription
builderForValueInfoType.Builder
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

addInfoTypes(int index, InfoType value)

public InfoTypeTransformations.InfoTypeTransformation.Builder addInfoTypes(int index, InfoType value)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameters
NameDescription
indexint
valueInfoType
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

addInfoTypes(int index, InfoType.Builder builderForValue)

public InfoTypeTransformations.InfoTypeTransformation.Builder addInfoTypes(int index, InfoType.Builder builderForValue)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameters
NameDescription
indexint
builderForValueInfoType.Builder
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

addInfoTypesBuilder()

public InfoType.Builder addInfoTypesBuilder()

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
TypeDescription
InfoType.Builder

addInfoTypesBuilder(int index)

public InfoType.Builder addInfoTypesBuilder(int index)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
InfoType.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InfoTypeTransformations.InfoTypeTransformation build()
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation

buildPartial()

public InfoTypeTransformations.InfoTypeTransformation buildPartial()
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInfoTypes()

public InfoTypeTransformations.InfoTypeTransformation.Builder clearInfoTypes()

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public InfoTypeTransformations.InfoTypeTransformation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder
Overrides

clearPrimitiveTransformation()

public InfoTypeTransformations.InfoTypeTransformation.Builder clearPrimitiveTransformation()

Required. Primitive transformation to apply to the infoType.

.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

clone()

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

getDefaultInstanceForType()

public InfoTypeTransformations.InfoTypeTransformation getDefaultInstanceForType()
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInfoTypes(int index)

public InfoType getInfoTypes(int index)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
InfoType

getInfoTypesBuilder(int index)

public InfoType.Builder getInfoTypesBuilder(int index)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
InfoType.Builder

getInfoTypesBuilderList()

public List<InfoType.Builder> getInfoTypesBuilderList()

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
TypeDescription
List<Builder>

getInfoTypesCount()

public int getInfoTypesCount()

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
TypeDescription
int

getInfoTypesList()

public List<InfoType> getInfoTypesList()

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
TypeDescription
List<InfoType>

getInfoTypesOrBuilder(int index)

public InfoTypeOrBuilder getInfoTypesOrBuilder(int index)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
InfoTypeOrBuilder

getInfoTypesOrBuilderList()

public List<? extends InfoTypeOrBuilder> getInfoTypesOrBuilderList()

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Returns
TypeDescription
List<? extends com.google.privacy.dlp.v2.InfoTypeOrBuilder>

getPrimitiveTransformation()

public PrimitiveTransformation getPrimitiveTransformation()

Required. Primitive transformation to apply to the infoType.

.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PrimitiveTransformation

The primitiveTransformation.

getPrimitiveTransformationBuilder()

public PrimitiveTransformation.Builder getPrimitiveTransformationBuilder()

Required. Primitive transformation to apply to the infoType.

.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PrimitiveTransformation.Builder

getPrimitiveTransformationOrBuilder()

public PrimitiveTransformationOrBuilder getPrimitiveTransformationOrBuilder()

Required. Primitive transformation to apply to the infoType.

.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PrimitiveTransformationOrBuilder

hasPrimitiveTransformation()

public boolean hasPrimitiveTransformation()

Required. Primitive transformation to apply to the infoType.

.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the primitiveTransformation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InfoTypeTransformations.InfoTypeTransformation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePrimitiveTransformation(PrimitiveTransformation value)

public InfoTypeTransformations.InfoTypeTransformation.Builder mergePrimitiveTransformation(PrimitiveTransformation value)

Required. Primitive transformation to apply to the infoType.

.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuePrimitiveTransformation
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInfoTypes(int index)

public InfoTypeTransformations.InfoTypeTransformation.Builder removeInfoTypes(int index)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInfoTypes(int index, InfoType value)

public InfoTypeTransformations.InfoTypeTransformation.Builder setInfoTypes(int index, InfoType value)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameters
NameDescription
indexint
valueInfoType
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

setInfoTypes(int index, InfoType.Builder builderForValue)

public InfoTypeTransformations.InfoTypeTransformation.Builder setInfoTypes(int index, InfoType.Builder builderForValue)

InfoTypes to apply the transformation to. An empty list will cause this transformation to apply to all findings that correspond to infoTypes that were requested in InspectConfig.

repeated .google.privacy.dlp.v2.InfoType info_types = 1;

Parameters
NameDescription
indexint
builderForValueInfoType.Builder
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

setPrimitiveTransformation(PrimitiveTransformation value)

public InfoTypeTransformations.InfoTypeTransformation.Builder setPrimitiveTransformation(PrimitiveTransformation value)

Required. Primitive transformation to apply to the infoType.

.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuePrimitiveTransformation
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

setPrimitiveTransformation(PrimitiveTransformation.Builder builderForValue)

public InfoTypeTransformations.InfoTypeTransformation.Builder setPrimitiveTransformation(PrimitiveTransformation.Builder builderForValue)

Required. Primitive transformation to apply to the infoType.

.google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValuePrimitiveTransformation.Builder
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder

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

public InfoTypeTransformations.InfoTypeTransformation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InfoTypeTransformations.InfoTypeTransformation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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