Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataplex/v1/logs.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.dataplex.v1;
/**
*
*
*
* These messages contain information about the execution of a datascan.
* The monitored resource is 'DataScan'
* Next ID: 13
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent}
*/
public final class DataScanEvent extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent)
DataScanEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataScanEvent.newBuilder() to construct.
private DataScanEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataScanEvent() {
dataSource_ = "";
jobId_ = "";
type_ = 0;
state_ = 0;
message_ = "";
specVersion_ = "";
trigger_ = 0;
scope_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DataScanEvent();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScanEvent.class,
com.google.cloud.dataplex.v1.DataScanEvent.Builder.class);
}
/**
*
*
*
*
* SCAN_TYPE_UNSPECIFIED = 0;
*/
public static final int SCAN_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Data scan for data profile.
*
*
* DATA_PROFILE = 1;
*/
public static final int DATA_PROFILE_VALUE = 1;
/**
*
*
*
* Data scan for data quality.
*
*
* DATA_QUALITY = 2;
*/
public static final int DATA_QUALITY_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ScanType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ScanType forNumber(int value) {
switch (value) {
case 0:
return SCAN_TYPE_UNSPECIFIED;
case 1:
return DATA_PROFILE;
case 2:
return DATA_QUALITY;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ScanType findValueByNumber(int number) {
return ScanType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(0);
}
private static final ScanType[] VALUES = values();
public static ScanType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ScanType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.ScanType)
}
/**
*
*
*
* The job state of the data scan.
*
*
* Protobuf enum {@code google.cloud.dataplex.v1.DataScanEvent.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Data scan job started.
*
*
* STARTED = 1;
*/
public static final int STARTED_VALUE = 1;
/**
*
*
*
* Data scan job successfully completed.
*
*
* SUCCEEDED = 2;
*/
public static final int SUCCEEDED_VALUE = 2;
/**
*
*
*
* Data scan job was unsuccessful.
*
*
* FAILED = 3;
*/
public static final int FAILED_VALUE = 3;
/**
*
*
*
* Data scan job was cancelled.
*
*
* CANCELLED = 4;
*/
public static final int CANCELLED_VALUE = 4;
/**
*
*
*
* Data scan job was createed.
*
*
* CREATED = 5;
*/
public static final int CREATED_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static State valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static State forNumber(int value) {
switch (value) {
case 0:
return STATE_UNSPECIFIED;
case 1:
return STARTED;
case 2:
return SUCCEEDED;
case 3:
return FAILED;
case 4:
return CANCELLED;
case 5:
return CREATED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(1);
}
private static final State[] VALUES = values();
public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.State)
}
/**
*
*
*
*
* TRIGGER_UNSPECIFIED = 0;
*/
public static final int TRIGGER_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Data scan triggers on demand.
*
*
* ON_DEMAND = 1;
*/
public static final int ON_DEMAND_VALUE = 1;
/**
*
*
*
* Data scan triggers as per schedule.
*
*
* SCHEDULE = 2;
*/
public static final int SCHEDULE_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Trigger valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Trigger forNumber(int value) {
switch (value) {
case 0:
return TRIGGER_UNSPECIFIED;
case 1:
return ON_DEMAND;
case 2:
return SCHEDULE;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Trigger findValueByNumber(int number) {
return Trigger.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(2);
}
private static final Trigger[] VALUES = values();
public static Trigger valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Trigger(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.Trigger)
}
/**
*
*
*
*
* SCOPE_UNSPECIFIED = 0;
*/
public static final int SCOPE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Data scan runs on all of the data.
*
*
* FULL = 1;
*/
public static final int FULL_VALUE = 1;
/**
*
*
*
* Data scan runs on incremental data.
*
*
* INCREMENTAL = 2;
*/
public static final int INCREMENTAL_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Scope valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Scope forNumber(int value) {
switch (value) {
case 0:
return SCOPE_UNSPECIFIED;
case 1:
return FULL;
case 2:
return INCREMENTAL;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Scope findValueByNumber(int number) {
return Scope.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataScanEvent.getDescriptor().getEnumTypes().get(3);
}
private static final Scope[] VALUES = values();
public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Scope(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.Scope)
}
public interface DataProfileResultOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The count of rows processed in the data scan job.
*
*
* int64 row_count = 1;
*
* @return The rowCount.
*/
long getRowCount();
}
/**
*
*
*
* Data profile result for data scan job.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataProfileResult}
*/
public static final class DataProfileResult extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult)
DataProfileResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataProfileResult.newBuilder() to construct.
private DataProfileResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataProfileResult() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DataProfileResult();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.class,
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder.class);
}
public static final int ROW_COUNT_FIELD_NUMBER = 1;
private long rowCount_ = 0L;
/**
*
*
*
* The count of rows processed in the data scan job.
*
*
* int64 row_count = 1;
*
* @return The rowCount.
*/
@java.lang.Override
public long getRowCount() {
return rowCount_;
}
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 (rowCount_ != 0L) {
output.writeInt64(1, rowCount_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (rowCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rowCount_);
}
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.DataScanEvent.DataProfileResult)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult other =
(com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) obj;
if (getRowCount() != other.getRowCount()) 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) + ROW_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.DataScanEvent.DataProfileResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.DataScanEvent.DataProfileResult parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.DataScanEvent.DataProfileResult parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.DataScanEvent.DataProfileResult parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult 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.DataScanEvent.DataProfileResult 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.DataScanEvent.DataProfileResult 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.DataScanEvent.DataProfileResult 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;
}
/**
*
*
*
* Data profile result for data scan job.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataProfileResult}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult)
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.class,
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
rowCount_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileResult_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult build() {
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult buildPartial() {
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult result =
new com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.rowCount_ = rowCount_;
}
}
@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.DataScanEvent.DataProfileResult) {
return mergeFrom((com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult other) {
if (other
== com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult.getDefaultInstance())
return this;
if (other.getRowCount() != 0L) {
setRowCount(other.getRowCount());
}
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 8:
{
rowCount_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
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 long rowCount_;
/**
*
*
*
* The count of rows processed in the data scan job.
*
*
* int64 row_count = 1;
*
* @return The rowCount.
*/
@java.lang.Override
public long getRowCount() {
return rowCount_;
}
/**
*
*
*
* The count of rows processed in the data scan job.
*
*
* int64 row_count = 1;
*
* @param value The rowCount to set.
* @return This builder for chaining.
*/
public Builder setRowCount(long value) {
rowCount_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The count of rows processed in the data scan job.
*
*
* int64 row_count = 1;
*
* @return This builder for chaining.
*/
public Builder clearRowCount() {
bitField0_ = (bitField0_ & ~0x00000001);
rowCount_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScanEvent.DataProfileResult)
private static final com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult();
}
public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileResult
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataProfileResult 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.DataScanEvent.DataProfileResult
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataQualityResultOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The count of rows processed in the data scan job.
*
*
* int64 row_count = 1;
*
* @return The rowCount.
*/
long getRowCount();
/**
*
*
*
* Whether the data quality result was `pass` or not.
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataQualityResult}
*/
public static final class DataQualityResult extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult)
DataQualityResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataQualityResult.newBuilder() to construct.
private DataQualityResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataQualityResult() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DataQualityResult();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 3:
return internalGetDimensionPassed();
case 5:
return internalGetDimensionScore();
case 6:
return internalGetColumnScore();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.class,
com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult.Builder.class);
}
public static final int ROW_COUNT_FIELD_NUMBER = 1;
private long rowCount_ = 0L;
/**
*
*
*
* The count of rows processed in the data scan job.
*
*
* int64 row_count = 1;
*
* @return The rowCount.
*/
@java.lang.Override
public long getRowCount() {
return rowCount_;
}
public static final int PASSED_FIELD_NUMBER = 2;
private boolean passed_ = false;
/**
*
*
*
* Whether the data quality result was `pass` or not.
*
*
* bool passed = 2;
*
* @return The passed.
*/
@java.lang.Override
public boolean getPassed() {
return passed_;
}
public static final int DIMENSION_PASSED_FIELD_NUMBER = 3;
private static final class DimensionPassedDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_DimensionPassedEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.BOOL,
false);
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField dimensionPassed_;
private com.google.protobuf.MapField
internalGetDimensionPassed() {
if (dimensionPassed_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DimensionPassedDefaultEntryHolder.defaultEntry);
}
return dimensionPassed_;
}
public int getDimensionPassedCount() {
return internalGetDimensionPassed().getMap().size();
}
/**
*
*
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
*
* map<string, bool> dimension_passed = 3;
*/
@java.lang.Override
public boolean containsDimensionPassed(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetDimensionPassed().getMap().containsKey(key);
}
/** Use {@link #getDimensionPassedMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getDimensionPassed() {
return getDimensionPassedMap();
}
/**
*
*
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
*
* map<string, bool> dimension_passed = 3;
*/
@java.lang.Override
public boolean getDimensionPassedOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetDimensionPassed().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int SCORE_FIELD_NUMBER = 4;
private float score_ = 0F;
/**
*
*
*
* The table-level data quality score for the data scan job.
*
* The data quality score ranges between [0, 100] (up to two decimal
* points).
*
*
* float score = 4;
*
* @return The score.
*/
@java.lang.Override
public float getScore() {
return score_;
}
public static final int DIMENSION_SCORE_FIELD_NUMBER = 5;
private static final class DimensionScoreDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_DimensionScoreEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.FLOAT,
0F);
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField dimensionScore_;
private com.google.protobuf.MapField
internalGetDimensionScore() {
if (dimensionScore_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DimensionScoreDefaultEntryHolder.defaultEntry);
}
return dimensionScore_;
}
public int getDimensionScoreCount() {
return internalGetDimensionScore().getMap().size();
}
/**
*
*
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
*
* map<string, float> dimension_score = 5;
*/
@java.lang.Override
public boolean containsDimensionScore(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetDimensionScore().getMap().containsKey(key);
}
/** Use {@link #getDimensionScoreMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getDimensionScore() {
return getDimensionScoreMap();
}
/**
*
*
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
*
* map<string, float> dimension_score = 5;
*/
@java.lang.Override
public float getDimensionScoreOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetDimensionScore().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int COLUMN_SCORE_FIELD_NUMBER = 6;
private static final class ColumnScoreDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityResult_ColumnScoreEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.FLOAT,
0F);
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField columnScore_;
private com.google.protobuf.MapField
internalGetColumnScore() {
if (columnScore_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ColumnScoreDefaultEntryHolder.defaultEntry);
}
return columnScore_;
}
public int getColumnScoreCount() {
return internalGetColumnScore().getMap().size();
}
/**
*
*
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
*
* map<string, float> column_score = 6;
*/
@java.lang.Override
public boolean containsColumnScore(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetColumnScore().getMap().containsKey(key);
}
/** Use {@link #getColumnScoreMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getColumnScore() {
return getColumnScoreMap();
}
/**
*
*
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
*
* map<string, bool> dimension_passed = 3;
*/
@java.lang.Override
public boolean containsDimensionPassed(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetDimensionPassed().getMap().containsKey(key);
}
/** Use {@link #getDimensionPassedMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getDimensionPassed() {
return getDimensionPassedMap();
}
/**
*
*
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
*
* map<string, bool> dimension_passed = 3;
*/
@java.lang.Override
public boolean getDimensionPassedOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetDimensionPassed().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearDimensionPassed() {
bitField0_ = (bitField0_ & ~0x00000004);
internalGetMutableDimensionPassed().getMutableMap().clear();
return this;
}
/**
*
*
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
*
* map<string, bool> dimension_passed = 3;
*/
public Builder removeDimensionPassed(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableDimensionPassed().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableDimensionPassed() {
bitField0_ |= 0x00000004;
return internalGetMutableDimensionPassed().getMutableMap();
}
/**
*
*
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
* The result of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the bool value depicting whether the dimension result was
* `pass` or not.
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
*
* map<string, float> dimension_score = 5;
*/
@java.lang.Override
public boolean containsDimensionScore(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetDimensionScore().getMap().containsKey(key);
}
/** Use {@link #getDimensionScoreMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getDimensionScore() {
return getDimensionScoreMap();
}
/**
*
*
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
*
* map<string, float> dimension_score = 5;
*/
@java.lang.Override
public float getDimensionScoreOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetDimensionScore().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearDimensionScore() {
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableDimensionScore().getMutableMap().clear();
return this;
}
/**
*
*
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
*
* map<string, float> dimension_score = 5;
*/
public Builder removeDimensionScore(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableDimensionScore().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableDimensionScore() {
bitField0_ |= 0x00000010;
return internalGetMutableDimensionScore().getMutableMap();
}
/**
*
*
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each dimension for data quality result.
* The key of the map is the name of the dimension.
* The value is the data quality score for the dimension.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
*
* map<string, float> column_score = 6;
*/
@java.lang.Override
public boolean containsColumnScore(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetColumnScore().getMap().containsKey(key);
}
/** Use {@link #getColumnScoreMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getColumnScore() {
return getColumnScoreMap();
}
/**
*
*
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
*
* map<string, float> column_score = 6;
*/
@java.lang.Override
public float getColumnScoreOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetColumnScore().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearColumnScore() {
bitField0_ = (bitField0_ & ~0x00000020);
internalGetMutableColumnScore().getMutableMap().clear();
return this;
}
/**
*
*
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
*
* map<string, float> column_score = 6;
*/
public Builder removeColumnScore(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableColumnScore().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableColumnScore() {
bitField0_ |= 0x00000020;
return internalGetMutableColumnScore().getMutableMap();
}
/**
*
*
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
* The score of each column scanned in the data scan job.
* The key of the map is the name of the column.
* The value is the data quality score for the column.
*
* The score ranges between [0, 100] (up to two decimal
* points).
*
*
* map<string, float> column_score = 6;
*/
public Builder putAllColumnScore(java.util.Map values) {
internalGetMutableColumnScore().getMutableMap().putAll(values);
bitField0_ |= 0x00000020;
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.DataScanEvent.DataQualityResult)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScanEvent.DataQualityResult)
private static final com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult();
}
public static com.google.cloud.dataplex.v1.DataScanEvent.DataQualityResult
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataQualityResult 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.DataScanEvent.DataQualityResult
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataProfileAppliedConfigsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The percentage of the records selected from the dataset for DataScan.
*
* * Value ranges between 0.0 and 100.0.
* * Value 0.0 or 100.0 imply that sampling was not applied.
*
* Applied configs for data profile type data scan job.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs}
*/
public static final class DataProfileAppliedConfigs extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs)
DataProfileAppliedConfigsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataProfileAppliedConfigs.newBuilder() to construct.
private DataProfileAppliedConfigs(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataProfileAppliedConfigs() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DataProfileAppliedConfigs();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileAppliedConfigs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileAppliedConfigs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs.class,
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs.Builder.class);
}
public static final int SAMPLING_PERCENT_FIELD_NUMBER = 1;
private float samplingPercent_ = 0F;
/**
*
*
*
* The percentage of the records selected from the dataset for DataScan.
*
* * Value ranges between 0.0 and 100.0.
* * Value 0.0 or 100.0 imply that sampling was not applied.
*
*
* float sampling_percent = 1;
*
* @return The samplingPercent.
*/
@java.lang.Override
public float getSamplingPercent() {
return samplingPercent_;
}
public static final int ROW_FILTER_APPLIED_FIELD_NUMBER = 2;
private boolean rowFilterApplied_ = false;
/**
*
*
*
* Boolean indicating whether a row filter was applied in the DataScan job.
*
*
* bool row_filter_applied = 2;
*
* @return The rowFilterApplied.
*/
@java.lang.Override
public boolean getRowFilterApplied() {
return rowFilterApplied_;
}
public static final int COLUMN_FILTER_APPLIED_FIELD_NUMBER = 3;
private boolean columnFilterApplied_ = false;
/**
*
*
*
* Boolean indicating whether a column filter was applied in the DataScan
* job.
*
* Applied configs for data profile type data scan job.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs)
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileAppliedConfigs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileAppliedConfigs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs.class,
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
samplingPercent_ = 0F;
rowFilterApplied_ = false;
columnFilterApplied_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataProfileAppliedConfigs_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs build() {
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs buildPartial() {
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs result =
new com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.samplingPercent_ = samplingPercent_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.rowFilterApplied_ = rowFilterApplied_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.columnFilterApplied_ = columnFilterApplied_;
}
}
@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.DataScanEvent.DataProfileAppliedConfigs) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs other) {
if (other
== com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs
.getDefaultInstance()) return this;
if (other.getSamplingPercent() != 0F) {
setSamplingPercent(other.getSamplingPercent());
}
if (other.getRowFilterApplied() != false) {
setRowFilterApplied(other.getRowFilterApplied());
}
if (other.getColumnFilterApplied() != false) {
setColumnFilterApplied(other.getColumnFilterApplied());
}
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 13:
{
samplingPercent_ = input.readFloat();
bitField0_ |= 0x00000001;
break;
} // case 13
case 16:
{
rowFilterApplied_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24:
{
columnFilterApplied_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
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 samplingPercent_;
/**
*
*
*
* The percentage of the records selected from the dataset for DataScan.
*
* * Value ranges between 0.0 and 100.0.
* * Value 0.0 or 100.0 imply that sampling was not applied.
*
* The percentage of the records selected from the dataset for DataScan.
*
* * Value ranges between 0.0 and 100.0.
* * Value 0.0 or 100.0 imply that sampling was not applied.
*
*
* float sampling_percent = 1;
*
* @param value The samplingPercent to set.
* @return This builder for chaining.
*/
public Builder setSamplingPercent(float value) {
samplingPercent_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The percentage of the records selected from the dataset for DataScan.
*
* * Value ranges between 0.0 and 100.0.
* * Value 0.0 or 100.0 imply that sampling was not applied.
*
* Boolean indicating whether a column filter was applied in the DataScan
* job.
*
*
* bool column_filter_applied = 3;
*
* @param value The columnFilterApplied to set.
* @return This builder for chaining.
*/
public Builder setColumnFilterApplied(boolean value) {
columnFilterApplied_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Boolean indicating whether a column filter was applied in the DataScan
* job.
*
*
* bool column_filter_applied = 3;
*
* @return This builder for chaining.
*/
public Builder clearColumnFilterApplied() {
bitField0_ = (bitField0_ & ~0x00000004);
columnFilterApplied_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs)
private static final com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs();
}
public static com.google.cloud.dataplex.v1.DataScanEvent.DataProfileAppliedConfigs
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataProfileAppliedConfigs 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.DataScanEvent.DataProfileAppliedConfigs
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataQualityAppliedConfigsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The percentage of the records selected from the dataset for DataScan.
*
* * Value ranges between 0.0 and 100.0.
* * Value 0.0 or 100.0 imply that sampling was not applied.
*
* Applied configs for data quality type data scan job.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs}
*/
public static final class DataQualityAppliedConfigs extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs)
DataQualityAppliedConfigsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataQualityAppliedConfigs.newBuilder() to construct.
private DataQualityAppliedConfigs(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataQualityAppliedConfigs() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DataQualityAppliedConfigs();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityAppliedConfigs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityAppliedConfigs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs.class,
com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs.Builder.class);
}
public static final int SAMPLING_PERCENT_FIELD_NUMBER = 1;
private float samplingPercent_ = 0F;
/**
*
*
*
* The percentage of the records selected from the dataset for DataScan.
*
* * Value ranges between 0.0 and 100.0.
* * Value 0.0 or 100.0 imply that sampling was not applied.
*
*
* float sampling_percent = 1;
*
* @return The samplingPercent.
*/
@java.lang.Override
public float getSamplingPercent() {
return samplingPercent_;
}
public static final int ROW_FILTER_APPLIED_FIELD_NUMBER = 2;
private boolean rowFilterApplied_ = false;
/**
*
*
*
* Boolean indicating whether a row filter was applied in the DataScan job.
*
* Applied configs for data quality type data scan job.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs)
com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityAppliedConfigs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityAppliedConfigs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs.class,
com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
samplingPercent_ = 0F;
rowFilterApplied_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_DataQualityAppliedConfigs_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs build() {
com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs buildPartial() {
com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs result =
new com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.samplingPercent_ = samplingPercent_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.rowFilterApplied_ = rowFilterApplied_;
}
}
@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.DataScanEvent.DataQualityAppliedConfigs) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs other) {
if (other
== com.google.cloud.dataplex.v1.DataScanEvent.DataQualityAppliedConfigs
.getDefaultInstance()) return this;
if (other.getSamplingPercent() != 0F) {
setSamplingPercent(other.getSamplingPercent());
}
if (other.getRowFilterApplied() != false) {
setRowFilterApplied(other.getRowFilterApplied());
}
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 13:
{
samplingPercent_ = input.readFloat();
bitField0_ |= 0x00000001;
break;
} // case 13
case 16:
{
rowFilterApplied_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
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 samplingPercent_;
/**
*
*
*
* The percentage of the records selected from the dataset for DataScan.
*
* * Value ranges between 0.0 and 100.0.
* * Value 0.0 or 100.0 imply that sampling was not applied.
*
* The percentage of the records selected from the dataset for DataScan.
*
* * Value ranges between 0.0 and 100.0.
* * Value 0.0 or 100.0 imply that sampling was not applied.
*
*
* float sampling_percent = 1;
*
* @param value The samplingPercent to set.
* @return This builder for chaining.
*/
public Builder setSamplingPercent(float value) {
samplingPercent_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The percentage of the records selected from the dataset for DataScan.
*
* * Value ranges between 0.0 and 100.0.
* * Value 0.0 or 100.0 imply that sampling was not applied.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult}
*/
public static final class PostScanActionsResult extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult)
PostScanActionsResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use PostScanActionsResult.newBuilder() to construct.
private PostScanActionsResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PostScanActionsResult() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PostScanActionsResult();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_PostScanActionsResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_PostScanActionsResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.class,
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.Builder.class);
}
public interface BigQueryExportResultOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1;
*
*
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
*
*
*
* Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1;
*
*
* @return The state.
*/
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State
getState();
/**
*
*
*
* Additional information about the BigQuery exporting.
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The exporting completed successfully.
*
*
* SUCCEEDED = 1;
*/
public static final int SUCCEEDED_VALUE = 1;
/**
*
*
*
* The exporting is no longer running due to an error.
*
*
* FAILED = 2;
*/
public static final int FAILED_VALUE = 2;
/**
*
*
*
* The exporting is skipped due to no valid scan result to export
* (usually caused by scan failed).
*
*
* SKIPPED = 3;
*/
public static final int SKIPPED_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static State valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static State forNumber(int value) {
switch (value) {
case 0:
return STATE_UNSPECIFIED;
case 1:
return SUCCEEDED;
case 2:
return FAILED;
case 3:
return SKIPPED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult
.BigQueryExportResult.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final State[] VALUES = values();
public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State)
}
public static final int STATE_FIELD_NUMBER = 1;
private int state_ = 0;
/**
*
*
*
* Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1;
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1;
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
.State
getState() {
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State
result =
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult
.BigQueryExportResult.State.forNumber(state_);
return result == null
? com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
.State.UNRECOGNIZED
: result;
}
public static final int MESSAGE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
*
*
*
* Additional information about the BigQuery exporting.
*
* The result of BigQuery export post scan action.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult)
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult
.BigQueryExportResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_PostScanActionsResult_BigQueryExportResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_PostScanActionsResult_BigQueryExportResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult
.BigQueryExportResult.class,
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult
.BigQueryExportResult.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
state_ = 0;
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DataScanEvent_PostScanActionsResult_BigQueryExportResult_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult
.BigQueryExportResult.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
build() {
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
buildPartial() {
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
result =
new com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult
.BigQueryExportResult(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.message_ = message_;
}
}
@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.DataScanEvent.PostScanActionsResult
.BigQueryExportResult) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult
.BigQueryExportResult)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
other) {
if (other
== com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult
.BigQueryExportResult.getDefaultInstance()) return this;
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
bitField0_ |= 0x00000002;
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 8:
{
state_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
{
message_ = input.readStringRequireUtf8();
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 int state_ = 0;
/**
*
*
*
* Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1;
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1;
*
*
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1;
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
.State
getState() {
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
.State
result =
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult
.BigQueryExportResult.State.forNumber(state_);
return result == null
? com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult
.BigQueryExportResult.State.UNRECOGNIZED
: result;
}
/**
*
*
*
* Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult.State state = 1;
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(
com.google.cloud.dataplex.v1.DataScanEvent.PostScanActionsResult.BigQueryExportResult
.State
value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
*
* .google.protobuf.Timestamp end_time = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
}
public static final int TYPE_FIELD_NUMBER = 5;
private int type_ = 0;
/**
*
*
*
* The type of the data scan.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* The type of the data scan.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.ScanType getType() {
com.google.cloud.dataplex.v1.DataScanEvent.ScanType result =
com.google.cloud.dataplex.v1.DataScanEvent.ScanType.forNumber(type_);
return result == null
? com.google.cloud.dataplex.v1.DataScanEvent.ScanType.UNRECOGNIZED
: result;
}
public static final int STATE_FIELD_NUMBER = 6;
private int state_ = 0;
/**
*
*
*
* The status of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.State state = 6;
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* The status of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.State state = 6;
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.State getState() {
com.google.cloud.dataplex.v1.DataScanEvent.State result =
com.google.cloud.dataplex.v1.DataScanEvent.State.forNumber(state_);
return result == null ? com.google.cloud.dataplex.v1.DataScanEvent.State.UNRECOGNIZED : result;
}
public static final int MESSAGE_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
*
*
*
* The message describing the data scan job event.
*
* A version identifier of the spec which was used to execute this job.
*
*
* string spec_version = 8;
*
* @return The bytes for specVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSpecVersionBytes() {
java.lang.Object ref = specVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
specVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRIGGER_FIELD_NUMBER = 9;
private int trigger_ = 0;
/**
*
*
*
* The trigger type of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;
*
* @return The enum numeric value on the wire for trigger.
*/
@java.lang.Override
public int getTriggerValue() {
return trigger_;
}
/**
*
*
*
* The trigger type of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;
*
* @return The trigger.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.Trigger getTrigger() {
com.google.cloud.dataplex.v1.DataScanEvent.Trigger result =
com.google.cloud.dataplex.v1.DataScanEvent.Trigger.forNumber(trigger_);
return result == null
? com.google.cloud.dataplex.v1.DataScanEvent.Trigger.UNRECOGNIZED
: result;
}
public static final int SCOPE_FIELD_NUMBER = 10;
private int scope_ = 0;
/**
*
*
*
* The scope of the data scan (e.g. full, incremental).
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;
*
* @return The enum numeric value on the wire for scope.
*/
@java.lang.Override
public int getScopeValue() {
return scope_;
}
/**
*
*
*
* The scope of the data scan (e.g. full, incremental).
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;
*
* @return The scope.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.Scope getScope() {
com.google.cloud.dataplex.v1.DataScanEvent.Scope result =
com.google.cloud.dataplex.v1.DataScanEvent.Scope.forNumber(scope_);
return result == null ? com.google.cloud.dataplex.v1.DataScanEvent.Scope.UNRECOGNIZED : result;
}
public static final int DATA_PROFILE_FIELD_NUMBER = 101;
/**
*
*
*
* Data profile result for data profile type data scan.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.DataProfileResult data_profile = 101;
*
* @return Whether the dataProfile field is set.
*/
@java.lang.Override
public boolean hasDataProfile() {
return resultCase_ == 101;
}
/**
*
*
*
* Data profile result for data profile type data scan.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* The type of the data scan.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;
*
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The type of the data scan.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.ScanType getType() {
com.google.cloud.dataplex.v1.DataScanEvent.ScanType result =
com.google.cloud.dataplex.v1.DataScanEvent.ScanType.forNumber(type_);
return result == null
? com.google.cloud.dataplex.v1.DataScanEvent.ScanType.UNRECOGNIZED
: result;
}
/**
*
*
*
* The type of the data scan.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;
*
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.cloud.dataplex.v1.DataScanEvent.ScanType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The type of the data scan.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.ScanType type = 5;
*
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000020);
type_ = 0;
onChanged();
return this;
}
private int state_ = 0;
/**
*
*
*
* The status of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.State state = 6;
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* The status of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.State state = 6;
*
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* The status of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.State state = 6;
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.State getState() {
com.google.cloud.dataplex.v1.DataScanEvent.State result =
com.google.cloud.dataplex.v1.DataScanEvent.State.forNumber(state_);
return result == null
? com.google.cloud.dataplex.v1.DataScanEvent.State.UNRECOGNIZED
: result;
}
/**
*
*
*
* The status of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.State state = 6;
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.dataplex.v1.DataScanEvent.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The status of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.State state = 6;
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000040);
state_ = 0;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
*
*
*
* The message describing the data scan job event.
*
* A version identifier of the spec which was used to execute this job.
*
*
* string spec_version = 8;
*
* @param value The bytes for specVersion to set.
* @return This builder for chaining.
*/
public Builder setSpecVersionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
specVersion_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private int trigger_ = 0;
/**
*
*
*
* The trigger type of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;
*
* @return The enum numeric value on the wire for trigger.
*/
@java.lang.Override
public int getTriggerValue() {
return trigger_;
}
/**
*
*
*
* The trigger type of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;
*
* @param value The enum numeric value on the wire for trigger to set.
* @return This builder for chaining.
*/
public Builder setTriggerValue(int value) {
trigger_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* The trigger type of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;
*
* @return The trigger.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.Trigger getTrigger() {
com.google.cloud.dataplex.v1.DataScanEvent.Trigger result =
com.google.cloud.dataplex.v1.DataScanEvent.Trigger.forNumber(trigger_);
return result == null
? com.google.cloud.dataplex.v1.DataScanEvent.Trigger.UNRECOGNIZED
: result;
}
/**
*
*
*
* The trigger type of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;
*
* @param value The trigger to set.
* @return This builder for chaining.
*/
public Builder setTrigger(com.google.cloud.dataplex.v1.DataScanEvent.Trigger value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
trigger_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The trigger type of the data scan job.
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Trigger trigger = 9;
*
* @return This builder for chaining.
*/
public Builder clearTrigger() {
bitField0_ = (bitField0_ & ~0x00000200);
trigger_ = 0;
onChanged();
return this;
}
private int scope_ = 0;
/**
*
*
*
* The scope of the data scan (e.g. full, incremental).
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;
*
* @return The enum numeric value on the wire for scope.
*/
@java.lang.Override
public int getScopeValue() {
return scope_;
}
/**
*
*
*
* The scope of the data scan (e.g. full, incremental).
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;
*
* @param value The enum numeric value on the wire for scope to set.
* @return This builder for chaining.
*/
public Builder setScopeValue(int value) {
scope_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* The scope of the data scan (e.g. full, incremental).
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;
*
* @return The scope.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanEvent.Scope getScope() {
com.google.cloud.dataplex.v1.DataScanEvent.Scope result =
com.google.cloud.dataplex.v1.DataScanEvent.Scope.forNumber(scope_);
return result == null
? com.google.cloud.dataplex.v1.DataScanEvent.Scope.UNRECOGNIZED
: result;
}
/**
*
*
*
* The scope of the data scan (e.g. full, incremental).
*
*
* .google.cloud.dataplex.v1.DataScanEvent.Scope scope = 10;
*
* @param value The scope to set.
* @return This builder for chaining.
*/
public Builder setScope(com.google.cloud.dataplex.v1.DataScanEvent.Scope value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
scope_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The scope of the data scan (e.g. full, incremental).
*