Class DataDiscoverySpec.StorageConfig.Builder (1.53.0)

public static final class DataDiscoverySpec.StorageConfig.Builder extends GeneratedMessageV3.Builder<DataDiscoverySpec.StorageConfig.Builder> implements DataDiscoverySpec.StorageConfigOrBuilder

Configurations related to Cloud Storage as the data source.

Protobuf type google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllExcludePatterns(Iterable<String> values)

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];

Parameter
Name Description
values Iterable<String>

The excludePatterns to add.

Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

This builder for chaining.

addAllIncludePatterns(Iterable<String> values)

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];

Parameter
Name Description
values Iterable<String>

The includePatterns to add.

Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

This builder for chaining.

addExcludePatterns(String value)

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];

Parameter
Name Description
value String

The excludePatterns to add.

Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

This builder for chaining.

addExcludePatternsBytes(ByteString value)

public DataDiscoverySpec.StorageConfig.Builder addExcludePatternsBytes(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];

Parameter
Name Description
value ByteString

The bytes of the excludePatterns to add.

Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

This builder for chaining.

addIncludePatterns(String value)

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];

Parameter
Name Description
value String

The includePatterns to add.

Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

This builder for chaining.

addIncludePatternsBytes(ByteString value)

public DataDiscoverySpec.StorageConfig.Builder addIncludePatternsBytes(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];

Parameter
Name Description
value ByteString

The bytes of the includePatterns to add.

Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataDiscoverySpec.StorageConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder
Overrides

build()

public DataDiscoverySpec.StorageConfig build()
Returns
Type Description
DataDiscoverySpec.StorageConfig

buildPartial()

public DataDiscoverySpec.StorageConfig buildPartial()
Returns
Type Description
DataDiscoverySpec.StorageConfig

clear()

public DataDiscoverySpec.StorageConfig.Builder clear()
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder
Overrides

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];

Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

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
Type Description
DataDiscoverySpec.StorageConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DataDiscoverySpec.StorageConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder
Overrides

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
Type Description
DataDiscoverySpec.StorageConfig.Builder

This builder for chaining.

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];

Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DataDiscoverySpec.StorageConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder
Overrides

clone()

public DataDiscoverySpec.StorageConfig.Builder clone()
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder
Overrides

getCsvOptions()

public DataDiscoverySpec.StorageConfig.CsvOptions getCsvOptions()

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions

The csvOptions.

getCsvOptionsBuilder()

public DataDiscoverySpec.StorageConfig.CsvOptions.Builder getCsvOptionsBuilder()

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptions.Builder

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];

Returns
Type Description
DataDiscoverySpec.StorageConfig.CsvOptionsOrBuilder

getDefaultInstanceForType()

public DataDiscoverySpec.StorageConfig getDefaultInstanceForType()
Returns
Type Description
DataDiscoverySpec.StorageConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExcludePatterns(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The excludePatterns at the given index.

getExcludePatternsBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the excludePatterns at the given index.

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];

Returns
Type Description
int

The count of excludePatterns.

getExcludePatternsList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the excludePatterns.

getIncludePatterns(int index)

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];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The includePatterns at the given index.

getIncludePatternsBytes(int index)

public 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];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the includePatterns at the given index.

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];

Returns
Type Description
int

The count of includePatterns.

getIncludePatternsList()

public 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];

Returns
Type Description
ProtocolStringList

A list containing the includePatterns.

getJsonOptions()

public DataDiscoverySpec.StorageConfig.JsonOptions getJsonOptions()

Optional. Configuration for JSON data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions

The jsonOptions.

getJsonOptionsBuilder()

public DataDiscoverySpec.StorageConfig.JsonOptions.Builder getJsonOptionsBuilder()

Optional. Configuration for JSON data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptions.Builder

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];

Returns
Type Description
DataDiscoverySpec.StorageConfig.JsonOptionsOrBuilder

hasCsvOptions()

public boolean hasCsvOptions()

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the csvOptions field is set.

hasJsonOptions()

public boolean hasJsonOptions()

Optional. Configuration for JSON data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the jsonOptions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCsvOptions(DataDiscoverySpec.StorageConfig.CsvOptions value)

public DataDiscoverySpec.StorageConfig.Builder mergeCsvOptions(DataDiscoverySpec.StorageConfig.CsvOptions value)

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DataDiscoverySpec.StorageConfig.CsvOptions
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

mergeFrom(DataDiscoverySpec.StorageConfig other)

public DataDiscoverySpec.StorageConfig.Builder mergeFrom(DataDiscoverySpec.StorageConfig other)
Parameter
Name Description
other DataDiscoverySpec.StorageConfig
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataDiscoverySpec.StorageConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DataDiscoverySpec.StorageConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder
Overrides

mergeJsonOptions(DataDiscoverySpec.StorageConfig.JsonOptions value)

public DataDiscoverySpec.StorageConfig.Builder mergeJsonOptions(DataDiscoverySpec.StorageConfig.JsonOptions value)

Optional. Configuration for JSON data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DataDiscoverySpec.StorageConfig.JsonOptions
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataDiscoverySpec.StorageConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder
Overrides

setCsvOptions(DataDiscoverySpec.StorageConfig.CsvOptions value)

public DataDiscoverySpec.StorageConfig.Builder setCsvOptions(DataDiscoverySpec.StorageConfig.CsvOptions value)

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DataDiscoverySpec.StorageConfig.CsvOptions
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

setCsvOptions(DataDiscoverySpec.StorageConfig.CsvOptions.Builder builderForValue)

public DataDiscoverySpec.StorageConfig.Builder setCsvOptions(DataDiscoverySpec.StorageConfig.CsvOptions.Builder builderForValue)

Optional. Configuration for CSV data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.CsvOptions csv_options = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DataDiscoverySpec.StorageConfig.CsvOptions.Builder
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

setExcludePatterns(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The excludePatterns to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DataDiscoverySpec.StorageConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder
Overrides

setIncludePatterns(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The includePatterns to set.

Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

This builder for chaining.

setJsonOptions(DataDiscoverySpec.StorageConfig.JsonOptions value)

public DataDiscoverySpec.StorageConfig.Builder setJsonOptions(DataDiscoverySpec.StorageConfig.JsonOptions value)

Optional. Configuration for JSON data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DataDiscoverySpec.StorageConfig.JsonOptions
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

setJsonOptions(DataDiscoverySpec.StorageConfig.JsonOptions.Builder builderForValue)

public DataDiscoverySpec.StorageConfig.Builder setJsonOptions(DataDiscoverySpec.StorageConfig.JsonOptions.Builder builderForValue)

Optional. Configuration for JSON data.

.google.cloud.dataplex.v1.DataDiscoverySpec.StorageConfig.JsonOptions json_options = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DataDiscoverySpec.StorageConfig.JsonOptions.Builder
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DataDiscoverySpec.StorageConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DataDiscoverySpec.StorageConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DataDiscoverySpec.StorageConfig.Builder
Overrides