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 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<DiscoveryCloudStorageConditions.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<DiscoveryCloudStorageConditions.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<DiscoveryCloudStorageConditions.Builder>
    • getDefaultInstanceForType

      public DiscoveryCloudStorageConditions 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 DiscoveryCloudStorageConditions buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DiscoveryCloudStorageConditions.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<DiscoveryCloudStorageConditions.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<DiscoveryCloudStorageConditions.Builder>
    • mergeFrom

      public DiscoveryCloudStorageConditions.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<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:
      getIncludedObjectAttributesList in interface DiscoveryCloudStorageConditionsOrBuilder
      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:
      getIncludedObjectAttributesCount in interface DiscoveryCloudStorageConditionsOrBuilder
      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:
      getIncludedObjectAttributes in interface DiscoveryCloudStorageConditionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The includedObjectAttributes at the given index.
    • setIncludedObjectAttributes

       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

       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

       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

      public DiscoveryCloudStorageConditions.Builder 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

      public List<Integer> 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:
      getIncludedObjectAttributesValueList in interface DiscoveryCloudStorageConditionsOrBuilder
      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:
      getIncludedObjectAttributesValue in interface DiscoveryCloudStorageConditionsOrBuilder
      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

      public DiscoveryCloudStorageConditions.Builder addIncludedObjectAttributesValue(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:
      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:
      getIncludedBucketAttributesList in interface DiscoveryCloudStorageConditionsOrBuilder
      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:
      getIncludedBucketAttributesCount in interface DiscoveryCloudStorageConditionsOrBuilder
      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:
      getIncludedBucketAttributes in interface DiscoveryCloudStorageConditionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The includedBucketAttributes at the given index.
    • setIncludedBucketAttributes

       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

       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

       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

      public DiscoveryCloudStorageConditions.Builder 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

      public List<Integer> 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:
      getIncludedBucketAttributesValueList in interface DiscoveryCloudStorageConditionsOrBuilder
      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:
      getIncludedBucketAttributesValue in interface DiscoveryCloudStorageConditionsOrBuilder
      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

      public DiscoveryCloudStorageConditions.Builder addIncludedBucketAttributesValue(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:
      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.