Class DataProfileAction.TagResources.Builder (3.56.0)

public static final class DataProfileAction.TagResources.Builder extends GeneratedMessageV3.Builder<DataProfileAction.TagResources.Builder> implements DataProfileAction.TagResourcesOrBuilder

If set, attaches the tags provided to profiled resources. Tags support access control. You can conditionally grant or deny access to a resource based on whether the resource has a specific tag.

Protobuf type google.privacy.dlp.v2.DataProfileAction.TagResources

Static Methods

getDescriptor()

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

Methods

addAllProfileGenerationsToTag(Iterable<? extends ProfileGeneration> values)

public DataProfileAction.TagResources.Builder addAllProfileGenerationsToTag(Iterable<? extends ProfileGeneration> values)

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.ProfileGeneration>

The profileGenerationsToTag to add.

Returns
Type Description
DataProfileAction.TagResources.Builder

This builder for chaining.

addAllProfileGenerationsToTagValue(Iterable<Integer> values)

public DataProfileAction.TagResources.Builder addAllProfileGenerationsToTagValue(Iterable<Integer> values)

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for profileGenerationsToTag to add.

Returns
Type Description
DataProfileAction.TagResources.Builder

This builder for chaining.

addAllTagConditions(Iterable<? extends DataProfileAction.TagResources.TagCondition> values)

public DataProfileAction.TagResources.Builder addAllTagConditions(Iterable<? extends DataProfileAction.TagResources.TagCondition> values)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition>
Returns
Type Description
DataProfileAction.TagResources.Builder

addProfileGenerationsToTag(ProfileGeneration value)

public DataProfileAction.TagResources.Builder addProfileGenerationsToTag(ProfileGeneration value)

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Parameter
Name Description
value ProfileGeneration

The profileGenerationsToTag to add.

Returns
Type Description
DataProfileAction.TagResources.Builder

This builder for chaining.

addProfileGenerationsToTagValue(int value)

public DataProfileAction.TagResources.Builder addProfileGenerationsToTagValue(int value)

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for profileGenerationsToTag to add.

Returns
Type Description
DataProfileAction.TagResources.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTagConditions(DataProfileAction.TagResources.TagCondition value)

public DataProfileAction.TagResources.Builder addTagConditions(DataProfileAction.TagResources.TagCondition value)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameter
Name Description
value DataProfileAction.TagResources.TagCondition
Returns
Type Description
DataProfileAction.TagResources.Builder

addTagConditions(DataProfileAction.TagResources.TagCondition.Builder builderForValue)

public DataProfileAction.TagResources.Builder addTagConditions(DataProfileAction.TagResources.TagCondition.Builder builderForValue)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameter
Name Description
builderForValue DataProfileAction.TagResources.TagCondition.Builder
Returns
Type Description
DataProfileAction.TagResources.Builder

addTagConditions(int index, DataProfileAction.TagResources.TagCondition value)

public DataProfileAction.TagResources.Builder addTagConditions(int index, DataProfileAction.TagResources.TagCondition value)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameters
Name Description
index int
value DataProfileAction.TagResources.TagCondition
Returns
Type Description
DataProfileAction.TagResources.Builder

addTagConditions(int index, DataProfileAction.TagResources.TagCondition.Builder builderForValue)

public DataProfileAction.TagResources.Builder addTagConditions(int index, DataProfileAction.TagResources.TagCondition.Builder builderForValue)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameters
Name Description
index int
builderForValue DataProfileAction.TagResources.TagCondition.Builder
Returns
Type Description
DataProfileAction.TagResources.Builder

addTagConditionsBuilder()

public DataProfileAction.TagResources.TagCondition.Builder addTagConditionsBuilder()

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Returns
Type Description
DataProfileAction.TagResources.TagCondition.Builder

addTagConditionsBuilder(int index)

public DataProfileAction.TagResources.TagCondition.Builder addTagConditionsBuilder(int index)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameter
Name Description
index int
Returns
Type Description
DataProfileAction.TagResources.TagCondition.Builder

build()

public DataProfileAction.TagResources build()
Returns
Type Description
DataProfileAction.TagResources

buildPartial()

public DataProfileAction.TagResources buildPartial()
Returns
Type Description
DataProfileAction.TagResources

clear()

public DataProfileAction.TagResources.Builder clear()
Returns
Type Description
DataProfileAction.TagResources.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLowerDataRiskToLow()

public DataProfileAction.TagResources.Builder clearLowerDataRiskToLow()

Whether applying a tag to a resource should lower the risk of the profile for that resource. For example, in conjunction with an IAM deny policy, you can deny all principals a permission if a tag value is present, mitigating the risk of the resource. This also lowers the data risk of resources at the lower levels of the resource hierarchy. For example, reducing the data risk of a table data profile also reduces the data risk of the constituent column data profiles.

bool lower_data_risk_to_low = 3;

Returns
Type Description
DataProfileAction.TagResources.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DataProfileAction.TagResources.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataProfileAction.TagResources.Builder
Overrides

clearProfileGenerationsToTag()

public DataProfileAction.TagResources.Builder clearProfileGenerationsToTag()

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Returns
Type Description
DataProfileAction.TagResources.Builder

This builder for chaining.

clearTagConditions()

public DataProfileAction.TagResources.Builder clearTagConditions()

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Returns
Type Description
DataProfileAction.TagResources.Builder

clone()

public DataProfileAction.TagResources.Builder clone()
Returns
Type Description
DataProfileAction.TagResources.Builder
Overrides

getDefaultInstanceForType()

public DataProfileAction.TagResources getDefaultInstanceForType()
Returns
Type Description
DataProfileAction.TagResources

getDescriptorForType()

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

getLowerDataRiskToLow()

public boolean getLowerDataRiskToLow()

Whether applying a tag to a resource should lower the risk of the profile for that resource. For example, in conjunction with an IAM deny policy, you can deny all principals a permission if a tag value is present, mitigating the risk of the resource. This also lowers the data risk of resources at the lower levels of the resource hierarchy. For example, reducing the data risk of a table data profile also reduces the data risk of the constituent column data profiles.

bool lower_data_risk_to_low = 3;

Returns
Type Description
boolean

The lowerDataRiskToLow.

getProfileGenerationsToTag(int index)

public ProfileGeneration getProfileGenerationsToTag(int index)

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ProfileGeneration

The profileGenerationsToTag at the given index.

getProfileGenerationsToTagCount()

public int getProfileGenerationsToTagCount()

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Returns
Type Description
int

The count of profileGenerationsToTag.

getProfileGenerationsToTagList()

public List<ProfileGeneration> getProfileGenerationsToTagList()

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Returns
Type Description
List<ProfileGeneration>

A list containing the profileGenerationsToTag.

getProfileGenerationsToTagValue(int index)

public int getProfileGenerationsToTagValue(int index)

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of profileGenerationsToTag at the given index.

getProfileGenerationsToTagValueList()

public List<Integer> getProfileGenerationsToTagValueList()

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for profileGenerationsToTag.

getTagConditions(int index)

public DataProfileAction.TagResources.TagCondition getTagConditions(int index)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameter
Name Description
index int
Returns
Type Description
DataProfileAction.TagResources.TagCondition

getTagConditionsBuilder(int index)

public DataProfileAction.TagResources.TagCondition.Builder getTagConditionsBuilder(int index)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameter
Name Description
index int
Returns
Type Description
DataProfileAction.TagResources.TagCondition.Builder

getTagConditionsBuilderList()

public List<DataProfileAction.TagResources.TagCondition.Builder> getTagConditionsBuilderList()

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Returns
Type Description
List<Builder>

getTagConditionsCount()

public int getTagConditionsCount()

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Returns
Type Description
int

getTagConditionsList()

public List<DataProfileAction.TagResources.TagCondition> getTagConditionsList()

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Returns
Type Description
List<TagCondition>

getTagConditionsOrBuilder(int index)

public DataProfileAction.TagResources.TagConditionOrBuilder getTagConditionsOrBuilder(int index)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameter
Name Description
index int
Returns
Type Description
DataProfileAction.TagResources.TagConditionOrBuilder

getTagConditionsOrBuilderList()

public List<? extends DataProfileAction.TagResources.TagConditionOrBuilder> getTagConditionsOrBuilderList()

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.DataProfileAction.TagResources.TagConditionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DataProfileAction.TagResources other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataProfileAction.TagResources.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataProfileAction.TagResources.Builder
Overrides

removeTagConditions(int index)

public DataProfileAction.TagResources.Builder removeTagConditions(int index)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameter
Name Description
index int
Returns
Type Description
DataProfileAction.TagResources.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLowerDataRiskToLow(boolean value)

public DataProfileAction.TagResources.Builder setLowerDataRiskToLow(boolean value)

Whether applying a tag to a resource should lower the risk of the profile for that resource. For example, in conjunction with an IAM deny policy, you can deny all principals a permission if a tag value is present, mitigating the risk of the resource. This also lowers the data risk of resources at the lower levels of the resource hierarchy. For example, reducing the data risk of a table data profile also reduces the data risk of the constituent column data profiles.

bool lower_data_risk_to_low = 3;

Parameter
Name Description
value boolean

The lowerDataRiskToLow to set.

Returns
Type Description
DataProfileAction.TagResources.Builder

This builder for chaining.

setProfileGenerationsToTag(int index, ProfileGeneration value)

public DataProfileAction.TagResources.Builder setProfileGenerationsToTag(int index, ProfileGeneration value)

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Parameters
Name Description
index int

The index to set the value at.

value ProfileGeneration

The profileGenerationsToTag to set.

Returns
Type Description
DataProfileAction.TagResources.Builder

This builder for chaining.

setProfileGenerationsToTagValue(int index, int value)

public DataProfileAction.TagResources.Builder setProfileGenerationsToTagValue(int index, int value)

The profile generations for which the tag should be attached to resources. If you attach a tag to only new profiles, then if the sensitivity score of a profile subsequently changes, its tag doesn't change. By default, this field includes only new profiles. To include both new and updated profiles for tagging, this field should explicitly include both PROFILE_GENERATION_NEW and PROFILE_GENERATION_UPDATE.

repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for profileGenerationsToTag to set.

Returns
Type Description
DataProfileAction.TagResources.Builder

This builder for chaining.

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

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

setTagConditions(int index, DataProfileAction.TagResources.TagCondition value)

public DataProfileAction.TagResources.Builder setTagConditions(int index, DataProfileAction.TagResources.TagCondition value)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameters
Name Description
index int
value DataProfileAction.TagResources.TagCondition
Returns
Type Description
DataProfileAction.TagResources.Builder

setTagConditions(int index, DataProfileAction.TagResources.TagCondition.Builder builderForValue)

public DataProfileAction.TagResources.Builder setTagConditions(int index, DataProfileAction.TagResources.TagCondition.Builder builderForValue)

The tags to associate with different conditions.

repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;

Parameters
Name Description
index int
builderForValue DataProfileAction.TagResources.TagCondition.Builder
Returns
Type Description
DataProfileAction.TagResources.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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