Please wait. This can take some minutes ...
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.
com.google.cloud.dataplex.v1.DataQualitySpec Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataplex/v1/data_quality.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.dataplex.v1;
/**
*
*
*
* DataQualityScan related setting.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualitySpec}
*/
public final class DataQualitySpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualitySpec)
DataQualitySpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataQualitySpec.newBuilder() to construct.
private DataQualitySpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataQualitySpec() {
rules_ = java.util.Collections.emptyList();
rowFilter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DataQualitySpec();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.class,
com.google.cloud.dataplex.v1.DataQualitySpec.Builder.class);
}
public interface PostScanActionsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the bigqueryExport field is set.
*/
boolean hasBigqueryExport();
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The bigqueryExport.
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport getBigqueryExport();
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportOrBuilder
getBigqueryExportOrBuilder();
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the notificationReport field is set.
*/
boolean hasNotificationReport();
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The notificationReport.
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
getNotificationReport();
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReportOrBuilder
getNotificationReportOrBuilder();
}
/**
*
*
*
* The configuration of post scan actions of DataQualityScan.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualitySpec.PostScanActions}
*/
public static final class PostScanActions extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions)
PostScanActionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use PostScanActions.newBuilder() to construct.
private PostScanActions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PostScanActions() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PostScanActions();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Builder.class);
}
public interface BigQueryExportOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. The BigQuery table to export DataQualityScan results to.
* Format:
* //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
*
*
* string results_table = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The resultsTable.
*/
java.lang.String getResultsTable();
/**
*
*
*
* Optional. The BigQuery table to export DataQualityScan results to.
* Format:
* //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
*
*
* string results_table = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for resultsTable.
*/
com.google.protobuf.ByteString getResultsTableBytes();
}
/**
*
*
*
* The configuration of BigQuery export post scan action.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport}
*/
public static final class BigQueryExport extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport)
BigQueryExportOrBuilder {
private static final long serialVersionUID = 0L;
// Use BigQueryExport.newBuilder() to construct.
private BigQueryExport(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BigQueryExport() {
resultsTable_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BigQueryExport();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_BigQueryExport_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_BigQueryExport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport.Builder
.class);
}
public static final int RESULTS_TABLE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object resultsTable_ = "";
/**
*
*
*
* Optional. The BigQuery table to export DataQualityScan results to.
* Format:
* //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
*
*
* string results_table = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The resultsTable.
*/
@java.lang.Override
public java.lang.String getResultsTable() {
java.lang.Object ref = resultsTable_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resultsTable_ = s;
return s;
}
}
/**
*
*
*
* Optional. The BigQuery table to export DataQualityScan results to.
* Format:
* //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
*
*
* string results_table = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for resultsTable.
*/
@java.lang.Override
public com.google.protobuf.ByteString getResultsTableBytes() {
java.lang.Object ref = resultsTable_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
resultsTable_ = 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(resultsTable_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resultsTable_);
}
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(resultsTable_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resultsTable_);
}
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.DataQualitySpec.PostScanActions.BigQueryExport)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport other =
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport) obj;
if (!getResultsTable().equals(other.getResultsTable())) 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) + RESULTS_TABLE_FIELD_NUMBER;
hash = (53 * hash) + getResultsTable().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
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.DataQualitySpec.PostScanActions.BigQueryExport
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
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.DataQualitySpec.PostScanActions.BigQueryExport
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
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.DataQualitySpec.PostScanActions.BigQueryExport
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
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.DataQualitySpec.PostScanActions.BigQueryExport
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
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.DataQualitySpec.PostScanActions.BigQueryExport
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.DataQualitySpec.PostScanActions.BigQueryExport
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.DataQualitySpec.PostScanActions.BigQueryExport 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;
}
/**
*
*
*
* The configuration of BigQuery export post scan action.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport)
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_BigQueryExport_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_BigQueryExport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
resultsTable_ = "";
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_DataQualitySpec_PostScanActions_BigQueryExport_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport build() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
buildPartial() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport result =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.resultsTable_ = resultsTable_;
}
}
@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.DataQualitySpec.PostScanActions.BigQueryExport) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport other) {
if (other
== com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
.getDefaultInstance()) return this;
if (!other.getResultsTable().isEmpty()) {
resultsTable_ = other.resultsTable_;
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:
{
resultsTable_ = 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 resultsTable_ = "";
/**
*
*
*
* Optional. The BigQuery table to export DataQualityScan results to.
* Format:
* //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
*
*
* string results_table = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The resultsTable.
*/
public java.lang.String getResultsTable() {
java.lang.Object ref = resultsTable_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
resultsTable_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. The BigQuery table to export DataQualityScan results to.
* Format:
* //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
*
*
* string results_table = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for resultsTable.
*/
public com.google.protobuf.ByteString getResultsTableBytes() {
java.lang.Object ref = resultsTable_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
resultsTable_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. The BigQuery table to export DataQualityScan results to.
* Format:
* //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
*
*
* string results_table = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The resultsTable to set.
* @return This builder for chaining.
*/
public Builder setResultsTable(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resultsTable_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. The BigQuery table to export DataQualityScan results to.
* Format:
* //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
*
*
* string results_table = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearResultsTable() {
resultsTable_ = getDefaultInstance().getResultsTable();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Optional. The BigQuery table to export DataQualityScan results to.
* Format:
* //bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
*
*
* string results_table = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for resultsTable to set.
* @return This builder for chaining.
*/
public Builder setResultsTableBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resultsTable_ = 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.DataQualitySpec.PostScanActions.BigQueryExport)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport)
private static final com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.BigQueryExport
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport();
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BigQueryExport 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.DataQualitySpec.PostScanActions.BigQueryExport
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RecipientsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the emails.
*/
java.util.List getEmailsList();
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of emails.
*/
int getEmailsCount();
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The emails at the given index.
*/
java.lang.String getEmails(int index);
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the value to return.
* @return The bytes of the emails at the given index.
*/
com.google.protobuf.ByteString getEmailsBytes(int index);
}
/**
*
*
*
* The individuals or groups who are designated to receive notifications
* upon triggers.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients}
*/
public static final class Recipients extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients)
RecipientsOrBuilder {
private static final long serialVersionUID = 0L;
// Use Recipients.newBuilder() to construct.
private Recipients(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Recipients() {
emails_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Recipients();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_Recipients_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_Recipients_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients.Builder
.class);
}
public static final int EMAILS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList emails_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the emails.
*/
public com.google.protobuf.ProtocolStringList getEmailsList() {
return emails_;
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of emails.
*/
public int getEmailsCount() {
return emails_.size();
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The emails at the given index.
*/
public java.lang.String getEmails(int index) {
return emails_.get(index);
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the value to return.
* @return The bytes of the emails at the given index.
*/
public com.google.protobuf.ByteString getEmailsBytes(int index) {
return emails_.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 < emails_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, emails_.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 < emails_.size(); i++) {
dataSize += computeStringSizeNoTag(emails_.getRaw(i));
}
size += dataSize;
size += 1 * getEmailsList().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.DataQualitySpec.PostScanActions.Recipients)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients other =
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients) obj;
if (!getEmailsList().equals(other.getEmailsList())) 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 (getEmailsCount() > 0) {
hash = (37 * hash) + EMAILS_FIELD_NUMBER;
hash = (53 * hash) + getEmailsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
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.DataQualitySpec.PostScanActions.Recipients
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
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.DataQualitySpec.PostScanActions.Recipients
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
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.DataQualitySpec.PostScanActions.Recipients
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
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.DataQualitySpec.PostScanActions.Recipients
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
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.DataQualitySpec.PostScanActions.Recipients
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.DataQualitySpec.PostScanActions.Recipients
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.DataQualitySpec.PostScanActions.Recipients 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;
}
/**
*
*
*
* The individuals or groups who are designated to receive notifications
* upon triggers.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients)
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_Recipients_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_Recipients_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients.Builder
.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
emails_ = 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_DataQualitySpec_PostScanActions_Recipients_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients build() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
buildPartial() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients result =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
emails_.makeImmutable();
result.emails_ = emails_;
}
}
@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.DataQualitySpec.PostScanActions.Recipients) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients other) {
if (other
== com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
.getDefaultInstance()) return this;
if (!other.emails_.isEmpty()) {
if (emails_.isEmpty()) {
emails_ = other.emails_;
bitField0_ |= 0x00000001;
} else {
ensureEmailsIsMutable();
emails_.addAll(other.emails_);
}
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();
ensureEmailsIsMutable();
emails_.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 emails_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureEmailsIsMutable() {
if (!emails_.isModifiable()) {
emails_ = new com.google.protobuf.LazyStringArrayList(emails_);
}
bitField0_ |= 0x00000001;
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the emails.
*/
public com.google.protobuf.ProtocolStringList getEmailsList() {
emails_.makeImmutable();
return emails_;
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of emails.
*/
public int getEmailsCount() {
return emails_.size();
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The emails at the given index.
*/
public java.lang.String getEmails(int index) {
return emails_.get(index);
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the value to return.
* @return The bytes of the emails at the given index.
*/
public com.google.protobuf.ByteString getEmailsBytes(int index) {
return emails_.getByteString(index);
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index to set the value at.
* @param value The emails to set.
* @return This builder for chaining.
*/
public Builder setEmails(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEmailsIsMutable();
emails_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The emails to add.
* @return This builder for chaining.
*/
public Builder addEmails(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureEmailsIsMutable();
emails_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param values The emails to add.
* @return This builder for chaining.
*/
public Builder addAllEmails(java.lang.Iterable values) {
ensureEmailsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, emails_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearEmails() {
emails_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
;
onChanged();
return this;
}
/**
*
*
*
* Optional. The email recipients who will receive the DataQualityScan
* results report.
*
*
* repeated string emails = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes of the emails to add.
* @return This builder for chaining.
*/
public Builder addEmailsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureEmailsIsMutable();
emails_.add(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.DataQualitySpec.PostScanActions.Recipients)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients)
private static final com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients();
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Recipients 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.DataQualitySpec.PostScanActions.Recipients
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ScoreThresholdTriggerOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. The score range is in [0,100].
*
*
* float score_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The scoreThreshold.
*/
float getScoreThreshold();
}
/**
*
*
*
* This trigger is triggered when the DQ score in the job result is less
* than a specified input score.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger}
*/
public static final class ScoreThresholdTrigger extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger)
ScoreThresholdTriggerOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScoreThresholdTrigger.newBuilder() to construct.
private ScoreThresholdTrigger(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScoreThresholdTrigger() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ScoreThresholdTrigger();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_ScoreThresholdTrigger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_ScoreThresholdTrigger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.Builder.class);
}
public static final int SCORE_THRESHOLD_FIELD_NUMBER = 2;
private float scoreThreshold_ = 0F;
/**
*
*
*
* Optional. The score range is in [0,100].
*
*
* float score_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The scoreThreshold.
*/
@java.lang.Override
public float getScoreThreshold() {
return scoreThreshold_;
}
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 (java.lang.Float.floatToRawIntBits(scoreThreshold_) != 0) {
output.writeFloat(2, scoreThreshold_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Float.floatToRawIntBits(scoreThreshold_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, scoreThreshold_);
}
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.DataQualitySpec.PostScanActions.ScoreThresholdTrigger)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger other =
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger)
obj;
if (java.lang.Float.floatToIntBits(getScoreThreshold())
!= java.lang.Float.floatToIntBits(other.getScoreThreshold())) 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) + SCORE_THRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(getScoreThreshold());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
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.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
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.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
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.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
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.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
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.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
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.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
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.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
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;
}
/**
*
*
*
* This trigger is triggered when the DQ score in the job result is less
* than a specified input score.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger)
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTriggerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_ScoreThresholdTrigger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_ScoreThresholdTrigger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
scoreThreshold_ = 0F;
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_DataQualitySpec_PostScanActions_ScoreThresholdTrigger_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
build() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
buildPartial() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
result =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.scoreThreshold_ = scoreThreshold_;
}
}
@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.DataQualitySpec.PostScanActions.ScoreThresholdTrigger) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
other) {
if (other
== com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.getDefaultInstance()) return this;
if (other.getScoreThreshold() != 0F) {
setScoreThreshold(other.getScoreThreshold());
}
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 21:
{
scoreThreshold_ = input.readFloat();
bitField0_ |= 0x00000001;
break;
} // case 21
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 float scoreThreshold_;
/**
*
*
*
* Optional. The score range is in [0,100].
*
*
* float score_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The scoreThreshold.
*/
@java.lang.Override
public float getScoreThreshold() {
return scoreThreshold_;
}
/**
*
*
*
* Optional. The score range is in [0,100].
*
*
* float score_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The scoreThreshold to set.
* @return This builder for chaining.
*/
public Builder setScoreThreshold(float value) {
scoreThreshold_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. The score range is in [0,100].
*
*
* float score_threshold = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearScoreThreshold() {
bitField0_ = (bitField0_ & ~0x00000001);
scoreThreshold_ = 0F;
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.DataQualitySpec.PostScanActions.ScoreThresholdTrigger)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger)
private static final com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger();
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScoreThresholdTrigger 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.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface JobFailureTriggerOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger)
com.google.protobuf.MessageOrBuilder {}
/**
*
*
*
* This trigger is triggered when the scan job itself fails, regardless of
* the result.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger}
*/
public static final class JobFailureTrigger extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger)
JobFailureTriggerOrBuilder {
private static final long serialVersionUID = 0L;
// Use JobFailureTrigger.newBuilder() to construct.
private JobFailureTrigger(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private JobFailureTrigger() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new JobFailureTrigger();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_JobFailureTrigger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_JobFailureTrigger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.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.DataQualitySpec.PostScanActions.JobFailureTrigger)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger other =
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger) 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.DataQualitySpec.PostScanActions.JobFailureTrigger
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
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.DataQualitySpec.PostScanActions.JobFailureTrigger
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
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.DataQualitySpec.PostScanActions.JobFailureTrigger
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
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.DataQualitySpec.PostScanActions.JobFailureTrigger
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
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.DataQualitySpec.PostScanActions.JobFailureTrigger
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
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.DataQualitySpec.PostScanActions.JobFailureTrigger
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.DataQualitySpec.PostScanActions.JobFailureTrigger
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.DataQualitySpec.PostScanActions.JobFailureTrigger
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;
}
/**
*
*
*
* This trigger is triggered when the scan job itself fails, regardless of
* the result.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger)
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTriggerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_JobFailureTrigger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_JobFailureTrigger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger.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_DataQualitySpec_PostScanActions_JobFailureTrigger_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
build() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
buildPartial() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger result =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger(
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.DataQualitySpec.PostScanActions.JobFailureTrigger) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger other) {
if (other
== com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.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.DataQualitySpec.PostScanActions.JobFailureTrigger)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger)
private static final com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.JobFailureTrigger
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger();
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JobFailureTrigger 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.DataQualitySpec.PostScanActions.JobFailureTrigger
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface JobEndTriggerOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger)
com.google.protobuf.MessageOrBuilder {}
/**
*
*
*
* This trigger is triggered whenever a scan job run ends, regardless
* of the result.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger}
*/
public static final class JobEndTrigger extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger)
JobEndTriggerOrBuilder {
private static final long serialVersionUID = 0L;
// Use JobEndTrigger.newBuilder() to construct.
private JobEndTrigger(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private JobEndTrigger() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new JobEndTrigger();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_JobEndTrigger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_JobEndTrigger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger.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.DataQualitySpec.PostScanActions.JobEndTrigger)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger other =
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger) 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.DataQualitySpec.PostScanActions.JobEndTrigger
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
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.DataQualitySpec.PostScanActions.JobEndTrigger
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
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.DataQualitySpec.PostScanActions.JobEndTrigger
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
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.DataQualitySpec.PostScanActions.JobEndTrigger
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
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.DataQualitySpec.PostScanActions.JobEndTrigger
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
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.DataQualitySpec.PostScanActions.JobEndTrigger
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.DataQualitySpec.PostScanActions.JobEndTrigger
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.DataQualitySpec.PostScanActions.JobEndTrigger 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;
}
/**
*
*
*
* This trigger is triggered whenever a scan job run ends, regardless
* of the result.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger)
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_JobEndTrigger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_JobEndTrigger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger.Builder
.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger.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_DataQualitySpec_PostScanActions_JobEndTrigger_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger build() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
buildPartial() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger result =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger(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.DataQualitySpec.PostScanActions.JobEndTrigger) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger other) {
if (other
== com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
.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.DataQualitySpec.PostScanActions.JobEndTrigger)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger)
private static final com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.JobEndTrigger
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger();
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JobEndTrigger 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.DataQualitySpec.PostScanActions.JobEndTrigger
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NotificationReportOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the recipients field is set.
*/
boolean hasRecipients();
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The recipients.
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients getRecipients();
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsOrBuilder
getRecipientsOrBuilder();
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the scoreThresholdTrigger field is set.
*/
boolean hasScoreThresholdTrigger();
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The scoreThresholdTrigger.
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
getScoreThresholdTrigger();
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTriggerOrBuilder
getScoreThresholdTriggerOrBuilder();
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the jobFailureTrigger field is set.
*/
boolean hasJobFailureTrigger();
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The jobFailureTrigger.
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
getJobFailureTrigger();
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTriggerOrBuilder
getJobFailureTriggerOrBuilder();
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the jobEndTrigger field is set.
*/
boolean hasJobEndTrigger();
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The jobEndTrigger.
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger getJobEndTrigger();
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*/
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerOrBuilder
getJobEndTriggerOrBuilder();
}
/**
*
*
*
* The configuration of notification report post scan action.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport}
*/
public static final class NotificationReport extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport)
NotificationReportOrBuilder {
private static final long serialVersionUID = 0L;
// Use NotificationReport.newBuilder() to construct.
private NotificationReport(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NotificationReport() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new NotificationReport();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_NotificationReport_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_NotificationReport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.Builder.class);
}
private int bitField0_;
public static final int RECIPIENTS_FIELD_NUMBER = 1;
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients_;
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the recipients field is set.
*/
@java.lang.Override
public boolean hasRecipients() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The recipients.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
getRecipients() {
return recipients_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
.getDefaultInstance()
: recipients_;
}
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsOrBuilder
getRecipientsOrBuilder() {
return recipients_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
.getDefaultInstance()
: recipients_;
}
public static final int SCORE_THRESHOLD_TRIGGER_FIELD_NUMBER = 2;
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
scoreThresholdTrigger_;
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the scoreThresholdTrigger field is set.
*/
@java.lang.Override
public boolean hasScoreThresholdTrigger() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The scoreThresholdTrigger.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
getScoreThresholdTrigger() {
return scoreThresholdTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.getDefaultInstance()
: scoreThresholdTrigger_;
}
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTriggerOrBuilder
getScoreThresholdTriggerOrBuilder() {
return scoreThresholdTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.getDefaultInstance()
: scoreThresholdTrigger_;
}
public static final int JOB_FAILURE_TRIGGER_FIELD_NUMBER = 4;
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
jobFailureTrigger_;
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the jobFailureTrigger field is set.
*/
@java.lang.Override
public boolean hasJobFailureTrigger() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The jobFailureTrigger.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
getJobFailureTrigger() {
return jobFailureTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.getDefaultInstance()
: jobFailureTrigger_;
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTriggerOrBuilder
getJobFailureTriggerOrBuilder() {
return jobFailureTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.getDefaultInstance()
: jobFailureTrigger_;
}
public static final int JOB_END_TRIGGER_FIELD_NUMBER = 5;
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
jobEndTrigger_;
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the jobEndTrigger field is set.
*/
@java.lang.Override
public boolean hasJobEndTrigger() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The jobEndTrigger.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
getJobEndTrigger() {
return jobEndTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
.getDefaultInstance()
: jobEndTrigger_;
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerOrBuilder
getJobEndTriggerOrBuilder() {
return jobEndTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
.getDefaultInstance()
: jobEndTrigger_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getRecipients());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getScoreThresholdTrigger());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getJobFailureTrigger());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(5, getJobEndTrigger());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRecipients());
}
if (((bitField0_ & 0x00000002) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, getScoreThresholdTrigger());
}
if (((bitField0_ & 0x00000004) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(4, getJobFailureTrigger());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getJobEndTrigger());
}
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.DataQualitySpec.PostScanActions.NotificationReport)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport other =
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport) obj;
if (hasRecipients() != other.hasRecipients()) return false;
if (hasRecipients()) {
if (!getRecipients().equals(other.getRecipients())) return false;
}
if (hasScoreThresholdTrigger() != other.hasScoreThresholdTrigger()) return false;
if (hasScoreThresholdTrigger()) {
if (!getScoreThresholdTrigger().equals(other.getScoreThresholdTrigger())) return false;
}
if (hasJobFailureTrigger() != other.hasJobFailureTrigger()) return false;
if (hasJobFailureTrigger()) {
if (!getJobFailureTrigger().equals(other.getJobFailureTrigger())) return false;
}
if (hasJobEndTrigger() != other.hasJobEndTrigger()) return false;
if (hasJobEndTrigger()) {
if (!getJobEndTrigger().equals(other.getJobEndTrigger())) 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 (hasRecipients()) {
hash = (37 * hash) + RECIPIENTS_FIELD_NUMBER;
hash = (53 * hash) + getRecipients().hashCode();
}
if (hasScoreThresholdTrigger()) {
hash = (37 * hash) + SCORE_THRESHOLD_TRIGGER_FIELD_NUMBER;
hash = (53 * hash) + getScoreThresholdTrigger().hashCode();
}
if (hasJobFailureTrigger()) {
hash = (37 * hash) + JOB_FAILURE_TRIGGER_FIELD_NUMBER;
hash = (53 * hash) + getJobFailureTrigger().hashCode();
}
if (hasJobEndTrigger()) {
hash = (37 * hash) + JOB_END_TRIGGER_FIELD_NUMBER;
hash = (53 * hash) + getJobEndTrigger().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
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.DataQualitySpec.PostScanActions.NotificationReport
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
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.DataQualitySpec.PostScanActions.NotificationReport
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
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.DataQualitySpec.PostScanActions.NotificationReport
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
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.DataQualitySpec.PostScanActions.NotificationReport
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
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.DataQualitySpec.PostScanActions.NotificationReport
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.DataQualitySpec.PostScanActions.NotificationReport
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.DataQualitySpec.PostScanActions.NotificationReport
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;
}
/**
*
*
*
* The configuration of notification report post scan action.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport)
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReportOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_NotificationReport_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_NotificationReport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getRecipientsFieldBuilder();
getScoreThresholdTriggerFieldBuilder();
getJobFailureTriggerFieldBuilder();
getJobEndTriggerFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
recipients_ = null;
if (recipientsBuilder_ != null) {
recipientsBuilder_.dispose();
recipientsBuilder_ = null;
}
scoreThresholdTrigger_ = null;
if (scoreThresholdTriggerBuilder_ != null) {
scoreThresholdTriggerBuilder_.dispose();
scoreThresholdTriggerBuilder_ = null;
}
jobFailureTrigger_ = null;
if (jobFailureTriggerBuilder_ != null) {
jobFailureTriggerBuilder_.dispose();
jobFailureTriggerBuilder_ = null;
}
jobEndTrigger_ = null;
if (jobEndTriggerBuilder_ != null) {
jobEndTriggerBuilder_.dispose();
jobEndTriggerBuilder_ = null;
}
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_DataQualitySpec_PostScanActions_NotificationReport_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
build() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
buildPartial() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport result =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport(
this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.recipients_ =
recipientsBuilder_ == null ? recipients_ : recipientsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.scoreThresholdTrigger_ =
scoreThresholdTriggerBuilder_ == null
? scoreThresholdTrigger_
: scoreThresholdTriggerBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.jobFailureTrigger_ =
jobFailureTriggerBuilder_ == null
? jobFailureTrigger_
: jobFailureTriggerBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.jobEndTrigger_ =
jobEndTriggerBuilder_ == null ? jobEndTrigger_ : jobEndTriggerBuilder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@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.DataQualitySpec.PostScanActions.NotificationReport) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport other) {
if (other
== com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.getDefaultInstance()) return this;
if (other.hasRecipients()) {
mergeRecipients(other.getRecipients());
}
if (other.hasScoreThresholdTrigger()) {
mergeScoreThresholdTrigger(other.getScoreThresholdTrigger());
}
if (other.hasJobFailureTrigger()) {
mergeJobFailureTrigger(other.getJobFailureTrigger());
}
if (other.hasJobEndTrigger()) {
mergeJobEndTrigger(other.getJobEndTrigger());
}
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:
{
input.readMessage(getRecipientsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(
getScoreThresholdTriggerFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 34:
{
input.readMessage(
getJobFailureTriggerFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 34
case 42:
{
input.readMessage(
getJobEndTriggerFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 42
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.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsOrBuilder>
recipientsBuilder_;
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the recipients field is set.
*/
public boolean hasRecipients() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The recipients.
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
getRecipients() {
if (recipientsBuilder_ == null) {
return recipients_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
.getDefaultInstance()
: recipients_;
} else {
return recipientsBuilder_.getMessage();
}
}
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setRecipients(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients value) {
if (recipientsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
recipients_ = value;
} else {
recipientsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setRecipients(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients.Builder
builderForValue) {
if (recipientsBuilder_ == null) {
recipients_ = builderForValue.build();
} else {
recipientsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder mergeRecipients(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients value) {
if (recipientsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& recipients_ != null
&& recipients_
!= com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
.getDefaultInstance()) {
getRecipientsBuilder().mergeFrom(value);
} else {
recipients_ = value;
}
} else {
recipientsBuilder_.mergeFrom(value);
}
if (recipients_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearRecipients() {
bitField0_ = (bitField0_ & ~0x00000001);
recipients_ = null;
if (recipientsBuilder_ != null) {
recipientsBuilder_.dispose();
recipientsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients.Builder
getRecipientsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRecipientsFieldBuilder().getBuilder();
}
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsOrBuilder
getRecipientsOrBuilder() {
if (recipientsBuilder_ != null) {
return recipientsBuilder_.getMessageOrBuilder();
} else {
return recipients_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients
.getDefaultInstance()
: recipients_;
}
}
/**
*
*
*
* Required. The recipients who will receive the notification report.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients recipients = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.RecipientsOrBuilder>
getRecipientsFieldBuilder() {
if (recipientsBuilder_ == null) {
recipientsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Recipients.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.RecipientsOrBuilder>(getRecipients(), getParentForChildren(), isClean());
recipients_ = null;
}
return recipientsBuilder_;
}
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
scoreThresholdTrigger_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTriggerOrBuilder>
scoreThresholdTriggerBuilder_;
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the scoreThresholdTrigger field is set.
*/
public boolean hasScoreThresholdTrigger() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The scoreThresholdTrigger.
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
getScoreThresholdTrigger() {
if (scoreThresholdTriggerBuilder_ == null) {
return scoreThresholdTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.getDefaultInstance()
: scoreThresholdTrigger_;
} else {
return scoreThresholdTriggerBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setScoreThresholdTrigger(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
value) {
if (scoreThresholdTriggerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scoreThresholdTrigger_ = value;
} else {
scoreThresholdTriggerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setScoreThresholdTrigger(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.Builder
builderForValue) {
if (scoreThresholdTriggerBuilder_ == null) {
scoreThresholdTrigger_ = builderForValue.build();
} else {
scoreThresholdTriggerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeScoreThresholdTrigger(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
value) {
if (scoreThresholdTriggerBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& scoreThresholdTrigger_ != null
&& scoreThresholdTrigger_
!= com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger.getDefaultInstance()) {
getScoreThresholdTriggerBuilder().mergeFrom(value);
} else {
scoreThresholdTrigger_ = value;
}
} else {
scoreThresholdTriggerBuilder_.mergeFrom(value);
}
if (scoreThresholdTrigger_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearScoreThresholdTrigger() {
bitField0_ = (bitField0_ & ~0x00000002);
scoreThresholdTrigger_ = null;
if (scoreThresholdTriggerBuilder_ != null) {
scoreThresholdTriggerBuilder_.dispose();
scoreThresholdTriggerBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.Builder
getScoreThresholdTriggerBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getScoreThresholdTriggerFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTriggerOrBuilder
getScoreThresholdTriggerOrBuilder() {
if (scoreThresholdTriggerBuilder_ != null) {
return scoreThresholdTriggerBuilder_.getMessageOrBuilder();
} else {
return scoreThresholdTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.getDefaultInstance()
: scoreThresholdTrigger_;
}
}
/**
*
*
*
* Optional. If set, report will be sent when score threshold is met.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger score_threshold_trigger = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.ScoreThresholdTrigger
.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTriggerOrBuilder>
getScoreThresholdTriggerFieldBuilder() {
if (scoreThresholdTriggerBuilder_ == null) {
scoreThresholdTriggerBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTrigger.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.ScoreThresholdTriggerOrBuilder>(
getScoreThresholdTrigger(), getParentForChildren(), isClean());
scoreThresholdTrigger_ = null;
}
return scoreThresholdTriggerBuilder_;
}
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
jobFailureTrigger_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.JobFailureTriggerOrBuilder>
jobFailureTriggerBuilder_;
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the jobFailureTrigger field is set.
*/
public boolean hasJobFailureTrigger() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The jobFailureTrigger.
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
getJobFailureTrigger() {
if (jobFailureTriggerBuilder_ == null) {
return jobFailureTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.getDefaultInstance()
: jobFailureTrigger_;
} else {
return jobFailureTriggerBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setJobFailureTrigger(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger value) {
if (jobFailureTriggerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
jobFailureTrigger_ = value;
} else {
jobFailureTriggerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setJobFailureTrigger(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger.Builder
builderForValue) {
if (jobFailureTriggerBuilder_ == null) {
jobFailureTrigger_ = builderForValue.build();
} else {
jobFailureTriggerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeJobFailureTrigger(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger value) {
if (jobFailureTriggerBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& jobFailureTrigger_ != null
&& jobFailureTrigger_
!= com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.JobFailureTrigger.getDefaultInstance()) {
getJobFailureTriggerBuilder().mergeFrom(value);
} else {
jobFailureTrigger_ = value;
}
} else {
jobFailureTriggerBuilder_.mergeFrom(value);
}
if (jobFailureTrigger_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearJobFailureTrigger() {
bitField0_ = (bitField0_ & ~0x00000004);
jobFailureTrigger_ = null;
if (jobFailureTriggerBuilder_ != null) {
jobFailureTriggerBuilder_.dispose();
jobFailureTriggerBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.Builder
getJobFailureTriggerBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getJobFailureTriggerFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.JobFailureTriggerOrBuilder
getJobFailureTriggerOrBuilder() {
if (jobFailureTriggerBuilder_ != null) {
return jobFailureTriggerBuilder_.getMessageOrBuilder();
} else {
return jobFailureTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.getDefaultInstance()
: jobFailureTrigger_;
}
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job fails.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger job_failure_trigger = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.JobFailureTriggerOrBuilder>
getJobFailureTriggerFieldBuilder() {
if (jobFailureTriggerBuilder_ == null) {
jobFailureTriggerBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobFailureTrigger
.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.JobFailureTriggerOrBuilder>(
getJobFailureTrigger(), getParentForChildren(), isClean());
jobFailureTrigger_ = null;
}
return jobFailureTriggerBuilder_;
}
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
jobEndTrigger_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerOrBuilder>
jobEndTriggerBuilder_;
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the jobEndTrigger field is set.
*/
public boolean hasJobEndTrigger() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The jobEndTrigger.
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
getJobEndTrigger() {
if (jobEndTriggerBuilder_ == null) {
return jobEndTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
.getDefaultInstance()
: jobEndTrigger_;
} else {
return jobEndTriggerBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setJobEndTrigger(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger value) {
if (jobEndTriggerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
jobEndTrigger_ = value;
} else {
jobEndTriggerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setJobEndTrigger(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger.Builder
builderForValue) {
if (jobEndTriggerBuilder_ == null) {
jobEndTrigger_ = builderForValue.build();
} else {
jobEndTriggerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeJobEndTrigger(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger value) {
if (jobEndTriggerBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& jobEndTrigger_ != null
&& jobEndTrigger_
!= com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
.getDefaultInstance()) {
getJobEndTriggerBuilder().mergeFrom(value);
} else {
jobEndTrigger_ = value;
}
} else {
jobEndTriggerBuilder_.mergeFrom(value);
}
if (jobEndTrigger_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearJobEndTrigger() {
bitField0_ = (bitField0_ & ~0x00000008);
jobEndTrigger_ = null;
if (jobEndTriggerBuilder_ != null) {
jobEndTriggerBuilder_.dispose();
jobEndTriggerBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger.Builder
getJobEndTriggerBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getJobEndTriggerFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerOrBuilder
getJobEndTriggerOrBuilder() {
if (jobEndTriggerBuilder_ != null) {
return jobEndTriggerBuilder_.getMessageOrBuilder();
} else {
return jobEndTrigger_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
.getDefaultInstance()
: jobEndTrigger_;
}
}
/**
*
*
*
* Optional. If set, report will be sent when a scan job ends.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger job_end_trigger = 5 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTriggerOrBuilder>
getJobEndTriggerFieldBuilder() {
if (jobEndTriggerBuilder_ == null) {
jobEndTriggerBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.JobEndTrigger
.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.JobEndTriggerOrBuilder>(
getJobEndTrigger(), getParentForChildren(), isClean());
jobEndTrigger_ = null;
}
return jobEndTriggerBuilder_;
}
@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.DataQualitySpec.PostScanActions.NotificationReport)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport)
private static final com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.NotificationReport
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport();
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NotificationReport 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.DataQualitySpec.PostScanActions.NotificationReport
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int BIGQUERY_EXPORT_FIELD_NUMBER = 1;
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
bigqueryExport_;
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the bigqueryExport field is set.
*/
@java.lang.Override
public boolean hasBigqueryExport() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The bigqueryExport.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
getBigqueryExport() {
return bigqueryExport_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
.getDefaultInstance()
: bigqueryExport_;
}
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportOrBuilder
getBigqueryExportOrBuilder() {
return bigqueryExport_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
.getDefaultInstance()
: bigqueryExport_;
}
public static final int NOTIFICATION_REPORT_FIELD_NUMBER = 2;
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
notificationReport_;
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the notificationReport field is set.
*/
@java.lang.Override
public boolean hasNotificationReport() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The notificationReport.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
getNotificationReport() {
return notificationReport_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.getDefaultInstance()
: notificationReport_;
}
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReportOrBuilder
getNotificationReportOrBuilder() {
return notificationReport_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.getDefaultInstance()
: notificationReport_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getBigqueryExport());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getNotificationReport());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryExport());
}
if (((bitField0_ & 0x00000002) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotificationReport());
}
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.DataQualitySpec.PostScanActions)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions other =
(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions) obj;
if (hasBigqueryExport() != other.hasBigqueryExport()) return false;
if (hasBigqueryExport()) {
if (!getBigqueryExport().equals(other.getBigqueryExport())) return false;
}
if (hasNotificationReport() != other.hasNotificationReport()) return false;
if (hasNotificationReport()) {
if (!getNotificationReport().equals(other.getNotificationReport())) 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 (hasBigqueryExport()) {
hash = (37 * hash) + BIGQUERY_EXPORT_FIELD_NUMBER;
hash = (53 * hash) + getBigqueryExport().hashCode();
}
if (hasNotificationReport()) {
hash = (37 * hash) + NOTIFICATION_REPORT_FIELD_NUMBER;
hash = (53 * hash) + getNotificationReport().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions 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.DataQualitySpec.PostScanActions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions 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.DataQualitySpec.PostScanActions parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions 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.DataQualitySpec.PostScanActions parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions 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.DataQualitySpec.PostScanActions parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions 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.DataQualitySpec.PostScanActions 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.DataQualitySpec.PostScanActions 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.DataQualitySpec.PostScanActions 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;
}
/**
*
*
*
* The configuration of post scan actions of DataQualityScan.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualitySpec.PostScanActions}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions)
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_PostScanActions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.class,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getBigqueryExportFieldBuilder();
getNotificationReportFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
bigqueryExport_ = null;
if (bigqueryExportBuilder_ != null) {
bigqueryExportBuilder_.dispose();
bigqueryExportBuilder_ = null;
}
notificationReport_ = null;
if (notificationReportBuilder_ != null) {
notificationReportBuilder_.dispose();
notificationReportBuilder_ = null;
}
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_DataQualitySpec_PostScanActions_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions build() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions buildPartial() {
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions result =
new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.bigqueryExport_ =
bigqueryExportBuilder_ == null ? bigqueryExport_ : bigqueryExportBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.notificationReport_ =
notificationReportBuilder_ == null
? notificationReport_
: notificationReportBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@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.DataQualitySpec.PostScanActions) {
return mergeFrom((com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions other) {
if (other
== com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.getDefaultInstance())
return this;
if (other.hasBigqueryExport()) {
mergeBigqueryExport(other.getBigqueryExport());
}
if (other.hasNotificationReport()) {
mergeNotificationReport(other.getNotificationReport());
}
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:
{
input.readMessage(
getBigqueryExportFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(
getNotificationReportFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
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.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
bigqueryExport_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportOrBuilder>
bigqueryExportBuilder_;
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the bigqueryExport field is set.
*/
public boolean hasBigqueryExport() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The bigqueryExport.
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
getBigqueryExport() {
if (bigqueryExportBuilder_ == null) {
return bigqueryExport_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
.getDefaultInstance()
: bigqueryExport_;
} else {
return bigqueryExportBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setBigqueryExport(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport value) {
if (bigqueryExportBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bigqueryExport_ = value;
} else {
bigqueryExportBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setBigqueryExport(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport.Builder
builderForValue) {
if (bigqueryExportBuilder_ == null) {
bigqueryExport_ = builderForValue.build();
} else {
bigqueryExportBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeBigqueryExport(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport value) {
if (bigqueryExportBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& bigqueryExport_ != null
&& bigqueryExport_
!= com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
.getDefaultInstance()) {
getBigqueryExportBuilder().mergeFrom(value);
} else {
bigqueryExport_ = value;
}
} else {
bigqueryExportBuilder_.mergeFrom(value);
}
if (bigqueryExport_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearBigqueryExport() {
bitField0_ = (bitField0_ & ~0x00000001);
bigqueryExport_ = null;
if (bigqueryExportBuilder_ != null) {
bigqueryExportBuilder_.dispose();
bigqueryExportBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport.Builder
getBigqueryExportBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBigqueryExportFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportOrBuilder
getBigqueryExportOrBuilder() {
if (bigqueryExportBuilder_ != null) {
return bigqueryExportBuilder_.getMessageOrBuilder();
} else {
return bigqueryExport_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
.getDefaultInstance()
: bigqueryExport_;
}
}
/**
*
*
*
* Optional. If set, results will be exported to the provided BigQuery
* table.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport bigquery_export = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExportOrBuilder>
getBigqueryExportFieldBuilder() {
if (bigqueryExportBuilder_ == null) {
bigqueryExportBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.BigQueryExport
.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.BigQueryExportOrBuilder>(
getBigqueryExport(), getParentForChildren(), isClean());
bigqueryExport_ = null;
}
return bigqueryExportBuilder_;
}
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
notificationReport_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.NotificationReportOrBuilder>
notificationReportBuilder_;
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the notificationReport field is set.
*/
public boolean hasNotificationReport() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The notificationReport.
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
getNotificationReport() {
if (notificationReportBuilder_ == null) {
return notificationReport_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.getDefaultInstance()
: notificationReport_;
} else {
return notificationReportBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setNotificationReport(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport value) {
if (notificationReportBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
notificationReport_ = value;
} else {
notificationReportBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setNotificationReport(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport.Builder
builderForValue) {
if (notificationReportBuilder_ == null) {
notificationReport_ = builderForValue.build();
} else {
notificationReportBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeNotificationReport(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport value) {
if (notificationReportBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& notificationReport_ != null
&& notificationReport_
!= com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.getDefaultInstance()) {
getNotificationReportBuilder().mergeFrom(value);
} else {
notificationReport_ = value;
}
} else {
notificationReportBuilder_.mergeFrom(value);
}
if (notificationReport_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearNotificationReport() {
bitField0_ = (bitField0_ & ~0x00000002);
notificationReport_ = null;
if (notificationReportBuilder_ != null) {
notificationReportBuilder_.dispose();
notificationReportBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport.Builder
getNotificationReportBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNotificationReportFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.NotificationReportOrBuilder
getNotificationReportOrBuilder() {
if (notificationReportBuilder_ != null) {
return notificationReportBuilder_.getMessageOrBuilder();
} else {
return notificationReport_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.getDefaultInstance()
: notificationReport_;
}
}
/**
*
*
*
* Optional. If set, results will be sent to the provided notification
* receipts upon triggers.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport notification_report = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.NotificationReportOrBuilder>
getNotificationReportFieldBuilder() {
if (notificationReportBuilder_ == null) {
notificationReportBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.NotificationReport
.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.NotificationReportOrBuilder>(
getNotificationReport(), getParentForChildren(), isClean());
notificationReport_ = null;
}
return notificationReportBuilder_;
}
@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.DataQualitySpec.PostScanActions)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualitySpec.PostScanActions)
private static final com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions();
}
public static com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PostScanActions 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.DataQualitySpec.PostScanActions
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int RULES_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List rules_;
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public java.util.List getRulesList() {
return rules_;
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public java.util.List extends com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder>
getRulesOrBuilderList() {
return rules_;
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public int getRulesCount() {
return rules_.size();
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRule getRules(int index) {
return rules_.get(index);
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder getRulesOrBuilder(int index) {
return rules_.get(index);
}
public static final int SAMPLING_PERCENT_FIELD_NUMBER = 4;
private float samplingPercent_ = 0F;
/**
*
*
*
* Optional. The percentage of the records to be selected from the dataset for
* DataScan.
*
* * Value can range between 0.0 and 100.0 with up to 3 significant decimal
* digits.
* * Sampling is not applied if `sampling_percent` is not specified, 0 or
* 100.
*
*
* float sampling_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The samplingPercent.
*/
@java.lang.Override
public float getSamplingPercent() {
return samplingPercent_;
}
public static final int ROW_FILTER_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object rowFilter_ = "";
/**
*
*
*
* Optional. A filter applied to all rows in a single DataScan job.
* The filter needs to be a valid SQL expression for a WHERE clause in
* BigQuery standard SQL syntax.
* Example: col1 >= 0 AND col2 < 10
*
*
* string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The rowFilter.
*/
@java.lang.Override
public java.lang.String getRowFilter() {
java.lang.Object ref = rowFilter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rowFilter_ = s;
return s;
}
}
/**
*
*
*
* Optional. A filter applied to all rows in a single DataScan job.
* The filter needs to be a valid SQL expression for a WHERE clause in
* BigQuery standard SQL syntax.
* Example: col1 >= 0 AND col2 < 10
*
*
* string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for rowFilter.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRowFilterBytes() {
java.lang.Object ref = rowFilter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
rowFilter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POST_SCAN_ACTIONS_FIELD_NUMBER = 6;
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions postScanActions_;
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the postScanActions field is set.
*/
@java.lang.Override
public boolean hasPostScanActions() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The postScanActions.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions getPostScanActions() {
return postScanActions_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.getDefaultInstance()
: postScanActions_;
}
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsOrBuilder
getPostScanActionsOrBuilder() {
return postScanActions_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.getDefaultInstance()
: postScanActions_;
}
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 < rules_.size(); i++) {
output.writeMessage(1, rules_.get(i));
}
if (java.lang.Float.floatToRawIntBits(samplingPercent_) != 0) {
output.writeFloat(4, samplingPercent_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rowFilter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, rowFilter_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, getPostScanActions());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < rules_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.get(i));
}
if (java.lang.Float.floatToRawIntBits(samplingPercent_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, samplingPercent_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rowFilter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, rowFilter_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPostScanActions());
}
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.DataQualitySpec)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataQualitySpec other =
(com.google.cloud.dataplex.v1.DataQualitySpec) obj;
if (!getRulesList().equals(other.getRulesList())) return false;
if (java.lang.Float.floatToIntBits(getSamplingPercent())
!= java.lang.Float.floatToIntBits(other.getSamplingPercent())) return false;
if (!getRowFilter().equals(other.getRowFilter())) return false;
if (hasPostScanActions() != other.hasPostScanActions()) return false;
if (hasPostScanActions()) {
if (!getPostScanActions().equals(other.getPostScanActions())) 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 (getRulesCount() > 0) {
hash = (37 * hash) + RULES_FIELD_NUMBER;
hash = (53 * hash) + getRulesList().hashCode();
}
hash = (37 * hash) + SAMPLING_PERCENT_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(getSamplingPercent());
hash = (37 * hash) + ROW_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getRowFilter().hashCode();
if (hasPostScanActions()) {
hash = (37 * hash) + POST_SCAN_ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getPostScanActions().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataQualitySpec parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec 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.DataQualitySpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec 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.DataQualitySpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec 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.DataQualitySpec parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec 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.DataQualitySpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataQualitySpec 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.DataQualitySpec 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.DataQualitySpec 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.DataQualitySpec 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;
}
/**
*
*
*
* DataQualityScan related setting.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataQualitySpec}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataQualitySpec)
com.google.cloud.dataplex.v1.DataQualitySpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataQualityProto
.internal_static_google_cloud_dataplex_v1_DataQualitySpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataQualitySpec.class,
com.google.cloud.dataplex.v1.DataQualitySpec.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DataQualitySpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getRulesFieldBuilder();
getPostScanActionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
} else {
rules_ = null;
rulesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
samplingPercent_ = 0F;
rowFilter_ = "";
postScanActions_ = null;
if (postScanActionsBuilder_ != null) {
postScanActionsBuilder_.dispose();
postScanActionsBuilder_ = null;
}
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_DataQualitySpec_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec build() {
com.google.cloud.dataplex.v1.DataQualitySpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataQualitySpec buildPartial() {
com.google.cloud.dataplex.v1.DataQualitySpec result =
new com.google.cloud.dataplex.v1.DataQualitySpec(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.cloud.dataplex.v1.DataQualitySpec result) {
if (rulesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.rules_ = rules_;
} else {
result.rules_ = rulesBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.dataplex.v1.DataQualitySpec result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.samplingPercent_ = samplingPercent_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.rowFilter_ = rowFilter_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.postScanActions_ =
postScanActionsBuilder_ == null ? postScanActions_ : postScanActionsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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.DataQualitySpec) {
return mergeFrom((com.google.cloud.dataplex.v1.DataQualitySpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DataQualitySpec other) {
if (other == com.google.cloud.dataplex.v1.DataQualitySpec.getDefaultInstance()) return this;
if (rulesBuilder_ == null) {
if (!other.rules_.isEmpty()) {
if (rules_.isEmpty()) {
rules_ = other.rules_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRulesIsMutable();
rules_.addAll(other.rules_);
}
onChanged();
}
} else {
if (!other.rules_.isEmpty()) {
if (rulesBuilder_.isEmpty()) {
rulesBuilder_.dispose();
rulesBuilder_ = null;
rules_ = other.rules_;
bitField0_ = (bitField0_ & ~0x00000001);
rulesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getRulesFieldBuilder()
: null;
} else {
rulesBuilder_.addAllMessages(other.rules_);
}
}
}
if (other.getSamplingPercent() != 0F) {
setSamplingPercent(other.getSamplingPercent());
}
if (!other.getRowFilter().isEmpty()) {
rowFilter_ = other.rowFilter_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasPostScanActions()) {
mergePostScanActions(other.getPostScanActions());
}
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:
{
com.google.cloud.dataplex.v1.DataQualityRule m =
input.readMessage(
com.google.cloud.dataplex.v1.DataQualityRule.parser(), extensionRegistry);
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.add(m);
} else {
rulesBuilder_.addMessage(m);
}
break;
} // case 10
case 37:
{
samplingPercent_ = input.readFloat();
bitField0_ |= 0x00000002;
break;
} // case 37
case 42:
{
rowFilter_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 42
case 50:
{
input.readMessage(getPostScanActionsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 50
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.util.List rules_ =
java.util.Collections.emptyList();
private void ensureRulesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
rules_ = new java.util.ArrayList(rules_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualityRule,
com.google.cloud.dataplex.v1.DataQualityRule.Builder,
com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder>
rulesBuilder_;
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public java.util.List getRulesList() {
if (rulesBuilder_ == null) {
return java.util.Collections.unmodifiableList(rules_);
} else {
return rulesBuilder_.getMessageList();
}
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public int getRulesCount() {
if (rulesBuilder_ == null) {
return rules_.size();
} else {
return rulesBuilder_.getCount();
}
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dataplex.v1.DataQualityRule getRules(int index) {
if (rulesBuilder_ == null) {
return rules_.get(index);
} else {
return rulesBuilder_.getMessage(index);
}
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setRules(int index, com.google.cloud.dataplex.v1.DataQualityRule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.set(index, value);
onChanged();
} else {
rulesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setRules(
int index, com.google.cloud.dataplex.v1.DataQualityRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.set(index, builderForValue.build());
onChanged();
} else {
rulesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addRules(com.google.cloud.dataplex.v1.DataQualityRule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.add(value);
onChanged();
} else {
rulesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addRules(int index, com.google.cloud.dataplex.v1.DataQualityRule value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRulesIsMutable();
rules_.add(index, value);
onChanged();
} else {
rulesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addRules(com.google.cloud.dataplex.v1.DataQualityRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.add(builderForValue.build());
onChanged();
} else {
rulesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addRules(
int index, com.google.cloud.dataplex.v1.DataQualityRule.Builder builderForValue) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.add(index, builderForValue.build());
onChanged();
} else {
rulesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder addAllRules(
java.lang.Iterable extends com.google.cloud.dataplex.v1.DataQualityRule> values) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_);
onChanged();
} else {
rulesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearRules() {
if (rulesBuilder_ == null) {
rules_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
rulesBuilder_.clear();
}
return this;
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder removeRules(int index) {
if (rulesBuilder_ == null) {
ensureRulesIsMutable();
rules_.remove(index);
onChanged();
} else {
rulesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dataplex.v1.DataQualityRule.Builder getRulesBuilder(int index) {
return getRulesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder getRulesOrBuilder(int index) {
if (rulesBuilder_ == null) {
return rules_.get(index);
} else {
return rulesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public java.util.List extends com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder>
getRulesOrBuilderList() {
if (rulesBuilder_ != null) {
return rulesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(rules_);
}
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dataplex.v1.DataQualityRule.Builder addRulesBuilder() {
return getRulesFieldBuilder()
.addBuilder(com.google.cloud.dataplex.v1.DataQualityRule.getDefaultInstance());
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.cloud.dataplex.v1.DataQualityRule.Builder addRulesBuilder(int index) {
return getRulesFieldBuilder()
.addBuilder(index, com.google.cloud.dataplex.v1.DataQualityRule.getDefaultInstance());
}
/**
*
*
*
* Required. The list of rules to evaluate against a data source. At least one
* rule is required.
*
*
*
* repeated .google.cloud.dataplex.v1.DataQualityRule rules = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public java.util.List
getRulesBuilderList() {
return getRulesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualityRule,
com.google.cloud.dataplex.v1.DataQualityRule.Builder,
com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder>
getRulesFieldBuilder() {
if (rulesBuilder_ == null) {
rulesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualityRule,
com.google.cloud.dataplex.v1.DataQualityRule.Builder,
com.google.cloud.dataplex.v1.DataQualityRuleOrBuilder>(
rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
rules_ = null;
}
return rulesBuilder_;
}
private float samplingPercent_;
/**
*
*
*
* Optional. The percentage of the records to be selected from the dataset for
* DataScan.
*
* * Value can range between 0.0 and 100.0 with up to 3 significant decimal
* digits.
* * Sampling is not applied if `sampling_percent` is not specified, 0 or
* 100.
*
*
* float sampling_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The samplingPercent.
*/
@java.lang.Override
public float getSamplingPercent() {
return samplingPercent_;
}
/**
*
*
*
* Optional. The percentage of the records to be selected from the dataset for
* DataScan.
*
* * Value can range between 0.0 and 100.0 with up to 3 significant decimal
* digits.
* * Sampling is not applied if `sampling_percent` is not specified, 0 or
* 100.
*
*
* float sampling_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The samplingPercent to set.
* @return This builder for chaining.
*/
public Builder setSamplingPercent(float value) {
samplingPercent_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. The percentage of the records to be selected from the dataset for
* DataScan.
*
* * Value can range between 0.0 and 100.0 with up to 3 significant decimal
* digits.
* * Sampling is not applied if `sampling_percent` is not specified, 0 or
* 100.
*
*
* float sampling_percent = 4 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearSamplingPercent() {
bitField0_ = (bitField0_ & ~0x00000002);
samplingPercent_ = 0F;
onChanged();
return this;
}
private java.lang.Object rowFilter_ = "";
/**
*
*
*
* Optional. A filter applied to all rows in a single DataScan job.
* The filter needs to be a valid SQL expression for a WHERE clause in
* BigQuery standard SQL syntax.
* Example: col1 >= 0 AND col2 < 10
*
*
* string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The rowFilter.
*/
public java.lang.String getRowFilter() {
java.lang.Object ref = rowFilter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rowFilter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. A filter applied to all rows in a single DataScan job.
* The filter needs to be a valid SQL expression for a WHERE clause in
* BigQuery standard SQL syntax.
* Example: col1 >= 0 AND col2 < 10
*
*
* string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for rowFilter.
*/
public com.google.protobuf.ByteString getRowFilterBytes() {
java.lang.Object ref = rowFilter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
rowFilter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. A filter applied to all rows in a single DataScan job.
* The filter needs to be a valid SQL expression for a WHERE clause in
* BigQuery standard SQL syntax.
* Example: col1 >= 0 AND col2 < 10
*
*
* string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The rowFilter to set.
* @return This builder for chaining.
*/
public Builder setRowFilter(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
rowFilter_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. A filter applied to all rows in a single DataScan job.
* The filter needs to be a valid SQL expression for a WHERE clause in
* BigQuery standard SQL syntax.
* Example: col1 >= 0 AND col2 < 10
*
*
* string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearRowFilter() {
rowFilter_ = getDefaultInstance().getRowFilter();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Optional. A filter applied to all rows in a single DataScan job.
* The filter needs to be a valid SQL expression for a WHERE clause in
* BigQuery standard SQL syntax.
* Example: col1 >= 0 AND col2 < 10
*
*
* string row_filter = 5 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for rowFilter to set.
* @return This builder for chaining.
*/
public Builder setRowFilterBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rowFilter_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions postScanActions_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsOrBuilder>
postScanActionsBuilder_;
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the postScanActions field is set.
*/
public boolean hasPostScanActions() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The postScanActions.
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions getPostScanActions() {
if (postScanActionsBuilder_ == null) {
return postScanActions_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.getDefaultInstance()
: postScanActions_;
} else {
return postScanActionsBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setPostScanActions(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions value) {
if (postScanActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
postScanActions_ = value;
} else {
postScanActionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setPostScanActions(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Builder builderForValue) {
if (postScanActionsBuilder_ == null) {
postScanActions_ = builderForValue.build();
} else {
postScanActionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergePostScanActions(
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions value) {
if (postScanActionsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& postScanActions_ != null
&& postScanActions_
!= com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions
.getDefaultInstance()) {
getPostScanActionsBuilder().mergeFrom(value);
} else {
postScanActions_ = value;
}
} else {
postScanActionsBuilder_.mergeFrom(value);
}
if (postScanActions_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearPostScanActions() {
bitField0_ = (bitField0_ & ~0x00000008);
postScanActions_ = null;
if (postScanActionsBuilder_ != null) {
postScanActionsBuilder_.dispose();
postScanActionsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Builder
getPostScanActionsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getPostScanActionsFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsOrBuilder
getPostScanActionsOrBuilder() {
if (postScanActionsBuilder_ != null) {
return postScanActionsBuilder_.getMessageOrBuilder();
} else {
return postScanActions_ == null
? com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.getDefaultInstance()
: postScanActions_;
}
}
/**
*
*
*
* Optional. Actions to take upon job completion.
*
*
*
* .google.cloud.dataplex.v1.DataQualitySpec.PostScanActions post_scan_actions = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsOrBuilder>
getPostScanActionsFieldBuilder() {
if (postScanActionsBuilder_ == null) {
postScanActionsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActions.Builder,
com.google.cloud.dataplex.v1.DataQualitySpec.PostScanActionsOrBuilder>(
getPostScanActions(), getParentForChildren(), isClean());
postScanActions_ = null;
}
return postScanActionsBuilder_;
}
@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.DataQualitySpec)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataQualitySpec)
private static final com.google.cloud.dataplex.v1.DataQualitySpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataQualitySpec();
}
public static com.google.cloud.dataplex.v1.DataQualitySpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataQualitySpec 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.DataQualitySpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}