Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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/data_quality.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.dataplex.v1;
/**
*
*
*
* A rule captures data quality intent about a data source.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule}
*/
public final class DataQualityRule extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule)
DataQualityRuleOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataQualityRule.newBuilder() to construct.
private DataQualityRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataQualityRule() {
column_ = "";
dimension_ = "";
name_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DataQualityRule();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.class,
com.google.cloud.dataplex.v1.DataQualityRule.Builder.class);
}
public interface RangeExpectationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.RangeExpectation)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. The minimum column value allowed for a row to pass this
* validation. At least one of `min_value` and `max_value` need to be
* provided.
*
* Optional. Whether each value needs to be strictly greater than ('>') the
* minimum, or if equality is allowed.
*
* Only relevant if a `min_value` has been defined. Default = false.
*
* Optional. Whether each value needs to be strictly lesser than ('<') the
* maximum, or if equality is allowed.
*
* Only relevant if a `max_value` has been defined. Default = false.
*
* Optional. The maximum column value allowed for a row to pass this
* validation. At least one of `min_value` and `max_value` need to be
* provided.
*
*
* string max_value = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for maxValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMaxValueBytes() {
java.lang.Object ref = maxValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
maxValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STRICT_MIN_ENABLED_FIELD_NUMBER = 3;
private boolean strictMinEnabled_ = false;
/**
*
*
*
* Optional. Whether each value needs to be strictly greater than ('>') the
* minimum, or if equality is allowed.
*
* Only relevant if a `min_value` has been defined. Default = false.
*
*
* bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The strictMinEnabled.
*/
@java.lang.Override
public boolean getStrictMinEnabled() {
return strictMinEnabled_;
}
public static final int STRICT_MAX_ENABLED_FIELD_NUMBER = 4;
private boolean strictMaxEnabled_ = false;
/**
*
*
*
* Optional. Whether each value needs to be strictly lesser than ('<') the
* maximum, or if equality is allowed.
*
* Only relevant if a `max_value` has been defined. Default = false.
*
* Optional. The maximum column value allowed for a row to pass this
* validation. At least one of `min_value` and `max_value` need to be
* provided.
*
*
* string max_value = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for maxValue to set.
* @return This builder for chaining.
*/
public Builder setMaxValueBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
maxValue_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean strictMinEnabled_;
/**
*
*
*
* Optional. Whether each value needs to be strictly greater than ('>') the
* minimum, or if equality is allowed.
*
* Only relevant if a `min_value` has been defined. Default = false.
*
* Optional. Whether each value needs to be strictly greater than ('>') the
* minimum, or if equality is allowed.
*
* Only relevant if a `min_value` has been defined. Default = false.
*
*
* bool strict_min_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The strictMinEnabled to set.
* @return This builder for chaining.
*/
public Builder setStrictMinEnabled(boolean value) {
strictMinEnabled_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. Whether each value needs to be strictly greater than ('>') the
* minimum, or if equality is allowed.
*
* Only relevant if a `min_value` has been defined. Default = false.
*
* Optional. Whether each value needs to be strictly lesser than ('<') the
* maximum, or if equality is allowed.
*
* Only relevant if a `max_value` has been defined. Default = false.
*
* Optional. Whether each value needs to be strictly lesser than ('<') the
* maximum, or if equality is allowed.
*
* Only relevant if a `max_value` has been defined. Default = false.
*
*
* bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The strictMaxEnabled to set.
* @return This builder for chaining.
*/
public Builder setStrictMaxEnabled(boolean value) {
strictMaxEnabled_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Optional. Whether each value needs to be strictly lesser than ('<') the
* maximum, or if equality is allowed.
*
* Only relevant if a `max_value` has been defined. Default = false.
*
*
* bool strict_max_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearStrictMaxEnabled() {
bitField0_ = (bitField0_ & ~0x00000008);
strictMaxEnabled_ = false;
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.DataQualityRule.RangeExpectation)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.RangeExpectation)
private static final com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation();
}
public static com.google.cloud.dataplex.v1.DataQualityRule.RangeExpectation
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RangeExpectation 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.DataQualityRule.RangeExpectation
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NonNullExpectationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation)
com.google.protobuf.MessageOrBuilder {}
/**
*
*
*
* Evaluates whether each column value is null.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation}
*/
public static final class NonNullExpectation extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation)
NonNullExpectationOrBuilder {
private static final long serialVersionUID = 0L;
// Use NonNullExpectation.newBuilder() to construct.
private NonNullExpectation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NonNullExpectation() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new NonNullExpectation();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.class,
com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.DataQualityRule.NonNullExpectation)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation other =
(com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation 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.DataQualityRule.NonNullExpectation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation 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.DataQualityRule.NonNullExpectation parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation 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.DataQualityRule.NonNullExpectation parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation 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.DataQualityRule.NonNullExpectation
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation
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.DataQualityRule.NonNullExpectation 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.DataQualityRule.NonNullExpectation 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.DataQualityRule.NonNullExpectation 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;
}
/**
*
*
*
* Evaluates whether each column value is null.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation)
com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.class,
com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_NonNullExpectation_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation build() {
com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation buildPartial() {
com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation result =
new com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation(this);
onBuilt();
return result;
}
@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.DataQualityRule.NonNullExpectation) {
return mergeFrom((com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation other) {
if (other
== com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation.getDefaultInstance())
return this;
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;
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;
}
@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.DataQualityRule.NonNullExpectation)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation)
private static final com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation();
}
public static com.google.cloud.dataplex.v1.DataQualityRule.NonNullExpectation
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NonNullExpectation 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.DataQualityRule.NonNullExpectation
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SetExpectationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.SetExpectation)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the values.
*/
java.util.List getValuesList();
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of values.
*/
int getValuesCount();
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The values at the given index.
*/
java.lang.String getValues(int index);
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
com.google.protobuf.ByteString getValuesBytes(int index);
}
/**
*
*
*
* Evaluates whether each column value is contained by a specified set.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.SetExpectation}
*/
public static final class SetExpectation extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.SetExpectation)
SetExpectationOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetExpectation.newBuilder() to construct.
private SetExpectation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SetExpectation() {
values_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SetExpectation();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.class,
com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList values_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList getValuesList() {
return values_;
}
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString getValuesBytes(int index) {
return values_.getByteString(index);
}
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 {
for (int i = 0; i < values_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += computeStringSizeNoTag(values_.getRaw(i));
}
size += dataSize;
size += 1 * getValuesList().size();
}
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.DataQualityRule.SetExpectation)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation other =
(com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) obj;
if (!getValuesList().equals(other.getValuesList())) 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();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation 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.DataQualityRule.SetExpectation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation 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.DataQualityRule.SetExpectation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation 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.DataQualityRule.SetExpectation parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation 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.DataQualityRule.SetExpectation parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation 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.DataQualityRule.SetExpectation 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.DataQualityRule.SetExpectation 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.DataQualityRule.SetExpectation 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;
}
/**
*
*
*
* Evaluates whether each column value is contained by a specified set.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.SetExpectation}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.SetExpectation)
com.google.cloud.dataplex.v1.DataQualityRule.SetExpectationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.class,
com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
values_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_SetExpectation_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation build() {
com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation buildPartial() {
com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation result =
new com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
values_.makeImmutable();
result.values_ = values_;
}
}
@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.DataQualityRule.SetExpectation) {
return mergeFrom((com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation other) {
if (other
== com.google.cloud.dataplex.v1.DataQualityRule.SetExpectation.getDefaultInstance())
return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ |= 0x00000001;
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
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:
{
java.lang.String s = input.readStringRequireUtf8();
ensureValuesIsMutable();
values_.add(s);
break;
} // case 10
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 com.google.protobuf.LazyStringArrayList values_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureValuesIsMutable() {
if (!values_.isModifiable()) {
values_ = new com.google.protobuf.LazyStringArrayList(values_);
}
bitField0_ |= 0x00000001;
}
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList getValuesList() {
values_.makeImmutable();
return values_;
}
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString getValuesBytes(int index) {
return values_.getByteString(index);
}
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. Expected values for the column value.
*
*
* repeated string values = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(java.lang.Iterable values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. Expected values for the column value.
*
* Optional. A regular expression the column value is expected to match.
*
*
* string regex = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for regex to set.
* @return This builder for chaining.
*/
public Builder setRegexBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
regex_ = value;
bitField0_ |= 0x00000001;
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.DataQualityRule.RegexExpectation)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.RegexExpectation)
private static final com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation();
}
public static com.google.cloud.dataplex.v1.DataQualityRule.RegexExpectation
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RegexExpectation 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.DataQualityRule.RegexExpectation
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UniquenessExpectationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation)
com.google.protobuf.MessageOrBuilder {}
/**
*
*
*
* Evaluates whether the column has duplicates.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation}
*/
public static final class UniquenessExpectation extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation)
UniquenessExpectationOrBuilder {
private static final long serialVersionUID = 0L;
// Use UniquenessExpectation.newBuilder() to construct.
private UniquenessExpectation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UniquenessExpectation() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new UniquenessExpectation();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.class,
com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.Builder.class);
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.DataQualityRule.UniquenessExpectation)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation other =
(com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation 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.DataQualityRule.UniquenessExpectation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation 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.DataQualityRule.UniquenessExpectation parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation 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.DataQualityRule.UniquenessExpectation parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation 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.DataQualityRule.UniquenessExpectation
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation
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.DataQualityRule.UniquenessExpectation 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.DataQualityRule.UniquenessExpectation 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.DataQualityRule.UniquenessExpectation 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;
}
/**
*
*
*
* Evaluates whether the column has duplicates.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation)
com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.class,
com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_UniquenessExpectation_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation build() {
com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation buildPartial() {
com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation result =
new com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation(this);
onBuilt();
return result;
}
@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.DataQualityRule.UniquenessExpectation) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation other) {
if (other
== com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation
.getDefaultInstance()) return this;
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;
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;
}
@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.DataQualityRule.UniquenessExpectation)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation)
private static final com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation();
}
public static com.google.cloud.dataplex.v1.DataQualityRule.UniquenessExpectation
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UniquenessExpectation 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.DataQualityRule.UniquenessExpectation
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StatisticRangeExpectationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. The aggregate metric to evaluate.
*
*
*
* .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The enum numeric value on the wire for statistic.
*/
int getStatisticValue();
/**
*
*
*
* Optional. The minimum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. The minimum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. The maximum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. The maximum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. Whether column statistic needs to be strictly greater than
* ('>') the minimum, or if equality is allowed.
*
* Only relevant if a `min_value` has been defined. Default = false.
*
* Optional. Whether column statistic needs to be strictly lesser than ('<')
* the maximum, or if equality is allowed.
*
* Only relevant if a `max_value` has been defined. Default = false.
*
*
* STATISTIC_UNDEFINED = 0;
*/
public static final int STATISTIC_UNDEFINED_VALUE = 0;
/**
*
*
*
* Evaluate the column mean
*
*
* MEAN = 1;
*/
public static final int MEAN_VALUE = 1;
/**
*
*
*
* Evaluate the column min
*
*
* MIN = 2;
*/
public static final int MIN_VALUE = 2;
/**
*
*
*
* Evaluate the column max
*
*
* MAX = 3;
*/
public static final int MAX_VALUE = 3;
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 ColumnStatistic 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 ColumnStatistic forNumber(int value) {
switch (value) {
case 0:
return STATISTIC_UNDEFINED;
case 1:
return MEAN;
case 2:
return MIN;
case 3:
return MAX;
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 ColumnStatistic findValueByNumber(int number) {
return ColumnStatistic.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.DataQualityRule.StatisticRangeExpectation
.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final ColumnStatistic[] VALUES = values();
public static ColumnStatistic 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 ColumnStatistic(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic)
}
public static final int STATISTIC_FIELD_NUMBER = 1;
private int statistic_ = 0;
/**
*
*
*
* Optional. The aggregate metric to evaluate.
*
*
*
* .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The enum numeric value on the wire for statistic.
*/
@java.lang.Override
public int getStatisticValue() {
return statistic_;
}
/**
*
*
*
* Optional. The aggregate metric to evaluate.
*
*
*
* .google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic statistic = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The statistic.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic
getStatistic() {
com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic
result =
com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic
.forNumber(statistic_);
return result == null
? com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation.ColumnStatistic
.UNRECOGNIZED
: result;
}
public static final int MIN_VALUE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object minValue_ = "";
/**
*
*
*
* Optional. The minimum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. The minimum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
*
* string min_value = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for minValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMinValueBytes() {
java.lang.Object ref = minValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
minValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAX_VALUE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object maxValue_ = "";
/**
*
*
*
* Optional. The maximum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. The maximum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
*
* string max_value = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for maxValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMaxValueBytes() {
java.lang.Object ref = maxValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
maxValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STRICT_MIN_ENABLED_FIELD_NUMBER = 4;
private boolean strictMinEnabled_ = false;
/**
*
*
*
* Optional. Whether column statistic needs to be strictly greater than
* ('>') the minimum, or if equality is allowed.
*
* Only relevant if a `min_value` has been defined. Default = false.
*
*
* bool strict_min_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The strictMinEnabled.
*/
@java.lang.Override
public boolean getStrictMinEnabled() {
return strictMinEnabled_;
}
public static final int STRICT_MAX_ENABLED_FIELD_NUMBER = 5;
private boolean strictMaxEnabled_ = false;
/**
*
*
*
* Optional. Whether column statistic needs to be strictly lesser than ('<')
* the maximum, or if equality is allowed.
*
* Only relevant if a `max_value` has been defined. Default = false.
*
* Optional. The minimum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. The minimum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. The minimum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
*
* string min_value = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The minValue to set.
* @return This builder for chaining.
*/
public Builder setMinValue(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
minValue_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. The minimum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. The minimum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
*
* string min_value = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for minValue to set.
* @return This builder for chaining.
*/
public Builder setMinValueBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
minValue_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object maxValue_ = "";
/**
*
*
*
* Optional. The maximum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. The maximum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. The maximum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
*
* string max_value = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The maxValue to set.
* @return This builder for chaining.
*/
public Builder setMaxValue(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
maxValue_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. The maximum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
* Optional. The maximum column statistic value allowed for a row to pass
* this validation.
*
* At least one of `min_value` and `max_value` need to be provided.
*
*
* string max_value = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for maxValue to set.
* @return This builder for chaining.
*/
public Builder setMaxValueBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
maxValue_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private boolean strictMinEnabled_;
/**
*
*
*
* Optional. Whether column statistic needs to be strictly greater than
* ('>') the minimum, or if equality is allowed.
*
* Only relevant if a `min_value` has been defined. Default = false.
*
* Optional. Whether column statistic needs to be strictly greater than
* ('>') the minimum, or if equality is allowed.
*
* Only relevant if a `min_value` has been defined. Default = false.
*
*
* bool strict_min_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The strictMinEnabled to set.
* @return This builder for chaining.
*/
public Builder setStrictMinEnabled(boolean value) {
strictMinEnabled_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Optional. Whether column statistic needs to be strictly greater than
* ('>') the minimum, or if equality is allowed.
*
* Only relevant if a `min_value` has been defined. Default = false.
*
* Optional. Whether column statistic needs to be strictly lesser than ('<')
* the maximum, or if equality is allowed.
*
* Only relevant if a `max_value` has been defined. Default = false.
*
* Optional. Whether column statistic needs to be strictly lesser than ('<')
* the maximum, or if equality is allowed.
*
* Only relevant if a `max_value` has been defined. Default = false.
*
*
* bool strict_max_enabled = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The strictMaxEnabled to set.
* @return This builder for chaining.
*/
public Builder setStrictMaxEnabled(boolean value) {
strictMaxEnabled_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Optional. Whether column statistic needs to be strictly lesser than ('<')
* the maximum, or if equality is allowed.
*
* Only relevant if a `max_value` has been defined. Default = false.
*
*
* bool strict_max_enabled = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearStrictMaxEnabled() {
bitField0_ = (bitField0_ & ~0x00000010);
strictMaxEnabled_ = false;
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.DataQualityRule.StatisticRangeExpectation)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation)
private static final com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation();
}
public static com.google.cloud.dataplex.v1.DataQualityRule.StatisticRangeExpectation
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatisticRangeExpectation 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.DataQualityRule.StatisticRangeExpectation
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RowConditionExpectationOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Evaluates whether each row passes the specified condition.
*
* The SQL expression needs to use BigQuery standard SQL syntax and should
* produce a boolean value per row as the result.
*
* Example: col1 >= 0 AND col2 < 10
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation}
*/
public static final class RowConditionExpectation extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation)
RowConditionExpectationOrBuilder {
private static final long serialVersionUID = 0L;
// Use RowConditionExpectation.newBuilder() to construct.
private RowConditionExpectation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RowConditionExpectation() {
sqlExpression_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new RowConditionExpectation();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.class,
com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.Builder.class);
}
public static final int SQL_EXPRESSION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sqlExpression_ = "";
/**
*
*
*
*
* string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for sqlExpression.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSqlExpressionBytes() {
java.lang.Object ref = sqlExpression_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
sqlExpression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(sqlExpression_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlExpression_);
}
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(sqlExpression_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlExpression_);
}
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.DataQualityRule.RowConditionExpectation)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation other =
(com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) obj;
if (!getSqlExpression().equals(other.getSqlExpression())) 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) + SQL_EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getSqlExpression().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation 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.DataQualityRule.RowConditionExpectation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation 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.DataQualityRule.RowConditionExpectation parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation 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.DataQualityRule.RowConditionExpectation parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation 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.DataQualityRule.RowConditionExpectation
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation
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.DataQualityRule.RowConditionExpectation 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.DataQualityRule.RowConditionExpectation 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.DataQualityRule.RowConditionExpectation 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;
}
/**
*
*
*
* Evaluates whether each row passes the specified condition.
*
* The SQL expression needs to use BigQuery standard SQL syntax and should
* produce a boolean value per row as the result.
*
* Example: col1 >= 0 AND col2 < 10
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation)
com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.class,
com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sqlExpression_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_RowConditionExpectation_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation build() {
com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation buildPartial() {
com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation result =
new com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sqlExpression_ = sqlExpression_;
}
}
@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.DataQualityRule.RowConditionExpectation) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation other) {
if (other
== com.google.cloud.dataplex.v1.DataQualityRule.RowConditionExpectation
.getDefaultInstance()) return this;
if (!other.getSqlExpression().isEmpty()) {
sqlExpression_ = other.sqlExpression_;
bitField0_ |= 0x00000001;
onChanged();
}
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:
{
sqlExpression_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 sqlExpression_ = "";
/**
*
*
*
* Evaluates whether the provided expression is true.
*
* The SQL expression needs to use BigQuery standard SQL syntax and should
* produce a scalar boolean result.
*
* Example: MIN(col1) >= 0
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation}
*/
public static final class TableConditionExpectation extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation)
TableConditionExpectationOrBuilder {
private static final long serialVersionUID = 0L;
// Use TableConditionExpectation.newBuilder() to construct.
private TableConditionExpectation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TableConditionExpectation() {
sqlExpression_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TableConditionExpectation();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.class,
com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.Builder.class);
}
public static final int SQL_EXPRESSION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sqlExpression_ = "";
/**
*
*
*
*
* string sql_expression = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for sqlExpression.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSqlExpressionBytes() {
java.lang.Object ref = sqlExpression_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
sqlExpression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(sqlExpression_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlExpression_);
}
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(sqlExpression_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlExpression_);
}
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.DataQualityRule.TableConditionExpectation)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation other =
(com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) obj;
if (!getSqlExpression().equals(other.getSqlExpression())) 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) + SQL_EXPRESSION_FIELD_NUMBER;
hash = (53 * hash) + getSqlExpression().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation 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.DataQualityRule.TableConditionExpectation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation 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.DataQualityRule.TableConditionExpectation parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation 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.DataQualityRule.TableConditionExpectation parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation 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.DataQualityRule.TableConditionExpectation
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation
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.DataQualityRule.TableConditionExpectation 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.DataQualityRule.TableConditionExpectation 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.DataQualityRule.TableConditionExpectation 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;
}
/**
*
*
*
* Evaluates whether the provided expression is true.
*
* The SQL expression needs to use BigQuery standard SQL syntax and should
* produce a scalar boolean result.
*
* Example: MIN(col1) >= 0
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation)
com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.class,
com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.Builder
.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sqlExpression_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_TableConditionExpectation_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation build() {
com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation buildPartial() {
com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation result =
new com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sqlExpression_ = sqlExpression_;
}
}
@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.DataQualityRule.TableConditionExpectation) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation other) {
if (other
== com.google.cloud.dataplex.v1.DataQualityRule.TableConditionExpectation
.getDefaultInstance()) return this;
if (!other.getSqlExpression().isEmpty()) {
sqlExpression_ = other.sqlExpression_;
bitField0_ |= 0x00000001;
onChanged();
}
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:
{
sqlExpression_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 sqlExpression_ = "";
/**
*
*
*
* A SQL statement that is evaluated to return rows that match an invalid
* state. If any rows are are returned, this rule fails.
*
* The SQL statement must use BigQuery standard SQL syntax, and must not
* contain any semicolons.
*
* You can use the data reference parameter `${data()}` to reference the
* source table with all of its precondition filters applied. Examples of
* precondition filters include row filters, incremental data filters, and
* sampling. For more information, see [Data reference
* parameter](https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter).
*
* Example: `SELECT * FROM ${data()} WHERE price < 0`
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.SqlAssertion}
*/
public static final class SqlAssertion extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualityRule.SqlAssertion)
SqlAssertionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SqlAssertion.newBuilder() to construct.
private SqlAssertion(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SqlAssertion() {
sqlStatement_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SqlAssertion();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_SqlAssertion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_SqlAssertion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion.class,
com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion.Builder.class);
}
public static final int SQL_STATEMENT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object sqlStatement_ = "";
/**
*
*
*
*
* string sql_statement = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for sqlStatement.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSqlStatementBytes() {
java.lang.Object ref = sqlStatement_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
sqlStatement_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(sqlStatement_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlStatement_);
}
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(sqlStatement_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlStatement_);
}
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.DataQualityRule.SqlAssertion)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion other =
(com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion) obj;
if (!getSqlStatement().equals(other.getSqlStatement())) 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) + SQL_STATEMENT_FIELD_NUMBER;
hash = (53 * hash) + getSqlStatement().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion 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.DataQualityRule.SqlAssertion parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion 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.DataQualityRule.SqlAssertion parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion 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.DataQualityRule.SqlAssertion parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion 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.DataQualityRule.SqlAssertion parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion 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.DataQualityRule.SqlAssertion 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.DataQualityRule.SqlAssertion 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.DataQualityRule.SqlAssertion 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;
}
/**
*
*
*
* A SQL statement that is evaluated to return rows that match an invalid
* state. If any rows are are returned, this rule fails.
*
* The SQL statement must use BigQuery standard SQL syntax, and must not
* contain any semicolons.
*
* You can use the data reference parameter `${data()}` to reference the
* source table with all of its precondition filters applied. Examples of
* precondition filters include row filters, incremental data filters, and
* sampling. For more information, see [Data reference
* parameter](https://cloud.google.com/dataplex/docs/auto-data-quality-overview#data-reference-parameter).
*
* Example: `SELECT * FROM ${data()} WHERE price < 0`
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualityRule.SqlAssertion}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualityRule.SqlAssertion)
com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_SqlAssertion_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_SqlAssertion_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion.class,
com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
sqlStatement_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualityRule_SqlAssertion_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion build() {
com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion buildPartial() {
com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion result =
new com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.sqlStatement_ = sqlStatement_;
}
}
@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.DataQualityRule.SqlAssertion) {
return mergeFrom((com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion other) {
if (other == com.google.cloud.dataplex.v1.DataQualityRule.SqlAssertion.getDefaultInstance())
return this;
if (!other.getSqlStatement().isEmpty()) {
sqlStatement_ = other.sqlStatement_;
bitField0_ |= 0x00000001;
onChanged();
}
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:
{
sqlStatement_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
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 sqlStatement_ = "";
/**
*
*
*
* Optional. The unnested column which this rule is evaluated against.
*
*
* string column = 500 [(.google.api.field_behavior) = OPTIONAL];
*
* @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 IGNORE_NULL_FIELD_NUMBER = 501;
private boolean ignoreNull_ = false;
/**
*
*
*
* Optional. Rows with `null` values will automatically fail a rule, unless
* `ignore_null` is `true`. In that case, such `null` rows are trivially
* considered passing.
*
* This field is only valid for the following type of rules:
*
* * RangeExpectation
* * RegexExpectation
* * SetExpectation
* * UniquenessExpectation
*
*
* bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The ignoreNull.
*/
@java.lang.Override
public boolean getIgnoreNull() {
return ignoreNull_;
}
public static final int DIMENSION_FIELD_NUMBER = 502;
@SuppressWarnings("serial")
private volatile java.lang.Object dimension_ = "";
/**
*
*
*
* Required. The dimension a rule belongs to. Results are also aggregated at
* the dimension level. Supported dimensions are **["COMPLETENESS",
* "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]**
*
* 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];
*
* @return The bytes for dimension.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDimensionBytes() {
java.lang.Object ref = dimension_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
dimension_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int THRESHOLD_FIELD_NUMBER = 503;
private double threshold_ = 0D;
/**
*
*
*
* 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];
*
* @return The threshold.
*/
@java.lang.Override
public double getThreshold() {
return threshold_;
}
public static final int NAME_FIELD_NUMBER = 504;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* 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.
*
* 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];
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 505;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*
*
* Optional. Description of the rule.
*
* * The maximum length is 1,024 characters.
*
* Optional. The unnested column which this rule is evaluated against.
*
*
* string column = 500 [(.google.api.field_behavior) = OPTIONAL];
*
* @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_ |= 0x00000200;
onChanged();
return this;
}
private boolean ignoreNull_;
/**
*
*
*
* Optional. Rows with `null` values will automatically fail a rule, unless
* `ignore_null` is `true`. In that case, such `null` rows are trivially
* considered passing.
*
* This field is only valid for the following type of rules:
*
* * RangeExpectation
* * RegexExpectation
* * SetExpectation
* * UniquenessExpectation
*
* Optional. Rows with `null` values will automatically fail a rule, unless
* `ignore_null` is `true`. In that case, such `null` rows are trivially
* considered passing.
*
* This field is only valid for the following type of rules:
*
* * RangeExpectation
* * RegexExpectation
* * SetExpectation
* * UniquenessExpectation
*
*
* bool ignore_null = 501 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The ignoreNull to set.
* @return This builder for chaining.
*/
public Builder setIgnoreNull(boolean value) {
ignoreNull_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* Optional. Rows with `null` values will automatically fail a rule, unless
* `ignore_null` is `true`. In that case, such `null` rows are trivially
* considered passing.
*
* This field is only valid for the following type of rules:
*
* * RangeExpectation
* * RegexExpectation
* * SetExpectation
* * UniquenessExpectation
*
* Required. The dimension a rule belongs to. Results are also aggregated at
* the dimension level. Supported dimensions are **["COMPLETENESS",
* "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]**
*
* Required. The dimension a rule belongs to. Results are also aggregated at
* the dimension level. Supported dimensions are **["COMPLETENESS",
* "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]**
*
* 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];
*
* @param value The dimension to set.
* @return This builder for chaining.
*/
public Builder setDimension(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dimension_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*
*
* Required. The dimension a rule belongs to. Results are also aggregated at
* the dimension level. Supported dimensions are **["COMPLETENESS",
* "ACCURACY", "CONSISTENCY", "VALIDITY", "UNIQUENESS", "INTEGRITY"]**
*
* 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];
*
* @param value The bytes for dimension to set.
* @return This builder for chaining.
*/
public Builder setDimensionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dimension_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private double threshold_;
/**
*
*
*
* 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.
*
* 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];
*
* @param value The threshold to set.
* @return This builder for chaining.
*/
public Builder setThreshold(double value) {
threshold_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* 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.
*
* 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.
*
* 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];
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* 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];
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*
*
* 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];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
*
*
*
* 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];
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* Optional. Description of the rule.
*
* * The maximum length is 1,024 characters.
*