Class DataQualityScanRuleResult.Builder

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

public static final class DataQualityScanRuleResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataQualityScanRuleResult.Builder> implements DataQualityScanRuleResultOrBuilder
 Information about the result of a data quality rule for data quality scan.
 The monitored resource is 'DataScan'.
 
Protobuf type google.cloud.dataplex.v1.DataQualityScanRuleResult
  • Method Details

    • getDescriptor

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

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

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DataQualityScanRuleResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DataQualityScanRuleResult.Builder>
    • getDefaultInstanceForType

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

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

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

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

    • isInitialized

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

      public DataQualityScanRuleResult.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<DataQualityScanRuleResult.Builder>
      Throws:
      IOException
    • getJobId

      public String getJobId()
       Identifier of the specific data scan job this log entry is for.
       
      string job_id = 1;
      Specified by:
      getJobId in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The jobId.
    • getJobIdBytes

      public com.google.protobuf.ByteString getJobIdBytes()
       Identifier of the specific data scan job this log entry is for.
       
      string job_id = 1;
      Specified by:
      getJobIdBytes in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The bytes for jobId.
    • setJobId

      public DataQualityScanRuleResult.Builder setJobId(String value)
       Identifier of the specific data scan job this log entry is for.
       
      string job_id = 1;
      Parameters:
      value - The jobId to set.
      Returns:
      This builder for chaining.
    • clearJobId

      public DataQualityScanRuleResult.Builder clearJobId()
       Identifier of the specific data scan job this log entry is for.
       
      string job_id = 1;
      Returns:
      This builder for chaining.
    • setJobIdBytes

      public DataQualityScanRuleResult.Builder setJobIdBytes(com.google.protobuf.ByteString value)
       Identifier of the specific data scan job this log entry is for.
       
      string job_id = 1;
      Parameters:
      value - The bytes for jobId to set.
      Returns:
      This builder for chaining.
    • getDataSource

      public String getDataSource()
       The data source of the data scan (e.g. BigQuery table name).
       
      string data_source = 2;
      Specified by:
      getDataSource in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The dataSource.
    • getDataSourceBytes

      public com.google.protobuf.ByteString getDataSourceBytes()
       The data source of the data scan (e.g. BigQuery table name).
       
      string data_source = 2;
      Specified by:
      getDataSourceBytes in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The bytes for dataSource.
    • setDataSource

      public DataQualityScanRuleResult.Builder setDataSource(String value)
       The data source of the data scan (e.g. BigQuery table name).
       
      string data_source = 2;
      Parameters:
      value - The dataSource to set.
      Returns:
      This builder for chaining.
    • clearDataSource

      public DataQualityScanRuleResult.Builder clearDataSource()
       The data source of the data scan (e.g. BigQuery table name).
       
      string data_source = 2;
      Returns:
      This builder for chaining.
    • setDataSourceBytes

      public DataQualityScanRuleResult.Builder setDataSourceBytes(com.google.protobuf.ByteString value)
       The data source of the data scan (e.g. BigQuery table name).
       
      string data_source = 2;
      Parameters:
      value - The bytes for dataSource to set.
      Returns:
      This builder for chaining.
    • getColumn

      public String getColumn()
       The column which this rule is evaluated against.
       
      string column = 3;
      Specified by:
      getColumn in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The column.
    • getColumnBytes

      public com.google.protobuf.ByteString getColumnBytes()
       The column which this rule is evaluated against.
       
      string column = 3;
      Specified by:
      getColumnBytes in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The bytes for column.
    • setColumn

      public DataQualityScanRuleResult.Builder setColumn(String value)
       The column which this rule is evaluated against.
       
      string column = 3;
      Parameters:
      value - The column to set.
      Returns:
      This builder for chaining.
    • clearColumn

      public DataQualityScanRuleResult.Builder clearColumn()
       The column which this rule is evaluated against.
       
      string column = 3;
      Returns:
      This builder for chaining.
    • setColumnBytes

      public DataQualityScanRuleResult.Builder setColumnBytes(com.google.protobuf.ByteString value)
       The column which this rule is evaluated against.
       
      string column = 3;
      Parameters:
      value - The bytes for column to set.
      Returns:
      This builder for chaining.
    • getRuleName

      public String getRuleName()
       The name of the data quality rule.
       
      string rule_name = 4;
      Specified by:
      getRuleName in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The ruleName.
    • getRuleNameBytes

      public com.google.protobuf.ByteString getRuleNameBytes()
       The name of the data quality rule.
       
      string rule_name = 4;
      Specified by:
      getRuleNameBytes in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The bytes for ruleName.
    • setRuleName

      public DataQualityScanRuleResult.Builder setRuleName(String value)
       The name of the data quality rule.
       
      string rule_name = 4;
      Parameters:
      value - The ruleName to set.
      Returns:
      This builder for chaining.
    • clearRuleName

      public DataQualityScanRuleResult.Builder clearRuleName()
       The name of the data quality rule.
       
      string rule_name = 4;
      Returns:
      This builder for chaining.
    • setRuleNameBytes

      public DataQualityScanRuleResult.Builder setRuleNameBytes(com.google.protobuf.ByteString value)
       The name of the data quality rule.
       
      string rule_name = 4;
      Parameters:
      value - The bytes for ruleName to set.
      Returns:
      This builder for chaining.
    • getRuleTypeValue

      public int getRuleTypeValue()
       The type of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5;
      Specified by:
      getRuleTypeValue in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The enum numeric value on the wire for ruleType.
    • setRuleTypeValue

      public DataQualityScanRuleResult.Builder setRuleTypeValue(int value)
       The type of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5;
      Parameters:
      value - The enum numeric value on the wire for ruleType to set.
      Returns:
      This builder for chaining.
    • getRuleType

      public DataQualityScanRuleResult.RuleType getRuleType()
       The type of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5;
      Specified by:
      getRuleType in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The ruleType.
    • setRuleType

       The type of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5;
      Parameters:
      value - The ruleType to set.
      Returns:
      This builder for chaining.
    • clearRuleType

      public DataQualityScanRuleResult.Builder clearRuleType()
       The type of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5;
      Returns:
      This builder for chaining.
    • getEvalutionTypeValue

      public int getEvalutionTypeValue()
       The evaluation type of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6;
      Specified by:
      getEvalutionTypeValue in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The enum numeric value on the wire for evalutionType.
    • setEvalutionTypeValue

      public DataQualityScanRuleResult.Builder setEvalutionTypeValue(int value)
       The evaluation type of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6;
      Parameters:
      value - The enum numeric value on the wire for evalutionType to set.
      Returns:
      This builder for chaining.
    • getEvalutionType

      public DataQualityScanRuleResult.EvaluationType getEvalutionType()
       The evaluation type of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6;
      Specified by:
      getEvalutionType in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The evalutionType.
    • setEvalutionType

       The evaluation type of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6;
      Parameters:
      value - The evalutionType to set.
      Returns:
      This builder for chaining.
    • clearEvalutionType

      public DataQualityScanRuleResult.Builder clearEvalutionType()
       The evaluation type of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6;
      Returns:
      This builder for chaining.
    • getRuleDimension

      public String getRuleDimension()
       The dimension of the data quality rule.
       
      string rule_dimension = 7;
      Specified by:
      getRuleDimension in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The ruleDimension.
    • getRuleDimensionBytes

      public com.google.protobuf.ByteString getRuleDimensionBytes()
       The dimension of the data quality rule.
       
      string rule_dimension = 7;
      Specified by:
      getRuleDimensionBytes in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The bytes for ruleDimension.
    • setRuleDimension

      public DataQualityScanRuleResult.Builder setRuleDimension(String value)
       The dimension of the data quality rule.
       
      string rule_dimension = 7;
      Parameters:
      value - The ruleDimension to set.
      Returns:
      This builder for chaining.
    • clearRuleDimension

      public DataQualityScanRuleResult.Builder clearRuleDimension()
       The dimension of the data quality rule.
       
      string rule_dimension = 7;
      Returns:
      This builder for chaining.
    • setRuleDimensionBytes

      public DataQualityScanRuleResult.Builder setRuleDimensionBytes(com.google.protobuf.ByteString value)
       The dimension of the data quality rule.
       
      string rule_dimension = 7;
      Parameters:
      value - The bytes for ruleDimension to set.
      Returns:
      This builder for chaining.
    • getThresholdPercent

      public double getThresholdPercent()
       The passing threshold ([0.0, 100.0]) of the data quality rule.
       
      double threshold_percent = 8;
      Specified by:
      getThresholdPercent in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The thresholdPercent.
    • setThresholdPercent

      public DataQualityScanRuleResult.Builder setThresholdPercent(double value)
       The passing threshold ([0.0, 100.0]) of the data quality rule.
       
      double threshold_percent = 8;
      Parameters:
      value - The thresholdPercent to set.
      Returns:
      This builder for chaining.
    • clearThresholdPercent

      public DataQualityScanRuleResult.Builder clearThresholdPercent()
       The passing threshold ([0.0, 100.0]) of the data quality rule.
       
      double threshold_percent = 8;
      Returns:
      This builder for chaining.
    • getResultValue

      public int getResultValue()
       The result of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9;
      Specified by:
      getResultValue in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The enum numeric value on the wire for result.
    • setResultValue

      public DataQualityScanRuleResult.Builder setResultValue(int value)
       The result of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9;
      Parameters:
      value - The enum numeric value on the wire for result to set.
      Returns:
      This builder for chaining.
    • getResult

       The result of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9;
      Specified by:
      getResult in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The result.
    • setResult

       The result of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9;
      Parameters:
      value - The result to set.
      Returns:
      This builder for chaining.
    • clearResult

      public DataQualityScanRuleResult.Builder clearResult()
       The result of the data quality rule.
       
      .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9;
      Returns:
      This builder for chaining.
    • getEvaluatedRowCount

      public long getEvaluatedRowCount()
       The number of rows evaluated against the data quality rule.
       This field is only valid for rules of PER_ROW evaluation type.
       
      int64 evaluated_row_count = 10;
      Specified by:
      getEvaluatedRowCount in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The evaluatedRowCount.
    • setEvaluatedRowCount

      public DataQualityScanRuleResult.Builder setEvaluatedRowCount(long value)
       The number of rows evaluated against the data quality rule.
       This field is only valid for rules of PER_ROW evaluation type.
       
      int64 evaluated_row_count = 10;
      Parameters:
      value - The evaluatedRowCount to set.
      Returns:
      This builder for chaining.
    • clearEvaluatedRowCount

      public DataQualityScanRuleResult.Builder clearEvaluatedRowCount()
       The number of rows evaluated against the data quality rule.
       This field is only valid for rules of PER_ROW evaluation type.
       
      int64 evaluated_row_count = 10;
      Returns:
      This builder for chaining.
    • getPassedRowCount

      public long getPassedRowCount()
       The number of rows which passed a rule evaluation.
       This field is only valid for rules of PER_ROW evaluation type.
       
      int64 passed_row_count = 11;
      Specified by:
      getPassedRowCount in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The passedRowCount.
    • setPassedRowCount

      public DataQualityScanRuleResult.Builder setPassedRowCount(long value)
       The number of rows which passed a rule evaluation.
       This field is only valid for rules of PER_ROW evaluation type.
       
      int64 passed_row_count = 11;
      Parameters:
      value - The passedRowCount to set.
      Returns:
      This builder for chaining.
    • clearPassedRowCount

      public DataQualityScanRuleResult.Builder clearPassedRowCount()
       The number of rows which passed a rule evaluation.
       This field is only valid for rules of PER_ROW evaluation type.
       
      int64 passed_row_count = 11;
      Returns:
      This builder for chaining.
    • getNullRowCount

      public long getNullRowCount()
       The number of rows with null values in the specified column.
       
      int64 null_row_count = 12;
      Specified by:
      getNullRowCount in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The nullRowCount.
    • setNullRowCount

      public DataQualityScanRuleResult.Builder setNullRowCount(long value)
       The number of rows with null values in the specified column.
       
      int64 null_row_count = 12;
      Parameters:
      value - The nullRowCount to set.
      Returns:
      This builder for chaining.
    • clearNullRowCount

      public DataQualityScanRuleResult.Builder clearNullRowCount()
       The number of rows with null values in the specified column.
       
      int64 null_row_count = 12;
      Returns:
      This builder for chaining.
    • getAssertionRowCount

      public long getAssertionRowCount()
       The number of rows returned by the SQL statement in a SQL assertion rule.
       This field is only valid for SQL assertion rules.
       
      int64 assertion_row_count = 13;
      Specified by:
      getAssertionRowCount in interface DataQualityScanRuleResultOrBuilder
      Returns:
      The assertionRowCount.
    • setAssertionRowCount

      public DataQualityScanRuleResult.Builder setAssertionRowCount(long value)
       The number of rows returned by the SQL statement in a SQL assertion rule.
       This field is only valid for SQL assertion rules.
       
      int64 assertion_row_count = 13;
      Parameters:
      value - The assertionRowCount to set.
      Returns:
      This builder for chaining.
    • clearAssertionRowCount

      public DataQualityScanRuleResult.Builder clearAssertionRowCount()
       The number of rows returned by the SQL statement in a SQL assertion rule.
       This field is only valid for SQL assertion rules.
       
      int64 assertion_row_count = 13;
      Returns:
      This builder for chaining.