Class DataProfileAction.TagResources.Builder

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

public static final class DataProfileAction.TagResources.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataProfileAction.TagResources.Builder> 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
  • 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.Builder<DataProfileAction.TagResources.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DataProfileAction.TagResources.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DataProfileAction.TagResources.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public DataProfileAction.TagResources.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataProfileAction.TagResources.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DataProfileAction.TagResources.Builder>
    • mergeFrom

      public DataProfileAction.TagResources.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataProfileAction.TagResources.Builder>
      Throws:
      IOException
    • 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
    • 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
    • setTagConditions

       The tags to associate with different conditions.
       
      repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;
    • setTagConditions

       The tags to associate with different conditions.
       
      repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;
    • addTagConditions

       The tags to associate with different conditions.
       
      repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;
    • addTagConditions

       The tags to associate with different conditions.
       
      repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;
    • addTagConditions

       The tags to associate with different conditions.
       
      repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;
    • addTagConditions

       The tags to associate with different conditions.
       
      repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;
    • addAllTagConditions

       The tags to associate with different conditions.
       
      repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;
    • clearTagConditions

      public DataProfileAction.TagResources.Builder clearTagConditions()
       The tags to associate with different conditions.
       
      repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;
    • removeTagConditions

      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;
    • getTagConditionsBuilder

      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;
    • 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
    • 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
    • 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;
    • addTagConditionsBuilder

      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;
    • 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;
    • 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.
    • setProfileGenerationsToTag

      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:
      index - The index to set the value at.
      value - The profileGenerationsToTag to set.
      Returns:
      This builder for chaining.
    • addProfileGenerationsToTag

      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;
      Parameters:
      value - The profileGenerationsToTag to add.
      Returns:
      This builder for chaining.
    • addAllProfileGenerationsToTag

      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;
      Parameters:
      values - The profileGenerationsToTag to add.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • 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.
    • setProfileGenerationsToTagValue

      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:
      index - The index to set the value at.
      value - The enum numeric value on the wire for profileGenerationsToTag to set.
      Returns:
      This builder for chaining.
    • addProfileGenerationsToTagValue

      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;
      Parameters:
      value - The enum numeric value on the wire for profileGenerationsToTag to add.
      Returns:
      This builder for chaining.
    • addAllProfileGenerationsToTagValue

      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;
      Parameters:
      values - The enum numeric values on the wire for profileGenerationsToTag to add.
      Returns:
      This builder for chaining.
    • 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.
    • setLowerDataRiskToLow

      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](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;
      Parameters:
      value - The lowerDataRiskToLow to set.
      Returns:
      This builder for chaining.
    • 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](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;
      Returns:
      This builder for chaining.