Class DataProfileSpec.Builder (1.30.0)

public static final class DataProfileSpec.Builder extends GeneratedMessageV3.Builder<DataProfileSpec.Builder> implements DataProfileSpecOrBuilder

DataProfileScan related setting.

Protobuf type google.cloud.dataplex.v1.DataProfileSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DataProfileSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataProfileSpec.Builder
Overrides

build()

public DataProfileSpec build()
Returns
TypeDescription
DataProfileSpec

buildPartial()

public DataProfileSpec buildPartial()
Returns
TypeDescription
DataProfileSpec

clear()

public DataProfileSpec.Builder clear()
Returns
TypeDescription
DataProfileSpec.Builder
Overrides

clearExcludeFields()

public DataProfileSpec.Builder clearExcludeFields()

Optional. The fields to exclude from data profile.

If specified, the fields will be excluded from data profile, regardless of include_fields value.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.Builder

clearField(Descriptors.FieldDescriptor field)

public DataProfileSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DataProfileSpec.Builder
Overrides

clearIncludeFields()

public DataProfileSpec.Builder clearIncludeFields()

Optional. The fields to include in data profile.

If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DataProfileSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DataProfileSpec.Builder
Overrides

clearPostScanActions()

public DataProfileSpec.Builder clearPostScanActions()

Optional. Actions to take upon job completion..

.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.Builder

clearRowFilter()

public DataProfileSpec.Builder clearRowFilter()

Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10

string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.Builder

This builder for chaining.

clearSamplingPercent()

public DataProfileSpec.Builder clearSamplingPercent()

Optional. The percentage of the records to be selected from the dataset for DataScan.

  • Value can range between 0.0 and 100.0 with up to 3 significant decimal digits.
  • Sampling is not applied if sampling_percent is not specified, 0 or 100.

float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.Builder

This builder for chaining.

clone()

public DataProfileSpec.Builder clone()
Returns
TypeDescription
DataProfileSpec.Builder
Overrides

getDefaultInstanceForType()

public DataProfileSpec getDefaultInstanceForType()
Returns
TypeDescription
DataProfileSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExcludeFields()

public DataProfileSpec.SelectedFields getExcludeFields()

Optional. The fields to exclude from data profile.

If specified, the fields will be excluded from data profile, regardless of include_fields value.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.SelectedFields

The excludeFields.

getExcludeFieldsBuilder()

public DataProfileSpec.SelectedFields.Builder getExcludeFieldsBuilder()

Optional. The fields to exclude from data profile.

If specified, the fields will be excluded from data profile, regardless of include_fields value.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.SelectedFields.Builder

getExcludeFieldsOrBuilder()

public DataProfileSpec.SelectedFieldsOrBuilder getExcludeFieldsOrBuilder()

Optional. The fields to exclude from data profile.

If specified, the fields will be excluded from data profile, regardless of include_fields value.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.SelectedFieldsOrBuilder

getIncludeFields()

public DataProfileSpec.SelectedFields getIncludeFields()

Optional. The fields to include in data profile.

If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.SelectedFields

The includeFields.

getIncludeFieldsBuilder()

public DataProfileSpec.SelectedFields.Builder getIncludeFieldsBuilder()

Optional. The fields to include in data profile.

If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.SelectedFields.Builder

getIncludeFieldsOrBuilder()

public DataProfileSpec.SelectedFieldsOrBuilder getIncludeFieldsOrBuilder()

Optional. The fields to include in data profile.

If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.SelectedFieldsOrBuilder

getPostScanActions()

public DataProfileSpec.PostScanActions getPostScanActions()

Optional. Actions to take upon job completion..

.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.PostScanActions

The postScanActions.

getPostScanActionsBuilder()

public DataProfileSpec.PostScanActions.Builder getPostScanActionsBuilder()

Optional. Actions to take upon job completion..

.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.PostScanActions.Builder

getPostScanActionsOrBuilder()

public DataProfileSpec.PostScanActionsOrBuilder getPostScanActionsOrBuilder()

Optional. Actions to take upon job completion..

.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataProfileSpec.PostScanActionsOrBuilder

getRowFilter()

public String getRowFilter()

Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10

string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The rowFilter.

getRowFilterBytes()

public ByteString getRowFilterBytes()

Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10

string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for rowFilter.

getSamplingPercent()

public float getSamplingPercent()

Optional. The percentage of the records to be selected from the dataset for DataScan.

  • Value can range between 0.0 and 100.0 with up to 3 significant decimal digits.
  • Sampling is not applied if sampling_percent is not specified, 0 or 100.

float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
float

The samplingPercent.

hasExcludeFields()

public boolean hasExcludeFields()

Optional. The fields to exclude from data profile.

If specified, the fields will be excluded from data profile, regardless of include_fields value.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the excludeFields field is set.

hasIncludeFields()

public boolean hasIncludeFields()

Optional. The fields to include in data profile.

If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the includeFields field is set.

hasPostScanActions()

public boolean hasPostScanActions()

Optional. Actions to take upon job completion..

.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the postScanActions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExcludeFields(DataProfileSpec.SelectedFields value)

public DataProfileSpec.Builder mergeExcludeFields(DataProfileSpec.SelectedFields value)

Optional. The fields to exclude from data profile.

If specified, the fields will be excluded from data profile, regardless of include_fields value.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDataProfileSpec.SelectedFields
Returns
TypeDescription
DataProfileSpec.Builder

mergeFrom(DataProfileSpec other)

public DataProfileSpec.Builder mergeFrom(DataProfileSpec other)
Parameter
NameDescription
otherDataProfileSpec
Returns
TypeDescription
DataProfileSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DataProfileSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DataProfileSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DataProfileSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DataProfileSpec.Builder
Overrides

mergeIncludeFields(DataProfileSpec.SelectedFields value)

public DataProfileSpec.Builder mergeIncludeFields(DataProfileSpec.SelectedFields value)

Optional. The fields to include in data profile.

If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDataProfileSpec.SelectedFields
Returns
TypeDescription
DataProfileSpec.Builder

mergePostScanActions(DataProfileSpec.PostScanActions value)

public DataProfileSpec.Builder mergePostScanActions(DataProfileSpec.PostScanActions value)

Optional. Actions to take upon job completion..

.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDataProfileSpec.PostScanActions
Returns
TypeDescription
DataProfileSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DataProfileSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataProfileSpec.Builder
Overrides

setExcludeFields(DataProfileSpec.SelectedFields value)

public DataProfileSpec.Builder setExcludeFields(DataProfileSpec.SelectedFields value)

Optional. The fields to exclude from data profile.

If specified, the fields will be excluded from data profile, regardless of include_fields value.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDataProfileSpec.SelectedFields
Returns
TypeDescription
DataProfileSpec.Builder

setExcludeFields(DataProfileSpec.SelectedFields.Builder builderForValue)

public DataProfileSpec.Builder setExcludeFields(DataProfileSpec.SelectedFields.Builder builderForValue)

Optional. The fields to exclude from data profile.

If specified, the fields will be excluded from data profile, regardless of include_fields value.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields exclude_fields = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueDataProfileSpec.SelectedFields.Builder
Returns
TypeDescription
DataProfileSpec.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DataProfileSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DataProfileSpec.Builder
Overrides

setIncludeFields(DataProfileSpec.SelectedFields value)

public DataProfileSpec.Builder setIncludeFields(DataProfileSpec.SelectedFields value)

Optional. The fields to include in data profile.

If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDataProfileSpec.SelectedFields
Returns
TypeDescription
DataProfileSpec.Builder

setIncludeFields(DataProfileSpec.SelectedFields.Builder builderForValue)

public DataProfileSpec.Builder setIncludeFields(DataProfileSpec.SelectedFields.Builder builderForValue)

Optional. The fields to include in data profile.

If not specified, all fields at the time of profile scan job execution are included, except for ones listed in exclude_fields.

.google.cloud.dataplex.v1.DataProfileSpec.SelectedFields include_fields = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueDataProfileSpec.SelectedFields.Builder
Returns
TypeDescription
DataProfileSpec.Builder

setPostScanActions(DataProfileSpec.PostScanActions value)

public DataProfileSpec.Builder setPostScanActions(DataProfileSpec.PostScanActions value)

Optional. Actions to take upon job completion..

.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDataProfileSpec.PostScanActions
Returns
TypeDescription
DataProfileSpec.Builder

setPostScanActions(DataProfileSpec.PostScanActions.Builder builderForValue)

public DataProfileSpec.Builder setPostScanActions(DataProfileSpec.PostScanActions.Builder builderForValue)

Optional. Actions to take upon job completion..

.google.cloud.dataplex.v1.DataProfileSpec.PostScanActions post_scan_actions = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueDataProfileSpec.PostScanActions.Builder
Returns
TypeDescription
DataProfileSpec.Builder

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

public DataProfileSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DataProfileSpec.Builder
Overrides

setRowFilter(String value)

public DataProfileSpec.Builder setRowFilter(String value)

Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10

string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The rowFilter to set.

Returns
TypeDescription
DataProfileSpec.Builder

This builder for chaining.

setRowFilterBytes(ByteString value)

public DataProfileSpec.Builder setRowFilterBytes(ByteString value)

Optional. A filter applied to all rows in a single DataScan job. The filter needs to be a valid SQL expression for a WHERE clause in BigQuery standard SQL syntax. Example: col1 >= 0 AND col2 < 10

string row_filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for rowFilter to set.

Returns
TypeDescription
DataProfileSpec.Builder

This builder for chaining.

setSamplingPercent(float value)

public DataProfileSpec.Builder setSamplingPercent(float value)

Optional. The percentage of the records to be selected from the dataset for DataScan.

  • Value can range between 0.0 and 100.0 with up to 3 significant decimal digits.
  • Sampling is not applied if sampling_percent is not specified, 0 or 100.

float sampling_percent = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuefloat

The samplingPercent to set.

Returns
TypeDescription
DataProfileSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DataProfileSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DataProfileSpec.Builder
Overrides