Class CloudStorageOptions.FileSet.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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

        public CloudStorageOptions.FileSet.Builder setUrl​(String 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 url to set.
        Returns:
        This builder for chaining.
      • clearUrl

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

        public final CloudStorageOptions.FileSet.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CloudStorageOptions.FileSet.Builder>