Class DataDiscoverySpec.StorageConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataDiscoverySpec.StorageConfig.Builder>
com.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.Builder
All Implemented Interfaces:
DataDiscoverySpec.StorageConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataDiscoverySpec.StorageConfig

public static final class DataDiscoverySpec.StorageConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataDiscoverySpec.StorageConfig.Builder> implements DataDiscoverySpec.StorageConfigOrBuilder
 Configurations related to Cloud Storage as the data source.
 
Protobuf type google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig
  • 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<DataDiscoverySpec.StorageConfig.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<DataDiscoverySpec.StorageConfig.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<DataDiscoverySpec.StorageConfig.Builder>
    • getDefaultInstanceForType

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

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

      public DataDiscoverySpec.StorageConfig.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<DataDiscoverySpec.StorageConfig.Builder>
      Throws:
      IOException
    • getIncludePatternsList

      public com.google.protobuf.ProtocolStringList getIncludePatternsList()
       Optional. Defines the data to include during discovery when only a subset
       of the data should be considered. Provide a list of patterns that
       identify the data to include. For Cloud Storage bucket assets, these
       patterns are interpreted as glob patterns used to match object names. For
       BigQuery dataset assets, these patterns are interpreted as patterns to
       match table names.
       
      repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludePatternsList in interface DataDiscoverySpec.StorageConfigOrBuilder
      Returns:
      A list containing the includePatterns.
    • getIncludePatternsCount

      public int getIncludePatternsCount()
       Optional. Defines the data to include during discovery when only a subset
       of the data should be considered. Provide a list of patterns that
       identify the data to include. For Cloud Storage bucket assets, these
       patterns are interpreted as glob patterns used to match object names. For
       BigQuery dataset assets, these patterns are interpreted as patterns to
       match table names.
       
      repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludePatternsCount in interface DataDiscoverySpec.StorageConfigOrBuilder
      Returns:
      The count of includePatterns.
    • getIncludePatterns

      public String getIncludePatterns(int index)
       Optional. Defines the data to include during discovery when only a subset
       of the data should be considered. Provide a list of patterns that
       identify the data to include. For Cloud Storage bucket assets, these
       patterns are interpreted as glob patterns used to match object names. For
       BigQuery dataset assets, these patterns are interpreted as patterns to
       match table names.
       
      repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludePatterns in interface DataDiscoverySpec.StorageConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The includePatterns at the given index.
    • getIncludePatternsBytes

      public com.google.protobuf.ByteString getIncludePatternsBytes(int index)
       Optional. Defines the data to include during discovery when only a subset
       of the data should be considered. Provide a list of patterns that
       identify the data to include. For Cloud Storage bucket assets, these
       patterns are interpreted as glob patterns used to match object names. For
       BigQuery dataset assets, these patterns are interpreted as patterns to
       match table names.
       
      repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludePatternsBytes in interface DataDiscoverySpec.StorageConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the includePatterns at the given index.
    • setIncludePatterns

      public DataDiscoverySpec.StorageConfig.Builder setIncludePatterns(int index, String value)
       Optional. Defines the data to include during discovery when only a subset
       of the data should be considered. Provide a list of patterns that
       identify the data to include. For Cloud Storage bucket assets, these
       patterns are interpreted as glob patterns used to match object names. For
       BigQuery dataset assets, these patterns are interpreted as patterns to
       match table names.
       
      repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The includePatterns to set.
      Returns:
      This builder for chaining.
    • addIncludePatterns

      public DataDiscoverySpec.StorageConfig.Builder addIncludePatterns(String value)
       Optional. Defines the data to include during discovery when only a subset
       of the data should be considered. Provide a list of patterns that
       identify the data to include. For Cloud Storage bucket assets, these
       patterns are interpreted as glob patterns used to match object names. For
       BigQuery dataset assets, these patterns are interpreted as patterns to
       match table names.
       
      repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The includePatterns to add.
      Returns:
      This builder for chaining.
    • addAllIncludePatterns

      public DataDiscoverySpec.StorageConfig.Builder addAllIncludePatterns(Iterable<String> values)
       Optional. Defines the data to include during discovery when only a subset
       of the data should be considered. Provide a list of patterns that
       identify the data to include. For Cloud Storage bucket assets, these
       patterns are interpreted as glob patterns used to match object names. For
       BigQuery dataset assets, these patterns are interpreted as patterns to
       match table names.
       
      repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The includePatterns to add.
      Returns:
      This builder for chaining.
    • clearIncludePatterns

      public DataDiscoverySpec.StorageConfig.Builder clearIncludePatterns()
       Optional. Defines the data to include during discovery when only a subset
       of the data should be considered. Provide a list of patterns that
       identify the data to include. For Cloud Storage bucket assets, these
       patterns are interpreted as glob patterns used to match object names. For
       BigQuery dataset assets, these patterns are interpreted as patterns to
       match table names.
       
      repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addIncludePatternsBytes

      public DataDiscoverySpec.StorageConfig.Builder addIncludePatternsBytes(com.google.protobuf.ByteString value)
       Optional. Defines the data to include during discovery when only a subset
       of the data should be considered. Provide a list of patterns that
       identify the data to include. For Cloud Storage bucket assets, these
       patterns are interpreted as glob patterns used to match object names. For
       BigQuery dataset assets, these patterns are interpreted as patterns to
       match table names.
       
      repeated string include_patterns = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the includePatterns to add.
      Returns:
      This builder for chaining.
    • getExcludePatternsList

      public com.google.protobuf.ProtocolStringList getExcludePatternsList()
       Optional. Defines the data to exclude during discovery. Provide a list of
       patterns that identify the data to exclude. For Cloud Storage bucket
       assets, these patterns are interpreted as glob patterns used to match
       object names. For BigQuery dataset assets, these patterns are interpreted
       as patterns to match table names.
       
      repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludePatternsList in interface DataDiscoverySpec.StorageConfigOrBuilder
      Returns:
      A list containing the excludePatterns.
    • getExcludePatternsCount

      public int getExcludePatternsCount()
       Optional. Defines the data to exclude during discovery. Provide a list of
       patterns that identify the data to exclude. For Cloud Storage bucket
       assets, these patterns are interpreted as glob patterns used to match
       object names. For BigQuery dataset assets, these patterns are interpreted
       as patterns to match table names.
       
      repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludePatternsCount in interface DataDiscoverySpec.StorageConfigOrBuilder
      Returns:
      The count of excludePatterns.
    • getExcludePatterns

      public String getExcludePatterns(int index)
       Optional. Defines the data to exclude during discovery. Provide a list of
       patterns that identify the data to exclude. For Cloud Storage bucket
       assets, these patterns are interpreted as glob patterns used to match
       object names. For BigQuery dataset assets, these patterns are interpreted
       as patterns to match table names.
       
      repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludePatterns in interface DataDiscoverySpec.StorageConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The excludePatterns at the given index.
    • getExcludePatternsBytes

      public com.google.protobuf.ByteString getExcludePatternsBytes(int index)
       Optional. Defines the data to exclude during discovery. Provide a list of
       patterns that identify the data to exclude. For Cloud Storage bucket
       assets, these patterns are interpreted as glob patterns used to match
       object names. For BigQuery dataset assets, these patterns are interpreted
       as patterns to match table names.
       
      repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExcludePatternsBytes in interface DataDiscoverySpec.StorageConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the excludePatterns at the given index.
    • setExcludePatterns

      public DataDiscoverySpec.StorageConfig.Builder setExcludePatterns(int index, String value)
       Optional. Defines the data to exclude during discovery. Provide a list of
       patterns that identify the data to exclude. For Cloud Storage bucket
       assets, these patterns are interpreted as glob patterns used to match
       object names. For BigQuery dataset assets, these patterns are interpreted
       as patterns to match table names.
       
      repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The excludePatterns to set.
      Returns:
      This builder for chaining.
    • addExcludePatterns

      public DataDiscoverySpec.StorageConfig.Builder addExcludePatterns(String value)
       Optional. Defines the data to exclude during discovery. Provide a list of
       patterns that identify the data to exclude. For Cloud Storage bucket
       assets, these patterns are interpreted as glob patterns used to match
       object names. For BigQuery dataset assets, these patterns are interpreted
       as patterns to match table names.
       
      repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The excludePatterns to add.
      Returns:
      This builder for chaining.
    • addAllExcludePatterns

      public DataDiscoverySpec.StorageConfig.Builder addAllExcludePatterns(Iterable<String> values)
       Optional. Defines the data to exclude during discovery. Provide a list of
       patterns that identify the data to exclude. For Cloud Storage bucket
       assets, these patterns are interpreted as glob patterns used to match
       object names. For BigQuery dataset assets, these patterns are interpreted
       as patterns to match table names.
       
      repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The excludePatterns to add.
      Returns:
      This builder for chaining.
    • clearExcludePatterns

      public DataDiscoverySpec.StorageConfig.Builder clearExcludePatterns()
       Optional. Defines the data to exclude during discovery. Provide a list of
       patterns that identify the data to exclude. For Cloud Storage bucket
       assets, these patterns are interpreted as glob patterns used to match
       object names. For BigQuery dataset assets, these patterns are interpreted
       as patterns to match table names.
       
      repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addExcludePatternsBytes

      public DataDiscoverySpec.StorageConfig.Builder addExcludePatternsBytes(com.google.protobuf.ByteString value)
       Optional. Defines the data to exclude during discovery. Provide a list of
       patterns that identify the data to exclude. For Cloud Storage bucket
       assets, these patterns are interpreted as glob patterns used to match
       object names. For BigQuery dataset assets, these patterns are interpreted
       as patterns to match table names.
       
      repeated string exclude_patterns = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the excludePatterns to add.
      Returns:
      This builder for chaining.
    • hasCsvOptions

      public boolean hasCsvOptions()
       Optional. Configuration for CSV data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCsvOptions in interface DataDiscoverySpec.StorageConfigOrBuilder
      Returns:
      Whether the csvOptions field is set.
    • getCsvOptions

       Optional. Configuration for CSV data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCsvOptions in interface DataDiscoverySpec.StorageConfigOrBuilder
      Returns:
      The csvOptions.
    • setCsvOptions

       Optional. Configuration for CSV data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setCsvOptions

       Optional. Configuration for CSV data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeCsvOptions

       Optional. Configuration for CSV data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearCsvOptions

      public DataDiscoverySpec.StorageConfig.Builder clearCsvOptions()
       Optional. Configuration for CSV data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getCsvOptionsBuilder

       Optional. Configuration for CSV data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getCsvOptionsOrBuilder

      public DataDiscoverySpec.StorageConfig.CsvOptionsOrBuilder getCsvOptionsOrBuilder()
       Optional. Configuration for CSV data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCsvOptionsOrBuilder in interface DataDiscoverySpec.StorageConfigOrBuilder
    • hasJsonOptions

      public boolean hasJsonOptions()
       Optional. Configuration for JSON data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasJsonOptions in interface DataDiscoverySpec.StorageConfigOrBuilder
      Returns:
      Whether the jsonOptions field is set.
    • getJsonOptions

       Optional. Configuration for JSON data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getJsonOptions in interface DataDiscoverySpec.StorageConfigOrBuilder
      Returns:
      The jsonOptions.
    • setJsonOptions

       Optional. Configuration for JSON data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setJsonOptions

       Optional. Configuration for JSON data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeJsonOptions

       Optional. Configuration for JSON data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearJsonOptions

      public DataDiscoverySpec.StorageConfig.Builder clearJsonOptions()
       Optional. Configuration for JSON data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getJsonOptionsBuilder

       Optional. Configuration for JSON data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getJsonOptionsOrBuilder

      public DataDiscoverySpec.StorageConfig.JsonOptionsOrBuilder getJsonOptionsOrBuilder()
       Optional. Configuration for JSON data.
       
      .google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getJsonOptionsOrBuilder in interface DataDiscoverySpec.StorageConfigOrBuilder