All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataplex.v1.DataQualityScanRuleResult Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dataplex/v1/logs.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.dataplex.v1;

/**
 *
 *
 * 
 * Information about the result of a data quality rule for data quality scan.
 * The monitored resource is 'DataScan'.
 * 
* * Protobuf type {@code google.cloud.dataplex.v1.DataQualityScanRuleResult} */ public final class DataQualityScanRuleResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityScanRuleResult) DataQualityScanRuleResultOrBuilder { private static final long serialVersionUID = 0L; // Use DataQualityScanRuleResult.newBuilder() to construct. private DataQualityScanRuleResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DataQualityScanRuleResult() { jobId_ = ""; dataSource_ = ""; column_ = ""; ruleName_ = ""; ruleType_ = 0; evalutionType_ = 0; ruleDimension_ = ""; result_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataQualityScanRuleResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_DataQualityScanRuleResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_DataQualityScanRuleResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.DataQualityScanRuleResult.class, com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Builder.class); } /** * * *
   * The type of the data quality rule.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType} */ public enum RuleType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * An unspecified rule type.
     * 
* * RULE_TYPE_UNSPECIFIED = 0; */ RULE_TYPE_UNSPECIFIED(0), /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#nonnullexpectation.
     * 
* * NON_NULL_EXPECTATION = 1; */ NON_NULL_EXPECTATION(1), /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rangeexpectation.
     * 
* * RANGE_EXPECTATION = 2; */ RANGE_EXPECTATION(2), /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#regexexpectation.
     * 
* * REGEX_EXPECTATION = 3; */ REGEX_EXPECTATION(3), /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rowconditionexpectation.
     * 
* * ROW_CONDITION_EXPECTATION = 4; */ ROW_CONDITION_EXPECTATION(4), /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#setexpectation.
     * 
* * SET_EXPECTATION = 5; */ SET_EXPECTATION(5), /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#statisticrangeexpectation.
     * 
* * STATISTIC_RANGE_EXPECTATION = 6; */ STATISTIC_RANGE_EXPECTATION(6), /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#tableconditionexpectation.
     * 
* * TABLE_CONDITION_EXPECTATION = 7; */ TABLE_CONDITION_EXPECTATION(7), /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#uniquenessexpectation.
     * 
* * UNIQUENESS_EXPECTATION = 8; */ UNIQUENESS_EXPECTATION(8), /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#sqlAssertion.
     * 
* * SQL_ASSERTION = 9; */ SQL_ASSERTION(9), UNRECOGNIZED(-1), ; /** * * *
     * An unspecified rule type.
     * 
* * RULE_TYPE_UNSPECIFIED = 0; */ public static final int RULE_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#nonnullexpectation.
     * 
* * NON_NULL_EXPECTATION = 1; */ public static final int NON_NULL_EXPECTATION_VALUE = 1; /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rangeexpectation.
     * 
* * RANGE_EXPECTATION = 2; */ public static final int RANGE_EXPECTATION_VALUE = 2; /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#regexexpectation.
     * 
* * REGEX_EXPECTATION = 3; */ public static final int REGEX_EXPECTATION_VALUE = 3; /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#rowconditionexpectation.
     * 
* * ROW_CONDITION_EXPECTATION = 4; */ public static final int ROW_CONDITION_EXPECTATION_VALUE = 4; /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#setexpectation.
     * 
* * SET_EXPECTATION = 5; */ public static final int SET_EXPECTATION_VALUE = 5; /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#statisticrangeexpectation.
     * 
* * STATISTIC_RANGE_EXPECTATION = 6; */ public static final int STATISTIC_RANGE_EXPECTATION_VALUE = 6; /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#tableconditionexpectation.
     * 
* * TABLE_CONDITION_EXPECTATION = 7; */ public static final int TABLE_CONDITION_EXPECTATION_VALUE = 7; /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#uniquenessexpectation.
     * 
* * UNIQUENESS_EXPECTATION = 8; */ public static final int UNIQUENESS_EXPECTATION_VALUE = 8; /** * * *
     * Please see
     * https://cloud.google.com/dataplex/docs/reference/rest/v1/DataQualityRule#sqlAssertion.
     * 
* * SQL_ASSERTION = 9; */ public static final int SQL_ASSERTION_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RuleType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static RuleType forNumber(int value) { switch (value) { case 0: return RULE_TYPE_UNSPECIFIED; case 1: return NON_NULL_EXPECTATION; case 2: return RANGE_EXPECTATION; case 3: return REGEX_EXPECTATION; case 4: return ROW_CONDITION_EXPECTATION; case 5: return SET_EXPECTATION; case 6: return STATISTIC_RANGE_EXPECTATION; case 7: return TABLE_CONDITION_EXPECTATION; case 8: return UNIQUENESS_EXPECTATION; case 9: return SQL_ASSERTION; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RuleType findValueByNumber(int number) { return RuleType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataplex.v1.DataQualityScanRuleResult.getDescriptor() .getEnumTypes() .get(0); } private static final RuleType[] VALUES = values(); public static RuleType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private RuleType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType) } /** * * *
   * The evaluation type of the data quality rule.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType} */ public enum EvaluationType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * An unspecified evaluation type.
     * 
* * EVALUATION_TYPE_UNSPECIFIED = 0; */ EVALUATION_TYPE_UNSPECIFIED(0), /** * * *
     * The rule evaluation is done at per row level.
     * 
* * PER_ROW = 1; */ PER_ROW(1), /** * * *
     * The rule evaluation is done for an aggregate of rows.
     * 
* * AGGREGATE = 2; */ AGGREGATE(2), UNRECOGNIZED(-1), ; /** * * *
     * An unspecified evaluation type.
     * 
* * EVALUATION_TYPE_UNSPECIFIED = 0; */ public static final int EVALUATION_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * The rule evaluation is done at per row level.
     * 
* * PER_ROW = 1; */ public static final int PER_ROW_VALUE = 1; /** * * *
     * The rule evaluation is done for an aggregate of rows.
     * 
* * AGGREGATE = 2; */ public static final int AGGREGATE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EvaluationType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static EvaluationType forNumber(int value) { switch (value) { case 0: return EVALUATION_TYPE_UNSPECIFIED; case 1: return PER_ROW; case 2: return AGGREGATE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public EvaluationType findValueByNumber(int number) { return EvaluationType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataplex.v1.DataQualityScanRuleResult.getDescriptor() .getEnumTypes() .get(1); } private static final EvaluationType[] VALUES = values(); public static EvaluationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private EvaluationType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType) } /** * * *
   * Whether the data quality rule passed or failed.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.DataQualityScanRuleResult.Result} */ public enum Result implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * An unspecified result.
     * 
* * RESULT_UNSPECIFIED = 0; */ RESULT_UNSPECIFIED(0), /** * * *
     * The data quality rule passed.
     * 
* * PASSED = 1; */ PASSED(1), /** * * *
     * The data quality rule failed.
     * 
* * FAILED = 2; */ FAILED(2), UNRECOGNIZED(-1), ; /** * * *
     * An unspecified result.
     * 
* * RESULT_UNSPECIFIED = 0; */ public static final int RESULT_UNSPECIFIED_VALUE = 0; /** * * *
     * The data quality rule passed.
     * 
* * PASSED = 1; */ public static final int PASSED_VALUE = 1; /** * * *
     * The data quality rule failed.
     * 
* * FAILED = 2; */ public static final int FAILED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Result valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Result forNumber(int value) { switch (value) { case 0: return RESULT_UNSPECIFIED; case 1: return PASSED; case 2: return FAILED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Result findValueByNumber(int number) { return Result.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dataplex.v1.DataQualityScanRuleResult.getDescriptor() .getEnumTypes() .get(2); } private static final Result[] VALUES = values(); public static Result valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Result(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataQualityScanRuleResult.Result) } public static final int JOB_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object jobId_ = ""; /** * * *
   * Identifier of the specific data scan job this log entry is for.
   * 
* * string job_id = 1; * * @return The jobId. */ @java.lang.Override public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** * * *
   * Identifier of the specific data scan job this log entry is for.
   * 
* * string job_id = 1; * * @return The bytes for jobId. */ @java.lang.Override public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_SOURCE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object dataSource_ = ""; /** * * *
   * The data source of the data scan (e.g. BigQuery table name).
   * 
* * string data_source = 2; * * @return The dataSource. */ @java.lang.Override public java.lang.String getDataSource() { java.lang.Object ref = dataSource_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSource_ = s; return s; } } /** * * *
   * The data source of the data scan (e.g. BigQuery table name).
   * 
* * string data_source = 2; * * @return The bytes for dataSource. */ @java.lang.Override public com.google.protobuf.ByteString getDataSourceBytes() { java.lang.Object ref = dataSource_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataSource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLUMN_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object column_ = ""; /** * * *
   * The column which this rule is evaluated against.
   * 
* * string column = 3; * * @return The column. */ @java.lang.Override public java.lang.String getColumn() { java.lang.Object ref = column_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; } } /** * * *
   * The column which this rule is evaluated against.
   * 
* * string column = 3; * * @return The bytes for column. */ @java.lang.Override public com.google.protobuf.ByteString getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); column_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RULE_NAME_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object ruleName_ = ""; /** * * *
   * The name of the data quality rule.
   * 
* * string rule_name = 4; * * @return The ruleName. */ @java.lang.Override public java.lang.String getRuleName() { java.lang.Object ref = ruleName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleName_ = s; return s; } } /** * * *
   * The name of the data quality rule.
   * 
* * string rule_name = 4; * * @return The bytes for ruleName. */ @java.lang.Override public com.google.protobuf.ByteString getRuleNameBytes() { java.lang.Object ref = ruleName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ruleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RULE_TYPE_FIELD_NUMBER = 5; private int ruleType_ = 0; /** * * *
   * The type of the data quality rule.
   * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; * * @return The enum numeric value on the wire for ruleType. */ @java.lang.Override public int getRuleTypeValue() { return ruleType_; } /** * * *
   * The type of the data quality rule.
   * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; * * @return The ruleType. */ @java.lang.Override public com.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType getRuleType() { com.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType result = com.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType.forNumber(ruleType_); return result == null ? com.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType.UNRECOGNIZED : result; } public static final int EVALUTION_TYPE_FIELD_NUMBER = 6; private int evalutionType_ = 0; /** * * *
   * The evaluation type of the data quality rule.
   * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; * * * @return The enum numeric value on the wire for evalutionType. */ @java.lang.Override public int getEvalutionTypeValue() { return evalutionType_; } /** * * *
   * The evaluation type of the data quality rule.
   * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; * * * @return The evalutionType. */ @java.lang.Override public com.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType getEvalutionType() { com.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType result = com.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType.forNumber( evalutionType_); return result == null ? com.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType.UNRECOGNIZED : result; } public static final int RULE_DIMENSION_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object ruleDimension_ = ""; /** * * *
   * The dimension of the data quality rule.
   * 
* * string rule_dimension = 7; * * @return The ruleDimension. */ @java.lang.Override public java.lang.String getRuleDimension() { java.lang.Object ref = ruleDimension_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleDimension_ = s; return s; } } /** * * *
   * The dimension of the data quality rule.
   * 
* * string rule_dimension = 7; * * @return The bytes for ruleDimension. */ @java.lang.Override public com.google.protobuf.ByteString getRuleDimensionBytes() { java.lang.Object ref = ruleDimension_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ruleDimension_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int THRESHOLD_PERCENT_FIELD_NUMBER = 8; private double thresholdPercent_ = 0D; /** * * *
   * The passing threshold ([0.0, 100.0]) of the data quality rule.
   * 
* * double threshold_percent = 8; * * @return The thresholdPercent. */ @java.lang.Override public double getThresholdPercent() { return thresholdPercent_; } public static final int RESULT_FIELD_NUMBER = 9; private int result_ = 0; /** * * *
   * The result of the data quality rule.
   * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; * * @return The enum numeric value on the wire for result. */ @java.lang.Override public int getResultValue() { return result_; } /** * * *
   * The result of the data quality rule.
   * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; * * @return The result. */ @java.lang.Override public com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result getResult() { com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result.forNumber(result_); return result == null ? com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result.UNRECOGNIZED : result; } public static final int EVALUATED_ROW_COUNT_FIELD_NUMBER = 10; private long evaluatedRowCount_ = 0L; /** * * *
   * 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; * * @return The evaluatedRowCount. */ @java.lang.Override public long getEvaluatedRowCount() { return evaluatedRowCount_; } public static final int PASSED_ROW_COUNT_FIELD_NUMBER = 11; private long passedRowCount_ = 0L; /** * * *
   * 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; * * @return The passedRowCount. */ @java.lang.Override public long getPassedRowCount() { return passedRowCount_; } public static final int NULL_ROW_COUNT_FIELD_NUMBER = 12; private long nullRowCount_ = 0L; /** * * *
   * The number of rows with null values in the specified column.
   * 
* * int64 null_row_count = 12; * * @return The nullRowCount. */ @java.lang.Override public long getNullRowCount() { return nullRowCount_; } public static final int ASSERTION_ROW_COUNT_FIELD_NUMBER = 13; private long assertionRowCount_ = 0L; /** * * *
   * The number of rows returned by the sql statement in the SqlAssertion rule.
   * This field is only valid for SqlAssertion rules.
   * 
* * int64 assertion_row_count = 13; * * @return The assertionRowCount. */ @java.lang.Override public long getAssertionRowCount() { return assertionRowCount_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataSource_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, column_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ruleName_); } if (ruleType_ != com.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType.RULE_TYPE_UNSPECIFIED .getNumber()) { output.writeEnum(5, ruleType_); } if (evalutionType_ != com.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType .EVALUATION_TYPE_UNSPECIFIED .getNumber()) { output.writeEnum(6, evalutionType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleDimension_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, ruleDimension_); } if (java.lang.Double.doubleToRawLongBits(thresholdPercent_) != 0) { output.writeDouble(8, thresholdPercent_); } if (result_ != com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result.RESULT_UNSPECIFIED .getNumber()) { output.writeEnum(9, result_); } if (evaluatedRowCount_ != 0L) { output.writeInt64(10, evaluatedRowCount_); } if (passedRowCount_ != 0L) { output.writeInt64(11, passedRowCount_); } if (nullRowCount_ != 0L) { output.writeInt64(12, nullRowCount_); } if (assertionRowCount_ != 0L) { output.writeInt64(13, assertionRowCount_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataSource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataSource_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, column_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, ruleName_); } if (ruleType_ != com.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType.RULE_TYPE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, ruleType_); } if (evalutionType_ != com.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType .EVALUATION_TYPE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, evalutionType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleDimension_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, ruleDimension_); } if (java.lang.Double.doubleToRawLongBits(thresholdPercent_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, thresholdPercent_); } if (result_ != com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result.RESULT_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, result_); } if (evaluatedRowCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, evaluatedRowCount_); } if (passedRowCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, passedRowCount_); } if (nullRowCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(12, nullRowCount_); } if (assertionRowCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(13, assertionRowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.dataplex.v1.DataQualityScanRuleResult)) { return super.equals(obj); } com.google.cloud.dataplex.v1.DataQualityScanRuleResult other = (com.google.cloud.dataplex.v1.DataQualityScanRuleResult) obj; if (!getJobId().equals(other.getJobId())) return false; if (!getDataSource().equals(other.getDataSource())) return false; if (!getColumn().equals(other.getColumn())) return false; if (!getRuleName().equals(other.getRuleName())) return false; if (ruleType_ != other.ruleType_) return false; if (evalutionType_ != other.evalutionType_) return false; if (!getRuleDimension().equals(other.getRuleDimension())) return false; if (java.lang.Double.doubleToLongBits(getThresholdPercent()) != java.lang.Double.doubleToLongBits(other.getThresholdPercent())) return false; if (result_ != other.result_) return false; if (getEvaluatedRowCount() != other.getEvaluatedRowCount()) return false; if (getPassedRowCount() != other.getPassedRowCount()) return false; if (getNullRowCount() != other.getNullRowCount()) return false; if (getAssertionRowCount() != other.getAssertionRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getJobId().hashCode(); hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getDataSource().hashCode(); hash = (37 * hash) + COLUMN_FIELD_NUMBER; hash = (53 * hash) + getColumn().hashCode(); hash = (37 * hash) + RULE_NAME_FIELD_NUMBER; hash = (53 * hash) + getRuleName().hashCode(); hash = (37 * hash) + RULE_TYPE_FIELD_NUMBER; hash = (53 * hash) + ruleType_; hash = (37 * hash) + EVALUTION_TYPE_FIELD_NUMBER; hash = (53 * hash) + evalutionType_; hash = (37 * hash) + RULE_DIMENSION_FIELD_NUMBER; hash = (53 * hash) + getRuleDimension().hashCode(); hash = (37 * hash) + THRESHOLD_PERCENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getThresholdPercent())); hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + result_; hash = (37 * hash) + EVALUATED_ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEvaluatedRowCount()); hash = (37 * hash) + PASSED_ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPassedRowCount()); hash = (37 * hash) + NULL_ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNullRowCount()); hash = (37 * hash) + ASSERTION_ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAssertionRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.cloud.dataplex.v1.DataQualityScanRuleResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Information about the result of a data quality rule for data quality scan.
   * The monitored resource is 'DataScan'.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.DataQualityScanRuleResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityScanRuleResult) com.google.cloud.dataplex.v1.DataQualityScanRuleResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_DataQualityScanRuleResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_DataQualityScanRuleResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.DataQualityScanRuleResult.class, com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Builder.class); } // Construct using com.google.cloud.dataplex.v1.DataQualityScanRuleResult.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; jobId_ = ""; dataSource_ = ""; column_ = ""; ruleName_ = ""; ruleType_ = 0; evalutionType_ = 0; ruleDimension_ = ""; thresholdPercent_ = 0D; result_ = 0; evaluatedRowCount_ = 0L; passedRowCount_ = 0L; nullRowCount_ = 0L; assertionRowCount_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_DataQualityScanRuleResult_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.DataQualityScanRuleResult getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.DataQualityScanRuleResult.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.DataQualityScanRuleResult build() { com.google.cloud.dataplex.v1.DataQualityScanRuleResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.DataQualityScanRuleResult buildPartial() { com.google.cloud.dataplex.v1.DataQualityScanRuleResult result = new com.google.cloud.dataplex.v1.DataQualityScanRuleResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.DataQualityScanRuleResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.jobId_ = jobId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.dataSource_ = dataSource_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.column_ = column_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.ruleName_ = ruleName_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.ruleType_ = ruleType_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.evalutionType_ = evalutionType_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.ruleDimension_ = ruleDimension_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.thresholdPercent_ = thresholdPercent_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.result_ = result_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.evaluatedRowCount_ = evaluatedRowCount_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.passedRowCount_ = passedRowCount_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.nullRowCount_ = nullRowCount_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.assertionRowCount_ = assertionRowCount_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dataplex.v1.DataQualityScanRuleResult) { return mergeFrom((com.google.cloud.dataplex.v1.DataQualityScanRuleResult) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualityScanRuleResult other) { if (other == com.google.cloud.dataplex.v1.DataQualityScanRuleResult.getDefaultInstance()) return this; if (!other.getJobId().isEmpty()) { jobId_ = other.jobId_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getDataSource().isEmpty()) { dataSource_ = other.dataSource_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getColumn().isEmpty()) { column_ = other.column_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getRuleName().isEmpty()) { ruleName_ = other.ruleName_; bitField0_ |= 0x00000008; onChanged(); } if (other.ruleType_ != 0) { setRuleTypeValue(other.getRuleTypeValue()); } if (other.evalutionType_ != 0) { setEvalutionTypeValue(other.getEvalutionTypeValue()); } if (!other.getRuleDimension().isEmpty()) { ruleDimension_ = other.ruleDimension_; bitField0_ |= 0x00000040; onChanged(); } if (other.getThresholdPercent() != 0D) { setThresholdPercent(other.getThresholdPercent()); } if (other.result_ != 0) { setResultValue(other.getResultValue()); } if (other.getEvaluatedRowCount() != 0L) { setEvaluatedRowCount(other.getEvaluatedRowCount()); } if (other.getPassedRowCount() != 0L) { setPassedRowCount(other.getPassedRowCount()); } if (other.getNullRowCount() != 0L) { setNullRowCount(other.getNullRowCount()); } if (other.getAssertionRowCount() != 0L) { setAssertionRowCount(other.getAssertionRowCount()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { jobId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { dataSource_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { column_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { ruleName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { ruleType_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { evalutionType_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { ruleDimension_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 65: { thresholdPercent_ = input.readDouble(); bitField0_ |= 0x00000080; break; } // case 65 case 72: { result_ = input.readEnum(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { evaluatedRowCount_ = input.readInt64(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { passedRowCount_ = input.readInt64(); bitField0_ |= 0x00000400; break; } // case 88 case 96: { nullRowCount_ = input.readInt64(); bitField0_ |= 0x00000800; break; } // case 96 case 104: { assertionRowCount_ = input.readInt64(); bitField0_ |= 0x00001000; break; } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object jobId_ = ""; /** * * *
     * Identifier of the specific data scan job this log entry is for.
     * 
* * string job_id = 1; * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Identifier of the specific data scan job this log entry is for.
     * 
* * string job_id = 1; * * @return The bytes for jobId. */ public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Identifier of the specific data scan job this log entry is for.
     * 
* * string job_id = 1; * * @param value The jobId to set. * @return This builder for chaining. */ public Builder setJobId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } jobId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Identifier of the specific data scan job this log entry is for.
     * 
* * string job_id = 1; * * @return This builder for chaining. */ public Builder clearJobId() { jobId_ = getDefaultInstance().getJobId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Identifier of the specific data scan job this log entry is for.
     * 
* * string job_id = 1; * * @param value The bytes for jobId to set. * @return This builder for chaining. */ public Builder setJobIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); jobId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object dataSource_ = ""; /** * * *
     * The data source of the data scan (e.g. BigQuery table name).
     * 
* * string data_source = 2; * * @return The dataSource. */ public java.lang.String getDataSource() { java.lang.Object ref = dataSource_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataSource_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The data source of the data scan (e.g. BigQuery table name).
     * 
* * string data_source = 2; * * @return The bytes for dataSource. */ public com.google.protobuf.ByteString getDataSourceBytes() { java.lang.Object ref = dataSource_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataSource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The data source of the data scan (e.g. BigQuery table name).
     * 
* * string data_source = 2; * * @param value The dataSource to set. * @return This builder for chaining. */ public Builder setDataSource(java.lang.String value) { if (value == null) { throw new NullPointerException(); } dataSource_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The data source of the data scan (e.g. BigQuery table name).
     * 
* * string data_source = 2; * * @return This builder for chaining. */ public Builder clearDataSource() { dataSource_ = getDefaultInstance().getDataSource(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * The data source of the data scan (e.g. BigQuery table name).
     * 
* * string data_source = 2; * * @param value The bytes for dataSource to set. * @return This builder for chaining. */ public Builder setDataSourceBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataSource_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object column_ = ""; /** * * *
     * The column which this rule is evaluated against.
     * 
* * string column = 3; * * @return The column. */ public java.lang.String getColumn() { java.lang.Object ref = column_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The column which this rule is evaluated against.
     * 
* * string column = 3; * * @return The bytes for column. */ public com.google.protobuf.ByteString getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); column_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The column which this rule is evaluated against.
     * 
* * string column = 3; * * @param value The column to set. * @return This builder for chaining. */ public Builder setColumn(java.lang.String value) { if (value == null) { throw new NullPointerException(); } column_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The column which this rule is evaluated against.
     * 
* * string column = 3; * * @return This builder for chaining. */ public Builder clearColumn() { column_ = getDefaultInstance().getColumn(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * The column which this rule is evaluated against.
     * 
* * string column = 3; * * @param value The bytes for column to set. * @return This builder for chaining. */ public Builder setColumnBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); column_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object ruleName_ = ""; /** * * *
     * The name of the data quality rule.
     * 
* * string rule_name = 4; * * @return The ruleName. */ public java.lang.String getRuleName() { java.lang.Object ref = ruleName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The name of the data quality rule.
     * 
* * string rule_name = 4; * * @return The bytes for ruleName. */ public com.google.protobuf.ByteString getRuleNameBytes() { java.lang.Object ref = ruleName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ruleName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The name of the data quality rule.
     * 
* * string rule_name = 4; * * @param value The ruleName to set. * @return This builder for chaining. */ public Builder setRuleName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ruleName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * The name of the data quality rule.
     * 
* * string rule_name = 4; * * @return This builder for chaining. */ public Builder clearRuleName() { ruleName_ = getDefaultInstance().getRuleName(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * The name of the data quality rule.
     * 
* * string rule_name = 4; * * @param value The bytes for ruleName to set. * @return This builder for chaining. */ public Builder setRuleNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ruleName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private int ruleType_ = 0; /** * * *
     * The type of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; * * @return The enum numeric value on the wire for ruleType. */ @java.lang.Override public int getRuleTypeValue() { return ruleType_; } /** * * *
     * The type of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; * * @param value The enum numeric value on the wire for ruleType to set. * @return This builder for chaining. */ public Builder setRuleTypeValue(int value) { ruleType_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The type of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; * * @return The ruleType. */ @java.lang.Override public com.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType getRuleType() { com.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType result = com.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType.forNumber(ruleType_); return result == null ? com.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType.UNRECOGNIZED : result; } /** * * *
     * The type of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; * * @param value The ruleType to set. * @return This builder for chaining. */ public Builder setRuleType( com.google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; ruleType_ = value.getNumber(); onChanged(); return this; } /** * * *
     * The type of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.RuleType rule_type = 5; * * @return This builder for chaining. */ public Builder clearRuleType() { bitField0_ = (bitField0_ & ~0x00000010); ruleType_ = 0; onChanged(); return this; } private int evalutionType_ = 0; /** * * *
     * The evaluation type of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; * * * @return The enum numeric value on the wire for evalutionType. */ @java.lang.Override public int getEvalutionTypeValue() { return evalutionType_; } /** * * *
     * The evaluation type of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; * * * @param value The enum numeric value on the wire for evalutionType to set. * @return This builder for chaining. */ public Builder setEvalutionTypeValue(int value) { evalutionType_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * The evaluation type of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; * * * @return The evalutionType. */ @java.lang.Override public com.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType getEvalutionType() { com.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType result = com.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType.forNumber( evalutionType_); return result == null ? com.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType.UNRECOGNIZED : result; } /** * * *
     * The evaluation type of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; * * * @param value The evalutionType to set. * @return This builder for chaining. */ public Builder setEvalutionType( com.google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; evalutionType_ = value.getNumber(); onChanged(); return this; } /** * * *
     * The evaluation type of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.EvaluationType evalution_type = 6; * * * @return This builder for chaining. */ public Builder clearEvalutionType() { bitField0_ = (bitField0_ & ~0x00000020); evalutionType_ = 0; onChanged(); return this; } private java.lang.Object ruleDimension_ = ""; /** * * *
     * The dimension of the data quality rule.
     * 
* * string rule_dimension = 7; * * @return The ruleDimension. */ public java.lang.String getRuleDimension() { java.lang.Object ref = ruleDimension_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleDimension_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The dimension of the data quality rule.
     * 
* * string rule_dimension = 7; * * @return The bytes for ruleDimension. */ public com.google.protobuf.ByteString getRuleDimensionBytes() { java.lang.Object ref = ruleDimension_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ruleDimension_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The dimension of the data quality rule.
     * 
* * string rule_dimension = 7; * * @param value The ruleDimension to set. * @return This builder for chaining. */ public Builder setRuleDimension(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ruleDimension_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * The dimension of the data quality rule.
     * 
* * string rule_dimension = 7; * * @return This builder for chaining. */ public Builder clearRuleDimension() { ruleDimension_ = getDefaultInstance().getRuleDimension(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * The dimension of the data quality rule.
     * 
* * string rule_dimension = 7; * * @param value The bytes for ruleDimension to set. * @return This builder for chaining. */ public Builder setRuleDimensionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ruleDimension_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private double thresholdPercent_; /** * * *
     * The passing threshold ([0.0, 100.0]) of the data quality rule.
     * 
* * double threshold_percent = 8; * * @return The thresholdPercent. */ @java.lang.Override public double getThresholdPercent() { return thresholdPercent_; } /** * * *
     * The passing threshold ([0.0, 100.0]) of the data quality rule.
     * 
* * double threshold_percent = 8; * * @param value The thresholdPercent to set. * @return This builder for chaining. */ public Builder setThresholdPercent(double value) { thresholdPercent_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * The passing threshold ([0.0, 100.0]) of the data quality rule.
     * 
* * double threshold_percent = 8; * * @return This builder for chaining. */ public Builder clearThresholdPercent() { bitField0_ = (bitField0_ & ~0x00000080); thresholdPercent_ = 0D; onChanged(); return this; } private int result_ = 0; /** * * *
     * The result of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; * * @return The enum numeric value on the wire for result. */ @java.lang.Override public int getResultValue() { return result_; } /** * * *
     * The result of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; * * @param value The enum numeric value on the wire for result to set. * @return This builder for chaining. */ public Builder setResultValue(int value) { result_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * The result of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; * * @return The result. */ @java.lang.Override public com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result getResult() { com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result.forNumber(result_); return result == null ? com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result.UNRECOGNIZED : result; } /** * * *
     * The result of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; * * @param value The result to set. * @return This builder for chaining. */ public Builder setResult(com.google.cloud.dataplex.v1.DataQualityScanRuleResult.Result value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; result_ = value.getNumber(); onChanged(); return this; } /** * * *
     * The result of the data quality rule.
     * 
* * .google.cloud.dataplex.v1.DataQualityScanRuleResult.Result result = 9; * * @return This builder for chaining. */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000100); result_ = 0; onChanged(); return this; } private long evaluatedRowCount_; /** * * *
     * 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; * * @return The evaluatedRowCount. */ @java.lang.Override public long getEvaluatedRowCount() { return evaluatedRowCount_; } /** * * *
     * 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; * * @param value The evaluatedRowCount to set. * @return This builder for chaining. */ public Builder setEvaluatedRowCount(long value) { evaluatedRowCount_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearEvaluatedRowCount() { bitField0_ = (bitField0_ & ~0x00000200); evaluatedRowCount_ = 0L; onChanged(); return this; } private long passedRowCount_; /** * * *
     * 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; * * @return The passedRowCount. */ @java.lang.Override public long getPassedRowCount() { return passedRowCount_; } /** * * *
     * 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; * * @param value The passedRowCount to set. * @return This builder for chaining. */ public Builder setPassedRowCount(long value) { passedRowCount_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearPassedRowCount() { bitField0_ = (bitField0_ & ~0x00000400); passedRowCount_ = 0L; onChanged(); return this; } private long nullRowCount_; /** * * *
     * The number of rows with null values in the specified column.
     * 
* * int64 null_row_count = 12; * * @return The nullRowCount. */ @java.lang.Override public long getNullRowCount() { return nullRowCount_; } /** * * *
     * The number of rows with null values in the specified column.
     * 
* * int64 null_row_count = 12; * * @param value The nullRowCount to set. * @return This builder for chaining. */ public Builder setNullRowCount(long value) { nullRowCount_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** * * *
     * The number of rows with null values in the specified column.
     * 
* * int64 null_row_count = 12; * * @return This builder for chaining. */ public Builder clearNullRowCount() { bitField0_ = (bitField0_ & ~0x00000800); nullRowCount_ = 0L; onChanged(); return this; } private long assertionRowCount_; /** * * *
     * The number of rows returned by the sql statement in the SqlAssertion rule.
     * This field is only valid for SqlAssertion rules.
     * 
* * int64 assertion_row_count = 13; * * @return The assertionRowCount. */ @java.lang.Override public long getAssertionRowCount() { return assertionRowCount_; } /** * * *
     * The number of rows returned by the sql statement in the SqlAssertion rule.
     * This field is only valid for SqlAssertion rules.
     * 
* * int64 assertion_row_count = 13; * * @param value The assertionRowCount to set. * @return This builder for chaining. */ public Builder setAssertionRowCount(long value) { assertionRowCount_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** * * *
     * The number of rows returned by the sql statement in the SqlAssertion rule.
     * This field is only valid for SqlAssertion rules.
     * 
* * int64 assertion_row_count = 13; * * @return This builder for chaining. */ public Builder clearAssertionRowCount() { bitField0_ = (bitField0_ & ~0x00001000); assertionRowCount_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataQualityScanRuleResult) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityScanRuleResult) private static final com.google.cloud.dataplex.v1.DataQualityScanRuleResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityScanRuleResult(); } public static com.google.cloud.dataplex.v1.DataQualityScanRuleResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DataQualityScanRuleResult parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dataplex.v1.DataQualityScanRuleResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy