Class StorageProperties.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StorageProperties.Builder>
com.google.cloud.datacatalog.v1.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.GeneratedMessage.Builder<StorageProperties.Builder> implements StoragePropertiesOrBuilder
 Details the properties of the underlying storage.
 
Protobuf type google.cloud.datacatalog.v1.StorageProperties
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public StorageProperties.Builder mergeFrom(StorageProperties other)
    • isInitialized

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

      public String getFileType()
       File type in MIME format, for example, `text/plain`.
       
      string file_type = 2;
      Specified by:
      getFileType in interface StoragePropertiesOrBuilder
      Returns:
      The fileType.
    • 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.