Package com.google.privacy.dlp.v2
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 Summary
Modifier and TypeMethodDescriptionaddAllProfileGenerationsToTag(Iterable<? extends ProfileGeneration> values) The profile generations for which the tag should be attached to resources.The profile generations for which the tag should be attached to resources.addAllTagConditions(Iterable<? extends DataProfileAction.TagResources.TagCondition> values) The tags to associate with different conditions.The profile generations for which the tag should be attached to resources.addProfileGenerationsToTagValue(int value) The profile generations for which the tag should be attached to resources.addTagConditions(int index, DataProfileAction.TagResources.TagCondition value) The tags to associate with different conditions.addTagConditions(int index, DataProfileAction.TagResources.TagCondition.Builder builderForValue) The tags to associate with different conditions.The tags to associate with different conditions.addTagConditions(DataProfileAction.TagResources.TagCondition.Builder builderForValue) The tags to associate with different conditions.The tags to associate with different conditions.addTagConditionsBuilder(int index) The tags to associate with different conditions.build()clear()Whether applying a tag to a resource should lower the risk of the profile for that resource.The profile generations for which the tag should be attached to resources.The tags to associate with different conditions.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether applying a tag to a resource should lower the risk of the profile for that resource.getProfileGenerationsToTag(int index) The profile generations for which the tag should be attached to resources.intThe profile generations for which the tag should be attached to resources.The profile generations for which the tag should be attached to resources.intgetProfileGenerationsToTagValue(int index) The profile generations for which the tag should be attached to resources.The profile generations for which the tag should be attached to resources.getTagConditions(int index) The tags to associate with different conditions.getTagConditionsBuilder(int index) The tags to associate with different conditions.The tags to associate with different conditions.intThe tags to associate with different conditions.The tags to associate with different conditions.getTagConditionsOrBuilder(int index) The tags to associate with different conditions.The tags to associate with different conditions.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeTagConditions(int index) The tags to associate with different conditions.setLowerDataRiskToLow(boolean value) Whether applying a tag to a resource should lower the risk of the profile for that resource.setProfileGenerationsToTag(int index, ProfileGeneration value) The profile generations for which the tag should be attached to resources.setProfileGenerationsToTagValue(int index, int value) The profile generations for which the tag should be attached to resources.setTagConditions(int index, DataProfileAction.TagResources.TagCondition value) The tags to associate with different conditions.setTagConditions(int index, DataProfileAction.TagResources.TagCondition.Builder builderForValue) The tags to associate with different conditions.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataProfileAction.TagResources.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DataProfileAction.TagResources.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DataProfileAction.TagResources.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataProfileAction.TagResources.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataProfileAction.TagResources.Builder>- Throws:
IOException
-
getTagConditionsList
The tags to associate with different conditions.
repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;- Specified by:
getTagConditionsListin interfaceDataProfileAction.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:
getTagConditionsCountin interfaceDataProfileAction.TagResourcesOrBuilder
-
getTagConditions
The tags to associate with different conditions.
repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;- Specified by:
getTagConditionsin interfaceDataProfileAction.TagResourcesOrBuilder
-
setTagConditions
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; -
setTagConditions
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; -
addTagConditions
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; -
addTagConditions
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; -
addTagConditions
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; -
addTagConditions
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; -
addAllTagConditions
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; -
clearTagConditions
The tags to associate with different conditions.
repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; -
removeTagConditions
The tags to associate with different conditions.
repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; -
getTagConditionsBuilder
The tags to associate with different conditions.
repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; -
getTagConditionsOrBuilder
The tags to associate with different conditions.
repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1;- Specified by:
getTagConditionsOrBuilderin interfaceDataProfileAction.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:
getTagConditionsOrBuilderListin interfaceDataProfileAction.TagResourcesOrBuilder
-
addTagConditionsBuilder
The tags to associate with different conditions.
repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; -
addTagConditionsBuilder
The tags to associate with different conditions.
repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; -
getTagConditionsBuilderList
The tags to associate with different conditions.
repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; -
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:
getProfileGenerationsToTagListin interfaceDataProfileAction.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:
getProfileGenerationsToTagCountin interfaceDataProfileAction.TagResourcesOrBuilder- Returns:
- The count of profileGenerationsToTag.
-
getProfileGenerationsToTag
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:
getProfileGenerationsToTagin interfaceDataProfileAction.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
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
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
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:
getProfileGenerationsToTagValueListin interfaceDataProfileAction.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:
getProfileGenerationsToTagValuein interfaceDataProfileAction.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
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
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:
getLowerDataRiskToLowin interfaceDataProfileAction.TagResourcesOrBuilder- Returns:
- The lowerDataRiskToLow.
-
setLowerDataRiskToLow
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
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.
-