Class DataQualityRule.Builder (1.37.0)

public static final class DataQualityRule.Builder extends GeneratedMessageV3.Builder<DataQualityRule.Builder> implements DataQualityRuleOrBuilder

A rule captures data quality intent about a data source.

Protobuf type google.cloud.dataplex.v1.DataQualityRule

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DataQualityRule build()
Returns
TypeDescription
DataQualityRule

buildPartial()

public DataQualityRule buildPartial()
Returns
TypeDescription
DataQualityRule

clear()

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

clearColumn()

public DataQualityRule.Builder clearColumn()

Optional. The unnested column which this rule is evaluated against.

string column = 500 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

clearDescription()

public DataQualityRule.Builder clearDescription()

Optional. Description of the rule.

  • The maximum length is 1,024 characters.

string description = 505 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

clearDimension()

public DataQualityRule.Builder clearDimension()

Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are ["COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]

string dimension = 502 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIgnoreNull()

public DataQualityRule.Builder clearIgnoreNull()

Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.

This field is only valid for the following type of rules:

  • RangeExpectation
  • RegexExpectation
  • SetExpectation
  • UniquenessExpectation

bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

clearName()

public DataQualityRule.Builder clearName()

Optional. A mutable name for the rule.

  • The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-).
  • The maximum length is 63 characters.
  • Must start with a letter.
  • Must end with a number or a letter.

string name = 504 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

clearNonNullExpectation()

public DataQualityRule.Builder clearNonNullExpectation()

Row-level rule which evaluates whether each column value is null.

.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2;

Returns
TypeDescription
DataQualityRule.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRangeExpectation()

public DataQualityRule.Builder clearRangeExpectation()

Row-level rule which evaluates whether each column value lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1;

Returns
TypeDescription
DataQualityRule.Builder

clearRegexExpectation()

public DataQualityRule.Builder clearRegexExpectation()

Row-level rule which evaluates whether each column value matches a specified regex.

.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4;

Returns
TypeDescription
DataQualityRule.Builder

clearRowConditionExpectation()

public DataQualityRule.Builder clearRowConditionExpectation()

Row-level rule which evaluates whether each row in a table passes the specified condition.

.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200;

Returns
TypeDescription
DataQualityRule.Builder

clearRuleType()

public DataQualityRule.Builder clearRuleType()
Returns
TypeDescription
DataQualityRule.Builder

clearSetExpectation()

public DataQualityRule.Builder clearSetExpectation()

Row-level rule which evaluates whether each column value is contained by a specified set.

.google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3;

Returns
TypeDescription
DataQualityRule.Builder

clearStatisticRangeExpectation()

public DataQualityRule.Builder clearStatisticRangeExpectation()

Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101;

Returns
TypeDescription
DataQualityRule.Builder

clearTableConditionExpectation()

public DataQualityRule.Builder clearTableConditionExpectation()

Aggregate rule which evaluates whether the provided expression is true for a table.

.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201;

Returns
TypeDescription
DataQualityRule.Builder

clearThreshold()

public DataQualityRule.Builder clearThreshold()

Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of [0.0, 1.0].

0 indicates default value (i.e. 1.0).

This field is only valid for row-level type rules.

double threshold = 503 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

clearUniquenessExpectation()

public DataQualityRule.Builder clearUniquenessExpectation()

Row-level rule which evaluates whether each column value is unique.

.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100;

Returns
TypeDescription
DataQualityRule.Builder

clone()

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

getColumn()

public String getColumn()

Optional. The unnested column which this rule is evaluated against.

string column = 500 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The column.

getColumnBytes()

public ByteString getColumnBytes()

Optional. The unnested column which this rule is evaluated against.

string column = 500 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for column.

getDefaultInstanceForType()

public DataQualityRule getDefaultInstanceForType()
Returns
TypeDescription
DataQualityRule

getDescription()

public String getDescription()

Optional. Description of the rule.

  • The maximum length is 1,024 characters.

string description = 505 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the rule.

  • The maximum length is 1,024 characters.

string description = 505 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDimension()

public String getDimension()

Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are ["COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]

string dimension = 502 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The dimension.

getDimensionBytes()

public ByteString getDimensionBytes()

Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are ["COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]

string dimension = 502 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for dimension.

getIgnoreNull()

public boolean getIgnoreNull()

Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.

This field is only valid for the following type of rules:

  • RangeExpectation
  • RegexExpectation
  • SetExpectation
  • UniquenessExpectation

bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The ignoreNull.

getName()

public String getName()

Optional. A mutable name for the rule.

  • The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-).
  • The maximum length is 63 characters.
  • Must start with a letter.
  • Must end with a number or a letter.

string name = 504 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. A mutable name for the rule.

  • The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-).
  • The maximum length is 63 characters.
  • Must start with a letter.
  • Must end with a number or a letter.

string name = 504 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for name.

getNonNullExpectation()

public DataQualityRule.NonNullExpectation getNonNullExpectation()

Row-level rule which evaluates whether each column value is null.

.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2;

Returns
TypeDescription
DataQualityRule.NonNullExpectation

The nonNullExpectation.

getNonNullExpectationBuilder()

public DataQualityRule.NonNullExpectation.Builder getNonNullExpectationBuilder()

Row-level rule which evaluates whether each column value is null.

.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2;

Returns
TypeDescription
DataQualityRule.NonNullExpectation.Builder

getNonNullExpectationOrBuilder()

public DataQualityRule.NonNullExpectationOrBuilder getNonNullExpectationOrBuilder()

Row-level rule which evaluates whether each column value is null.

.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2;

Returns
TypeDescription
DataQualityRule.NonNullExpectationOrBuilder

getRangeExpectation()

public DataQualityRule.RangeExpectation getRangeExpectation()

Row-level rule which evaluates whether each column value lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1;

Returns
TypeDescription
DataQualityRule.RangeExpectation

The rangeExpectation.

getRangeExpectationBuilder()

public DataQualityRule.RangeExpectation.Builder getRangeExpectationBuilder()

Row-level rule which evaluates whether each column value lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1;

Returns
TypeDescription
DataQualityRule.RangeExpectation.Builder

getRangeExpectationOrBuilder()

public DataQualityRule.RangeExpectationOrBuilder getRangeExpectationOrBuilder()

Row-level rule which evaluates whether each column value lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1;

Returns
TypeDescription
DataQualityRule.RangeExpectationOrBuilder

getRegexExpectation()

public DataQualityRule.RegexExpectation getRegexExpectation()

Row-level rule which evaluates whether each column value matches a specified regex.

.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4;

Returns
TypeDescription
DataQualityRule.RegexExpectation

The regexExpectation.

getRegexExpectationBuilder()

public DataQualityRule.RegexExpectation.Builder getRegexExpectationBuilder()

Row-level rule which evaluates whether each column value matches a specified regex.

.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4;

Returns
TypeDescription
DataQualityRule.RegexExpectation.Builder

getRegexExpectationOrBuilder()

public DataQualityRule.RegexExpectationOrBuilder getRegexExpectationOrBuilder()

Row-level rule which evaluates whether each column value matches a specified regex.

.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4;

Returns
TypeDescription
DataQualityRule.RegexExpectationOrBuilder

getRowConditionExpectation()

public DataQualityRule.RowConditionExpectation getRowConditionExpectation()

Row-level rule which evaluates whether each row in a table passes the specified condition.

.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200;

Returns
TypeDescription
DataQualityRule.RowConditionExpectation

The rowConditionExpectation.

getRowConditionExpectationBuilder()

public DataQualityRule.RowConditionExpectation.Builder getRowConditionExpectationBuilder()

Row-level rule which evaluates whether each row in a table passes the specified condition.

.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200;

Returns
TypeDescription
DataQualityRule.RowConditionExpectation.Builder

getRowConditionExpectationOrBuilder()

public DataQualityRule.RowConditionExpectationOrBuilder getRowConditionExpectationOrBuilder()

Row-level rule which evaluates whether each row in a table passes the specified condition.

.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200;

Returns
TypeDescription
DataQualityRule.RowConditionExpectationOrBuilder

getRuleTypeCase()

public DataQualityRule.RuleTypeCase getRuleTypeCase()
Returns
TypeDescription
DataQualityRule.RuleTypeCase

getSetExpectation()

public DataQualityRule.SetExpectation getSetExpectation()

Row-level rule which evaluates whether each column value is contained by a specified set.

.google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3;

Returns
TypeDescription
DataQualityRule.SetExpectation

The setExpectation.

getSetExpectationBuilder()

public DataQualityRule.SetExpectation.Builder getSetExpectationBuilder()

Row-level rule which evaluates whether each column value is contained by a specified set.

.google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3;

Returns
TypeDescription
DataQualityRule.SetExpectation.Builder

getSetExpectationOrBuilder()

public DataQualityRule.SetExpectationOrBuilder getSetExpectationOrBuilder()

Row-level rule which evaluates whether each column value is contained by a specified set.

.google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3;

Returns
TypeDescription
DataQualityRule.SetExpectationOrBuilder

getStatisticRangeExpectation()

public DataQualityRule.StatisticRangeExpectation getStatisticRangeExpectation()

Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101;

Returns
TypeDescription
DataQualityRule.StatisticRangeExpectation

The statisticRangeExpectation.

getStatisticRangeExpectationBuilder()

public DataQualityRule.StatisticRangeExpectation.Builder getStatisticRangeExpectationBuilder()

Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101;

Returns
TypeDescription
DataQualityRule.StatisticRangeExpectation.Builder

getStatisticRangeExpectationOrBuilder()

public DataQualityRule.StatisticRangeExpectationOrBuilder getStatisticRangeExpectationOrBuilder()

Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101;

Returns
TypeDescription
DataQualityRule.StatisticRangeExpectationOrBuilder

getTableConditionExpectation()

public DataQualityRule.TableConditionExpectation getTableConditionExpectation()

Aggregate rule which evaluates whether the provided expression is true for a table.

.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201;

Returns
TypeDescription
DataQualityRule.TableConditionExpectation

The tableConditionExpectation.

getTableConditionExpectationBuilder()

public DataQualityRule.TableConditionExpectation.Builder getTableConditionExpectationBuilder()

Aggregate rule which evaluates whether the provided expression is true for a table.

.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201;

Returns
TypeDescription
DataQualityRule.TableConditionExpectation.Builder

getTableConditionExpectationOrBuilder()

public DataQualityRule.TableConditionExpectationOrBuilder getTableConditionExpectationOrBuilder()

Aggregate rule which evaluates whether the provided expression is true for a table.

.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201;

Returns
TypeDescription
DataQualityRule.TableConditionExpectationOrBuilder

getThreshold()

public double getThreshold()

Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of [0.0, 1.0].

0 indicates default value (i.e. 1.0).

This field is only valid for row-level type rules.

double threshold = 503 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
double

The threshold.

getUniquenessExpectation()

public DataQualityRule.UniquenessExpectation getUniquenessExpectation()

Row-level rule which evaluates whether each column value is unique.

.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100;

Returns
TypeDescription
DataQualityRule.UniquenessExpectation

The uniquenessExpectation.

getUniquenessExpectationBuilder()

public DataQualityRule.UniquenessExpectation.Builder getUniquenessExpectationBuilder()

Row-level rule which evaluates whether each column value is unique.

.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100;

Returns
TypeDescription
DataQualityRule.UniquenessExpectation.Builder

getUniquenessExpectationOrBuilder()

public DataQualityRule.UniquenessExpectationOrBuilder getUniquenessExpectationOrBuilder()

Row-level rule which evaluates whether each column value is unique.

.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100;

Returns
TypeDescription
DataQualityRule.UniquenessExpectationOrBuilder

hasNonNullExpectation()

public boolean hasNonNullExpectation()

Row-level rule which evaluates whether each column value is null.

.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2;

Returns
TypeDescription
boolean

Whether the nonNullExpectation field is set.

hasRangeExpectation()

public boolean hasRangeExpectation()

Row-level rule which evaluates whether each column value lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1;

Returns
TypeDescription
boolean

Whether the rangeExpectation field is set.

hasRegexExpectation()

public boolean hasRegexExpectation()

Row-level rule which evaluates whether each column value matches a specified regex.

.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4;

Returns
TypeDescription
boolean

Whether the regexExpectation field is set.

hasRowConditionExpectation()

public boolean hasRowConditionExpectation()

Row-level rule which evaluates whether each row in a table passes the specified condition.

.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200;

Returns
TypeDescription
boolean

Whether the rowConditionExpectation field is set.

hasSetExpectation()

public boolean hasSetExpectation()

Row-level rule which evaluates whether each column value is contained by a specified set.

.google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3;

Returns
TypeDescription
boolean

Whether the setExpectation field is set.

hasStatisticRangeExpectation()

public boolean hasStatisticRangeExpectation()

Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101;

Returns
TypeDescription
boolean

Whether the statisticRangeExpectation field is set.

hasTableConditionExpectation()

public boolean hasTableConditionExpectation()

Aggregate rule which evaluates whether the provided expression is true for a table.

.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201;

Returns
TypeDescription
boolean

Whether the tableConditionExpectation field is set.

hasUniquenessExpectation()

public boolean hasUniquenessExpectation()

Row-level rule which evaluates whether each column value is unique.

.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100;

Returns
TypeDescription
boolean

Whether the uniquenessExpectation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DataQualityRule other)

public DataQualityRule.Builder mergeFrom(DataQualityRule other)
Parameter
NameDescription
otherDataQualityRule
Returns
TypeDescription
DataQualityRule.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNonNullExpectation(DataQualityRule.NonNullExpectation value)

public DataQualityRule.Builder mergeNonNullExpectation(DataQualityRule.NonNullExpectation value)

Row-level rule which evaluates whether each column value is null.

.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2;

Parameter
NameDescription
valueDataQualityRule.NonNullExpectation
Returns
TypeDescription
DataQualityRule.Builder

mergeRangeExpectation(DataQualityRule.RangeExpectation value)

public DataQualityRule.Builder mergeRangeExpectation(DataQualityRule.RangeExpectation value)

Row-level rule which evaluates whether each column value lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1;

Parameter
NameDescription
valueDataQualityRule.RangeExpectation
Returns
TypeDescription
DataQualityRule.Builder

mergeRegexExpectation(DataQualityRule.RegexExpectation value)

public DataQualityRule.Builder mergeRegexExpectation(DataQualityRule.RegexExpectation value)

Row-level rule which evaluates whether each column value matches a specified regex.

.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4;

Parameter
NameDescription
valueDataQualityRule.RegexExpectation
Returns
TypeDescription
DataQualityRule.Builder

mergeRowConditionExpectation(DataQualityRule.RowConditionExpectation value)

public DataQualityRule.Builder mergeRowConditionExpectation(DataQualityRule.RowConditionExpectation value)

Row-level rule which evaluates whether each row in a table passes the specified condition.

.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200;

Parameter
NameDescription
valueDataQualityRule.RowConditionExpectation
Returns
TypeDescription
DataQualityRule.Builder

mergeSetExpectation(DataQualityRule.SetExpectation value)

public DataQualityRule.Builder mergeSetExpectation(DataQualityRule.SetExpectation value)

Row-level rule which evaluates whether each column value is contained by a specified set.

.google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3;

Parameter
NameDescription
valueDataQualityRule.SetExpectation
Returns
TypeDescription
DataQualityRule.Builder

mergeStatisticRangeExpectation(DataQualityRule.StatisticRangeExpectation value)

public DataQualityRule.Builder mergeStatisticRangeExpectation(DataQualityRule.StatisticRangeExpectation value)

Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101;

Parameter
NameDescription
valueDataQualityRule.StatisticRangeExpectation
Returns
TypeDescription
DataQualityRule.Builder

mergeTableConditionExpectation(DataQualityRule.TableConditionExpectation value)

public DataQualityRule.Builder mergeTableConditionExpectation(DataQualityRule.TableConditionExpectation value)

Aggregate rule which evaluates whether the provided expression is true for a table.

.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201;

Parameter
NameDescription
valueDataQualityRule.TableConditionExpectation
Returns
TypeDescription
DataQualityRule.Builder

mergeUniquenessExpectation(DataQualityRule.UniquenessExpectation value)

public DataQualityRule.Builder mergeUniquenessExpectation(DataQualityRule.UniquenessExpectation value)

Row-level rule which evaluates whether each column value is unique.

.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100;

Parameter
NameDescription
valueDataQualityRule.UniquenessExpectation
Returns
TypeDescription
DataQualityRule.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setColumn(String value)

public DataQualityRule.Builder setColumn(String value)

Optional. The unnested column which this rule is evaluated against.

string column = 500 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The column to set.

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

setColumnBytes(ByteString value)

public DataQualityRule.Builder setColumnBytes(ByteString value)

Optional. The unnested column which this rule is evaluated against.

string column = 500 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for column to set.

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

setDescription(String value)

public DataQualityRule.Builder setDescription(String value)

Optional. Description of the rule.

  • The maximum length is 1,024 characters.

string description = 505 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public DataQualityRule.Builder setDescriptionBytes(ByteString value)

Optional. Description of the rule.

  • The maximum length is 1,024 characters.

string description = 505 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

setDimension(String value)

public DataQualityRule.Builder setDimension(String value)

Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are ["COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]

string dimension = 502 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The dimension to set.

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

setDimensionBytes(ByteString value)

public DataQualityRule.Builder setDimensionBytes(ByteString value)

Required. The dimension a rule belongs to. Results are also aggregated at the dimension level. Supported dimensions are ["COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]

string dimension = 502 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for dimension to set.

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIgnoreNull(boolean value)

public DataQualityRule.Builder setIgnoreNull(boolean value)

Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.

This field is only valid for the following type of rules:

  • RangeExpectation
  • RegexExpectation
  • SetExpectation
  • UniquenessExpectation

bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The ignoreNull to set.

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

setName(String value)

public DataQualityRule.Builder setName(String value)

Optional. A mutable name for the rule.

  • The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-).
  • The maximum length is 63 characters.
  • Must start with a letter.
  • Must end with a number or a letter.

string name = 504 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DataQualityRule.Builder setNameBytes(ByteString value)

Optional. A mutable name for the rule.

  • The name must contain only letters (a-z, A-Z), numbers (0-9), or hyphens (-).
  • The maximum length is 63 characters.
  • Must start with a letter.
  • Must end with a number or a letter.

string name = 504 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

setNonNullExpectation(DataQualityRule.NonNullExpectation value)

public DataQualityRule.Builder setNonNullExpectation(DataQualityRule.NonNullExpectation value)

Row-level rule which evaluates whether each column value is null.

.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2;

Parameter
NameDescription
valueDataQualityRule.NonNullExpectation
Returns
TypeDescription
DataQualityRule.Builder

setNonNullExpectation(DataQualityRule.NonNullExpectation.Builder builderForValue)

public DataQualityRule.Builder setNonNullExpectation(DataQualityRule.NonNullExpectation.Builder builderForValue)

Row-level rule which evaluates whether each column value is null.

.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation non_null_expectation = 2;

Parameter
NameDescription
builderForValueDataQualityRule.NonNullExpectation.Builder
Returns
TypeDescription
DataQualityRule.Builder

setRangeExpectation(DataQualityRule.RangeExpectation value)

public DataQualityRule.Builder setRangeExpectation(DataQualityRule.RangeExpectation value)

Row-level rule which evaluates whether each column value lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1;

Parameter
NameDescription
valueDataQualityRule.RangeExpectation
Returns
TypeDescription
DataQualityRule.Builder

setRangeExpectation(DataQualityRule.RangeExpectation.Builder builderForValue)

public DataQualityRule.Builder setRangeExpectation(DataQualityRule.RangeExpectation.Builder builderForValue)

Row-level rule which evaluates whether each column value lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation range_expectation = 1;

Parameter
NameDescription
builderForValueDataQualityRule.RangeExpectation.Builder
Returns
TypeDescription
DataQualityRule.Builder

setRegexExpectation(DataQualityRule.RegexExpectation value)

public DataQualityRule.Builder setRegexExpectation(DataQualityRule.RegexExpectation value)

Row-level rule which evaluates whether each column value matches a specified regex.

.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4;

Parameter
NameDescription
valueDataQualityRule.RegexExpectation
Returns
TypeDescription
DataQualityRule.Builder

setRegexExpectation(DataQualityRule.RegexExpectation.Builder builderForValue)

public DataQualityRule.Builder setRegexExpectation(DataQualityRule.RegexExpectation.Builder builderForValue)

Row-level rule which evaluates whether each column value matches a specified regex.

.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation regex_expectation = 4;

Parameter
NameDescription
builderForValueDataQualityRule.RegexExpectation.Builder
Returns
TypeDescription
DataQualityRule.Builder

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

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

setRowConditionExpectation(DataQualityRule.RowConditionExpectation value)

public DataQualityRule.Builder setRowConditionExpectation(DataQualityRule.RowConditionExpectation value)

Row-level rule which evaluates whether each row in a table passes the specified condition.

.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200;

Parameter
NameDescription
valueDataQualityRule.RowConditionExpectation
Returns
TypeDescription
DataQualityRule.Builder

setRowConditionExpectation(DataQualityRule.RowConditionExpectation.Builder builderForValue)

public DataQualityRule.Builder setRowConditionExpectation(DataQualityRule.RowConditionExpectation.Builder builderForValue)

Row-level rule which evaluates whether each row in a table passes the specified condition.

.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation row_condition_expectation = 200;

Parameter
NameDescription
builderForValueDataQualityRule.RowConditionExpectation.Builder
Returns
TypeDescription
DataQualityRule.Builder

setSetExpectation(DataQualityRule.SetExpectation value)

public DataQualityRule.Builder setSetExpectation(DataQualityRule.SetExpectation value)

Row-level rule which evaluates whether each column value is contained by a specified set.

.google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3;

Parameter
NameDescription
valueDataQualityRule.SetExpectation
Returns
TypeDescription
DataQualityRule.Builder

setSetExpectation(DataQualityRule.SetExpectation.Builder builderForValue)

public DataQualityRule.Builder setSetExpectation(DataQualityRule.SetExpectation.Builder builderForValue)

Row-level rule which evaluates whether each column value is contained by a specified set.

.google.cloud.dataplex.v1.DataQualityRule.SetExpectation set_expectation = 3;

Parameter
NameDescription
builderForValueDataQualityRule.SetExpectation.Builder
Returns
TypeDescription
DataQualityRule.Builder

setStatisticRangeExpectation(DataQualityRule.StatisticRangeExpectation value)

public DataQualityRule.Builder setStatisticRangeExpectation(DataQualityRule.StatisticRangeExpectation value)

Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101;

Parameter
NameDescription
valueDataQualityRule.StatisticRangeExpectation
Returns
TypeDescription
DataQualityRule.Builder

setStatisticRangeExpectation(DataQualityRule.StatisticRangeExpectation.Builder builderForValue)

public DataQualityRule.Builder setStatisticRangeExpectation(DataQualityRule.StatisticRangeExpectation.Builder builderForValue)

Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range.

.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation statistic_range_expectation = 101;

Parameter
NameDescription
builderForValueDataQualityRule.StatisticRangeExpectation.Builder
Returns
TypeDescription
DataQualityRule.Builder

setTableConditionExpectation(DataQualityRule.TableConditionExpectation value)

public DataQualityRule.Builder setTableConditionExpectation(DataQualityRule.TableConditionExpectation value)

Aggregate rule which evaluates whether the provided expression is true for a table.

.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201;

Parameter
NameDescription
valueDataQualityRule.TableConditionExpectation
Returns
TypeDescription
DataQualityRule.Builder

setTableConditionExpectation(DataQualityRule.TableConditionExpectation.Builder builderForValue)

public DataQualityRule.Builder setTableConditionExpectation(DataQualityRule.TableConditionExpectation.Builder builderForValue)

Aggregate rule which evaluates whether the provided expression is true for a table.

.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation table_condition_expectation = 201;

Parameter
NameDescription
builderForValueDataQualityRule.TableConditionExpectation.Builder
Returns
TypeDescription
DataQualityRule.Builder

setThreshold(double value)

public DataQualityRule.Builder setThreshold(double value)

Optional. The minimum ratio of passing_rows / total_rows required to pass this rule, with a range of [0.0, 1.0].

0 indicates default value (i.e. 1.0).

This field is only valid for row-level type rules.

double threshold = 503 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuedouble

The threshold to set.

Returns
TypeDescription
DataQualityRule.Builder

This builder for chaining.

setUniquenessExpectation(DataQualityRule.UniquenessExpectation value)

public DataQualityRule.Builder setUniquenessExpectation(DataQualityRule.UniquenessExpectation value)

Row-level rule which evaluates whether each column value is unique.

.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100;

Parameter
NameDescription
valueDataQualityRule.UniquenessExpectation
Returns
TypeDescription
DataQualityRule.Builder

setUniquenessExpectation(DataQualityRule.UniquenessExpectation.Builder builderForValue)

public DataQualityRule.Builder setUniquenessExpectation(DataQualityRule.UniquenessExpectation.Builder builderForValue)

Row-level rule which evaluates whether each column value is unique.

.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100;

Parameter
NameDescription
builderForValueDataQualityRule.UniquenessExpectation.Builder
Returns
TypeDescription
DataQualityRule.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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