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/datascans.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.dataplex.v1;
/**
*
*
*
* Represents a user-visible job which provides the insights for the related
* data source.
*
* For example:
*
* * Data Quality: generates queries based on the rules and runs against the
* data to get data quality check results.
* * Data Profile: analyzes the data in table(s) and generates insights about
* the structure, content and relationships (such as null percent,
* cardinality, min/max/mean, etc).
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScan}
*/
public final class DataScan extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScan)
DataScanOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataScan.newBuilder() to construct.
private DataScan(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataScan() {
name_ = "";
uid_ = "";
description_ = "";
displayName_ = "";
state_ = 0;
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DataScan();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataScansProto
.internal_static_google_cloud_dataplex_v1_DataScan_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 5:
return internalGetLabels();
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.DataScansProto
.internal_static_google_cloud_dataplex_v1_DataScan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScan.class,
com.google.cloud.dataplex.v1.DataScan.Builder.class);
}
public interface ExecutionSpecOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScan.ExecutionSpec)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
*
*
* .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the trigger field is set.
*/
boolean hasTrigger();
/**
*
*
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
*
* string field = 100 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return Whether the field field is set.
*/
boolean hasField();
/**
*
*
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
*
* string field = 100 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The bytes for field.
*/
com.google.protobuf.ByteString getFieldBytes();
com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.IncrementalCase getIncrementalCase();
}
/**
*
*
*
* DataScan execution settings.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScan.ExecutionSpec}
*/
public static final class ExecutionSpec extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataScan.ExecutionSpec)
ExecutionSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecutionSpec.newBuilder() to construct.
private ExecutionSpec(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecutionSpec() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ExecutionSpec();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataScansProto
.internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataScansProto
.internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.class,
com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.Builder.class);
}
private int bitField0_;
private int incrementalCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object incremental_;
public enum IncrementalCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
FIELD(100),
INCREMENTAL_NOT_SET(0);
private final int value;
private IncrementalCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IncrementalCase valueOf(int value) {
return forNumber(value);
}
public static IncrementalCase forNumber(int value) {
switch (value) {
case 100:
return FIELD;
case 0:
return INCREMENTAL_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public IncrementalCase getIncrementalCase() {
return IncrementalCase.forNumber(incrementalCase_);
}
public static final int TRIGGER_FIELD_NUMBER = 1;
private com.google.cloud.dataplex.v1.Trigger trigger_;
/**
*
*
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
*
*
* .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the trigger field is set.
*/
@java.lang.Override
public boolean hasTrigger() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
*
*
* .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.TriggerOrBuilder getTriggerOrBuilder() {
return trigger_ == null
? com.google.cloud.dataplex.v1.Trigger.getDefaultInstance()
: trigger_;
}
public static final int FIELD_FIELD_NUMBER = 100;
/**
*
*
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
*
* string field = 100 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return Whether the field field is set.
*/
public boolean hasField() {
return incrementalCase_ == 100;
}
/**
*
*
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
*
* string field = 100 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The field.
*/
public java.lang.String getField() {
java.lang.Object ref = "";
if (incrementalCase_ == 100) {
ref = incremental_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (incrementalCase_ == 100) {
incremental_ = s;
}
return s;
}
}
/**
*
*
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
*
* string field = 100 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The bytes for field.
*/
public com.google.protobuf.ByteString getFieldBytes() {
java.lang.Object ref = "";
if (incrementalCase_ == 100) {
ref = incremental_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (incrementalCase_ == 100) {
incremental_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTrigger());
}
if (incrementalCase_ == 100) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 100, incremental_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTrigger());
}
if (incrementalCase_ == 100) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, incremental_);
}
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.DataScan.ExecutionSpec)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataScan.ExecutionSpec other =
(com.google.cloud.dataplex.v1.DataScan.ExecutionSpec) obj;
if (hasTrigger() != other.hasTrigger()) return false;
if (hasTrigger()) {
if (!getTrigger().equals(other.getTrigger())) return false;
}
if (!getIncrementalCase().equals(other.getIncrementalCase())) return false;
switch (incrementalCase_) {
case 100:
if (!getField().equals(other.getField())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTrigger()) {
hash = (37 * hash) + TRIGGER_FIELD_NUMBER;
hash = (53 * hash) + getTrigger().hashCode();
}
switch (incrementalCase_) {
case 100:
hash = (37 * hash) + FIELD_FIELD_NUMBER;
hash = (53 * hash) + getField().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec 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.DataScan.ExecutionSpec parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec 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.DataScan.ExecutionSpec parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec 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.DataScan.ExecutionSpec parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec 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.DataScan.ExecutionSpec parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec 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.DataScan.ExecutionSpec 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.DataScan.ExecutionSpec 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.DataScan.ExecutionSpec 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;
}
/**
*
*
*
* DataScan execution settings.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScan.ExecutionSpec}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScan.ExecutionSpec)
com.google.cloud.dataplex.v1.DataScan.ExecutionSpecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataScansProto
.internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataScansProto
.internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.class,
com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getTriggerFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
trigger_ = null;
if (triggerBuilder_ != null) {
triggerBuilder_.dispose();
triggerBuilder_ = null;
}
incrementalCase_ = 0;
incremental_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataScansProto
.internal_static_google_cloud_dataplex_v1_DataScan_ExecutionSpec_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScan.ExecutionSpec getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScan.ExecutionSpec build() {
com.google.cloud.dataplex.v1.DataScan.ExecutionSpec result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScan.ExecutionSpec buildPartial() {
com.google.cloud.dataplex.v1.DataScan.ExecutionSpec result =
new com.google.cloud.dataplex.v1.DataScan.ExecutionSpec(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.DataScan.ExecutionSpec result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.trigger_ = triggerBuilder_ == null ? trigger_ : triggerBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.dataplex.v1.DataScan.ExecutionSpec result) {
result.incrementalCase_ = incrementalCase_;
result.incremental_ = this.incremental_;
}
@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.DataScan.ExecutionSpec) {
return mergeFrom((com.google.cloud.dataplex.v1.DataScan.ExecutionSpec) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScan.ExecutionSpec other) {
if (other == com.google.cloud.dataplex.v1.DataScan.ExecutionSpec.getDefaultInstance())
return this;
if (other.hasTrigger()) {
mergeTrigger(other.getTrigger());
}
switch (other.getIncrementalCase()) {
case FIELD:
{
incrementalCase_ = 100;
incremental_ = other.incremental_;
onChanged();
break;
}
case INCREMENTAL_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(getTriggerFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 802:
{
java.lang.String s = input.readStringRequireUtf8();
incrementalCase_ = 100;
incremental_ = s;
break;
} // case 802
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 incrementalCase_ = 0;
private java.lang.Object incremental_;
public IncrementalCase getIncrementalCase() {
return IncrementalCase.forNumber(incrementalCase_);
}
public Builder clearIncremental() {
incrementalCase_ = 0;
incremental_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.cloud.dataplex.v1.Trigger trigger_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.Trigger,
com.google.cloud.dataplex.v1.Trigger.Builder,
com.google.cloud.dataplex.v1.TriggerOrBuilder>
triggerBuilder_;
/**
*
*
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
*
*
* .google.cloud.dataplex.v1.Trigger trigger = 1 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the trigger field is set.
*/
public boolean hasTrigger() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
* Optional. Spec related to how often and when a scan should be triggered.
*
* If not specified, the default is `OnDemand`, which means the scan will
* not run until the user calls `RunDataScan` API.
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
*
* string field = 100 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return Whether the field field is set.
*/
@java.lang.Override
public boolean hasField() {
return incrementalCase_ == 100;
}
/**
*
*
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
*
* string field = 100 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The field.
*/
@java.lang.Override
public java.lang.String getField() {
java.lang.Object ref = "";
if (incrementalCase_ == 100) {
ref = incremental_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (incrementalCase_ == 100) {
incremental_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
*
* string field = 100 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return The bytes for field.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFieldBytes() {
java.lang.Object ref = "";
if (incrementalCase_ == 100) {
ref = incremental_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (incrementalCase_ == 100) {
incremental_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
*
* string field = 100 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param value The field to set.
* @return This builder for chaining.
*/
public Builder setField(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
incrementalCase_ = 100;
incremental_ = value;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
*
* string field = 100 [(.google.api.field_behavior) = IMMUTABLE];
*
* @return This builder for chaining.
*/
public Builder clearField() {
if (incrementalCase_ == 100) {
incrementalCase_ = 0;
incremental_ = null;
onChanged();
}
return this;
}
/**
*
*
*
* Immutable. The unnested field (of type *Date* or *Timestamp*) that
* contains values which monotonically increase over time.
*
* If not specified, a data scan will run for all data in the table.
*
*
* string field = 100 [(.google.api.field_behavior) = IMMUTABLE];
*
* @param value The bytes for field to set.
* @return This builder for chaining.
*/
public Builder setFieldBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
incrementalCase_ = 100;
incremental_ = value;
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.DataScan.ExecutionSpec)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScan.ExecutionSpec)
private static final com.google.cloud.dataplex.v1.DataScan.ExecutionSpec DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScan.ExecutionSpec();
}
public static com.google.cloud.dataplex.v1.DataScan.ExecutionSpec getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecutionSpec 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.DataScan.ExecutionSpec getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecutionStatusOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataScan.ExecutionStatus)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The time when the latest DataScanJob started.
*
*
* .google.protobuf.Timestamp latest_job_start_time = 4;
*
* @return Whether the latestJobStartTime field is set.
*/
boolean hasLatestJobStartTime();
/**
*
*
*
* Optional. The time when the DataScanJob execution was created.
*
*
*
* .google.protobuf.Timestamp latest_job_create_time = 6 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getLatestJobCreateTimeFieldBuilder() {
if (latestJobCreateTimeBuilder_ == null) {
latestJobCreateTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getLatestJobCreateTime(), getParentForChildren(), isClean());
latestJobCreateTime_ = null;
}
return latestJobCreateTimeBuilder_;
}
@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.DataScan.ExecutionStatus)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataScan.ExecutionStatus)
private static final com.google.cloud.dataplex.v1.DataScan.ExecutionStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataScan.ExecutionStatus();
}
public static com.google.cloud.dataplex.v1.DataScan.ExecutionStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecutionStatus 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.DataScan.ExecutionStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
private int specCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object spec_;
public enum SpecCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
DATA_QUALITY_SPEC(100),
DATA_PROFILE_SPEC(101),
SPEC_NOT_SET(0);
private final int value;
private SpecCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SpecCase valueOf(int value) {
return forNumber(value);
}
public static SpecCase forNumber(int value) {
switch (value) {
case 100:
return DATA_QUALITY_SPEC;
case 101:
return DATA_PROFILE_SPEC;
case 0:
return SPEC_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public SpecCase getSpecCase() {
return SpecCase.forNumber(specCase_);
}
private int resultCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object result_;
public enum ResultCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
DATA_QUALITY_RESULT(200),
DATA_PROFILE_RESULT(201),
RESULT_NOT_SET(0);
private final int value;
private ResultCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ResultCase valueOf(int value) {
return forNumber(value);
}
public static ResultCase forNumber(int value) {
switch (value) {
case 200:
return DATA_QUALITY_RESULT;
case 201:
return DATA_PROFILE_RESULT;
case 0:
return RESULT_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public ResultCase getResultCase() {
return ResultCase.forNumber(resultCase_);
}
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Output only. The relative resource name of the scan, of the form:
* `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
* Output only. The relative resource name of the scan, of the form:
* `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object uid_ = "";
/**
*
*
*
* Output only. System generated globally unique ID for the scan. This ID will
* be different if the scan is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the scan. This ID will
* be different if the scan is deleted and re-created with the same name.
*
*
* string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for uid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*
*
* Optional. Description of the scan.
*
* * Must be between 1-1024 characters.
*
*
* map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int STATE_FIELD_NUMBER = 6;
private int state_ = 0;
/**
*
*
*
* Output only. Current state of the DataScan.
*
*
* .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. Current state of the DataScan.
*
*
* .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.State getState() {
com.google.cloud.dataplex.v1.State result =
com.google.cloud.dataplex.v1.State.forNumber(state_);
return result == null ? com.google.cloud.dataplex.v1.State.UNRECOGNIZED : result;
}
public static final int CREATE_TIME_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. The time when the scan was created.
*
*
* .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The time when the scan was created.
*
* Output only. Status of the data scan execution.
*
*
*
* .google.cloud.dataplex.v1.DataScan.ExecutionStatus execution_status = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScan.ExecutionStatusOrBuilder
getExecutionStatusOrBuilder() {
return executionStatus_ == null
? com.google.cloud.dataplex.v1.DataScan.ExecutionStatus.getDefaultInstance()
: executionStatus_;
}
public static final int TYPE_FIELD_NUMBER = 12;
private int type_ = 0;
/**
*
*
*
* Output only. The type of DataScan.
*
*
*
* .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* Output only. The type of DataScan.
*
*
*
* .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanType getType() {
com.google.cloud.dataplex.v1.DataScanType result =
com.google.cloud.dataplex.v1.DataScanType.forNumber(type_);
return result == null ? com.google.cloud.dataplex.v1.DataScanType.UNRECOGNIZED : result;
}
public static final int DATA_QUALITY_SPEC_FIELD_NUMBER = 100;
/**
*
*
*
* DataQualityScan related setting.
*
*
* .google.cloud.dataplex.v1.DataQualitySpec data_quality_spec = 100;
*
* @return Whether the dataQualitySpec field is set.
*/
@java.lang.Override
public boolean hasDataQualitySpec() {
return specCase_ == 100;
}
/**
*
*
*
* Output only. The result of the data profile scan.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult data_profile_result = 201 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResultOrBuilder getDataProfileResultOrBuilder() {
if (resultCase_ == 201) {
return (com.google.cloud.dataplex.v1.DataProfileResult) result_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5);
if (state_ != com.google.cloud.dataplex.v1.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(6, state_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(7, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(8, getUpdateTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(9, getData());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(10, getExecutionSpec());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(11, getExecutionStatus());
}
if (type_ != com.google.cloud.dataplex.v1.DataScanType.DATA_SCAN_TYPE_UNSPECIFIED.getNumber()) {
output.writeEnum(12, type_);
}
if (specCase_ == 100) {
output.writeMessage(100, (com.google.cloud.dataplex.v1.DataQualitySpec) spec_);
}
if (specCase_ == 101) {
output.writeMessage(101, (com.google.cloud.dataplex.v1.DataProfileSpec) spec_);
}
if (resultCase_ == 200) {
output.writeMessage(200, (com.google.cloud.dataplex.v1.DataQualityResult) result_);
}
if (resultCase_ == 201) {
output.writeMessage(201, (com.google.cloud.dataplex.v1.DataProfileResult) result_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_);
}
for (java.util.Map.Entry entry :
internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry labels__ =
LabelsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__);
}
if (state_ != com.google.cloud.dataplex.v1.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getData());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getExecutionSpec());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getExecutionStatus());
}
if (type_ != com.google.cloud.dataplex.v1.DataScanType.DATA_SCAN_TYPE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, type_);
}
if (specCase_ == 100) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
100, (com.google.cloud.dataplex.v1.DataQualitySpec) spec_);
}
if (specCase_ == 101) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
101, (com.google.cloud.dataplex.v1.DataProfileSpec) spec_);
}
if (resultCase_ == 200) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
200, (com.google.cloud.dataplex.v1.DataQualityResult) result_);
}
if (resultCase_ == 201) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
201, (com.google.cloud.dataplex.v1.DataProfileResult) result_);
}
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.DataScan)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataScan other = (com.google.cloud.dataplex.v1.DataScan) obj;
if (!getName().equals(other.getName())) return false;
if (!getUid().equals(other.getUid())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (!getDisplayName().equals(other.getDisplayName())) return false;
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
if (state_ != other.state_) return false;
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (hasUpdateTime() != other.hasUpdateTime()) return false;
if (hasUpdateTime()) {
if (!getUpdateTime().equals(other.getUpdateTime())) return false;
}
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData().equals(other.getData())) return false;
}
if (hasExecutionSpec() != other.hasExecutionSpec()) return false;
if (hasExecutionSpec()) {
if (!getExecutionSpec().equals(other.getExecutionSpec())) return false;
}
if (hasExecutionStatus() != other.hasExecutionStatus()) return false;
if (hasExecutionStatus()) {
if (!getExecutionStatus().equals(other.getExecutionStatus())) return false;
}
if (type_ != other.type_) return false;
if (!getSpecCase().equals(other.getSpecCase())) return false;
switch (specCase_) {
case 100:
if (!getDataQualitySpec().equals(other.getDataQualitySpec())) return false;
break;
case 101:
if (!getDataProfileSpec().equals(other.getDataProfileSpec())) return false;
break;
case 0:
default:
}
if (!getResultCase().equals(other.getResultCase())) return false;
switch (resultCase_) {
case 200:
if (!getDataQualityResult().equals(other.getDataQualityResult())) return false;
break;
case 201:
if (!getDataProfileResult().equals(other.getDataProfileResult())) return false;
break;
case 0:
default:
}
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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDisplayName().hashCode();
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
if (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
if (hasUpdateTime()) {
hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getUpdateTime().hashCode();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasExecutionSpec()) {
hash = (37 * hash) + EXECUTION_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getExecutionSpec().hashCode();
}
if (hasExecutionStatus()) {
hash = (37 * hash) + EXECUTION_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getExecutionStatus().hashCode();
}
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
switch (specCase_) {
case 100:
hash = (37 * hash) + DATA_QUALITY_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getDataQualitySpec().hashCode();
break;
case 101:
hash = (37 * hash) + DATA_PROFILE_SPEC_FIELD_NUMBER;
hash = (53 * hash) + getDataProfileSpec().hashCode();
break;
case 0:
default:
}
switch (resultCase_) {
case 200:
hash = (37 * hash) + DATA_QUALITY_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getDataQualityResult().hashCode();
break;
case 201:
hash = (37 * hash) + DATA_PROFILE_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getDataProfileResult().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataScan parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataScan 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.DataScan parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataScan 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.DataScan parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataScan 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.DataScan parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataScan 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.DataScan parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataScan 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.DataScan 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.DataScan 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.DataScan 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;
}
/**
*
*
*
* Represents a user-visible job which provides the insights for the related
* data source.
*
* For example:
*
* * Data Quality: generates queries based on the rules and runs against the
* data to get data quality check results.
* * Data Profile: analyzes the data in table(s) and generates insights about
* the structure, content and relationships (such as null percent,
* cardinality, min/max/mean, etc).
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataScan}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataScan)
com.google.cloud.dataplex.v1.DataScanOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataScansProto
.internal_static_google_cloud_dataplex_v1_DataScan_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 5:
return internalGetLabels();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 5:
return internalGetMutableLabels();
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.DataScansProto
.internal_static_google_cloud_dataplex_v1_DataScan_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataScan.class,
com.google.cloud.dataplex.v1.DataScan.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DataScan.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCreateTimeFieldBuilder();
getUpdateTimeFieldBuilder();
getDataFieldBuilder();
getExecutionSpecFieldBuilder();
getExecutionStatusFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
uid_ = "";
description_ = "";
displayName_ = "";
internalGetMutableLabels().clear();
state_ = 0;
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
updateTime_ = null;
if (updateTimeBuilder_ != null) {
updateTimeBuilder_.dispose();
updateTimeBuilder_ = null;
}
data_ = null;
if (dataBuilder_ != null) {
dataBuilder_.dispose();
dataBuilder_ = null;
}
executionSpec_ = null;
if (executionSpecBuilder_ != null) {
executionSpecBuilder_.dispose();
executionSpecBuilder_ = null;
}
executionStatus_ = null;
if (executionStatusBuilder_ != null) {
executionStatusBuilder_.dispose();
executionStatusBuilder_ = null;
}
type_ = 0;
if (dataQualitySpecBuilder_ != null) {
dataQualitySpecBuilder_.clear();
}
if (dataProfileSpecBuilder_ != null) {
dataProfileSpecBuilder_.clear();
}
if (dataQualityResultBuilder_ != null) {
dataQualityResultBuilder_.clear();
}
if (dataProfileResultBuilder_ != null) {
dataProfileResultBuilder_.clear();
}
specCase_ = 0;
spec_ = null;
resultCase_ = 0;
result_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataScansProto
.internal_static_google_cloud_dataplex_v1_DataScan_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScan getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataScan.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScan build() {
com.google.cloud.dataplex.v1.DataScan result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScan buildPartial() {
com.google.cloud.dataplex.v1.DataScan result =
new com.google.cloud.dataplex.v1.DataScan(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.DataScan result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.uid_ = uid_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.displayName_ = displayName_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.state_ = state_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.data_ = dataBuilder_ == null ? data_ : dataBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.executionSpec_ =
executionSpecBuilder_ == null ? executionSpec_ : executionSpecBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.executionStatus_ =
executionStatusBuilder_ == null ? executionStatus_ : executionStatusBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.type_ = type_;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.cloud.dataplex.v1.DataScan result) {
result.specCase_ = specCase_;
result.spec_ = this.spec_;
if (specCase_ == 100 && dataQualitySpecBuilder_ != null) {
result.spec_ = dataQualitySpecBuilder_.build();
}
if (specCase_ == 101 && dataProfileSpecBuilder_ != null) {
result.spec_ = dataProfileSpecBuilder_.build();
}
result.resultCase_ = resultCase_;
result.result_ = this.result_;
if (resultCase_ == 200 && dataQualityResultBuilder_ != null) {
result.result_ = dataQualityResultBuilder_.build();
}
if (resultCase_ == 201 && dataProfileResultBuilder_ != null) {
result.result_ = dataProfileResultBuilder_.build();
}
}
@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.DataScan) {
return mergeFrom((com.google.cloud.dataplex.v1.DataScan) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DataScan other) {
if (other == com.google.cloud.dataplex.v1.DataScan.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getDisplayName().isEmpty()) {
displayName_ = other.displayName_;
bitField0_ |= 0x00000008;
onChanged();
}
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000010;
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasUpdateTime()) {
mergeUpdateTime(other.getUpdateTime());
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasExecutionSpec()) {
mergeExecutionSpec(other.getExecutionSpec());
}
if (other.hasExecutionStatus()) {
mergeExecutionStatus(other.getExecutionStatus());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
switch (other.getSpecCase()) {
case DATA_QUALITY_SPEC:
{
mergeDataQualitySpec(other.getDataQualitySpec());
break;
}
case DATA_PROFILE_SPEC:
{
mergeDataProfileSpec(other.getDataProfileSpec());
break;
}
case SPEC_NOT_SET:
{
break;
}
}
switch (other.getResultCase()) {
case DATA_QUALITY_RESULT:
{
mergeDataQualityResult(other.getDataQualityResult());
break;
}
case DATA_PROFILE_RESULT:
{
mergeDataProfileResult(other.getDataProfileResult());
break;
}
case RESULT_NOT_SET:
{
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
uid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
displayName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000010;
break;
} // case 42
case 48:
{
state_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
case 58:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
case 66:
{
input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
case 74:
{
input.readMessage(getDataFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 74
case 82:
{
input.readMessage(getExecutionSpecFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 82
case 90:
{
input.readMessage(getExecutionStatusFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 90
case 96:
{
type_ = input.readEnum();
bitField0_ |= 0x00000800;
break;
} // case 96
case 802:
{
input.readMessage(getDataQualitySpecFieldBuilder().getBuilder(), extensionRegistry);
specCase_ = 100;
break;
} // case 802
case 810:
{
input.readMessage(getDataProfileSpecFieldBuilder().getBuilder(), extensionRegistry);
specCase_ = 101;
break;
} // case 810
case 1602:
{
input.readMessage(
getDataQualityResultFieldBuilder().getBuilder(), extensionRegistry);
resultCase_ = 200;
break;
} // case 1602
case 1610:
{
input.readMessage(
getDataProfileResultFieldBuilder().getBuilder(), extensionRegistry);
resultCase_ = 201;
break;
} // case 1610
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 specCase_ = 0;
private java.lang.Object spec_;
public SpecCase getSpecCase() {
return SpecCase.forNumber(specCase_);
}
public Builder clearSpec() {
specCase_ = 0;
spec_ = null;
onChanged();
return this;
}
private int resultCase_ = 0;
private java.lang.Object result_;
public ResultCase getResultCase() {
return ResultCase.forNumber(resultCase_);
}
public Builder clearResult() {
resultCase_ = 0;
result_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
*
*
* Output only. The relative resource name of the scan, of the form:
* `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
* Output only. The relative resource name of the scan, of the form:
* `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The relative resource name of the scan, of the form:
* `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The relative resource name of the scan, of the form:
* `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. The relative resource name of the scan, of the form:
* `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
*
* string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object uid_ = "";
/**
*
*
*
* Output only. System generated globally unique ID for the scan. This ID will
* be different if the scan is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the scan. This ID will
* be different if the scan is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the scan. This ID will
* be different if the scan is deleted and re-created with the same name.
*
*
* string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The uid to set.
* @return This builder for chaining.
*/
public Builder setUid(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uid_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. System generated globally unique ID for the scan. This ID will
* be different if the scan is deleted and re-created with the same name.
*
* Output only. System generated globally unique ID for the scan. This ID will
* be different if the scan is deleted and re-created with the same name.
*
*
* string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for uid to set.
* @return This builder for chaining.
*/
public Builder setUidBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uid_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* Optional. Description of the scan.
*
* * Must be between 1-1024 characters.
*
*
* .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override
public int getStateValue() {
return state_;
}
/**
*
*
*
* Output only. Current state of the DataScan.
*
*
* .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @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_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. Current state of the DataScan.
*
*
* .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.State getState() {
com.google.cloud.dataplex.v1.State result =
com.google.cloud.dataplex.v1.State.forNumber(state_);
return result == null ? com.google.cloud.dataplex.v1.State.UNRECOGNIZED : result;
}
/**
*
*
*
* Output only. Current state of the DataScan.
*
*
* .google.cloud.dataplex.v1.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(com.google.cloud.dataplex.v1.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
*
*
* .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* Output only. The type of DataScan.
*
*
*
* .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @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_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*
*
* Output only. The type of DataScan.
*
*
*
* .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataScanType getType() {
com.google.cloud.dataplex.v1.DataScanType result =
com.google.cloud.dataplex.v1.DataScanType.forNumber(type_);
return result == null ? com.google.cloud.dataplex.v1.DataScanType.UNRECOGNIZED : result;
}
/**
*
*
*
* Output only. The type of DataScan.
*
*
*
* .google.cloud.dataplex.v1.DataScanType type = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.cloud.dataplex.v1.DataScanType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*