Class DiscoveryCloudStorageFilter.Builder

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

public static final class DiscoveryCloudStorageFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<DiscoveryCloudStorageFilter.Builder> implements DiscoveryCloudStorageFilterOrBuilder
 Determines which buckets will have profiles generated within an organization
 or project. Includes the ability to filter by regular expression patterns
 on project ID and bucket name.
 
Protobuf type google.privacy.dlp.v2.DiscoveryCloudStorageFilter
  • 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<DiscoveryCloudStorageFilter.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<DiscoveryCloudStorageFilter.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<DiscoveryCloudStorageFilter.Builder>
    • getDefaultInstanceForType

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

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

      public DiscoveryCloudStorageFilter.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<DiscoveryCloudStorageFilter.Builder>
      Throws:
      IOException
    • getFilterCase

      Specified by:
      getFilterCase in interface DiscoveryCloudStorageFilterOrBuilder
    • clearFilter

    • hasCollection

      public boolean hasCollection()
       Optional. A specific set of buckets for this filter to apply to.
       
      .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCollection in interface DiscoveryCloudStorageFilterOrBuilder
      Returns:
      Whether the collection field is set.
    • getCollection

      public FileStoreCollection getCollection()
       Optional. A specific set of buckets for this filter to apply to.
       
      .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCollection in interface DiscoveryCloudStorageFilterOrBuilder
      Returns:
      The collection.
    • setCollection

       Optional. A specific set of buckets for this filter to apply to.
       
      .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setCollection

      public DiscoveryCloudStorageFilter.Builder setCollection(FileStoreCollection.Builder builderForValue)
       Optional. A specific set of buckets for this filter to apply to.
       
      .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCollection

       Optional. A specific set of buckets for this filter to apply to.
       
      .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearCollection

      public DiscoveryCloudStorageFilter.Builder clearCollection()
       Optional. A specific set of buckets for this filter to apply to.
       
      .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getCollectionBuilder

      public FileStoreCollection.Builder getCollectionBuilder()
       Optional. A specific set of buckets for this filter to apply to.
       
      .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getCollectionOrBuilder

      public FileStoreCollectionOrBuilder getCollectionOrBuilder()
       Optional. A specific set of buckets for this filter to apply to.
       
      .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCollectionOrBuilder in interface DiscoveryCloudStorageFilterOrBuilder
    • hasCloudStorageResourceReference

      public boolean hasCloudStorageResourceReference()
       Optional. The bucket to scan. Targets including this can only include one
       target (the target with this bucket). This enables profiling the contents
       of a single bucket, while the other options allow for easy profiling of
       many bucets within a project or an organization.
       
      .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCloudStorageResourceReference in interface DiscoveryCloudStorageFilterOrBuilder
      Returns:
      Whether the cloudStorageResourceReference field is set.
    • getCloudStorageResourceReference

      public CloudStorageResourceReference getCloudStorageResourceReference()
       Optional. The bucket to scan. Targets including this can only include one
       target (the target with this bucket). This enables profiling the contents
       of a single bucket, while the other options allow for easy profiling of
       many bucets within a project or an organization.
       
      .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCloudStorageResourceReference in interface DiscoveryCloudStorageFilterOrBuilder
      Returns:
      The cloudStorageResourceReference.
    • setCloudStorageResourceReference

      public DiscoveryCloudStorageFilter.Builder setCloudStorageResourceReference(CloudStorageResourceReference value)
       Optional. The bucket to scan. Targets including this can only include one
       target (the target with this bucket). This enables profiling the contents
       of a single bucket, while the other options allow for easy profiling of
       many bucets within a project or an organization.
       
      .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setCloudStorageResourceReference

      public DiscoveryCloudStorageFilter.Builder setCloudStorageResourceReference(CloudStorageResourceReference.Builder builderForValue)
       Optional. The bucket to scan. Targets including this can only include one
       target (the target with this bucket). This enables profiling the contents
       of a single bucket, while the other options allow for easy profiling of
       many bucets within a project or an organization.
       
      .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCloudStorageResourceReference

      public DiscoveryCloudStorageFilter.Builder mergeCloudStorageResourceReference(CloudStorageResourceReference value)
       Optional. The bucket to scan. Targets including this can only include one
       target (the target with this bucket). This enables profiling the contents
       of a single bucket, while the other options allow for easy profiling of
       many bucets within a project or an organization.
       
      .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearCloudStorageResourceReference

      public DiscoveryCloudStorageFilter.Builder clearCloudStorageResourceReference()
       Optional. The bucket to scan. Targets including this can only include one
       target (the target with this bucket). This enables profiling the contents
       of a single bucket, while the other options allow for easy profiling of
       many bucets within a project or an organization.
       
      .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getCloudStorageResourceReferenceBuilder

      public CloudStorageResourceReference.Builder getCloudStorageResourceReferenceBuilder()
       Optional. The bucket to scan. Targets including this can only include one
       target (the target with this bucket). This enables profiling the contents
       of a single bucket, while the other options allow for easy profiling of
       many bucets within a project or an organization.
       
      .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getCloudStorageResourceReferenceOrBuilder

      public CloudStorageResourceReferenceOrBuilder getCloudStorageResourceReferenceOrBuilder()
       Optional. The bucket to scan. Targets including this can only include one
       target (the target with this bucket). This enables profiling the contents
       of a single bucket, while the other options allow for easy profiling of
       many bucets within a project or an organization.
       
      .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCloudStorageResourceReferenceOrBuilder in interface DiscoveryCloudStorageFilterOrBuilder
    • hasOthers

      public boolean hasOthers()
       Optional. Catch-all. This should always be the last target in the list
       because anything above it will apply first. Should only appear once in a
       configuration. If none is specified, a default one will be added
       automatically.
       
      .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasOthers in interface DiscoveryCloudStorageFilterOrBuilder
      Returns:
      Whether the others field is set.
    • getOthers

      public AllOtherResources getOthers()
       Optional. Catch-all. This should always be the last target in the list
       because anything above it will apply first. Should only appear once in a
       configuration. If none is specified, a default one will be added
       automatically.
       
      .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOthers in interface DiscoveryCloudStorageFilterOrBuilder
      Returns:
      The others.
    • setOthers

       Optional. Catch-all. This should always be the last target in the list
       because anything above it will apply first. Should only appear once in a
       configuration. If none is specified, a default one will be added
       automatically.
       
      .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];
    • setOthers

       Optional. Catch-all. This should always be the last target in the list
       because anything above it will apply first. Should only appear once in a
       configuration. If none is specified, a default one will be added
       automatically.
       
      .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];
    • mergeOthers

       Optional. Catch-all. This should always be the last target in the list
       because anything above it will apply first. Should only appear once in a
       configuration. If none is specified, a default one will be added
       automatically.
       
      .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];
    • clearOthers

       Optional. Catch-all. This should always be the last target in the list
       because anything above it will apply first. Should only appear once in a
       configuration. If none is specified, a default one will be added
       automatically.
       
      .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];
    • getOthersBuilder

      public AllOtherResources.Builder getOthersBuilder()
       Optional. Catch-all. This should always be the last target in the list
       because anything above it will apply first. Should only appear once in a
       configuration. If none is specified, a default one will be added
       automatically.
       
      .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];
    • getOthersOrBuilder

      public AllOtherResourcesOrBuilder getOthersOrBuilder()
       Optional. Catch-all. This should always be the last target in the list
       because anything above it will apply first. Should only appear once in a
       configuration. If none is specified, a default one will be added
       automatically.
       
      .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOthersOrBuilder in interface DiscoveryCloudStorageFilterOrBuilder