Class StorageProperties.Builder

  • All Implemented Interfaces:
    StoragePropertiesOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    StorageProperties

    public static final class StorageProperties.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
    implements StoragePropertiesOrBuilder
     Details the properties of the underlying storage.
     
    Protobuf type google.cloud.datacatalog.v1.StorageProperties
    • 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<StorageProperties.Builder>
      • clear

        public StorageProperties.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.GeneratedMessageV3.Builder<StorageProperties.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<StorageProperties.Builder>
      • getDefaultInstanceForType

        public StorageProperties getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public StorageProperties build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public StorageProperties buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public StorageProperties.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
      • setField

        public StorageProperties.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
      • clearField

        public StorageProperties.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
      • clearOneof

        public StorageProperties.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
      • setRepeatedField

        public StorageProperties.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
      • addRepeatedField

        public StorageProperties.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
      • mergeFrom

        public StorageProperties.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<StorageProperties.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StorageProperties.Builder>
      • mergeFrom

        public StorageProperties.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<StorageProperties.Builder>
        Throws:
        IOException
      • getFilePatternList

        public com.google.protobuf.ProtocolStringList getFilePatternList()
         Patterns to identify a set of files for this fileset.
        
         Examples of a valid `file_pattern`:
        
          * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
                                      directory
          * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
                                       and all subdirectories recursively
          * `gs://bucket_name/file*`: matches files prefixed by `file` in
                                      `bucket_name`
          * `gs://bucket_name/??.txt`: matches files with two characters followed by
                                       `.txt` in `bucket_name`
          * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
                                            vowel character followed by `.txt` in
                                            `bucket_name`
          * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
                                          or `m` followed by `.txt` in `bucket_name`
          * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
                                      the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
          * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
         
        repeated string file_pattern = 1;
        Specified by:
        getFilePatternList in interface StoragePropertiesOrBuilder
        Returns:
        A list containing the filePattern.
      • getFilePatternCount

        public int getFilePatternCount()
         Patterns to identify a set of files for this fileset.
        
         Examples of a valid `file_pattern`:
        
          * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
                                      directory
          * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
                                       and all subdirectories recursively
          * `gs://bucket_name/file*`: matches files prefixed by `file` in
                                      `bucket_name`
          * `gs://bucket_name/??.txt`: matches files with two characters followed by
                                       `.txt` in `bucket_name`
          * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
                                            vowel character followed by `.txt` in
                                            `bucket_name`
          * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
                                          or `m` followed by `.txt` in `bucket_name`
          * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
                                      the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
          * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
         
        repeated string file_pattern = 1;
        Specified by:
        getFilePatternCount in interface StoragePropertiesOrBuilder
        Returns:
        The count of filePattern.
      • getFilePattern

        public String getFilePattern​(int index)
         Patterns to identify a set of files for this fileset.
        
         Examples of a valid `file_pattern`:
        
          * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
                                      directory
          * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
                                       and all subdirectories recursively
          * `gs://bucket_name/file*`: matches files prefixed by `file` in
                                      `bucket_name`
          * `gs://bucket_name/??.txt`: matches files with two characters followed by
                                       `.txt` in `bucket_name`
          * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
                                            vowel character followed by `.txt` in
                                            `bucket_name`
          * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
                                          or `m` followed by `.txt` in `bucket_name`
          * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
                                      the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
          * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
         
        repeated string file_pattern = 1;
        Specified by:
        getFilePattern in interface StoragePropertiesOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The filePattern at the given index.
      • getFilePatternBytes

        public com.google.protobuf.ByteString getFilePatternBytes​(int index)
         Patterns to identify a set of files for this fileset.
        
         Examples of a valid `file_pattern`:
        
          * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
                                      directory
          * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
                                       and all subdirectories recursively
          * `gs://bucket_name/file*`: matches files prefixed by `file` in
                                      `bucket_name`
          * `gs://bucket_name/??.txt`: matches files with two characters followed by
                                       `.txt` in `bucket_name`
          * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
                                            vowel character followed by `.txt` in
                                            `bucket_name`
          * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
                                          or `m` followed by `.txt` in `bucket_name`
          * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
                                      the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
          * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
         
        repeated string file_pattern = 1;
        Specified by:
        getFilePatternBytes in interface StoragePropertiesOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the filePattern at the given index.
      • setFilePattern

        public StorageProperties.Builder setFilePattern​(int index,
                                                        String value)
         Patterns to identify a set of files for this fileset.
        
         Examples of a valid `file_pattern`:
        
          * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
                                      directory
          * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
                                       and all subdirectories recursively
          * `gs://bucket_name/file*`: matches files prefixed by `file` in
                                      `bucket_name`
          * `gs://bucket_name/??.txt`: matches files with two characters followed by
                                       `.txt` in `bucket_name`
          * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
                                            vowel character followed by `.txt` in
                                            `bucket_name`
          * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
                                          or `m` followed by `.txt` in `bucket_name`
          * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
                                      the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
          * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
         
        repeated string file_pattern = 1;
        Parameters:
        index - The index to set the value at.
        value - The filePattern to set.
        Returns:
        This builder for chaining.
      • addFilePattern

        public StorageProperties.Builder addFilePattern​(String value)
         Patterns to identify a set of files for this fileset.
        
         Examples of a valid `file_pattern`:
        
          * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
                                      directory
          * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
                                       and all subdirectories recursively
          * `gs://bucket_name/file*`: matches files prefixed by `file` in
                                      `bucket_name`
          * `gs://bucket_name/??.txt`: matches files with two characters followed by
                                       `.txt` in `bucket_name`
          * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
                                            vowel character followed by `.txt` in
                                            `bucket_name`
          * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
                                          or `m` followed by `.txt` in `bucket_name`
          * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
                                      the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
          * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
         
        repeated string file_pattern = 1;
        Parameters:
        value - The filePattern to add.
        Returns:
        This builder for chaining.
      • addAllFilePattern

        public StorageProperties.Builder addAllFilePattern​(Iterable<String> values)
         Patterns to identify a set of files for this fileset.
        
         Examples of a valid `file_pattern`:
        
          * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
                                      directory
          * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
                                       and all subdirectories recursively
          * `gs://bucket_name/file*`: matches files prefixed by `file` in
                                      `bucket_name`
          * `gs://bucket_name/??.txt`: matches files with two characters followed by
                                       `.txt` in `bucket_name`
          * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
                                            vowel character followed by `.txt` in
                                            `bucket_name`
          * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
                                          or `m` followed by `.txt` in `bucket_name`
          * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
                                      the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
          * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
         
        repeated string file_pattern = 1;
        Parameters:
        values - The filePattern to add.
        Returns:
        This builder for chaining.
      • clearFilePattern

        public StorageProperties.Builder clearFilePattern()
         Patterns to identify a set of files for this fileset.
        
         Examples of a valid `file_pattern`:
        
          * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
                                      directory
          * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
                                       and all subdirectories recursively
          * `gs://bucket_name/file*`: matches files prefixed by `file` in
                                      `bucket_name`
          * `gs://bucket_name/??.txt`: matches files with two characters followed by
                                       `.txt` in `bucket_name`
          * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
                                            vowel character followed by `.txt` in
                                            `bucket_name`
          * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
                                          or `m` followed by `.txt` in `bucket_name`
          * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
                                      the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
          * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
         
        repeated string file_pattern = 1;
        Returns:
        This builder for chaining.
      • addFilePatternBytes

        public StorageProperties.Builder addFilePatternBytes​(com.google.protobuf.ByteString value)
         Patterns to identify a set of files for this fileset.
        
         Examples of a valid `file_pattern`:
        
          * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
                                      directory
          * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
                                       and all subdirectories recursively
          * `gs://bucket_name/file*`: matches files prefixed by `file` in
                                      `bucket_name`
          * `gs://bucket_name/??.txt`: matches files with two characters followed by
                                       `.txt` in `bucket_name`
          * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
                                            vowel character followed by `.txt` in
                                            `bucket_name`
          * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
                                          or `m` followed by `.txt` in `bucket_name`
          * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
                                      the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
          * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
         
        repeated string file_pattern = 1;
        Parameters:
        value - The bytes of the filePattern to add.
        Returns:
        This builder for chaining.
      • getFileTypeBytes

        public com.google.protobuf.ByteString getFileTypeBytes()
         File type in MIME format, for example, `text/plain`.
         
        string file_type = 2;
        Specified by:
        getFileTypeBytes in interface StoragePropertiesOrBuilder
        Returns:
        The bytes for fileType.
      • setFileType

        public StorageProperties.Builder setFileType​(String value)
         File type in MIME format, for example, `text/plain`.
         
        string file_type = 2;
        Parameters:
        value - The fileType to set.
        Returns:
        This builder for chaining.
      • clearFileType

        public StorageProperties.Builder clearFileType()
         File type in MIME format, for example, `text/plain`.
         
        string file_type = 2;
        Returns:
        This builder for chaining.
      • setFileTypeBytes

        public StorageProperties.Builder setFileTypeBytes​(com.google.protobuf.ByteString value)
         File type in MIME format, for example, `text/plain`.
         
        string file_type = 2;
        Parameters:
        value - The bytes for fileType to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

        public final StorageProperties.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<StorageProperties.Builder>