Class DataProfileAction.TagResources (3.53.0)

public static final class DataProfileAction.TagResources extends GeneratedMessageV3 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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > DataProfileAction.TagResources

Static Fields

LOWER_DATA_RISK_TO_LOW_FIELD_NUMBER

public static final int LOWER_DATA_RISK_TO_LOW_FIELD_NUMBER
Field Value
Type Description
int

PROFILE_GENERATIONS_TO_TAG_FIELD_NUMBER

public static final int PROFILE_GENERATIONS_TO_TAG_FIELD_NUMBER
Field Value
Type Description
int

TAG_CONDITIONS_FIELD_NUMBER

public static final int TAG_CONDITIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DataProfileAction.TagResources getDefaultInstance()
Returns
Type Description
DataProfileAction.TagResources

getDescriptor()

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

newBuilder()

public static DataProfileAction.TagResources.Builder newBuilder()
Returns
Type Description
DataProfileAction.TagResources.Builder

newBuilder(DataProfileAction.TagResources prototype)

public static DataProfileAction.TagResources.Builder newBuilder(DataProfileAction.TagResources prototype)
Parameter
Name Description
prototype DataProfileAction.TagResources
Returns
Type Description
DataProfileAction.TagResources.Builder

parseDelimitedFrom(InputStream input)

public static DataProfileAction.TagResources parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataProfileAction.TagResources parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DataProfileAction.TagResources parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DataProfileAction.TagResources parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DataProfileAction.TagResources parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DataProfileAction.TagResources parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DataProfileAction.TagResources parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DataProfileAction.TagResources parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DataProfileAction.TagResources parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DataProfileAction.TagResources parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DataProfileAction.TagResources parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DataProfileAction.TagResources parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataProfileAction.TagResources
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DataProfileAction.TagResources> parser()
Returns
Type Description
Parser<TagResources>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<DataProfileAction.TagResources> getParserForType()
Returns
Type Description
Parser<TagResources>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

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>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DataProfileAction.TagResources.Builder newBuilderForType()
Returns
Type Description
DataProfileAction.TagResources.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DataProfileAction.TagResources.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DataProfileAction.TagResources.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DataProfileAction.TagResources.Builder toBuilder()
Returns
Type Description
DataProfileAction.TagResources.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException