
com.google.cloud.dataplex.v1.DataProfileResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-dataplex-v1 Show documentation
Show all versions of proto-google-cloud-dataplex-v1 Show documentation
Proto library for google-cloud-dataplex
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataplex/v1/data_profile.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.dataplex.v1;
/**
*
*
*
* DataProfileResult defines the output of DataProfileScan. Each field of the
* table will have field type specific profile result.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult}
*/
public final class DataProfileResult extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult)
DataProfileResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataProfileResult.newBuilder() to construct.
private DataProfileResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataProfileResult() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DataProfileResult();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.class,
com.google.cloud.dataplex.v1.DataProfileResult.Builder.class);
}
public interface ProfileOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
java.util.List getFieldsList();
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field getFields(int index);
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
int getFieldsCount();
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
java.util.List extends com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder>
getFieldsOrBuilderList();
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder getFieldsOrBuilder(
int index);
}
/**
*
*
*
* Contains name, type, mode and field type specific profile information.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.Profile}
*/
public static final class Profile extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile)
ProfileOrBuilder {
private static final long serialVersionUID = 0L;
// Use Profile.newBuilder() to construct.
private Profile(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Profile() {
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Profile();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder.class);
}
public interface FieldOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The name of the field.
*
*
* string name = 1;
*
* @return The name.
*/
java.lang.String getName();
/**
*
*
*
* The name of the field.
*
*
* string name = 1;
*
* @return The bytes for name.
*/
com.google.protobuf.ByteString getNameBytes();
/**
*
*
*
* The data type retrieved from the schema of the data source. For
* instance, for a BigQuery native table, it is the [BigQuery Table
* Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema).
* For a Dataplex Entity, it is the [Entity
* Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).
*
*
* string type = 2;
*
* @return The type.
*/
java.lang.String getType();
/**
*
*
*
* The data type retrieved from the schema of the data source. For
* instance, for a BigQuery native table, it is the [BigQuery Table
* Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema).
* For a Dataplex Entity, it is the [Entity
* Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).
*
*
* string type = 2;
*
* @return The bytes for type.
*/
com.google.protobuf.ByteString getTypeBytes();
/**
*
*
*
* The mode of the field. Possible values include:
*
* * REQUIRED, if it is a required field.
* * NULLABLE, if it is an optional field.
* * REPEATED, if it is a repeated field.
*
*
* string mode = 3;
*
* @return The mode.
*/
java.lang.String getMode();
/**
*
*
*
* The mode of the field. Possible values include:
*
* * REQUIRED, if it is a required field.
* * NULLABLE, if it is an optional field.
* * REPEATED, if it is a repeated field.
*
*
* string mode = 3;
*
* @return The bytes for mode.
*/
com.google.protobuf.ByteString getModeBytes();
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*
* @return Whether the profile field is set.
*/
boolean hasProfile();
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*
* @return The profile.
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo getProfile();
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder
getProfileOrBuilder();
}
/**
*
*
*
* A field within a table.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.Profile.Field}
*/
public static final class Field extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field)
FieldOrBuilder {
private static final long serialVersionUID = 0L;
// Use Field.newBuilder() to construct.
private Field(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Field() {
name_ = "";
type_ = "";
mode_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Field();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder.class);
}
public interface ProfileInfoOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Ratio of rows with null value against total scanned rows.
*
*
* double null_ratio = 2;
*
* @return The nullRatio.
*/
double getNullRatio();
/**
*
*
*
* Ratio of rows with distinct values against total scanned rows.
* Not available for complex non-groupable field type RECORD and fields
* with REPEATABLE mode.
*
*
* double distinct_ratio = 3;
*
* @return The distinctRatio.
*/
double getDistinctRatio();
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
java.util.List<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue>
getTopNValuesList();
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
getTopNValues(int index);
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
int getTopNValuesCount();
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
java.util.List<
? extends
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValueOrBuilder>
getTopNValuesOrBuilderList();
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValueOrBuilder
getTopNValuesOrBuilder(int index);
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*
* @return Whether the stringProfile field is set.
*/
boolean hasStringProfile();
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*
* @return The stringProfile.
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo
getStringProfile();
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfoOrBuilder
getStringProfileOrBuilder();
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*
* @return Whether the integerProfile field is set.
*/
boolean hasIntegerProfile();
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*
* @return The integerProfile.
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo
getIntegerProfile();
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfoOrBuilder
getIntegerProfileOrBuilder();
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*
* @return Whether the doubleProfile field is set.
*/
boolean hasDoubleProfile();
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*
* @return The doubleProfile.
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo
getDoubleProfile();
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*/
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfoOrBuilder
getDoubleProfileOrBuilder();
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.FieldInfoCase
getFieldInfoCase();
}
/**
*
*
*
* The profile information for each field type.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo}
*/
public static final class ProfileInfo extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo)
ProfileInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProfileInfo.newBuilder() to construct.
private ProfileInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProfileInfo() {
topNValues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ProfileInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder
.class);
}
public interface StringFieldInfoOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Minimum length of non-null values in the scanned data.
*
*
* int64 min_length = 1;
*
* @return The minLength.
*/
long getMinLength();
/**
*
*
*
* Maximum length of non-null values in the scanned data.
*
*
* int64 max_length = 2;
*
* @return The maxLength.
*/
long getMaxLength();
/**
*
*
*
* Average length of non-null values in the scanned data.
*
*
* double average_length = 3;
*
* @return The averageLength.
*/
double getAverageLength();
}
/**
*
*
*
* The profile information for a string type field.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo}
*/
public static final class StringFieldInfo extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo)
StringFieldInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringFieldInfo.newBuilder() to construct.
private StringFieldInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StringFieldInfo() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new StringFieldInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.Builder.class);
}
public static final int MIN_LENGTH_FIELD_NUMBER = 1;
private long minLength_ = 0L;
/**
*
*
*
* Minimum length of non-null values in the scanned data.
*
*
* int64 min_length = 1;
*
* @return The minLength.
*/
@java.lang.Override
public long getMinLength() {
return minLength_;
}
public static final int MAX_LENGTH_FIELD_NUMBER = 2;
private long maxLength_ = 0L;
/**
*
*
*
* Maximum length of non-null values in the scanned data.
*
*
* int64 max_length = 2;
*
* @return The maxLength.
*/
@java.lang.Override
public long getMaxLength() {
return maxLength_;
}
public static final int AVERAGE_LENGTH_FIELD_NUMBER = 3;
private double averageLength_ = 0D;
/**
*
*
*
* Average length of non-null values in the scanned data.
*
*
* double average_length = 3;
*
* @return The averageLength.
*/
@java.lang.Override
public double getAverageLength() {
return averageLength_;
}
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 (minLength_ != 0L) {
output.writeInt64(1, minLength_);
}
if (maxLength_ != 0L) {
output.writeInt64(2, maxLength_);
}
if (java.lang.Double.doubleToRawLongBits(averageLength_) != 0) {
output.writeDouble(3, averageLength_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (minLength_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, minLength_);
}
if (maxLength_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, maxLength_);
}
if (java.lang.Double.doubleToRawLongBits(averageLength_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, averageLength_);
}
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.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo
other =
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo)
obj;
if (getMinLength() != other.getMinLength()) return false;
if (getMaxLength() != other.getMaxLength()) return false;
if (java.lang.Double.doubleToLongBits(getAverageLength())
!= java.lang.Double.doubleToLongBits(other.getAverageLength())) 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) + MIN_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinLength());
hash = (37 * hash) + MAX_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxLength());
hash = (37 * hash) + AVERAGE_LENGTH_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getAverageLength()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
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 profile information for a string type field.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo)
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
minLength_ = 0L;
maxLength_ = 0L;
averageLength_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_StringFieldInfo_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
build() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
buildPartial() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
result =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.minLength_ = minLength_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.maxLength_ = maxLength_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.averageLength_ = averageLength_;
}
}
@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.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
other) {
if (other
== com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.getDefaultInstance()) return this;
if (other.getMinLength() != 0L) {
setMinLength(other.getMinLength());
}
if (other.getMaxLength() != 0L) {
setMaxLength(other.getMaxLength());
}
if (other.getAverageLength() != 0D) {
setAverageLength(other.getAverageLength());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
minLength_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16:
{
maxLength_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 25:
{
averageLength_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long minLength_;
/**
*
*
*
* Minimum length of non-null values in the scanned data.
*
*
* int64 min_length = 1;
*
* @return The minLength.
*/
@java.lang.Override
public long getMinLength() {
return minLength_;
}
/**
*
*
*
* Minimum length of non-null values in the scanned data.
*
*
* int64 min_length = 1;
*
* @param value The minLength to set.
* @return This builder for chaining.
*/
public Builder setMinLength(long value) {
minLength_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Minimum length of non-null values in the scanned data.
*
*
* int64 min_length = 1;
*
* @return This builder for chaining.
*/
public Builder clearMinLength() {
bitField0_ = (bitField0_ & ~0x00000001);
minLength_ = 0L;
onChanged();
return this;
}
private long maxLength_;
/**
*
*
*
* Maximum length of non-null values in the scanned data.
*
*
* int64 max_length = 2;
*
* @return The maxLength.
*/
@java.lang.Override
public long getMaxLength() {
return maxLength_;
}
/**
*
*
*
* Maximum length of non-null values in the scanned data.
*
*
* int64 max_length = 2;
*
* @param value The maxLength to set.
* @return This builder for chaining.
*/
public Builder setMaxLength(long value) {
maxLength_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Maximum length of non-null values in the scanned data.
*
*
* int64 max_length = 2;
*
* @return This builder for chaining.
*/
public Builder clearMaxLength() {
bitField0_ = (bitField0_ & ~0x00000002);
maxLength_ = 0L;
onChanged();
return this;
}
private double averageLength_;
/**
*
*
*
* Average length of non-null values in the scanned data.
*
*
* double average_length = 3;
*
* @return The averageLength.
*/
@java.lang.Override
public double getAverageLength() {
return averageLength_;
}
/**
*
*
*
* Average length of non-null values in the scanned data.
*
*
* double average_length = 3;
*
* @param value The averageLength to set.
* @return This builder for chaining.
*/
public Builder setAverageLength(double value) {
averageLength_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Average length of non-null values in the scanned data.
*
*
* double average_length = 3;
*
* @return This builder for chaining.
*/
public Builder clearAverageLength() {
bitField0_ = (bitField0_ & ~0x00000004);
averageLength_ = 0D;
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.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo)
private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
.ProfileInfo.StringFieldInfo
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo();
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StringFieldInfo 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.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IntegerFieldInfoOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Average of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double average = 1;
*
* @return The average.
*/
double getAverage();
/**
*
*
*
* Standard deviation of non-null values in the scanned data. NaN, if
* the field has a NaN.
*
*
* double standard_deviation = 3;
*
* @return The standardDeviation.
*/
double getStandardDeviation();
/**
*
*
*
* Minimum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* int64 min = 4;
*
* @return The min.
*/
long getMin();
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @return A list containing the quartiles.
*/
java.util.List getQuartilesList();
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @return The count of quartiles.
*/
int getQuartilesCount();
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @param index The index of the element to return.
* @return The quartiles at the given index.
*/
long getQuartiles(int index);
/**
*
*
*
* Maximum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* int64 max = 5;
*
* @return The max.
*/
long getMax();
}
/**
*
*
*
* The profile information for an integer type field.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo}
*/
public static final class IntegerFieldInfo extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo)
IntegerFieldInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use IntegerFieldInfo.newBuilder() to construct.
private IntegerFieldInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IntegerFieldInfo() {
quartiles_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new IntegerFieldInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.Builder.class);
}
public static final int AVERAGE_FIELD_NUMBER = 1;
private double average_ = 0D;
/**
*
*
*
* Average of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double average = 1;
*
* @return The average.
*/
@java.lang.Override
public double getAverage() {
return average_;
}
public static final int STANDARD_DEVIATION_FIELD_NUMBER = 3;
private double standardDeviation_ = 0D;
/**
*
*
*
* Standard deviation of non-null values in the scanned data. NaN, if
* the field has a NaN.
*
*
* double standard_deviation = 3;
*
* @return The standardDeviation.
*/
@java.lang.Override
public double getStandardDeviation() {
return standardDeviation_;
}
public static final int MIN_FIELD_NUMBER = 4;
private long min_ = 0L;
/**
*
*
*
* Minimum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* int64 min = 4;
*
* @return The min.
*/
@java.lang.Override
public long getMin() {
return min_;
}
public static final int QUARTILES_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList quartiles_ = emptyLongList();
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @return A list containing the quartiles.
*/
@java.lang.Override
public java.util.List getQuartilesList() {
return quartiles_;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @return The count of quartiles.
*/
public int getQuartilesCount() {
return quartiles_.size();
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @param index The index of the element to return.
* @return The quartiles at the given index.
*/
public long getQuartiles(int index) {
return quartiles_.getLong(index);
}
private int quartilesMemoizedSerializedSize = -1;
public static final int MAX_FIELD_NUMBER = 5;
private long max_ = 0L;
/**
*
*
*
* Maximum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* int64 max = 5;
*
* @return The max.
*/
@java.lang.Override
public long getMax() {
return max_;
}
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 {
getSerializedSize();
if (java.lang.Double.doubleToRawLongBits(average_) != 0) {
output.writeDouble(1, average_);
}
if (java.lang.Double.doubleToRawLongBits(standardDeviation_) != 0) {
output.writeDouble(3, standardDeviation_);
}
if (min_ != 0L) {
output.writeInt64(4, min_);
}
if (max_ != 0L) {
output.writeInt64(5, max_);
}
if (getQuartilesList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(quartilesMemoizedSerializedSize);
}
for (int i = 0; i < quartiles_.size(); i++) {
output.writeInt64NoTag(quartiles_.getLong(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Double.doubleToRawLongBits(average_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, average_);
}
if (java.lang.Double.doubleToRawLongBits(standardDeviation_) != 0) {
size +=
com.google.protobuf.CodedOutputStream.computeDoubleSize(3, standardDeviation_);
}
if (min_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, min_);
}
if (max_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, max_);
}
{
int dataSize = 0;
for (int i = 0; i < quartiles_.size(); i++) {
dataSize +=
com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(
quartiles_.getLong(i));
}
size += dataSize;
if (!getQuartilesList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
}
quartilesMemoizedSerializedSize = dataSize;
}
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.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
other =
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo)
obj;
if (java.lang.Double.doubleToLongBits(getAverage())
!= java.lang.Double.doubleToLongBits(other.getAverage())) return false;
if (java.lang.Double.doubleToLongBits(getStandardDeviation())
!= java.lang.Double.doubleToLongBits(other.getStandardDeviation())) return false;
if (getMin() != other.getMin()) return false;
if (!getQuartilesList().equals(other.getQuartilesList())) return false;
if (getMax() != other.getMax()) 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) + AVERAGE_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getAverage()));
hash = (37 * hash) + STANDARD_DEVIATION_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getStandardDeviation()));
hash = (37 * hash) + MIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMin());
if (getQuartilesCount() > 0) {
hash = (37 * hash) + QUARTILES_FIELD_NUMBER;
hash = (53 * hash) + getQuartilesList().hashCode();
}
hash = (37 * hash) + MAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMax());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
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 profile information for an integer type field.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo)
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
average_ = 0D;
standardDeviation_ = 0D;
min_ = 0L;
quartiles_ = emptyLongList();
max_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_IntegerFieldInfo_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
build() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
buildPartial() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
result =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.average_ = average_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.standardDeviation_ = standardDeviation_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.min_ = min_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
quartiles_.makeImmutable();
result.quartiles_ = quartiles_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.max_ = max_;
}
}
@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.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
other) {
if (other
== com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.getDefaultInstance()) return this;
if (other.getAverage() != 0D) {
setAverage(other.getAverage());
}
if (other.getStandardDeviation() != 0D) {
setStandardDeviation(other.getStandardDeviation());
}
if (other.getMin() != 0L) {
setMin(other.getMin());
}
if (!other.quartiles_.isEmpty()) {
if (quartiles_.isEmpty()) {
quartiles_ = other.quartiles_;
quartiles_.makeImmutable();
bitField0_ |= 0x00000008;
} else {
ensureQuartilesIsMutable();
quartiles_.addAll(other.quartiles_);
}
onChanged();
}
if (other.getMax() != 0L) {
setMax(other.getMax());
}
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 9:
{
average_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 25:
{
standardDeviation_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 25
case 32:
{
min_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 32
case 40:
{
max_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48:
{
long v = input.readInt64();
ensureQuartilesIsMutable();
quartiles_.addLong(v);
break;
} // case 48
case 50:
{
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureQuartilesIsMutable();
while (input.getBytesUntilLimit() > 0) {
quartiles_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private double average_;
/**
*
*
*
* Average of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double average = 1;
*
* @return The average.
*/
@java.lang.Override
public double getAverage() {
return average_;
}
/**
*
*
*
* Average of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double average = 1;
*
* @param value The average to set.
* @return This builder for chaining.
*/
public Builder setAverage(double value) {
average_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Average of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double average = 1;
*
* @return This builder for chaining.
*/
public Builder clearAverage() {
bitField0_ = (bitField0_ & ~0x00000001);
average_ = 0D;
onChanged();
return this;
}
private double standardDeviation_;
/**
*
*
*
* Standard deviation of non-null values in the scanned data. NaN, if
* the field has a NaN.
*
*
* double standard_deviation = 3;
*
* @return The standardDeviation.
*/
@java.lang.Override
public double getStandardDeviation() {
return standardDeviation_;
}
/**
*
*
*
* Standard deviation of non-null values in the scanned data. NaN, if
* the field has a NaN.
*
*
* double standard_deviation = 3;
*
* @param value The standardDeviation to set.
* @return This builder for chaining.
*/
public Builder setStandardDeviation(double value) {
standardDeviation_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Standard deviation of non-null values in the scanned data. NaN, if
* the field has a NaN.
*
*
* double standard_deviation = 3;
*
* @return This builder for chaining.
*/
public Builder clearStandardDeviation() {
bitField0_ = (bitField0_ & ~0x00000002);
standardDeviation_ = 0D;
onChanged();
return this;
}
private long min_;
/**
*
*
*
* Minimum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* int64 min = 4;
*
* @return The min.
*/
@java.lang.Override
public long getMin() {
return min_;
}
/**
*
*
*
* Minimum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* int64 min = 4;
*
* @param value The min to set.
* @return This builder for chaining.
*/
public Builder setMin(long value) {
min_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Minimum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* int64 min = 4;
*
* @return This builder for chaining.
*/
public Builder clearMin() {
bitField0_ = (bitField0_ & ~0x00000004);
min_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList quartiles_ = emptyLongList();
private void ensureQuartilesIsMutable() {
if (!quartiles_.isModifiable()) {
quartiles_ = makeMutableCopy(quartiles_);
}
bitField0_ |= 0x00000008;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @return A list containing the quartiles.
*/
public java.util.List getQuartilesList() {
quartiles_.makeImmutable();
return quartiles_;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @return The count of quartiles.
*/
public int getQuartilesCount() {
return quartiles_.size();
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @param index The index of the element to return.
* @return The quartiles at the given index.
*/
public long getQuartiles(int index) {
return quartiles_.getLong(index);
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @param index The index to set the value at.
* @param value The quartiles to set.
* @return This builder for chaining.
*/
public Builder setQuartiles(int index, long value) {
ensureQuartilesIsMutable();
quartiles_.setLong(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @param value The quartiles to add.
* @return This builder for chaining.
*/
public Builder addQuartiles(long value) {
ensureQuartilesIsMutable();
quartiles_.addLong(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @param values The quartiles to add.
* @return This builder for chaining.
*/
public Builder addAllQuartiles(java.lang.Iterable extends java.lang.Long> values) {
ensureQuartilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quartiles_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of approximate
* quartile values for the scanned data, occurring in order Q1,
* median, Q3.
*
*
* repeated int64 quartiles = 6;
*
* @return This builder for chaining.
*/
public Builder clearQuartiles() {
quartiles_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private long max_;
/**
*
*
*
* Maximum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* int64 max = 5;
*
* @return The max.
*/
@java.lang.Override
public long getMax() {
return max_;
}
/**
*
*
*
* Maximum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* int64 max = 5;
*
* @param value The max to set.
* @return This builder for chaining.
*/
public Builder setMax(long value) {
max_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Maximum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* int64 max = 5;
*
* @return This builder for chaining.
*/
public Builder clearMax() {
bitField0_ = (bitField0_ & ~0x00000010);
max_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo)
private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
.ProfileInfo.IntegerFieldInfo
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo();
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IntegerFieldInfo 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.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DoubleFieldInfoOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Average of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double average = 1;
*
* @return The average.
*/
double getAverage();
/**
*
*
*
* Standard deviation of non-null values in the scanned data. NaN, if
* the field has a NaN.
*
*
* double standard_deviation = 3;
*
* @return The standardDeviation.
*/
double getStandardDeviation();
/**
*
*
*
* Minimum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double min = 4;
*
* @return The min.
*/
double getMin();
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @return A list containing the quartiles.
*/
java.util.List getQuartilesList();
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @return The count of quartiles.
*/
int getQuartilesCount();
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @param index The index of the element to return.
* @return The quartiles at the given index.
*/
double getQuartiles(int index);
/**
*
*
*
* Maximum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double max = 5;
*
* @return The max.
*/
double getMax();
}
/**
*
*
*
* The profile information for a double type field.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo}
*/
public static final class DoubleFieldInfo extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo)
DoubleFieldInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DoubleFieldInfo.newBuilder() to construct.
private DoubleFieldInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DoubleFieldInfo() {
quartiles_ = emptyDoubleList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DoubleFieldInfo();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.Builder.class);
}
public static final int AVERAGE_FIELD_NUMBER = 1;
private double average_ = 0D;
/**
*
*
*
* Average of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double average = 1;
*
* @return The average.
*/
@java.lang.Override
public double getAverage() {
return average_;
}
public static final int STANDARD_DEVIATION_FIELD_NUMBER = 3;
private double standardDeviation_ = 0D;
/**
*
*
*
* Standard deviation of non-null values in the scanned data. NaN, if
* the field has a NaN.
*
*
* double standard_deviation = 3;
*
* @return The standardDeviation.
*/
@java.lang.Override
public double getStandardDeviation() {
return standardDeviation_;
}
public static final int MIN_FIELD_NUMBER = 4;
private double min_ = 0D;
/**
*
*
*
* Minimum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double min = 4;
*
* @return The min.
*/
@java.lang.Override
public double getMin() {
return min_;
}
public static final int QUARTILES_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.DoubleList quartiles_ = emptyDoubleList();
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @return A list containing the quartiles.
*/
@java.lang.Override
public java.util.List getQuartilesList() {
return quartiles_;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @return The count of quartiles.
*/
public int getQuartilesCount() {
return quartiles_.size();
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @param index The index of the element to return.
* @return The quartiles at the given index.
*/
public double getQuartiles(int index) {
return quartiles_.getDouble(index);
}
private int quartilesMemoizedSerializedSize = -1;
public static final int MAX_FIELD_NUMBER = 5;
private double max_ = 0D;
/**
*
*
*
* Maximum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double max = 5;
*
* @return The max.
*/
@java.lang.Override
public double getMax() {
return max_;
}
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 {
getSerializedSize();
if (java.lang.Double.doubleToRawLongBits(average_) != 0) {
output.writeDouble(1, average_);
}
if (java.lang.Double.doubleToRawLongBits(standardDeviation_) != 0) {
output.writeDouble(3, standardDeviation_);
}
if (java.lang.Double.doubleToRawLongBits(min_) != 0) {
output.writeDouble(4, min_);
}
if (java.lang.Double.doubleToRawLongBits(max_) != 0) {
output.writeDouble(5, max_);
}
if (getQuartilesList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(quartilesMemoizedSerializedSize);
}
for (int i = 0; i < quartiles_.size(); i++) {
output.writeDoubleNoTag(quartiles_.getDouble(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Double.doubleToRawLongBits(average_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, average_);
}
if (java.lang.Double.doubleToRawLongBits(standardDeviation_) != 0) {
size +=
com.google.protobuf.CodedOutputStream.computeDoubleSize(3, standardDeviation_);
}
if (java.lang.Double.doubleToRawLongBits(min_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, min_);
}
if (java.lang.Double.doubleToRawLongBits(max_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, max_);
}
{
int dataSize = 0;
dataSize = 8 * getQuartilesList().size();
size += dataSize;
if (!getQuartilesList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
}
quartilesMemoizedSerializedSize = dataSize;
}
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.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo
other =
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo)
obj;
if (java.lang.Double.doubleToLongBits(getAverage())
!= java.lang.Double.doubleToLongBits(other.getAverage())) return false;
if (java.lang.Double.doubleToLongBits(getStandardDeviation())
!= java.lang.Double.doubleToLongBits(other.getStandardDeviation())) return false;
if (java.lang.Double.doubleToLongBits(getMin())
!= java.lang.Double.doubleToLongBits(other.getMin())) return false;
if (!getQuartilesList().equals(other.getQuartilesList())) return false;
if (java.lang.Double.doubleToLongBits(getMax())
!= java.lang.Double.doubleToLongBits(other.getMax())) 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) + AVERAGE_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getAverage()));
hash = (37 * hash) + STANDARD_DEVIATION_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getStandardDeviation()));
hash = (37 * hash) + MIN_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMin()));
if (getQuartilesCount() > 0) {
hash = (37 * hash) + QUARTILES_FIELD_NUMBER;
hash = (53 * hash) + getQuartilesList().hashCode();
}
hash = (37 * hash) + MAX_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMax()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
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.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
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 profile information for a double type field.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo)
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
average_ = 0D;
standardDeviation_ = 0D;
min_ = 0D;
quartiles_ = emptyDoubleList();
max_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_DoubleFieldInfo_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
build() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
buildPartial() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
result =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.average_ = average_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.standardDeviation_ = standardDeviation_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.min_ = min_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
quartiles_.makeImmutable();
result.quartiles_ = quartiles_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.max_ = max_;
}
}
@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.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
other) {
if (other
== com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.getDefaultInstance()) return this;
if (other.getAverage() != 0D) {
setAverage(other.getAverage());
}
if (other.getStandardDeviation() != 0D) {
setStandardDeviation(other.getStandardDeviation());
}
if (other.getMin() != 0D) {
setMin(other.getMin());
}
if (!other.quartiles_.isEmpty()) {
if (quartiles_.isEmpty()) {
quartiles_ = other.quartiles_;
quartiles_.makeImmutable();
bitField0_ |= 0x00000008;
} else {
ensureQuartilesIsMutable();
quartiles_.addAll(other.quartiles_);
}
onChanged();
}
if (other.getMax() != 0D) {
setMax(other.getMax());
}
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 9:
{
average_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 9
case 25:
{
standardDeviation_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 25
case 33:
{
min_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 33
case 41:
{
max_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
case 49:
{
double v = input.readDouble();
ensureQuartilesIsMutable();
quartiles_.addDouble(v);
break;
} // case 49
case 50:
{
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensureQuartilesIsMutable(alloc / 8);
while (input.getBytesUntilLimit() > 0) {
quartiles_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
} // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private double average_;
/**
*
*
*
* Average of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double average = 1;
*
* @return The average.
*/
@java.lang.Override
public double getAverage() {
return average_;
}
/**
*
*
*
* Average of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double average = 1;
*
* @param value The average to set.
* @return This builder for chaining.
*/
public Builder setAverage(double value) {
average_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Average of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double average = 1;
*
* @return This builder for chaining.
*/
public Builder clearAverage() {
bitField0_ = (bitField0_ & ~0x00000001);
average_ = 0D;
onChanged();
return this;
}
private double standardDeviation_;
/**
*
*
*
* Standard deviation of non-null values in the scanned data. NaN, if
* the field has a NaN.
*
*
* double standard_deviation = 3;
*
* @return The standardDeviation.
*/
@java.lang.Override
public double getStandardDeviation() {
return standardDeviation_;
}
/**
*
*
*
* Standard deviation of non-null values in the scanned data. NaN, if
* the field has a NaN.
*
*
* double standard_deviation = 3;
*
* @param value The standardDeviation to set.
* @return This builder for chaining.
*/
public Builder setStandardDeviation(double value) {
standardDeviation_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Standard deviation of non-null values in the scanned data. NaN, if
* the field has a NaN.
*
*
* double standard_deviation = 3;
*
* @return This builder for chaining.
*/
public Builder clearStandardDeviation() {
bitField0_ = (bitField0_ & ~0x00000002);
standardDeviation_ = 0D;
onChanged();
return this;
}
private double min_;
/**
*
*
*
* Minimum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double min = 4;
*
* @return The min.
*/
@java.lang.Override
public double getMin() {
return min_;
}
/**
*
*
*
* Minimum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double min = 4;
*
* @param value The min to set.
* @return This builder for chaining.
*/
public Builder setMin(double value) {
min_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Minimum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double min = 4;
*
* @return This builder for chaining.
*/
public Builder clearMin() {
bitField0_ = (bitField0_ & ~0x00000004);
min_ = 0D;
onChanged();
return this;
}
private com.google.protobuf.Internal.DoubleList quartiles_ = emptyDoubleList();
private void ensureQuartilesIsMutable() {
if (!quartiles_.isModifiable()) {
quartiles_ = makeMutableCopy(quartiles_);
}
bitField0_ |= 0x00000008;
}
private void ensureQuartilesIsMutable(int capacity) {
if (!quartiles_.isModifiable()) {
quartiles_ = makeMutableCopy(quartiles_, capacity);
}
bitField0_ |= 0x00000008;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @return A list containing the quartiles.
*/
public java.util.List getQuartilesList() {
quartiles_.makeImmutable();
return quartiles_;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @return The count of quartiles.
*/
public int getQuartilesCount() {
return quartiles_.size();
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @param index The index of the element to return.
* @return The quartiles at the given index.
*/
public double getQuartiles(int index) {
return quartiles_.getDouble(index);
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @param index The index to set the value at.
* @param value The quartiles to set.
* @return This builder for chaining.
*/
public Builder setQuartiles(int index, double value) {
ensureQuartilesIsMutable();
quartiles_.setDouble(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @param value The quartiles to add.
* @return This builder for chaining.
*/
public Builder addQuartiles(double value) {
ensureQuartilesIsMutable();
quartiles_.addDouble(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @param values The quartiles to add.
* @return This builder for chaining.
*/
public Builder addAllQuartiles(java.lang.Iterable extends java.lang.Double> values) {
ensureQuartilesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, quartiles_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* A quartile divides the number of data points into four parts, or
* quarters, of more-or-less equal size. Three main quartiles used
* are: The first quartile (Q1) splits off the lowest 25% of data from
* the highest 75%. It is also known as the lower or 25th empirical
* quartile, as 25% of the data is below this point. The second
* quartile (Q2) is the median of a data set. So, 50% of the data lies
* below this point. The third quartile (Q3) splits off the highest
* 25% of data from the lowest 75%. It is known as the upper or 75th
* empirical quartile, as 75% of the data lies below this point.
* Here, the quartiles is provided as an ordered list of quartile
* values for the scanned data, occurring in order Q1, median, Q3.
*
*
* repeated double quartiles = 6;
*
* @return This builder for chaining.
*/
public Builder clearQuartiles() {
quartiles_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private double max_;
/**
*
*
*
* Maximum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double max = 5;
*
* @return The max.
*/
@java.lang.Override
public double getMax() {
return max_;
}
/**
*
*
*
* Maximum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double max = 5;
*
* @param value The max to set.
* @return This builder for chaining.
*/
public Builder setMax(double value) {
max_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Maximum of non-null values in the scanned data. NaN, if the field
* has a NaN.
*
*
* double max = 5;
*
* @return This builder for chaining.
*/
public Builder clearMax() {
bitField0_ = (bitField0_ & ~0x00000010);
max_ = 0D;
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.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo)
private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
.ProfileInfo.DoubleFieldInfo
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo();
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DoubleFieldInfo 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.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TopNValueOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* String value of a top N non-null value.
*
*
* string value = 1;
*
* @return The value.
*/
java.lang.String getValue();
/**
*
*
*
* String value of a top N non-null value.
*
*
* string value = 1;
*
* @return The bytes for value.
*/
com.google.protobuf.ByteString getValueBytes();
/**
*
*
*
* Count of the corresponding value in the scanned data.
*
*
* int64 count = 2;
*
* @return The count.
*/
long getCount();
/**
*
*
*
* Ratio of the corresponding value in the field against the total
* number of rows in the scanned data.
*
*
* double ratio = 3;
*
* @return The ratio.
*/
double getRatio();
}
/**
*
*
*
* Top N non-null values in the scanned data.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue}
*/
public static final class TopNValue extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue)
TopNValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use TopNValue.newBuilder() to construct.
private TopNValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TopNValue() {
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TopNValue();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object value_ = "";
/**
*
*
*
* String value of a top N non-null value.
*
*
* string value = 1;
*
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
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();
value_ = s;
return s;
}
}
/**
*
*
*
* String value of a top N non-null value.
*
*
* string value = 1;
*
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COUNT_FIELD_NUMBER = 2;
private long count_ = 0L;
/**
*
*
*
* Count of the corresponding value in the scanned data.
*
*
* int64 count = 2;
*
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
public static final int RATIO_FIELD_NUMBER = 3;
private double ratio_ = 0D;
/**
*
*
*
* Ratio of the corresponding value in the field against the total
* number of rows in the scanned data.
*
*
* double ratio = 3;
*
* @return The ratio.
*/
@java.lang.Override
public double getRatio() {
return ratio_;
}
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(value_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
}
if (count_ != 0L) {
output.writeInt64(2, count_);
}
if (java.lang.Double.doubleToRawLongBits(ratio_) != 0) {
output.writeDouble(3, ratio_);
}
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(value_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
}
if (count_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, count_);
}
if (java.lang.Double.doubleToRawLongBits(ratio_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, ratio_);
}
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.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
other =
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue)
obj;
if (!getValue().equals(other.getValue())) return false;
if (getCount() != other.getCount()) return false;
if (java.lang.Double.doubleToLongBits(getRatio())
!= java.lang.Double.doubleToLongBits(other.getRatio())) 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) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCount());
hash = (37 * hash) + RATIO_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRatio()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
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.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
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.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
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.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
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.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
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.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
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.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
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.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
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;
}
/**
*
*
*
* Top N non-null values in the scanned data.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue)
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
value_ = "";
count_ = 0L;
ratio_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_TopNValue_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
build() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
buildPartial() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
result =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.value_ = value_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.count_ = count_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ratio_ = ratio_;
}
}
@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.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
other) {
if (other
== com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue.getDefaultInstance()) return this;
if (!other.getValue().isEmpty()) {
value_ = other.value_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getCount() != 0L) {
setCount(other.getCount());
}
if (other.getRatio() != 0D) {
setRatio(other.getRatio());
}
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:
{
value_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
count_ = input.readInt64();
bitField0_ |= 0x00000002;
break;
} // case 16
case 25:
{
ratio_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
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 value_ = "";
/**
*
*
*
* String value of a top N non-null value.
*
*
* string value = 1;
*
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* String value of a top N non-null value.
*
*
* string value = 1;
*
* @return The bytes for value.
*/
public com.google.protobuf.ByteString getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* String value of a top N non-null value.
*
*
* string value = 1;
*
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* String value of a top N non-null value.
*
*
* string value = 1;
*
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* String value of a top N non-null value.
*
*
* string value = 1;
*
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private long count_;
/**
*
*
*
* Count of the corresponding value in the scanned data.
*
*
* int64 count = 2;
*
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
/**
*
*
*
* Count of the corresponding value in the scanned data.
*
*
* int64 count = 2;
*
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(long value) {
count_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Count of the corresponding value in the scanned data.
*
*
* int64 count = 2;
*
* @return This builder for chaining.
*/
public Builder clearCount() {
bitField0_ = (bitField0_ & ~0x00000002);
count_ = 0L;
onChanged();
return this;
}
private double ratio_;
/**
*
*
*
* Ratio of the corresponding value in the field against the total
* number of rows in the scanned data.
*
*
* double ratio = 3;
*
* @return The ratio.
*/
@java.lang.Override
public double getRatio() {
return ratio_;
}
/**
*
*
*
* Ratio of the corresponding value in the field against the total
* number of rows in the scanned data.
*
*
* double ratio = 3;
*
* @param value The ratio to set.
* @return This builder for chaining.
*/
public Builder setRatio(double value) {
ratio_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Ratio of the corresponding value in the field against the total
* number of rows in the scanned data.
*
*
* double ratio = 3;
*
* @return This builder for chaining.
*/
public Builder clearRatio() {
bitField0_ = (bitField0_ & ~0x00000004);
ratio_ = 0D;
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.DataProfileResult.Profile.Field.ProfileInfo.TopNValue)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue)
private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
.ProfileInfo.TopNValue
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue();
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TopNValue 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.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int fieldInfoCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object fieldInfo_;
public enum FieldInfoCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
STRING_PROFILE(101),
INTEGER_PROFILE(102),
DOUBLE_PROFILE(103),
FIELDINFO_NOT_SET(0);
private final int value;
private FieldInfoCase(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 FieldInfoCase valueOf(int value) {
return forNumber(value);
}
public static FieldInfoCase forNumber(int value) {
switch (value) {
case 101:
return STRING_PROFILE;
case 102:
return INTEGER_PROFILE;
case 103:
return DOUBLE_PROFILE;
case 0:
return FIELDINFO_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public FieldInfoCase getFieldInfoCase() {
return FieldInfoCase.forNumber(fieldInfoCase_);
}
public static final int NULL_RATIO_FIELD_NUMBER = 2;
private double nullRatio_ = 0D;
/**
*
*
*
* Ratio of rows with null value against total scanned rows.
*
*
* double null_ratio = 2;
*
* @return The nullRatio.
*/
@java.lang.Override
public double getNullRatio() {
return nullRatio_;
}
public static final int DISTINCT_RATIO_FIELD_NUMBER = 3;
private double distinctRatio_ = 0D;
/**
*
*
*
* Ratio of rows with distinct values against total scanned rows.
* Not available for complex non-groupable field type RECORD and fields
* with REPEATABLE mode.
*
*
* double distinct_ratio = 3;
*
* @return The distinctRatio.
*/
@java.lang.Override
public double getDistinctRatio() {
return distinctRatio_;
}
public static final int TOP_N_VALUES_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue>
topNValues_;
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
@java.lang.Override
public java.util.List<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue>
getTopNValuesList() {
return topNValues_;
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
@java.lang.Override
public java.util.List<
? extends
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValueOrBuilder>
getTopNValuesOrBuilderList() {
return topNValues_;
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
@java.lang.Override
public int getTopNValuesCount() {
return topNValues_.size();
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
getTopNValues(int index) {
return topNValues_.get(index);
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValueOrBuilder
getTopNValuesOrBuilder(int index) {
return topNValues_.get(index);
}
public static final int STRING_PROFILE_FIELD_NUMBER = 101;
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*
* @return Whether the stringProfile field is set.
*/
@java.lang.Override
public boolean hasStringProfile() {
return fieldInfoCase_ == 101;
}
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*
* @return The stringProfile.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
getStringProfile() {
if (fieldInfoCase_ == 101) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.getDefaultInstance();
}
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfoOrBuilder
getStringProfileOrBuilder() {
if (fieldInfoCase_ == 101) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.getDefaultInstance();
}
public static final int INTEGER_PROFILE_FIELD_NUMBER = 102;
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*
* @return Whether the integerProfile field is set.
*/
@java.lang.Override
public boolean hasIntegerProfile() {
return fieldInfoCase_ == 102;
}
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*
* @return The integerProfile.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
getIntegerProfile() {
if (fieldInfoCase_ == 102) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.getDefaultInstance();
}
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfoOrBuilder
getIntegerProfileOrBuilder() {
if (fieldInfoCase_ == 102) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.getDefaultInstance();
}
public static final int DOUBLE_PROFILE_FIELD_NUMBER = 103;
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*
* @return Whether the doubleProfile field is set.
*/
@java.lang.Override
public boolean hasDoubleProfile() {
return fieldInfoCase_ == 103;
}
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*
* @return The doubleProfile.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
getDoubleProfile() {
if (fieldInfoCase_ == 103) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.getDefaultInstance();
}
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfoOrBuilder
getDoubleProfileOrBuilder() {
if (fieldInfoCase_ == 103) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.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 (java.lang.Double.doubleToRawLongBits(nullRatio_) != 0) {
output.writeDouble(2, nullRatio_);
}
if (java.lang.Double.doubleToRawLongBits(distinctRatio_) != 0) {
output.writeDouble(3, distinctRatio_);
}
for (int i = 0; i < topNValues_.size(); i++) {
output.writeMessage(4, topNValues_.get(i));
}
if (fieldInfoCase_ == 101) {
output.writeMessage(
101,
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo)
fieldInfo_);
}
if (fieldInfoCase_ == 102) {
output.writeMessage(
102,
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo)
fieldInfo_);
}
if (fieldInfoCase_ == 103) {
output.writeMessage(
103,
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo)
fieldInfo_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (java.lang.Double.doubleToRawLongBits(nullRatio_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, nullRatio_);
}
if (java.lang.Double.doubleToRawLongBits(distinctRatio_) != 0) {
size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, distinctRatio_);
}
for (int i = 0; i < topNValues_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, topNValues_.get(i));
}
if (fieldInfoCase_ == 101) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
101,
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo)
fieldInfo_);
}
if (fieldInfoCase_ == 102) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
102,
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo)
fieldInfo_);
}
if (fieldInfoCase_ == 103) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
103,
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo)
fieldInfo_);
}
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.DataProfileResult.Profile.Field.ProfileInfo)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo other =
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo) obj;
if (java.lang.Double.doubleToLongBits(getNullRatio())
!= java.lang.Double.doubleToLongBits(other.getNullRatio())) return false;
if (java.lang.Double.doubleToLongBits(getDistinctRatio())
!= java.lang.Double.doubleToLongBits(other.getDistinctRatio())) return false;
if (!getTopNValuesList().equals(other.getTopNValuesList())) return false;
if (!getFieldInfoCase().equals(other.getFieldInfoCase())) return false;
switch (fieldInfoCase_) {
case 101:
if (!getStringProfile().equals(other.getStringProfile())) return false;
break;
case 102:
if (!getIntegerProfile().equals(other.getIntegerProfile())) return false;
break;
case 103:
if (!getDoubleProfile().equals(other.getDoubleProfile())) 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) + NULL_RATIO_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getNullRatio()));
hash = (37 * hash) + DISTINCT_RATIO_FIELD_NUMBER;
hash =
(53 * hash)
+ com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDistinctRatio()));
if (getTopNValuesCount() > 0) {
hash = (37 * hash) + TOP_N_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getTopNValuesList().hashCode();
}
switch (fieldInfoCase_) {
case 101:
hash = (37 * hash) + STRING_PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getStringProfile().hashCode();
break;
case 102:
hash = (37 * hash) + INTEGER_PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getIntegerProfile().hashCode();
break;
case 103:
hash = (37 * hash) + DOUBLE_PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getDoubleProfile().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
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.DataProfileResult.Profile.Field.ProfileInfo
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
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.DataProfileResult.Profile.Field.ProfileInfo
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
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.DataProfileResult.Profile.Field.ProfileInfo
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
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.DataProfileResult.Profile.Field.ProfileInfo
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
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.DataProfileResult.Profile.Field.ProfileInfo
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.DataProfileResult.Profile.Field.ProfileInfo
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.DataProfileResult.Profile.Field.ProfileInfo 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 profile information for each field type.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo)
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder
.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
nullRatio_ = 0D;
distinctRatio_ = 0D;
if (topNValuesBuilder_ == null) {
topNValues_ = java.util.Collections.emptyList();
} else {
topNValues_ = null;
topNValuesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (stringProfileBuilder_ != null) {
stringProfileBuilder_.clear();
}
if (integerProfileBuilder_ != null) {
integerProfileBuilder_.clear();
}
if (doubleProfileBuilder_ != null) {
doubleProfileBuilder_.clear();
}
fieldInfoCase_ = 0;
fieldInfo_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_ProfileInfo_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo build() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
buildPartial() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo result =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo result) {
if (topNValuesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
topNValues_ = java.util.Collections.unmodifiableList(topNValues_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.topNValues_ = topNValues_;
} else {
result.topNValues_ = topNValuesBuilder_.build();
}
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.nullRatio_ = nullRatio_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.distinctRatio_ = distinctRatio_;
}
}
private void buildPartialOneofs(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo result) {
result.fieldInfoCase_ = fieldInfoCase_;
result.fieldInfo_ = this.fieldInfo_;
if (fieldInfoCase_ == 101 && stringProfileBuilder_ != null) {
result.fieldInfo_ = stringProfileBuilder_.build();
}
if (fieldInfoCase_ == 102 && integerProfileBuilder_ != null) {
result.fieldInfo_ = integerProfileBuilder_.build();
}
if (fieldInfoCase_ == 103 && doubleProfileBuilder_ != null) {
result.fieldInfo_ = doubleProfileBuilder_.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.DataProfileResult.Profile.Field.ProfileInfo) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo other) {
if (other
== com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.getDefaultInstance()) return this;
if (other.getNullRatio() != 0D) {
setNullRatio(other.getNullRatio());
}
if (other.getDistinctRatio() != 0D) {
setDistinctRatio(other.getDistinctRatio());
}
if (topNValuesBuilder_ == null) {
if (!other.topNValues_.isEmpty()) {
if (topNValues_.isEmpty()) {
topNValues_ = other.topNValues_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTopNValuesIsMutable();
topNValues_.addAll(other.topNValues_);
}
onChanged();
}
} else {
if (!other.topNValues_.isEmpty()) {
if (topNValuesBuilder_.isEmpty()) {
topNValuesBuilder_.dispose();
topNValuesBuilder_ = null;
topNValues_ = other.topNValues_;
bitField0_ = (bitField0_ & ~0x00000004);
topNValuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTopNValuesFieldBuilder()
: null;
} else {
topNValuesBuilder_.addAllMessages(other.topNValues_);
}
}
}
switch (other.getFieldInfoCase()) {
case STRING_PROFILE:
{
mergeStringProfile(other.getStringProfile());
break;
}
case INTEGER_PROFILE:
{
mergeIntegerProfile(other.getIntegerProfile());
break;
}
case DOUBLE_PROFILE:
{
mergeDoubleProfile(other.getDoubleProfile());
break;
}
case FIELDINFO_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 17:
{
nullRatio_ = input.readDouble();
bitField0_ |= 0x00000001;
break;
} // case 17
case 25:
{
distinctRatio_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 25
case 34:
{
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue
m =
input.readMessage(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
.ProfileInfo.TopNValue.parser(),
extensionRegistry);
if (topNValuesBuilder_ == null) {
ensureTopNValuesIsMutable();
topNValues_.add(m);
} else {
topNValuesBuilder_.addMessage(m);
}
break;
} // case 34
case 810:
{
input.readMessage(
getStringProfileFieldBuilder().getBuilder(), extensionRegistry);
fieldInfoCase_ = 101;
break;
} // case 810
case 818:
{
input.readMessage(
getIntegerProfileFieldBuilder().getBuilder(), extensionRegistry);
fieldInfoCase_ = 102;
break;
} // case 818
case 826:
{
input.readMessage(
getDoubleProfileFieldBuilder().getBuilder(), extensionRegistry);
fieldInfoCase_ = 103;
break;
} // case 826
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 fieldInfoCase_ = 0;
private java.lang.Object fieldInfo_;
public FieldInfoCase getFieldInfoCase() {
return FieldInfoCase.forNumber(fieldInfoCase_);
}
public Builder clearFieldInfo() {
fieldInfoCase_ = 0;
fieldInfo_ = null;
onChanged();
return this;
}
private int bitField0_;
private double nullRatio_;
/**
*
*
*
* Ratio of rows with null value against total scanned rows.
*
*
* double null_ratio = 2;
*
* @return The nullRatio.
*/
@java.lang.Override
public double getNullRatio() {
return nullRatio_;
}
/**
*
*
*
* Ratio of rows with null value against total scanned rows.
*
*
* double null_ratio = 2;
*
* @param value The nullRatio to set.
* @return This builder for chaining.
*/
public Builder setNullRatio(double value) {
nullRatio_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Ratio of rows with null value against total scanned rows.
*
*
* double null_ratio = 2;
*
* @return This builder for chaining.
*/
public Builder clearNullRatio() {
bitField0_ = (bitField0_ & ~0x00000001);
nullRatio_ = 0D;
onChanged();
return this;
}
private double distinctRatio_;
/**
*
*
*
* Ratio of rows with distinct values against total scanned rows.
* Not available for complex non-groupable field type RECORD and fields
* with REPEATABLE mode.
*
*
* double distinct_ratio = 3;
*
* @return The distinctRatio.
*/
@java.lang.Override
public double getDistinctRatio() {
return distinctRatio_;
}
/**
*
*
*
* Ratio of rows with distinct values against total scanned rows.
* Not available for complex non-groupable field type RECORD and fields
* with REPEATABLE mode.
*
*
* double distinct_ratio = 3;
*
* @param value The distinctRatio to set.
* @return This builder for chaining.
*/
public Builder setDistinctRatio(double value) {
distinctRatio_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Ratio of rows with distinct values against total scanned rows.
* Not available for complex non-groupable field type RECORD and fields
* with REPEATABLE mode.
*
*
* double distinct_ratio = 3;
*
* @return This builder for chaining.
*/
public Builder clearDistinctRatio() {
bitField0_ = (bitField0_ & ~0x00000002);
distinctRatio_ = 0D;
onChanged();
return this;
}
private java.util.List<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue>
topNValues_ = java.util.Collections.emptyList();
private void ensureTopNValuesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
topNValues_ =
new java.util.ArrayList<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue>(topNValues_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValueOrBuilder>
topNValuesBuilder_;
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public java.util.List<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue>
getTopNValuesList() {
if (topNValuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(topNValues_);
} else {
return topNValuesBuilder_.getMessageList();
}
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public int getTopNValuesCount() {
if (topNValuesBuilder_ == null) {
return topNValues_.size();
} else {
return topNValuesBuilder_.getCount();
}
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
getTopNValues(int index) {
if (topNValuesBuilder_ == null) {
return topNValues_.get(index);
} else {
return topNValuesBuilder_.getMessage(index);
}
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public Builder setTopNValues(
int index,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
value) {
if (topNValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopNValuesIsMutable();
topNValues_.set(index, value);
onChanged();
} else {
topNValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public Builder setTopNValues(
int index,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
.Builder
builderForValue) {
if (topNValuesBuilder_ == null) {
ensureTopNValuesIsMutable();
topNValues_.set(index, builderForValue.build());
onChanged();
} else {
topNValuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public Builder addTopNValues(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
value) {
if (topNValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopNValuesIsMutable();
topNValues_.add(value);
onChanged();
} else {
topNValuesBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public Builder addTopNValues(
int index,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
value) {
if (topNValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTopNValuesIsMutable();
topNValues_.add(index, value);
onChanged();
} else {
topNValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public Builder addTopNValues(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
.Builder
builderForValue) {
if (topNValuesBuilder_ == null) {
ensureTopNValuesIsMutable();
topNValues_.add(builderForValue.build());
onChanged();
} else {
topNValuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public Builder addTopNValues(
int index,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
.Builder
builderForValue) {
if (topNValuesBuilder_ == null) {
ensureTopNValuesIsMutable();
topNValues_.add(index, builderForValue.build());
onChanged();
} else {
topNValuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public Builder addAllTopNValues(
java.lang.Iterable<
? extends
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue>
values) {
if (topNValuesBuilder_ == null) {
ensureTopNValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, topNValues_);
onChanged();
} else {
topNValuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public Builder clearTopNValues() {
if (topNValuesBuilder_ == null) {
topNValues_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
topNValuesBuilder_.clear();
}
return this;
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public Builder removeTopNValues(int index) {
if (topNValuesBuilder_ == null) {
ensureTopNValuesIsMutable();
topNValues_.remove(index);
onChanged();
} else {
topNValuesBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
.Builder
getTopNValuesBuilder(int index) {
return getTopNValuesFieldBuilder().getBuilder(index);
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValueOrBuilder
getTopNValuesOrBuilder(int index) {
if (topNValuesBuilder_ == null) {
return topNValues_.get(index);
} else {
return topNValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public java.util.List<
? extends
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValueOrBuilder>
getTopNValuesOrBuilderList() {
if (topNValuesBuilder_ != null) {
return topNValuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(topNValues_);
}
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
.Builder
addTopNValuesBuilder() {
return getTopNValuesFieldBuilder()
.addBuilder(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue.getDefaultInstance());
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
.Builder
addTopNValuesBuilder(int index) {
return getTopNValuesFieldBuilder()
.addBuilder(
index,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue.getDefaultInstance());
}
/**
*
*
*
* The list of top N non-null values, frequency and ratio with which
* they occur in the scanned data. N is 10 or equal to the number of
* distinct values in the field, whichever is smaller. Not available for
* complex non-groupable field type RECORD and fields with REPEATABLE
* mode.
*
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue top_n_values = 4;
*
*/
public java.util.List<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
.Builder>
getTopNValuesBuilderList() {
return getTopNValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.TopNValue
.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValueOrBuilder>
getTopNValuesFieldBuilder() {
if (topNValuesBuilder_ == null) {
topNValuesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValue.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.TopNValueOrBuilder>(
topNValues_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
topNValues_ = null;
}
return topNValuesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfoOrBuilder>
stringProfileBuilder_;
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*
* @return Whether the stringProfile field is set.
*/
@java.lang.Override
public boolean hasStringProfile() {
return fieldInfoCase_ == 101;
}
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*
* @return The stringProfile.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
getStringProfile() {
if (stringProfileBuilder_ == null) {
if (fieldInfoCase_ == 101) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.getDefaultInstance();
} else {
if (fieldInfoCase_ == 101) {
return stringProfileBuilder_.getMessage();
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.getDefaultInstance();
}
}
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*/
public Builder setStringProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
value) {
if (stringProfileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fieldInfo_ = value;
onChanged();
} else {
stringProfileBuilder_.setMessage(value);
}
fieldInfoCase_ = 101;
return this;
}
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*/
public Builder setStringProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.Builder
builderForValue) {
if (stringProfileBuilder_ == null) {
fieldInfo_ = builderForValue.build();
onChanged();
} else {
stringProfileBuilder_.setMessage(builderForValue.build());
}
fieldInfoCase_ = 101;
return this;
}
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*/
public Builder mergeStringProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo
value) {
if (stringProfileBuilder_ == null) {
if (fieldInfoCase_ == 101
&& fieldInfo_
!= com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.getDefaultInstance()) {
fieldInfo_ =
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.newBuilder(
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
.ProfileInfo.StringFieldInfo)
fieldInfo_)
.mergeFrom(value)
.buildPartial();
} else {
fieldInfo_ = value;
}
onChanged();
} else {
if (fieldInfoCase_ == 101) {
stringProfileBuilder_.mergeFrom(value);
} else {
stringProfileBuilder_.setMessage(value);
}
}
fieldInfoCase_ = 101;
return this;
}
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*/
public Builder clearStringProfile() {
if (stringProfileBuilder_ == null) {
if (fieldInfoCase_ == 101) {
fieldInfoCase_ = 0;
fieldInfo_ = null;
onChanged();
}
} else {
if (fieldInfoCase_ == 101) {
fieldInfoCase_ = 0;
fieldInfo_ = null;
}
stringProfileBuilder_.clear();
}
return this;
}
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.Builder
getStringProfileBuilder() {
return getStringProfileFieldBuilder().getBuilder();
}
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfoOrBuilder
getStringProfileOrBuilder() {
if ((fieldInfoCase_ == 101) && (stringProfileBuilder_ != null)) {
return stringProfileBuilder_.getMessageOrBuilder();
} else {
if (fieldInfoCase_ == 101) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.getDefaultInstance();
}
}
/**
*
*
*
* String type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.StringFieldInfo string_profile = 101;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfoOrBuilder>
getStringProfileFieldBuilder() {
if (stringProfileBuilder_ == null) {
if (!(fieldInfoCase_ == 101)) {
fieldInfo_ =
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.getDefaultInstance();
}
stringProfileBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfoOrBuilder>(
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.StringFieldInfo)
fieldInfo_,
getParentForChildren(),
isClean());
fieldInfo_ = null;
}
fieldInfoCase_ = 101;
onChanged();
return stringProfileBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfoOrBuilder>
integerProfileBuilder_;
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*
* @return Whether the integerProfile field is set.
*/
@java.lang.Override
public boolean hasIntegerProfile() {
return fieldInfoCase_ == 102;
}
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*
* @return The integerProfile.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
getIntegerProfile() {
if (integerProfileBuilder_ == null) {
if (fieldInfoCase_ == 102) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.getDefaultInstance();
} else {
if (fieldInfoCase_ == 102) {
return integerProfileBuilder_.getMessage();
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.getDefaultInstance();
}
}
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*/
public Builder setIntegerProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
value) {
if (integerProfileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fieldInfo_ = value;
onChanged();
} else {
integerProfileBuilder_.setMessage(value);
}
fieldInfoCase_ = 102;
return this;
}
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*/
public Builder setIntegerProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.Builder
builderForValue) {
if (integerProfileBuilder_ == null) {
fieldInfo_ = builderForValue.build();
onChanged();
} else {
integerProfileBuilder_.setMessage(builderForValue.build());
}
fieldInfoCase_ = 102;
return this;
}
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*/
public Builder mergeIntegerProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo
value) {
if (integerProfileBuilder_ == null) {
if (fieldInfoCase_ == 102
&& fieldInfo_
!= com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.getDefaultInstance()) {
fieldInfo_ =
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.newBuilder(
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
.ProfileInfo.IntegerFieldInfo)
fieldInfo_)
.mergeFrom(value)
.buildPartial();
} else {
fieldInfo_ = value;
}
onChanged();
} else {
if (fieldInfoCase_ == 102) {
integerProfileBuilder_.mergeFrom(value);
} else {
integerProfileBuilder_.setMessage(value);
}
}
fieldInfoCase_ = 102;
return this;
}
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*/
public Builder clearIntegerProfile() {
if (integerProfileBuilder_ == null) {
if (fieldInfoCase_ == 102) {
fieldInfoCase_ = 0;
fieldInfo_ = null;
onChanged();
}
} else {
if (fieldInfoCase_ == 102) {
fieldInfoCase_ = 0;
fieldInfo_ = null;
}
integerProfileBuilder_.clear();
}
return this;
}
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.Builder
getIntegerProfileBuilder() {
return getIntegerProfileFieldBuilder().getBuilder();
}
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfoOrBuilder
getIntegerProfileOrBuilder() {
if ((fieldInfoCase_ == 102) && (integerProfileBuilder_ != null)) {
return integerProfileBuilder_.getMessageOrBuilder();
} else {
if (fieldInfoCase_ == 102) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.getDefaultInstance();
}
}
/**
*
*
*
* Integer type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.IntegerFieldInfo integer_profile = 102;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfoOrBuilder>
getIntegerProfileFieldBuilder() {
if (integerProfileBuilder_ == null) {
if (!(fieldInfoCase_ == 102)) {
fieldInfo_ =
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.getDefaultInstance();
}
integerProfileBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfoOrBuilder>(
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.IntegerFieldInfo)
fieldInfo_,
getParentForChildren(),
isClean());
fieldInfo_ = null;
}
fieldInfoCase_ = 102;
onChanged();
return integerProfileBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfoOrBuilder>
doubleProfileBuilder_;
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*
* @return Whether the doubleProfile field is set.
*/
@java.lang.Override
public boolean hasDoubleProfile() {
return fieldInfoCase_ == 103;
}
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*
* @return The doubleProfile.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
getDoubleProfile() {
if (doubleProfileBuilder_ == null) {
if (fieldInfoCase_ == 103) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.getDefaultInstance();
} else {
if (fieldInfoCase_ == 103) {
return doubleProfileBuilder_.getMessage();
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.getDefaultInstance();
}
}
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*/
public Builder setDoubleProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
value) {
if (doubleProfileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fieldInfo_ = value;
onChanged();
} else {
doubleProfileBuilder_.setMessage(value);
}
fieldInfoCase_ = 103;
return this;
}
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*/
public Builder setDoubleProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.Builder
builderForValue) {
if (doubleProfileBuilder_ == null) {
fieldInfo_ = builderForValue.build();
onChanged();
} else {
doubleProfileBuilder_.setMessage(builderForValue.build());
}
fieldInfoCase_ = 103;
return this;
}
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*/
public Builder mergeDoubleProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo
value) {
if (doubleProfileBuilder_ == null) {
if (fieldInfoCase_ == 103
&& fieldInfo_
!= com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.getDefaultInstance()) {
fieldInfo_ =
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.newBuilder(
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
.ProfileInfo.DoubleFieldInfo)
fieldInfo_)
.mergeFrom(value)
.buildPartial();
} else {
fieldInfo_ = value;
}
onChanged();
} else {
if (fieldInfoCase_ == 103) {
doubleProfileBuilder_.mergeFrom(value);
} else {
doubleProfileBuilder_.setMessage(value);
}
}
fieldInfoCase_ = 103;
return this;
}
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*/
public Builder clearDoubleProfile() {
if (doubleProfileBuilder_ == null) {
if (fieldInfoCase_ == 103) {
fieldInfoCase_ = 0;
fieldInfo_ = null;
onChanged();
}
} else {
if (fieldInfoCase_ == 103) {
fieldInfoCase_ = 0;
fieldInfo_ = null;
}
doubleProfileBuilder_.clear();
}
return this;
}
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.Builder
getDoubleProfileBuilder() {
return getDoubleProfileFieldBuilder().getBuilder();
}
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfoOrBuilder
getDoubleProfileOrBuilder() {
if ((fieldInfoCase_ == 103) && (doubleProfileBuilder_ != null)) {
return doubleProfileBuilder_.getMessageOrBuilder();
} else {
if (fieldInfoCase_ == 103) {
return (com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo)
fieldInfo_;
}
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.getDefaultInstance();
}
}
/**
*
*
*
* Double type field information.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.DoubleFieldInfo double_profile = 103;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfoOrBuilder>
getDoubleProfileFieldBuilder() {
if (doubleProfileBuilder_ == null) {
if (!(fieldInfoCase_ == 103)) {
fieldInfo_ =
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.getDefaultInstance();
}
doubleProfileBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfoOrBuilder>(
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.DoubleFieldInfo)
fieldInfo_,
getParentForChildren(),
isClean());
fieldInfo_ = null;
}
fieldInfoCase_ = 103;
onChanged();
return doubleProfileBuilder_;
}
@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.DataProfileResult.Profile.Field.ProfileInfo)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo)
private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
.ProfileInfo
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo();
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProfileInfo 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.DataProfileResult.Profile.Field.ProfileInfo
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* The name of the field.
*
*
* string name = 1;
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*
*
* The name of the field.
*
*
* string name = 1;
*
* @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 TYPE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object type_ = "";
/**
*
*
*
* The data type retrieved from the schema of the data source. For
* instance, for a BigQuery native table, it is the [BigQuery Table
* Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema).
* For a Dataplex Entity, it is the [Entity
* Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).
*
*
* string type = 2;
*
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
*
*
*
* The data type retrieved from the schema of the data source. For
* instance, for a BigQuery native table, it is the [BigQuery Table
* Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema).
* For a Dataplex Entity, it is the [Entity
* Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).
*
*
* string type = 2;
*
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MODE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object mode_ = "";
/**
*
*
*
* The mode of the field. Possible values include:
*
* * REQUIRED, if it is a required field.
* * NULLABLE, if it is an optional field.
* * REPEATED, if it is a repeated field.
*
*
* string mode = 3;
*
* @return The mode.
*/
@java.lang.Override
public java.lang.String getMode() {
java.lang.Object ref = mode_;
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();
mode_ = s;
return s;
}
}
/**
*
*
*
* The mode of the field. Possible values include:
*
* * REQUIRED, if it is a required field.
* * NULLABLE, if it is an optional field.
* * REPEATED, if it is a repeated field.
*
*
* string mode = 3;
*
* @return The bytes for mode.
*/
@java.lang.Override
public com.google.protobuf.ByteString getModeBytes() {
java.lang.Object ref = mode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
mode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROFILE_FIELD_NUMBER = 4;
private com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile_;
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*
* @return Whether the profile field is set.
*/
@java.lang.Override
public boolean hasProfile() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*
* @return The profile.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo getProfile() {
return profile_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.getDefaultInstance()
: profile_;
}
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder
getProfileOrBuilder() {
return profile_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.getDefaultInstance()
: profile_;
}
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(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mode_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getProfile());
}
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(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mode_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProfile());
}
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.DataProfileResult.Profile.Field)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field other =
(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field) obj;
if (!getName().equals(other.getName())) return false;
if (!getType().equals(other.getType())) return false;
if (!getMode().equals(other.getMode())) return false;
if (hasProfile() != other.hasProfile()) return false;
if (hasProfile()) {
if (!getProfile().equals(other.getProfile())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + getMode().hashCode();
if (hasProfile()) {
hash = (37 * hash) + PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getProfile().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field 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.DataProfileResult.Profile.Field parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field 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.DataProfileResult.Profile.Field parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field 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.DataProfileResult.Profile.Field parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field 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.DataProfileResult.Profile.Field parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field 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.DataProfileResult.Profile.Field 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.DataProfileResult.Profile.Field 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.DataProfileResult.Profile.Field 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 field within a table.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.Profile.Field}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile.Field)
com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getProfileFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
type_ = "";
mode_ = "";
profile_ = null;
if (profileBuilder_ != null) {
profileBuilder_.dispose();
profileBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_Field_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field build() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field buildPartial() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field result =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.mode_ = mode_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.profile_ = profileBuilder_ == null ? profile_ : profileBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field) {
return mergeFrom((com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field other) {
if (other
== com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.getDefaultInstance())
return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getMode().isEmpty()) {
mode_ = other.mode_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasProfile()) {
mergeProfile(other.getProfile());
}
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:
{
type_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
mode_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getProfileFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
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 name_ = "";
/**
*
*
*
* The name of the field.
*
*
* string name = 1;
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The name of the field.
*
*
* string name = 1;
*
* @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;
}
}
/**
*
*
*
* The name of the field.
*
*
* string name = 1;
*
* @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;
}
/**
*
*
*
* The name of the field.
*
*
* string name = 1;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The name of the field.
*
*
* string name = 1;
*
* @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 type_ = "";
/**
*
*
*
* The data type retrieved from the schema of the data source. For
* instance, for a BigQuery native table, it is the [BigQuery Table
* Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema).
* For a Dataplex Entity, it is the [Entity
* Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).
*
*
* string type = 2;
*
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The data type retrieved from the schema of the data source. For
* instance, for a BigQuery native table, it is the [BigQuery Table
* Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema).
* For a Dataplex Entity, it is the [Entity
* Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).
*
*
* string type = 2;
*
* @return The bytes for type.
*/
public com.google.protobuf.ByteString getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The data type retrieved from the schema of the data source. For
* instance, for a BigQuery native table, it is the [BigQuery Table
* Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema).
* For a Dataplex Entity, it is the [Entity
* Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).
*
*
* string type = 2;
*
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The data type retrieved from the schema of the data source. For
* instance, for a BigQuery native table, it is the [BigQuery Table
* Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema).
* For a Dataplex Entity, it is the [Entity
* Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).
*
*
* string type = 2;
*
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* The data type retrieved from the schema of the data source. For
* instance, for a BigQuery native table, it is the [BigQuery Table
* Schema](https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#tablefieldschema).
* For a Dataplex Entity, it is the [Entity
* Schema](https://cloud.google.com/dataplex/docs/reference/rpc/google.cloud.dataplex.v1#type_3).
*
*
* string type = 2;
*
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object mode_ = "";
/**
*
*
*
* The mode of the field. Possible values include:
*
* * REQUIRED, if it is a required field.
* * NULLABLE, if it is an optional field.
* * REPEATED, if it is a repeated field.
*
*
* string mode = 3;
*
* @return The mode.
*/
public java.lang.String getMode() {
java.lang.Object ref = mode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
mode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The mode of the field. Possible values include:
*
* * REQUIRED, if it is a required field.
* * NULLABLE, if it is an optional field.
* * REPEATED, if it is a repeated field.
*
*
* string mode = 3;
*
* @return The bytes for mode.
*/
public com.google.protobuf.ByteString getModeBytes() {
java.lang.Object ref = mode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
mode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The mode of the field. Possible values include:
*
* * REQUIRED, if it is a required field.
* * NULLABLE, if it is an optional field.
* * REPEATED, if it is a repeated field.
*
*
* string mode = 3;
*
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The mode of the field. Possible values include:
*
* * REQUIRED, if it is a required field.
* * NULLABLE, if it is an optional field.
* * REPEATED, if it is a repeated field.
*
*
* string mode = 3;
*
* @return This builder for chaining.
*/
public Builder clearMode() {
mode_ = getDefaultInstance().getMode();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* The mode of the field. Possible values include:
*
* * REQUIRED, if it is a required field.
* * NULLABLE, if it is an optional field.
* * REPEATED, if it is a repeated field.
*
*
* string mode = 3;
*
* @param value The bytes for mode to set.
* @return This builder for chaining.
*/
public Builder setModeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
mode_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder>
profileBuilder_;
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*
* @return Whether the profile field is set.
*/
public boolean hasProfile() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*
* @return The profile.
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
getProfile() {
if (profileBuilder_ == null) {
return profile_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.getDefaultInstance()
: profile_;
} else {
return profileBuilder_.getMessage();
}
}
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*/
public Builder setProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo value) {
if (profileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
profile_ = value;
} else {
profileBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*/
public Builder setProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder
builderForValue) {
if (profileBuilder_ == null) {
profile_ = builderForValue.build();
} else {
profileBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*/
public Builder mergeProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo value) {
if (profileBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& profile_ != null
&& profile_
!= com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.getDefaultInstance()) {
getProfileBuilder().mergeFrom(value);
} else {
profile_ = value;
}
} else {
profileBuilder_.mergeFrom(value);
}
if (profile_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*/
public Builder clearProfile() {
bitField0_ = (bitField0_ & ~0x00000008);
profile_ = null;
if (profileBuilder_ != null) {
profileBuilder_.dispose();
profileBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder
getProfileBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getProfileFieldBuilder().getBuilder();
}
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder
getProfileOrBuilder() {
if (profileBuilder_ != null) {
return profileBuilder_.getMessageOrBuilder();
} else {
return profile_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.getDefaultInstance()
: profile_;
}
}
/**
*
*
*
* Profile information for the corresponding field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo profile = 4;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfoOrBuilder>
getProfileFieldBuilder() {
if (profileBuilder_ == null) {
profileBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.ProfileInfo
.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
.ProfileInfoOrBuilder>(getProfile(), getParentForChildren(), isClean());
profile_ = null;
}
return profileBuilder_;
}
@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.DataProfileResult.Profile.Field)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile.Field)
private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field();
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Field 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.DataProfileResult.Profile.Field
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int FIELDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List fields_;
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
@java.lang.Override
public java.util.List
getFieldsList() {
return fields_;
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
@java.lang.Override
public java.util.List<
? extends com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
@java.lang.Override
public int getFieldsCount() {
return fields_.size();
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field getFields(int index) {
return fields_.get(index);
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(2, fields_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, fields_.get(i));
}
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.DataProfileResult.Profile)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataProfileResult.Profile other =
(com.google.cloud.dataplex.v1.DataProfileResult.Profile) obj;
if (!getFieldsList().equals(other.getFieldsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile 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.DataProfileResult.Profile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile 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.DataProfileResult.Profile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile 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.DataProfileResult.Profile parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile 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.DataProfileResult.Profile parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile 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.DataProfileResult.Profile 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.DataProfileResult.Profile 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.DataProfileResult.Profile 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;
}
/**
*
*
*
* Contains name, type, mode and field type specific profile information.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.Profile}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.Profile)
com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.class,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DataProfileResult.Profile.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
} else {
fields_ = null;
fieldsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_Profile_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile build() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile buildPartial() {
com.google.cloud.dataplex.v1.DataProfileResult.Profile result =
new com.google.cloud.dataplex.v1.DataProfileResult.Profile(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.dataplex.v1.DataProfileResult.Profile result) {
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.dataplex.v1.DataProfileResult.Profile result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.DataProfileResult.Profile) {
return mergeFrom((com.google.cloud.dataplex.v1.DataProfileResult.Profile) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DataProfileResult.Profile other) {
if (other == com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance())
return this;
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000001);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getFieldsFieldBuilder()
: null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
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 18:
{
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field m =
input.readMessage(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.parser(),
extensionRegistry);
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(m);
} else {
fieldsBuilder_.addMessage(m);
}
break;
} // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
fields_ =
new java.util.ArrayList(
fields_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder>
fieldsBuilder_;
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public java.util.List
getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public Builder setFields(
int index, com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public Builder setFields(
int index,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public Builder addFields(com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public Builder addFields(
int index, com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public Builder addFields(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public Builder addFields(
int index,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public Builder addAllFields(
java.lang.Iterable extends com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field>
values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder
getFieldsOrBuilder(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public java.util.List<
? extends com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder
addFieldsBuilder() {
return getFieldsFieldBuilder()
.addBuilder(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.getDefaultInstance());
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder()
.addBuilder(
index,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.getDefaultInstance());
}
/**
*
*
*
* List of fields with structural and profile information for each field.
*
*
* repeated .google.cloud.dataplex.v1.DataProfileResult.Profile.Field fields = 2;
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Field.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.FieldOrBuilder>(
fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
fields_ = null;
}
return fieldsBuilder_;
}
@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.DataProfileResult.Profile)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.Profile)
private static final com.google.cloud.dataplex.v1.DataProfileResult.Profile DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataProfileResult.Profile();
}
public static com.google.cloud.dataplex.v1.DataProfileResult.Profile getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Profile 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.DataProfileResult.Profile getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PostScanActionsResultOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the bigqueryExportResult field is set.
*/
boolean hasBigqueryExportResult();
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The bigqueryExportResult.
*/
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult
getBigqueryExportResult();
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResultOrBuilder
getBigqueryExportResultOrBuilder();
}
/**
*
*
*
* The result of post scan actions of DataProfileScan job.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult}
*/
public static final class PostScanActionsResult extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult)
PostScanActionsResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use PostScanActionsResult.newBuilder() to construct.
private PostScanActionsResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PostScanActionsResult() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PostScanActionsResult();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_PostScanActionsResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_PostScanActionsResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.class,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.Builder.class);
}
public interface BigQueryExportResultOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Output only. Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
*
*
*
* Output only. Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult
.State
getState();
/**
*
*
*
* Output only. Additional information about the BigQuery exporting.
*
*
* string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The message.
*/
java.lang.String getMessage();
/**
*
*
*
* Output only. Additional information about the BigQuery exporting.
*
*
* string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for message.
*/
com.google.protobuf.ByteString getMessageBytes();
}
/**
*
*
*
* The result of BigQuery export post scan action.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult}
*/
public static final class BigQueryExportResult extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult)
BigQueryExportResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use BigQueryExportResult.newBuilder() to construct.
private BigQueryExportResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BigQueryExportResult() {
state_ = 0;
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new BigQueryExportResult();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_PostScanActionsResult_BigQueryExportResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_PostScanActionsResult_BigQueryExportResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.class,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.Builder.class);
}
/**
*
*
*
* Execution state for the exporting.
*
*
* Protobuf enum {@code
* google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State}
*/
public enum State implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The exporting state is unspecified.
*
*
* STATE_UNSPECIFIED = 0;
*/
STATE_UNSPECIFIED(0),
/**
*
*
*
* The exporting completed successfully.
*
*
* SUCCEEDED = 1;
*/
SUCCEEDED(1),
/**
*
*
*
* The exporting is no longer running due to an error.
*
*
* FAILED = 2;
*/
FAILED(2),
/**
*
*
*
* The exporting is skipped due to no valid scan result to export
* (usually caused by scan failed).
*
*
* SKIPPED = 3;
*/
SKIPPED(3),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The exporting state is unspecified.
*
*
* STATE_UNSPECIFIED = 0;
*/
public static final int STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The exporting completed successfully.
*
*
* SUCCEEDED = 1;
*/
public static final int SUCCEEDED_VALUE = 1;
/**
*
*
*
* The exporting is no longer running due to an error.
*
*
* FAILED = 2;
*/
public static final int FAILED_VALUE = 2;
/**
*
*
*
* The exporting is skipped due to no valid scan result to export
* (usually caused by scan failed).
*
*
* SKIPPED = 3;
*/
public static final int SKIPPED_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static State valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static State forNumber(int value) {
switch (value) {
case 0:
return STATE_UNSPECIFIED;
case 1:
return SUCCEEDED;
case 2:
return FAILED;
case 3:
return SKIPPED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public State findValueByNumber(int number) {
return State.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final State[] VALUES = values();
public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private State(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State)
}
public static final int STATE_FIELD_NUMBER = 1;
private int state_ = 0;
/**
*
*
*
* Output only. Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.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. Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.State
getState() {
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult
.State
result =
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.State.forNumber(state_);
return result == null
? com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.State.UNRECOGNIZED
: result;
}
public static final int MESSAGE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
*
*
*
* Output only. Additional information about the BigQuery exporting.
*
*
* string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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();
message_ = s;
return s;
}
}
/**
*
*
*
* Output only. Additional information about the BigQuery exporting.
*
*
* string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
message_ = 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 (state_
!= com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.State.STATE_UNSPECIFIED
.getNumber()) {
output.writeEnum(1, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (state_
!= com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.State.STATE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
}
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.DataProfileResult.PostScanActionsResult
.BigQueryExportResult)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult
other =
(com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult)
obj;
if (state_ != other.state_) return false;
if (!getMessage().equals(other.getMessage())) 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) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
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.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
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.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
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.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
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.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
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.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
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.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
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.DataProfileResult.PostScanActionsResult.BigQueryExportResult
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 result of BigQuery export post scan action.
*
*
* Protobuf type {@code
* google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult)
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_PostScanActionsResult_BigQueryExportResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_PostScanActionsResult_BigQueryExportResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.class,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
state_ = 0;
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_PostScanActionsResult_BigQueryExportResult_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
build() {
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult
result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
buildPartial() {
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult
result =
new com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.message_ = message_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult)
other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
other) {
if (other
== com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.getDefaultInstance()) return this;
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
state_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
{
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int state_ = 0;
/**
*
*
*
* Output only. Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.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. Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The state.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.State
getState() {
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult
.State
result =
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.State.forNumber(state_);
return result == null
? com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.State.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.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.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.State
value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
state_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. Execution state for the BigQuery exporting.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000001);
state_ = 0;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
*
*
*
* Output only. Additional information about the BigQuery exporting.
*
*
* string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. Additional information about the BigQuery exporting.
*
*
* string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for message.
*/
public com.google.protobuf.ByteString getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. Additional information about the BigQuery exporting.
*
*
* string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. Additional information about the BigQuery exporting.
*
*
* string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Output only. Additional information about the BigQuery exporting.
*
*
* string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
message_ = value;
bitField0_ |= 0x00000002;
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.DataProfileResult.PostScanActionsResult.BigQueryExportResult)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult)
private static final com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE =
new com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult();
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BigQueryExportResult 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.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int BIGQUERY_EXPORT_RESULT_FIELD_NUMBER = 1;
private com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
bigqueryExportResult_;
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the bigqueryExportResult field is set.
*/
@java.lang.Override
public boolean hasBigqueryExportResult() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The bigqueryExportResult.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult
getBigqueryExportResult() {
return bigqueryExportResult_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.getDefaultInstance()
: bigqueryExportResult_;
}
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResultOrBuilder
getBigqueryExportResultOrBuilder() {
return bigqueryExportResult_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.getDefaultInstance()
: bigqueryExportResult_;
}
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, getBigqueryExportResult());
}
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, getBigqueryExportResult());
}
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.DataProfileResult.PostScanActionsResult)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult other =
(com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult) obj;
if (hasBigqueryExportResult() != other.hasBigqueryExportResult()) return false;
if (hasBigqueryExportResult()) {
if (!getBigqueryExportResult().equals(other.getBigqueryExportResult())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBigqueryExportResult()) {
hash = (37 * hash) + BIGQUERY_EXPORT_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getBigqueryExportResult().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult 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.DataProfileResult.PostScanActionsResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult 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.DataProfileResult.PostScanActionsResult parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult 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.DataProfileResult.PostScanActionsResult parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult 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.DataProfileResult.PostScanActionsResult
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
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.DataProfileResult.PostScanActionsResult 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.DataProfileResult.PostScanActionsResult 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.DataProfileResult.PostScanActionsResult 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 result of post scan actions of DataProfileScan job.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult)
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_PostScanActionsResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_PostScanActionsResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.class,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.Builder.class);
}
// Construct using
// com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getBigqueryExportResultFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
bigqueryExportResult_ = null;
if (bigqueryExportResultBuilder_ != null) {
bigqueryExportResultBuilder_.dispose();
bigqueryExportResultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_PostScanActionsResult_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult build() {
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult buildPartial() {
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult result =
new com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.bigqueryExportResult_ =
bigqueryExportResultBuilder_ == null
? bigqueryExportResult_
: bigqueryExportResultBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult) {
return mergeFrom(
(com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult other) {
if (other
== com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.getDefaultInstance()) return this;
if (other.hasBigqueryExportResult()) {
mergeBigqueryExportResult(other.getBigqueryExportResult());
}
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(
getBigqueryExportResultFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
bigqueryExportResult_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResultOrBuilder>
bigqueryExportResultBuilder_;
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the bigqueryExportResult field is set.
*/
public boolean hasBigqueryExportResult() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The bigqueryExportResult.
*/
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult
getBigqueryExportResult() {
if (bigqueryExportResultBuilder_ == null) {
return bigqueryExportResult_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.getDefaultInstance()
: bigqueryExportResult_;
} else {
return bigqueryExportResultBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setBigqueryExportResult(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult
value) {
if (bigqueryExportResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bigqueryExportResult_ = value;
} else {
bigqueryExportResultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setBigqueryExportResult(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult
.Builder
builderForValue) {
if (bigqueryExportResultBuilder_ == null) {
bigqueryExportResult_ = builderForValue.build();
} else {
bigqueryExportResultBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeBigqueryExportResult(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult
value) {
if (bigqueryExportResultBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& bigqueryExportResult_ != null
&& bigqueryExportResult_
!= com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.getDefaultInstance()) {
getBigqueryExportResultBuilder().mergeFrom(value);
} else {
bigqueryExportResult_ = value;
}
} else {
bigqueryExportResultBuilder_.mergeFrom(value);
}
if (bigqueryExportResult_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearBigqueryExportResult() {
bitField0_ = (bitField0_ & ~0x00000001);
bigqueryExportResult_ = null;
if (bigqueryExportResultBuilder_ != null) {
bigqueryExportResultBuilder_.dispose();
bigqueryExportResultBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.Builder
getBigqueryExportResultBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBigqueryExportResultFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResultOrBuilder
getBigqueryExportResultOrBuilder() {
if (bigqueryExportResultBuilder_ != null) {
return bigqueryExportResultBuilder_.getMessageOrBuilder();
} else {
return bigqueryExportResult_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.getDefaultInstance()
: bigqueryExportResult_;
}
}
/**
*
*
*
* Output only. The result of BigQuery export post scan action.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.BigQueryExportResult bigquery_export_result = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResultOrBuilder>
getBigqueryExportResultFieldBuilder() {
if (bigqueryExportResultBuilder_ == null) {
bigqueryExportResultBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResult.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.BigQueryExportResultOrBuilder>(
getBigqueryExportResult(), getParentForChildren(), isClean());
bigqueryExportResult_ = null;
}
return bigqueryExportResultBuilder_;
}
@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.DataProfileResult.PostScanActionsResult)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult)
private static final com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult();
}
public static com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PostScanActionsResult 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.DataProfileResult.PostScanActionsResult
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int ROW_COUNT_FIELD_NUMBER = 3;
private long rowCount_ = 0L;
/**
*
*
*
* The count of rows scanned.
*
*
* int64 row_count = 3;
*
* @return The rowCount.
*/
@java.lang.Override
public long getRowCount() {
return rowCount_;
}
public static final int PROFILE_FIELD_NUMBER = 4;
private com.google.cloud.dataplex.v1.DataProfileResult.Profile profile_;
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*
* @return Whether the profile field is set.
*/
@java.lang.Override
public boolean hasProfile() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*
* @return The profile.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.Profile getProfile() {
return profile_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance()
: profile_;
}
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder getProfileOrBuilder() {
return profile_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance()
: profile_;
}
public static final int SCANNED_DATA_FIELD_NUMBER = 5;
private com.google.cloud.dataplex.v1.ScannedData scannedData_;
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*
* @return Whether the scannedData field is set.
*/
@java.lang.Override
public boolean hasScannedData() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*
* @return The scannedData.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedData getScannedData() {
return scannedData_ == null
? com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance()
: scannedData_;
}
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.ScannedDataOrBuilder getScannedDataOrBuilder() {
return scannedData_ == null
? com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance()
: scannedData_;
}
public static final int POST_SCAN_ACTIONS_RESULT_FIELD_NUMBER = 6;
private com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
postScanActionsResult_;
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the postScanActionsResult field is set.
*/
@java.lang.Override
public boolean hasPostScanActionsResult() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The postScanActionsResult.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
getPostScanActionsResult() {
return postScanActionsResult_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.getDefaultInstance()
: postScanActionsResult_;
}
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultOrBuilder
getPostScanActionsResultOrBuilder() {
return postScanActionsResult_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.getDefaultInstance()
: postScanActionsResult_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (rowCount_ != 0L) {
output.writeInt64(3, rowCount_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getProfile());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getScannedData());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(6, getPostScanActionsResult());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (rowCount_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, rowCount_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProfile());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getScannedData());
}
if (((bitField0_ & 0x00000004) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPostScanActionsResult());
}
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.DataProfileResult)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DataProfileResult other =
(com.google.cloud.dataplex.v1.DataProfileResult) obj;
if (getRowCount() != other.getRowCount()) return false;
if (hasProfile() != other.hasProfile()) return false;
if (hasProfile()) {
if (!getProfile().equals(other.getProfile())) return false;
}
if (hasScannedData() != other.hasScannedData()) return false;
if (hasScannedData()) {
if (!getScannedData().equals(other.getScannedData())) return false;
}
if (hasPostScanActionsResult() != other.hasPostScanActionsResult()) return false;
if (hasPostScanActionsResult()) {
if (!getPostScanActionsResult().equals(other.getPostScanActionsResult())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount());
if (hasProfile()) {
hash = (37 * hash) + PROFILE_FIELD_NUMBER;
hash = (53 * hash) + getProfile().hashCode();
}
if (hasScannedData()) {
hash = (37 * hash) + SCANNED_DATA_FIELD_NUMBER;
hash = (53 * hash) + getScannedData().hashCode();
}
if (hasPostScanActionsResult()) {
hash = (37 * hash) + POST_SCAN_ACTIONS_RESULT_FIELD_NUMBER;
hash = (53 * hash) + getPostScanActionsResult().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DataProfileResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.cloud.dataplex.v1.DataProfileResult prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* DataProfileResult defines the output of DataProfileScan. Each field of the
* table will have field type specific profile result.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DataProfileResult}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DataProfileResult)
com.google.cloud.dataplex.v1.DataProfileResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DataProfileResult.class,
com.google.cloud.dataplex.v1.DataProfileResult.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DataProfileResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getProfileFieldBuilder();
getScannedDataFieldBuilder();
getPostScanActionsResultFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
rowCount_ = 0L;
profile_ = null;
if (profileBuilder_ != null) {
profileBuilder_.dispose();
profileBuilder_ = null;
}
scannedData_ = null;
if (scannedDataBuilder_ != null) {
scannedDataBuilder_.dispose();
scannedDataBuilder_ = null;
}
postScanActionsResult_ = null;
if (postScanActionsResultBuilder_ != null) {
postScanActionsResultBuilder_.dispose();
postScanActionsResultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.DataProfileProto
.internal_static_google_cloud_dataplex_v1_DataProfileResult_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult build() {
com.google.cloud.dataplex.v1.DataProfileResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult buildPartial() {
com.google.cloud.dataplex.v1.DataProfileResult result =
new com.google.cloud.dataplex.v1.DataProfileResult(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.DataProfileResult result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.rowCount_ = rowCount_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.profile_ = profileBuilder_ == null ? profile_ : profileBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.scannedData_ =
scannedDataBuilder_ == null ? scannedData_ : scannedDataBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.postScanActionsResult_ =
postScanActionsResultBuilder_ == null
? postScanActionsResult_
: postScanActionsResultBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.dataplex.v1.DataProfileResult) {
return mergeFrom((com.google.cloud.dataplex.v1.DataProfileResult) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DataProfileResult other) {
if (other == com.google.cloud.dataplex.v1.DataProfileResult.getDefaultInstance()) return this;
if (other.getRowCount() != 0L) {
setRowCount(other.getRowCount());
}
if (other.hasProfile()) {
mergeProfile(other.getProfile());
}
if (other.hasScannedData()) {
mergeScannedData(other.getScannedData());
}
if (other.hasPostScanActionsResult()) {
mergePostScanActionsResult(other.getPostScanActionsResult());
}
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 24:
{
rowCount_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 24
case 34:
{
input.readMessage(getProfileFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 34
case 42:
{
input.readMessage(getScannedDataFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 42
case 50:
{
input.readMessage(
getPostScanActionsResultFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 50
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long rowCount_;
/**
*
*
*
* The count of rows scanned.
*
*
* int64 row_count = 3;
*
* @return The rowCount.
*/
@java.lang.Override
public long getRowCount() {
return rowCount_;
}
/**
*
*
*
* The count of rows scanned.
*
*
* int64 row_count = 3;
*
* @param value The rowCount to set.
* @return This builder for chaining.
*/
public Builder setRowCount(long value) {
rowCount_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The count of rows scanned.
*
*
* int64 row_count = 3;
*
* @return This builder for chaining.
*/
public Builder clearRowCount() {
bitField0_ = (bitField0_ & ~0x00000001);
rowCount_ = 0L;
onChanged();
return this;
}
private com.google.cloud.dataplex.v1.DataProfileResult.Profile profile_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder>
profileBuilder_;
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*
* @return Whether the profile field is set.
*/
public boolean hasProfile() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*
* @return The profile.
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile getProfile() {
if (profileBuilder_ == null) {
return profile_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance()
: profile_;
} else {
return profileBuilder_.getMessage();
}
}
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*/
public Builder setProfile(com.google.cloud.dataplex.v1.DataProfileResult.Profile value) {
if (profileBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
profile_ = value;
} else {
profileBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*/
public Builder setProfile(
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder builderForValue) {
if (profileBuilder_ == null) {
profile_ = builderForValue.build();
} else {
profileBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*/
public Builder mergeProfile(com.google.cloud.dataplex.v1.DataProfileResult.Profile value) {
if (profileBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& profile_ != null
&& profile_
!= com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance()) {
getProfileBuilder().mergeFrom(value);
} else {
profile_ = value;
}
} else {
profileBuilder_.mergeFrom(value);
}
if (profile_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*/
public Builder clearProfile() {
bitField0_ = (bitField0_ & ~0x00000002);
profile_ = null;
if (profileBuilder_ != null) {
profileBuilder_.dispose();
profileBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*/
public com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder getProfileBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getProfileFieldBuilder().getBuilder();
}
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*/
public com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder getProfileOrBuilder() {
if (profileBuilder_ != null) {
return profileBuilder_.getMessageOrBuilder();
} else {
return profile_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.Profile.getDefaultInstance()
: profile_;
}
}
/**
*
*
*
* The profile information per field.
*
*
* .google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder>
getProfileFieldBuilder() {
if (profileBuilder_ == null) {
profileBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.Profile,
com.google.cloud.dataplex.v1.DataProfileResult.Profile.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.ProfileOrBuilder>(
getProfile(), getParentForChildren(), isClean());
profile_ = null;
}
return profileBuilder_;
}
private com.google.cloud.dataplex.v1.ScannedData scannedData_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.ScannedData,
com.google.cloud.dataplex.v1.ScannedData.Builder,
com.google.cloud.dataplex.v1.ScannedDataOrBuilder>
scannedDataBuilder_;
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*
* @return Whether the scannedData field is set.
*/
public boolean hasScannedData() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*
* @return The scannedData.
*/
public com.google.cloud.dataplex.v1.ScannedData getScannedData() {
if (scannedDataBuilder_ == null) {
return scannedData_ == null
? com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance()
: scannedData_;
} else {
return scannedDataBuilder_.getMessage();
}
}
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*/
public Builder setScannedData(com.google.cloud.dataplex.v1.ScannedData value) {
if (scannedDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
scannedData_ = value;
} else {
scannedDataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*/
public Builder setScannedData(
com.google.cloud.dataplex.v1.ScannedData.Builder builderForValue) {
if (scannedDataBuilder_ == null) {
scannedData_ = builderForValue.build();
} else {
scannedDataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*/
public Builder mergeScannedData(com.google.cloud.dataplex.v1.ScannedData value) {
if (scannedDataBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& scannedData_ != null
&& scannedData_ != com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance()) {
getScannedDataBuilder().mergeFrom(value);
} else {
scannedData_ = value;
}
} else {
scannedDataBuilder_.mergeFrom(value);
}
if (scannedData_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*/
public Builder clearScannedData() {
bitField0_ = (bitField0_ & ~0x00000004);
scannedData_ = null;
if (scannedDataBuilder_ != null) {
scannedDataBuilder_.dispose();
scannedDataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*/
public com.google.cloud.dataplex.v1.ScannedData.Builder getScannedDataBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getScannedDataFieldBuilder().getBuilder();
}
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*/
public com.google.cloud.dataplex.v1.ScannedDataOrBuilder getScannedDataOrBuilder() {
if (scannedDataBuilder_ != null) {
return scannedDataBuilder_.getMessageOrBuilder();
} else {
return scannedData_ == null
? com.google.cloud.dataplex.v1.ScannedData.getDefaultInstance()
: scannedData_;
}
}
/**
*
*
*
* The data scanned for this result.
*
*
* .google.cloud.dataplex.v1.ScannedData scanned_data = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.ScannedData,
com.google.cloud.dataplex.v1.ScannedData.Builder,
com.google.cloud.dataplex.v1.ScannedDataOrBuilder>
getScannedDataFieldBuilder() {
if (scannedDataBuilder_ == null) {
scannedDataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.ScannedData,
com.google.cloud.dataplex.v1.ScannedData.Builder,
com.google.cloud.dataplex.v1.ScannedDataOrBuilder>(
getScannedData(), getParentForChildren(), isClean());
scannedData_ = null;
}
return scannedDataBuilder_;
}
private com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
postScanActionsResult_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultOrBuilder>
postScanActionsResultBuilder_;
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the postScanActionsResult field is set.
*/
public boolean hasPostScanActionsResult() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The postScanActionsResult.
*/
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
getPostScanActionsResult() {
if (postScanActionsResultBuilder_ == null) {
return postScanActionsResult_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.getDefaultInstance()
: postScanActionsResult_;
} else {
return postScanActionsResultBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setPostScanActionsResult(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult value) {
if (postScanActionsResultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
postScanActionsResult_ = value;
} else {
postScanActionsResultBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setPostScanActionsResult(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.Builder
builderForValue) {
if (postScanActionsResultBuilder_ == null) {
postScanActionsResult_ = builderForValue.build();
} else {
postScanActionsResultBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergePostScanActionsResult(
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult value) {
if (postScanActionsResultBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& postScanActionsResult_ != null
&& postScanActionsResult_
!= com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.getDefaultInstance()) {
getPostScanActionsResultBuilder().mergeFrom(value);
} else {
postScanActionsResult_ = value;
}
} else {
postScanActionsResultBuilder_.mergeFrom(value);
}
if (postScanActionsResult_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearPostScanActionsResult() {
bitField0_ = (bitField0_ & ~0x00000008);
postScanActionsResult_ = null;
if (postScanActionsResultBuilder_ != null) {
postScanActionsResultBuilder_.dispose();
postScanActionsResultBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.Builder
getPostScanActionsResultBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getPostScanActionsResultFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultOrBuilder
getPostScanActionsResultOrBuilder() {
if (postScanActionsResultBuilder_ != null) {
return postScanActionsResultBuilder_.getMessageOrBuilder();
} else {
return postScanActionsResult_ == null
? com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult
.getDefaultInstance()
: postScanActionsResult_;
}
}
/**
*
*
*
* Output only. The result of post scan actions.
*
*
*
* .google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultOrBuilder>
getPostScanActionsResultFieldBuilder() {
if (postScanActionsResultBuilder_ == null) {
postScanActionsResultBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult.Builder,
com.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResultOrBuilder>(
getPostScanActionsResult(), getParentForChildren(), isClean());
postScanActionsResult_ = null;
}
return postScanActionsResultBuilder_;
}
@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.DataProfileResult)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DataProfileResult)
private static final com.google.cloud.dataplex.v1.DataProfileResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DataProfileResult();
}
public static com.google.cloud.dataplex.v1.DataProfileResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataProfileResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DataProfileResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy