Package com.google.privacy.dlp.v2
Class DiscoveryCloudStorageConditions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DiscoveryCloudStorageConditions.Builder>
com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.Builder
- All Implemented Interfaces:
DiscoveryCloudStorageConditionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DiscoveryCloudStorageConditions
public static final class DiscoveryCloudStorageConditions.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DiscoveryCloudStorageConditions.Builder>
implements DiscoveryCloudStorageConditionsOrBuilder
Requirements that must be true before a Cloud Storage bucket or object is scanned in discovery for the first time. There is an AND relationship between the top-level attributes.Protobuf type
google.privacy.dlp.v2.DiscoveryCloudStorageConditions-
Method Summary
Modifier and TypeMethodDescriptionaddAllIncludedBucketAttributes(Iterable<? extends DiscoveryCloudStorageConditions.CloudStorageBucketAttribute> values) Required.Required.addAllIncludedObjectAttributes(Iterable<? extends DiscoveryCloudStorageConditions.CloudStorageObjectAttribute> values) Required.Required.Required.addIncludedBucketAttributesValue(int value) Required.Required.addIncludedObjectAttributesValue(int value) Required.build()clear()Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIncludedBucketAttributes(int index) Required.intRequired.Required.intgetIncludedBucketAttributesValue(int index) Required.Required.getIncludedObjectAttributes(int index) Required.intRequired.Required.intgetIncludedObjectAttributesValue(int index) Required.Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setIncludedBucketAttributes(int index, DiscoveryCloudStorageConditions.CloudStorageBucketAttribute value) Required.setIncludedBucketAttributesValue(int index, int value) Required.setIncludedObjectAttributes(int index, DiscoveryCloudStorageConditions.CloudStorageObjectAttribute value) Required.setIncludedObjectAttributesValue(int index, int value) Required.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<DiscoveryCloudStorageConditions.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<DiscoveryCloudStorageConditions.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<DiscoveryCloudStorageConditions.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<DiscoveryCloudStorageConditions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DiscoveryCloudStorageConditions.Builder>
-
mergeFrom
public DiscoveryCloudStorageConditions.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<DiscoveryCloudStorageConditions.Builder>- Throws:
IOException
-
getIncludedObjectAttributesList
public List<DiscoveryCloudStorageConditions.CloudStorageObjectAttribute> getIncludedObjectAttributesList()Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIncludedObjectAttributesListin interfaceDiscoveryCloudStorageConditionsOrBuilder- Returns:
- A list containing the includedObjectAttributes.
-
getIncludedObjectAttributesCount
public int getIncludedObjectAttributesCount()Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIncludedObjectAttributesCountin interfaceDiscoveryCloudStorageConditionsOrBuilder- Returns:
- The count of includedObjectAttributes.
-
getIncludedObjectAttributes
public DiscoveryCloudStorageConditions.CloudStorageObjectAttribute getIncludedObjectAttributes(int index) Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIncludedObjectAttributesin interfaceDiscoveryCloudStorageConditionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The includedObjectAttributes at the given index.
-
setIncludedObjectAttributes
public DiscoveryCloudStorageConditions.Builder setIncludedObjectAttributes(int index, DiscoveryCloudStorageConditions.CloudStorageObjectAttribute value) Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The includedObjectAttributes to set.- Returns:
- This builder for chaining.
-
addIncludedObjectAttributes
public DiscoveryCloudStorageConditions.Builder addIncludedObjectAttributes(DiscoveryCloudStorageConditions.CloudStorageObjectAttribute value) Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The includedObjectAttributes to add.- Returns:
- This builder for chaining.
-
addAllIncludedObjectAttributes
public DiscoveryCloudStorageConditions.Builder addAllIncludedObjectAttributes(Iterable<? extends DiscoveryCloudStorageConditions.CloudStorageObjectAttribute> values) Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The includedObjectAttributes to add.- Returns:
- This builder for chaining.
-
clearIncludedObjectAttributes
Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getIncludedObjectAttributesValueList
Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIncludedObjectAttributesValueListin interfaceDiscoveryCloudStorageConditionsOrBuilder- Returns:
- A list containing the enum numeric values on the wire for includedObjectAttributes.
-
getIncludedObjectAttributesValue
public int getIncludedObjectAttributesValue(int index) Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIncludedObjectAttributesValuein interfaceDiscoveryCloudStorageConditionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of includedObjectAttributes at the given index.
-
setIncludedObjectAttributesValue
public DiscoveryCloudStorageConditions.Builder setIncludedObjectAttributesValue(int index, int value) Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for includedObjectAttributes to set.- Returns:
- This builder for chaining.
-
addIncludedObjectAttributesValue
Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for includedObjectAttributes to add.- Returns:
- This builder for chaining.
-
addAllIncludedObjectAttributesValue
public DiscoveryCloudStorageConditions.Builder addAllIncludedObjectAttributesValue(Iterable<Integer> values) Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The enum numeric values on the wire for includedObjectAttributes to add.- Returns:
- This builder for chaining.
-
getIncludedBucketAttributesList
public List<DiscoveryCloudStorageConditions.CloudStorageBucketAttribute> getIncludedBucketAttributesList()Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIncludedBucketAttributesListin interfaceDiscoveryCloudStorageConditionsOrBuilder- Returns:
- A list containing the includedBucketAttributes.
-
getIncludedBucketAttributesCount
public int getIncludedBucketAttributesCount()Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIncludedBucketAttributesCountin interfaceDiscoveryCloudStorageConditionsOrBuilder- Returns:
- The count of includedBucketAttributes.
-
getIncludedBucketAttributes
public DiscoveryCloudStorageConditions.CloudStorageBucketAttribute getIncludedBucketAttributes(int index) Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIncludedBucketAttributesin interfaceDiscoveryCloudStorageConditionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The includedBucketAttributes at the given index.
-
setIncludedBucketAttributes
public DiscoveryCloudStorageConditions.Builder setIncludedBucketAttributes(int index, DiscoveryCloudStorageConditions.CloudStorageBucketAttribute value) Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The includedBucketAttributes to set.- Returns:
- This builder for chaining.
-
addIncludedBucketAttributes
public DiscoveryCloudStorageConditions.Builder addIncludedBucketAttributes(DiscoveryCloudStorageConditions.CloudStorageBucketAttribute value) Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The includedBucketAttributes to add.- Returns:
- This builder for chaining.
-
addAllIncludedBucketAttributes
public DiscoveryCloudStorageConditions.Builder addAllIncludedBucketAttributes(Iterable<? extends DiscoveryCloudStorageConditions.CloudStorageBucketAttribute> values) Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The includedBucketAttributes to add.- Returns:
- This builder for chaining.
-
clearIncludedBucketAttributes
Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getIncludedBucketAttributesValueList
Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIncludedBucketAttributesValueListin interfaceDiscoveryCloudStorageConditionsOrBuilder- Returns:
- A list containing the enum numeric values on the wire for includedBucketAttributes.
-
getIncludedBucketAttributesValue
public int getIncludedBucketAttributesValue(int index) Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIncludedBucketAttributesValuein interfaceDiscoveryCloudStorageConditionsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of includedBucketAttributes at the given index.
-
setIncludedBucketAttributesValue
public DiscoveryCloudStorageConditions.Builder setIncludedBucketAttributesValue(int index, int value) Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for includedBucketAttributes to set.- Returns:
- This builder for chaining.
-
addIncludedBucketAttributesValue
Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for includedBucketAttributes to add.- Returns:
- This builder for chaining.
-
addAllIncludedBucketAttributesValue
public DiscoveryCloudStorageConditions.Builder addAllIncludedBucketAttributesValue(Iterable<Integer> values) Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.
repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The enum numeric values on the wire for includedBucketAttributes to add.- Returns:
- This builder for chaining.
-