Class DataProfileAction.TagResources

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.DataProfileAction.TagResources
All Implemented Interfaces:
DataProfileAction.TagResourcesOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
DataProfileAction

public static final class DataProfileAction.TagResources extends com.google.protobuf.GeneratedMessage implements DataProfileAction.TagResourcesOrBuilder
 If set, attaches the [tags]
 (https://cloud.google.com/resource-manager/docs/tags/tags-overview)
 provided to profiled resources. Tags support [access
 control](https://cloud.google.com/iam/docs/tags-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
See Also:
  • Field Details

    • TAG_CONDITIONS_FIELD_NUMBER

      public static final int TAG_CONDITIONS_FIELD_NUMBER
      See Also:
    • PROFILE_GENERATIONS_TO_TAG_FIELD_NUMBER

      public static final int PROFILE_GENERATIONS_TO_TAG_FIELD_NUMBER
      See Also:
    • LOWER_DATA_RISK_TO_LOW_FIELD_NUMBER

      public static final int LOWER_DATA_RISK_TO_LOW_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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;
      Specified by:
      getTagConditionsList in interface DataProfileAction.TagResourcesOrBuilder
    • 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;
      Specified by:
      getTagConditionsOrBuilderList in interface DataProfileAction.TagResourcesOrBuilder
    • getTagConditionsCount

      public int getTagConditionsCount()
       The tags to associate with different conditions.
       
      repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;
      Specified by:
      getTagConditionsCount in interface DataProfileAction.TagResourcesOrBuilder
    • getTagConditions

      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;
      Specified by:
      getTagConditions in interface DataProfileAction.TagResourcesOrBuilder
    • getTagConditionsOrBuilder

      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;
      Specified by:
      getTagConditionsOrBuilder in interface DataProfileAction.TagResourcesOrBuilder
    • 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;
      Specified by:
      getProfileGenerationsToTagList in interface DataProfileAction.TagResourcesOrBuilder
      Returns:
      A list containing the profileGenerationsToTag.
    • 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;
      Specified by:
      getProfileGenerationsToTagCount in interface DataProfileAction.TagResourcesOrBuilder
      Returns:
      The count of profileGenerationsToTag.
    • getProfileGenerationsToTag

      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;
      Specified by:
      getProfileGenerationsToTag in interface DataProfileAction.TagResourcesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The 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;
      Specified by:
      getProfileGenerationsToTagValueList in interface DataProfileAction.TagResourcesOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for profileGenerationsToTag.
    • getProfileGenerationsToTagValue

      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;
      Specified by:
      getProfileGenerationsToTagValue in interface DataProfileAction.TagResourcesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of profileGenerationsToTag at the given index.
    • 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](https://cloud.google.com/iam/docs/deny-overview), 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;
      Specified by:
      getLowerDataRiskToLow in interface DataProfileAction.TagResourcesOrBuilder
      Returns:
      The lowerDataRiskToLow.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DataProfileAction.TagResources parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataProfileAction.TagResources parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataProfileAction.TagResources parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataProfileAction.TagResources parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataProfileAction.TagResources parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataProfileAction.TagResources parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataProfileAction.TagResources parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataProfileAction.TagResources parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataProfileAction.TagResources parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataProfileAction.TagResources parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataProfileAction.TagResources parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataProfileAction.TagResources parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public DataProfileAction.TagResources.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DataProfileAction.TagResources.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DataProfileAction.TagResources.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DataProfileAction.TagResources getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DataProfileAction.TagResources> parser()
    • getParserForType

      public com.google.protobuf.Parser<DataProfileAction.TagResources> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public DataProfileAction.TagResources getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder