Class DataQualityRule.Builder

  • All Implemented Interfaces:
    DataQualityRuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    DataQualityRule

    public static final class DataQualityRule.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DataQualityRule.Builder>
    implements DataQualityRuleOrBuilder
     A rule captures data quality intent about a data source.
     
    Protobuf type google.cloud.dataplex.v1.DataQualityRule
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DataQualityRule.Builder>
      • clear

        public DataQualityRule.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.GeneratedMessageV3.Builder<DataQualityRule.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.GeneratedMessageV3.Builder<DataQualityRule.Builder>
      • getDefaultInstanceForType

        public DataQualityRule getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public DataQualityRule build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public DataQualityRule buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public DataQualityRule.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DataQualityRule.Builder>
      • setField

        public DataQualityRule.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DataQualityRule.Builder>
      • clearField

        public DataQualityRule.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DataQualityRule.Builder>
      • clearOneof

        public DataQualityRule.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DataQualityRule.Builder>
      • setRepeatedField

        public DataQualityRule.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DataQualityRule.Builder>
      • addRepeatedField

        public DataQualityRule.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DataQualityRule.Builder>
      • mergeFrom

        public DataQualityRule.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<DataQualityRule.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DataQualityRule.Builder>
      • mergeFrom

        public DataQualityRule.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<DataQualityRule.Builder>
        Throws:
        IOException
      • 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;
        Specified by:
        hasRangeExpectation in interface DataQualityRuleOrBuilder
        Returns:
        Whether the rangeExpectation field is set.
      • setRangeExpectation

        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;
      • mergeRangeExpectation

        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;
      • 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;
      • 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;
      • 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;
        Specified by:
        hasNonNullExpectation in interface DataQualityRuleOrBuilder
        Returns:
        Whether the nonNullExpectation field is set.
      • 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;
      • 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;
      • 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;
        Specified by:
        hasSetExpectation in interface DataQualityRuleOrBuilder
        Returns:
        Whether the setExpectation field is set.
      • setSetExpectation

        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;
      • mergeSetExpectation

        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;
      • 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;
      • 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;
      • 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;
        Specified by:
        hasRegexExpectation in interface DataQualityRuleOrBuilder
        Returns:
        Whether the regexExpectation field is set.
      • setRegexExpectation

        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;
      • mergeRegexExpectation

        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;
      • 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;
      • 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;
      • hasUniquenessExpectation

        public boolean hasUniquenessExpectation()
         Row-level rule which evaluates whether each column value is unique.
         
        .google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation uniqueness_expectation = 100;
        Specified by:
        hasUniquenessExpectation in interface DataQualityRuleOrBuilder
        Returns:
        Whether the uniquenessExpectation field is set.
      • 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;
      • 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;
      • 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;
        Specified by:
        hasStatisticRangeExpectation in interface DataQualityRuleOrBuilder
        Returns:
        Whether the statisticRangeExpectation field is set.
      • setStatisticRangeExpectation

        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;
      • setStatisticRangeExpectation

        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;
      • mergeStatisticRangeExpectation

        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;
      • 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;
      • 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;
      • 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;
        Specified by:
        hasRowConditionExpectation in interface DataQualityRuleOrBuilder
        Returns:
        Whether the rowConditionExpectation field is set.
      • setRowConditionExpectation

        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;
      • mergeRowConditionExpectation

        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;
      • 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;
      • 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;
      • 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;
        Specified by:
        hasTableConditionExpectation in interface DataQualityRuleOrBuilder
        Returns:
        Whether the tableConditionExpectation field is set.
      • setTableConditionExpectation

        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;
      • mergeTableConditionExpectation

        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;
      • 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;
      • 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;
      • getColumn

        public String getColumn()
         Optional. The unnested column which this rule is evaluated against.
         
        string column = 500 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getColumn in interface DataQualityRuleOrBuilder
        Returns:
        The column.
      • getColumnBytes

        public com.google.protobuf.ByteString getColumnBytes()
         Optional. The unnested column which this rule is evaluated against.
         
        string column = 500 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getColumnBytes in interface DataQualityRuleOrBuilder
        Returns:
        The bytes for column.
      • setColumn

        public DataQualityRule.Builder setColumn​(String value)
         Optional. The unnested column which this rule is evaluated against.
         
        string column = 500 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The column to set.
        Returns:
        This builder for chaining.
      • clearColumn

        public DataQualityRule.Builder clearColumn()
         Optional. The unnested column which this rule is evaluated against.
         
        string column = 500 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setColumnBytes

        public DataQualityRule.Builder setColumnBytes​(com.google.protobuf.ByteString value)
         Optional. The unnested column which this rule is evaluated against.
         
        string column = 500 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for column to set.
        Returns:
        This builder for chaining.
      • 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 row-level type rules.
         
        bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getIgnoreNull in interface DataQualityRuleOrBuilder
        Returns:
        The ignoreNull.
      • setIgnoreNull

        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 row-level type rules.
         
        bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The ignoreNull to set.
        Returns:
        This builder for chaining.
      • 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 row-level type rules.
         
        bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getDimension in interface DataQualityRuleOrBuilder
        Returns:
        The dimension.
      • getDimensionBytes

        public com.google.protobuf.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];
        Specified by:
        getDimensionBytes in interface DataQualityRuleOrBuilder
        Returns:
        The bytes for dimension.
      • setDimension

        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];
        Parameters:
        value - The dimension to set.
        Returns:
        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:
        This builder for chaining.
      • setDimensionBytes

        public DataQualityRule.Builder setDimensionBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for dimension to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        getThreshold in interface DataQualityRuleOrBuilder
        Returns:
        The threshold.
      • setThreshold

        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];
        Parameters:
        value - The threshold to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • 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];
        Specified by:
        getName in interface DataQualityRuleOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.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];
        Specified by:
        getNameBytes in interface DataQualityRuleOrBuilder
        Returns:
        The bytes for name.
      • setName

        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];
        Parameters:
        value - The name to set.
        Returns:
        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:
        This builder for chaining.
      • setNameBytes

        public DataQualityRule.Builder setNameBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDescription

        public String getDescription()
         Optional. Description of the rule.
        
         * The maximum length is 1,024 characters.
         
        string description = 505 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescription in interface DataQualityRuleOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Optional. Description of the rule.
        
         * The maximum length is 1,024 characters.
         
        string description = 505 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescriptionBytes in interface DataQualityRuleOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        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];
        Parameters:
        value - The description to set.
        Returns:
        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:
        This builder for chaining.
      • setDescriptionBytes

        public DataQualityRule.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Optional. Description of the rule.
        
         * The maximum length is 1,024 characters.
         
        string description = 505 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final DataQualityRule.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DataQualityRule.Builder>
      • mergeUnknownFields

        public final DataQualityRule.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DataQualityRule.Builder>