Class CloudStorageOptions.FileSet.Builder

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

public static final class CloudStorageOptions.FileSet.Builder extends com.google.protobuf.GeneratedMessage.Builder<CloudStorageOptions.FileSet.Builder> implements CloudStorageOptions.FileSetOrBuilder
 Set of files to scan.
 
Protobuf type google.privacy.dlp.v2.CloudStorageOptions.FileSet
  • 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<CloudStorageOptions.FileSet.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<CloudStorageOptions.FileSet.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<CloudStorageOptions.FileSet.Builder>
    • getDefaultInstanceForType

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

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

      public CloudStorageOptions.FileSet.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<CloudStorageOptions.FileSet.Builder>
      Throws:
      IOException
    • getUrl

      public String getUrl()
       The Cloud Storage url of the file(s) to scan, in the format
       `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
      
       If the url ends in a trailing slash, the bucket or directory represented
       by the url will be scanned non-recursively (content in sub-directories
       will not be scanned). This means that `gs://mybucket/` is equivalent to
       `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to
       `gs://mybucket/directory/*`.
      
       Exactly one of `url` or `regex_file_set` must be set.
       
      string url = 1;
      Specified by:
      getUrl in interface CloudStorageOptions.FileSetOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       The Cloud Storage url of the file(s) to scan, in the format
       `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
      
       If the url ends in a trailing slash, the bucket or directory represented
       by the url will be scanned non-recursively (content in sub-directories
       will not be scanned). This means that `gs://mybucket/` is equivalent to
       `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to
       `gs://mybucket/directory/*`.
      
       Exactly one of `url` or `regex_file_set` must be set.
       
      string url = 1;
      Specified by:
      getUrlBytes in interface CloudStorageOptions.FileSetOrBuilder
      Returns:
      The bytes for url.
    • setUrl

       The Cloud Storage url of the file(s) to scan, in the format
       `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
      
       If the url ends in a trailing slash, the bucket or directory represented
       by the url will be scanned non-recursively (content in sub-directories
       will not be scanned). This means that `gs://mybucket/` is equivalent to
       `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to
       `gs://mybucket/directory/*`.
      
       Exactly one of `url` or `regex_file_set` must be set.
       
      string url = 1;
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

       The Cloud Storage url of the file(s) to scan, in the format
       `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
      
       If the url ends in a trailing slash, the bucket or directory represented
       by the url will be scanned non-recursively (content in sub-directories
       will not be scanned). This means that `gs://mybucket/` is equivalent to
       `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to
       `gs://mybucket/directory/*`.
      
       Exactly one of `url` or `regex_file_set` must be set.
       
      string url = 1;
      Returns:
      This builder for chaining.
    • setUrlBytes

      public CloudStorageOptions.FileSet.Builder setUrlBytes(com.google.protobuf.ByteString value)
       The Cloud Storage url of the file(s) to scan, in the format
       `gs://<bucket>/<path>`. Trailing wildcard in the path is allowed.
      
       If the url ends in a trailing slash, the bucket or directory represented
       by the url will be scanned non-recursively (content in sub-directories
       will not be scanned). This means that `gs://mybucket/` is equivalent to
       `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to
       `gs://mybucket/directory/*`.
      
       Exactly one of `url` or `regex_file_set` must be set.
       
      string url = 1;
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • hasRegexFileSet

      public boolean hasRegexFileSet()
       The regex-filtered set of files to scan. Exactly one of `url` or
       `regex_file_set` must be set.
       
      .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;
      Specified by:
      hasRegexFileSet in interface CloudStorageOptions.FileSetOrBuilder
      Returns:
      Whether the regexFileSet field is set.
    • getRegexFileSet

      public CloudStorageRegexFileSet getRegexFileSet()
       The regex-filtered set of files to scan. Exactly one of `url` or
       `regex_file_set` must be set.
       
      .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;
      Specified by:
      getRegexFileSet in interface CloudStorageOptions.FileSetOrBuilder
      Returns:
      The regexFileSet.
    • setRegexFileSet

       The regex-filtered set of files to scan. Exactly one of `url` or
       `regex_file_set` must be set.
       
      .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;
    • setRegexFileSet

       The regex-filtered set of files to scan. Exactly one of `url` or
       `regex_file_set` must be set.
       
      .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;
    • mergeRegexFileSet

       The regex-filtered set of files to scan. Exactly one of `url` or
       `regex_file_set` must be set.
       
      .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;
    • clearRegexFileSet

      public CloudStorageOptions.FileSet.Builder clearRegexFileSet()
       The regex-filtered set of files to scan. Exactly one of `url` or
       `regex_file_set` must be set.
       
      .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;
    • getRegexFileSetBuilder

      public CloudStorageRegexFileSet.Builder getRegexFileSetBuilder()
       The regex-filtered set of files to scan. Exactly one of `url` or
       `regex_file_set` must be set.
       
      .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;
    • getRegexFileSetOrBuilder

      public CloudStorageRegexFileSetOrBuilder getRegexFileSetOrBuilder()
       The regex-filtered set of files to scan. Exactly one of `url` or
       `regex_file_set` must be set.
       
      .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;
      Specified by:
      getRegexFileSetOrBuilder in interface CloudStorageOptions.FileSetOrBuilder