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
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
Name | Description |
values | Iterable<? extends com.google.privacy.dlp.v2.InfoType>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
public InfoTypeTransformations.InfoTypeTransformation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public InfoTypeTransformations.InfoTypeTransformation build()
Returns
public InfoTypeTransformations.InfoTypeTransformation buildPartial()
Returns
public InfoTypeTransformations.InfoTypeTransformation.Builder clear()
Returns
Overrides
public InfoTypeTransformations.InfoTypeTransformation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
public InfoTypeTransformations.InfoTypeTransformation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public InfoTypeTransformations.InfoTypeTransformation.Builder clone()
Returns
Overrides
public InfoTypeTransformations.InfoTypeTransformation getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Returns
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
Returns
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
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
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
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
Returns
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
Type | Description |
List<? extends com.google.privacy.dlp.v2.InfoTypeOrBuilder> | |
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
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
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
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
Type | Description |
boolean | Whether the primitiveTransformation field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public InfoTypeTransformations.InfoTypeTransformation.Builder mergeFrom(InfoTypeTransformations.InfoTypeTransformation other)
Parameter
Returns
public InfoTypeTransformations.InfoTypeTransformation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public InfoTypeTransformations.InfoTypeTransformation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
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
Returns
public final InfoTypeTransformations.InfoTypeTransformation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
public InfoTypeTransformations.InfoTypeTransformation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
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
Returns
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
Returns
public InfoTypeTransformations.InfoTypeTransformation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final InfoTypeTransformations.InfoTypeTransformation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides