Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.google.cloud.dataplex.v1.ScannedData Maven / Gradle / Ivy
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataplex/v1/processing.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.dataplex.v1;
/**
*
*
*
* The data scanned during processing (e.g. in incremental DataScan)
*
*
* Protobuf type {@code google.cloud.dataplex.v1.ScannedData}
*/
public final class ScannedData extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.ScannedData)
ScannedDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScannedData.newBuilder() to construct.
private ScannedData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ScannedData() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ScannedData();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ProcessingProto
.internal_static_google_cloud_dataplex_v1_ScannedData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ProcessingProto
.internal_static_google_cloud_dataplex_v1_ScannedData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.ScannedData.class,
com.google.cloud.dataplex.v1.ScannedData.Builder.class);
}
public interface IncrementalFieldOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.ScannedData.IncrementalField)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The field that contains values which monotonically increases over time
* (e.g. a timestamp column).
*
*
* string field = 1;
*
* @return The field.
*/
java.lang.String getField();
/**
*
*
*
* The field that contains values which monotonically increases over time
* (e.g. a timestamp column).
*
*
* string field = 1;
*
* @return The bytes for field.
*/
com.google.protobuf.ByteString getFieldBytes();
/**
*
*
*
* Value that marks the start of the range.
*
*
* string start = 2;
*
* @return The start.
*/
java.lang.String getStart();
/**
*
*
*
* Value that marks the start of the range.
*
*
* string start = 2;
*
* @return The bytes for start.
*/
com.google.protobuf.ByteString getStartBytes();
/**
*
*
*
* Value that marks the end of the range.
*
*
* string end = 3;
*
* @return The end.
*/
java.lang.String getEnd();
/**
*
*
*
* Value that marks the end of the range.
*
*
* string end = 3;
*
* @return The bytes for end.
*/
com.google.protobuf.ByteString getEndBytes();
}
/**
*
*
*
* A data range denoted by a pair of start/end values of a field.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.ScannedData.IncrementalField}
*/
public static final class IncrementalField extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.ScannedData.IncrementalField)
IncrementalFieldOrBuilder {
private static final long serialVersionUID = 0L;
// Use IncrementalField.newBuilder() to construct.
private IncrementalField(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IncrementalField() {
field_ = "";
start_ = "";
end_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new IncrementalField();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ProcessingProto
.internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ProcessingProto
.internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.ScannedData.IncrementalField.class,
com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder.class);
}
public static final int FIELD_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object field_ = "";
/**
*
*
*
* The field that contains values which monotonically increases over time
* (e.g. a timestamp column).
*
*
* string field = 1;
*
* @return The field.
*/
@java.lang.Override
public java.lang.String getField() {
java.lang.Object ref = field_;
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();
field_ = s;
return s;
}
}
/**
*
*
*
* The field that contains values which monotonically increases over time
* (e.g. a timestamp column).
*
*
* string field = 1;
*
* @return The bytes for field.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFieldBytes() {
java.lang.Object ref = field_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
field_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object start_ = "";
/**
*
*
*
* Value that marks the start of the range.
*
*
* string start = 2;
*
* @return The start.
*/
@java.lang.Override
public java.lang.String getStart() {
java.lang.Object ref = start_;
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();
start_ = s;
return s;
}
}
/**
*
*
*
* Value that marks the start of the range.
*
*
* string start = 2;
*
* @return The bytes for start.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartBytes() {
java.lang.Object ref = start_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
start_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int END_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object end_ = "";
/**
*
*
*
* Value that marks the end of the range.
*
*
* string end = 3;
*
* @return The end.
*/
@java.lang.Override
public java.lang.String getEnd() {
java.lang.Object ref = end_;
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();
end_ = s;
return s;
}
}
/**
*
*
*
* Value that marks the end of the range.
*
*
* string end = 3;
*
* @return The bytes for end.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEndBytes() {
java.lang.Object ref = end_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
end_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(field_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(start_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, start_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(end_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, end_);
}
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(field_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(start_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, start_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(end_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, end_);
}
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.ScannedData.IncrementalField)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.ScannedData.IncrementalField other =
(com.google.cloud.dataplex.v1.ScannedData.IncrementalField) obj;
if (!getField().equals(other.getField())) return false;
if (!getStart().equals(other.getStart())) return false;
if (!getEnd().equals(other.getEnd())) 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) + FIELD_FIELD_NUMBER;
hash = (53 * hash) + getField().hashCode();
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + getStart().hashCode();
hash = (37 * hash) + END_FIELD_NUMBER;
hash = (53 * hash) + getEnd().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField 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.ScannedData.IncrementalField parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField 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.ScannedData.IncrementalField parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField 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.ScannedData.IncrementalField parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField 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.ScannedData.IncrementalField parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField 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.ScannedData.IncrementalField 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.ScannedData.IncrementalField 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.ScannedData.IncrementalField prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* A data range denoted by a pair of start/end values of a field.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.ScannedData.IncrementalField}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.ScannedData.IncrementalField)
com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ProcessingProto
.internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ProcessingProto
.internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.ScannedData.IncrementalField.class,
com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.ScannedData.IncrementalField.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
field_ = "";
start_ = "";
end_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ProcessingProto
.internal_static_google_cloud_dataplex_v1_ScannedData_IncrementalField_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedData.IncrementalField getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedData.IncrementalField build() {
com.google.cloud.dataplex.v1.ScannedData.IncrementalField result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedData.IncrementalField buildPartial() {
com.google.cloud.dataplex.v1.ScannedData.IncrementalField result =
new com.google.cloud.dataplex.v1.ScannedData.IncrementalField(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.ScannedData.IncrementalField result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.field_ = field_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.start_ = start_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.end_ = end_;
}
}
@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.ScannedData.IncrementalField) {
return mergeFrom((com.google.cloud.dataplex.v1.ScannedData.IncrementalField) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.ScannedData.IncrementalField other) {
if (other == com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance())
return this;
if (!other.getField().isEmpty()) {
field_ = other.field_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getStart().isEmpty()) {
start_ = other.start_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getEnd().isEmpty()) {
end_ = other.end_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
field_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
start_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
end_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object field_ = "";
/**
*
*
*
* The field that contains values which monotonically increases over time
* (e.g. a timestamp column).
*
*
* string field = 1;
*
* @return The field.
*/
public java.lang.String getField() {
java.lang.Object ref = field_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
field_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The field that contains values which monotonically increases over time
* (e.g. a timestamp column).
*
*
* string field = 1;
*
* @return The bytes for field.
*/
public com.google.protobuf.ByteString getFieldBytes() {
java.lang.Object ref = field_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
field_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The field that contains values which monotonically increases over time
* (e.g. a timestamp column).
*
*
* string field = 1;
*
* @param value The field to set.
* @return This builder for chaining.
*/
public Builder setField(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
field_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The field that contains values which monotonically increases over time
* (e.g. a timestamp column).
*
*
* string field = 1;
*
* @return This builder for chaining.
*/
public Builder clearField() {
field_ = getDefaultInstance().getField();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The field that contains values which monotonically increases over time
* (e.g. a timestamp column).
*
*
* string field = 1;
*
* @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);
field_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object start_ = "";
/**
*
*
*
* Value that marks the start of the range.
*
*
* string start = 2;
*
* @return The start.
*/
public java.lang.String getStart() {
java.lang.Object ref = start_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
start_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Value that marks the start of the range.
*
*
* string start = 2;
*
* @return The bytes for start.
*/
public com.google.protobuf.ByteString getStartBytes() {
java.lang.Object ref = start_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
start_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Value that marks the start of the range.
*
*
* string start = 2;
*
* @param value The start to set.
* @return This builder for chaining.
*/
public Builder setStart(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
start_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Value that marks the start of the range.
*
*
* string start = 2;
*
* @return This builder for chaining.
*/
public Builder clearStart() {
start_ = getDefaultInstance().getStart();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Value that marks the start of the range.
*
*
* string start = 2;
*
* @param value The bytes for start to set.
* @return This builder for chaining.
*/
public Builder setStartBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
start_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object end_ = "";
/**
*
*
*
* Value that marks the end of the range.
*
*
* string end = 3;
*
* @return The end.
*/
public java.lang.String getEnd() {
java.lang.Object ref = end_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
end_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Value that marks the end of the range.
*
*
* string end = 3;
*
* @return The bytes for end.
*/
public com.google.protobuf.ByteString getEndBytes() {
java.lang.Object ref = end_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
end_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Value that marks the end of the range.
*
*
* string end = 3;
*
* @param value The end to set.
* @return This builder for chaining.
*/
public Builder setEnd(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
end_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Value that marks the end of the range.
*
*
* string end = 3;
*
* @return This builder for chaining.
*/
public Builder clearEnd() {
end_ = getDefaultInstance().getEnd();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Value that marks the end of the range.
*
*
* string end = 3;
*
* @param value The bytes for end to set.
* @return This builder for chaining.
*/
public Builder setEndBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
end_ = value;
bitField0_ |= 0x00000004;
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.ScannedData.IncrementalField)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.ScannedData.IncrementalField)
private static final com.google.cloud.dataplex.v1.ScannedData.IncrementalField DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.ScannedData.IncrementalField();
}
public static com.google.cloud.dataplex.v1.ScannedData.IncrementalField getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IncrementalField 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.ScannedData.IncrementalField getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int dataRangeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object dataRange_;
public enum DataRangeCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INCREMENTAL_FIELD(1),
DATARANGE_NOT_SET(0);
private final int value;
private DataRangeCase(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 DataRangeCase valueOf(int value) {
return forNumber(value);
}
public static DataRangeCase forNumber(int value) {
switch (value) {
case 1:
return INCREMENTAL_FIELD;
case 0:
return DATARANGE_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public DataRangeCase getDataRangeCase() {
return DataRangeCase.forNumber(dataRangeCase_);
}
public static final int INCREMENTAL_FIELD_FIELD_NUMBER = 1;
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*
* @return Whether the incrementalField field is set.
*/
@java.lang.Override
public boolean hasIncrementalField() {
return dataRangeCase_ == 1;
}
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*
* @return The incrementalField.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedData.IncrementalField getIncrementalField() {
if (dataRangeCase_ == 1) {
return (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_;
}
return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance();
}
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder
getIncrementalFieldOrBuilder() {
if (dataRangeCase_ == 1) {
return (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_;
}
return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.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 (dataRangeCase_ == 1) {
output.writeMessage(
1, (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dataRangeCase_ == 1) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
1, (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_);
}
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.ScannedData)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.ScannedData other = (com.google.cloud.dataplex.v1.ScannedData) obj;
if (!getDataRangeCase().equals(other.getDataRangeCase())) return false;
switch (dataRangeCase_) {
case 1:
if (!getIncrementalField().equals(other.getIncrementalField())) 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();
switch (dataRangeCase_) {
case 1:
hash = (37 * hash) + INCREMENTAL_FIELD_FIELD_NUMBER;
hash = (53 * hash) + getIncrementalField().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.ScannedData parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.ScannedData 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.ScannedData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.ScannedData 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.ScannedData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.ScannedData 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.ScannedData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.ScannedData 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.ScannedData parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.ScannedData 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.ScannedData 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.ScannedData 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.ScannedData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* The data scanned during processing (e.g. in incremental DataScan)
*
*
* Protobuf type {@code google.cloud.dataplex.v1.ScannedData}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.ScannedData)
com.google.cloud.dataplex.v1.ScannedDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.ProcessingProto
.internal_static_google_cloud_dataplex_v1_ScannedData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.ProcessingProto
.internal_static_google_cloud_dataplex_v1_ScannedData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.ScannedData.class,
com.google.cloud.dataplex.v1.ScannedData.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.ScannedData.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (incrementalFieldBuilder_ != null) {
incrementalFieldBuilder_.clear();
}
dataRangeCase_ = 0;
dataRange_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.ProcessingProto
.internal_static_google_cloud_dataplex_v1_ScannedData_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedData getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedData build() {
com.google.cloud.dataplex.v1.ScannedData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedData buildPartial() {
com.google.cloud.dataplex.v1.ScannedData result =
new com.google.cloud.dataplex.v1.ScannedData(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.ScannedData result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(com.google.cloud.dataplex.v1.ScannedData result) {
result.dataRangeCase_ = dataRangeCase_;
result.dataRange_ = this.dataRange_;
if (dataRangeCase_ == 1 && incrementalFieldBuilder_ != null) {
result.dataRange_ = incrementalFieldBuilder_.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.ScannedData) {
return mergeFrom((com.google.cloud.dataplex.v1.ScannedData) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.ScannedData other) {
if (other == com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance()) return this;
switch (other.getDataRangeCase()) {
case INCREMENTAL_FIELD:
{
mergeIncrementalField(other.getIncrementalField());
break;
}
case DATARANGE_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(
getIncrementalFieldFieldBuilder().getBuilder(), extensionRegistry);
dataRangeCase_ = 1;
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int dataRangeCase_ = 0;
private java.lang.Object dataRange_;
public DataRangeCase getDataRangeCase() {
return DataRangeCase.forNumber(dataRangeCase_);
}
public Builder clearDataRange() {
dataRangeCase_ = 0;
dataRange_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.ScannedData.IncrementalField,
com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder,
com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder>
incrementalFieldBuilder_;
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*
* @return Whether the incrementalField field is set.
*/
@java.lang.Override
public boolean hasIncrementalField() {
return dataRangeCase_ == 1;
}
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*
* @return The incrementalField.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedData.IncrementalField getIncrementalField() {
if (incrementalFieldBuilder_ == null) {
if (dataRangeCase_ == 1) {
return (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_;
}
return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance();
} else {
if (dataRangeCase_ == 1) {
return incrementalFieldBuilder_.getMessage();
}
return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance();
}
}
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*/
public Builder setIncrementalField(
com.google.cloud.dataplex.v1.ScannedData.IncrementalField value) {
if (incrementalFieldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataRange_ = value;
onChanged();
} else {
incrementalFieldBuilder_.setMessage(value);
}
dataRangeCase_ = 1;
return this;
}
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*/
public Builder setIncrementalField(
com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder builderForValue) {
if (incrementalFieldBuilder_ == null) {
dataRange_ = builderForValue.build();
onChanged();
} else {
incrementalFieldBuilder_.setMessage(builderForValue.build());
}
dataRangeCase_ = 1;
return this;
}
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*/
public Builder mergeIncrementalField(
com.google.cloud.dataplex.v1.ScannedData.IncrementalField value) {
if (incrementalFieldBuilder_ == null) {
if (dataRangeCase_ == 1
&& dataRange_
!= com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance()) {
dataRange_ =
com.google.cloud.dataplex.v1.ScannedData.IncrementalField.newBuilder(
(com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_)
.mergeFrom(value)
.buildPartial();
} else {
dataRange_ = value;
}
onChanged();
} else {
if (dataRangeCase_ == 1) {
incrementalFieldBuilder_.mergeFrom(value);
} else {
incrementalFieldBuilder_.setMessage(value);
}
}
dataRangeCase_ = 1;
return this;
}
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*/
public Builder clearIncrementalField() {
if (incrementalFieldBuilder_ == null) {
if (dataRangeCase_ == 1) {
dataRangeCase_ = 0;
dataRange_ = null;
onChanged();
}
} else {
if (dataRangeCase_ == 1) {
dataRangeCase_ = 0;
dataRange_ = null;
}
incrementalFieldBuilder_.clear();
}
return this;
}
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*/
public com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder
getIncrementalFieldBuilder() {
return getIncrementalFieldFieldBuilder().getBuilder();
}
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder
getIncrementalFieldOrBuilder() {
if ((dataRangeCase_ == 1) && (incrementalFieldBuilder_ != null)) {
return incrementalFieldBuilder_.getMessageOrBuilder();
} else {
if (dataRangeCase_ == 1) {
return (com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_;
}
return com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance();
}
}
/**
*
*
*
* The range denoted by values of an incremental field
*
*
* .google.cloud.dataplex.v1.ScannedData.IncrementalField incremental_field = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.ScannedData.IncrementalField,
com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder,
com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder>
getIncrementalFieldFieldBuilder() {
if (incrementalFieldBuilder_ == null) {
if (!(dataRangeCase_ == 1)) {
dataRange_ =
com.google.cloud.dataplex.v1.ScannedData.IncrementalField.getDefaultInstance();
}
incrementalFieldBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.ScannedData.IncrementalField,
com.google.cloud.dataplex.v1.ScannedData.IncrementalField.Builder,
com.google.cloud.dataplex.v1.ScannedData.IncrementalFieldOrBuilder>(
(com.google.cloud.dataplex.v1.ScannedData.IncrementalField) dataRange_,
getParentForChildren(),
isClean());
dataRange_ = null;
}
dataRangeCase_ = 1;
onChanged();
return incrementalFieldBuilder_;
}
@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.ScannedData)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.ScannedData)
private static final com.google.cloud.dataplex.v1.ScannedData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.ScannedData();
}
public static com.google.cloud.dataplex.v1.ScannedData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScannedData 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.ScannedData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}