Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dataplex/v1/logs.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.dataplex.v1;
/**
*
*
*
* The payload associated with Discovery data processing.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DiscoveryEvent}
*/
public final class DiscoveryEvent extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DiscoveryEvent)
DiscoveryEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use DiscoveryEvent.newBuilder() to construct.
private DiscoveryEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DiscoveryEvent() {
message_ = "";
lakeId_ = "";
zoneId_ = "";
assetId_ = "";
dataLocation_ = "";
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DiscoveryEvent();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DiscoveryEvent.class,
com.google.cloud.dataplex.v1.DiscoveryEvent.Builder.class);
}
/**
*
*
*
*
* EVENT_TYPE_UNSPECIFIED = 0;
*/
public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* An event representing discovery configuration in effect.
*
*
* CONFIG = 1;
*/
public static final int CONFIG_VALUE = 1;
/**
*
*
*
* An event representing a metadata entity being created.
*
*
* ENTITY_CREATED = 2;
*/
public static final int ENTITY_CREATED_VALUE = 2;
/**
*
*
*
* An event representing a metadata entity being updated.
*
*
* ENTITY_UPDATED = 3;
*/
public static final int ENTITY_UPDATED_VALUE = 3;
/**
*
*
*
* An event representing a metadata entity being deleted.
*
*
* ENTITY_DELETED = 4;
*/
public static final int ENTITY_DELETED_VALUE = 4;
/**
*
*
*
* An event representing a partition being created.
*
*
* PARTITION_CREATED = 5;
*/
public static final int PARTITION_CREATED_VALUE = 5;
/**
*
*
*
* An event representing a partition being updated.
*
*
* PARTITION_UPDATED = 6;
*/
public static final int PARTITION_UPDATED_VALUE = 6;
/**
*
*
*
* An event representing a partition being deleted.
*
*
* PARTITION_DELETED = 7;
*/
public static final int PARTITION_DELETED_VALUE = 7;
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 EventType 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 EventType forNumber(int value) {
switch (value) {
case 0:
return EVENT_TYPE_UNSPECIFIED;
case 1:
return CONFIG;
case 2:
return ENTITY_CREATED;
case 3:
return ENTITY_UPDATED;
case 4:
return ENTITY_DELETED;
case 5:
return PARTITION_CREATED;
case 6:
return PARTITION_UPDATED;
case 7:
return PARTITION_DELETED;
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 EventType findValueByNumber(int number) {
return EventType.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.DiscoveryEvent.getDescriptor().getEnumTypes().get(0);
}
private static final EventType[] VALUES = values();
public static EventType 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 EventType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DiscoveryEvent.EventType)
}
/**
*
*
*
*
* ENTITY_TYPE_UNSPECIFIED = 0;
*/
public static final int ENTITY_TYPE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Entities representing structured data.
*
*
* TABLE = 1;
*/
public static final int TABLE_VALUE = 1;
/**
*
*
*
* Entities representing unstructured data.
*
*
* FILESET = 2;
*/
public static final int FILESET_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EntityType 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 EntityType forNumber(int value) {
switch (value) {
case 0:
return ENTITY_TYPE_UNSPECIFIED;
case 1:
return TABLE;
case 2:
return FILESET;
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 EntityType findValueByNumber(int number) {
return EntityType.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.DiscoveryEvent.getDescriptor().getEnumTypes().get(1);
}
private static final EntityType[] VALUES = values();
public static EntityType 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 EntityType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.dataplex.v1.DiscoveryEvent.EntityType)
}
public interface ConfigDetailsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails}
*/
public static final class ConfigDetails extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails)
ConfigDetailsOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConfigDetails.newBuilder() to construct.
private ConfigDetails(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConfigDetails() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ConfigDetails();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_ConfigDetails_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetParameters();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_ConfigDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.class,
com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.Builder.class);
}
public static final int PARAMETERS_FIELD_NUMBER = 1;
private static final class ParametersDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_ConfigDetails_ParametersEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField parameters_;
private com.google.protobuf.MapField
internalGetParameters() {
if (parameters_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
return parameters_;
}
public int getParametersCount() {
return internalGetParameters().getMap().size();
}
/**
*
*
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
*
* map<string, string> parameters = 1;
*/
@java.lang.Override
public boolean containsParameters(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetParameters().getMap().containsKey(key);
}
/** Use {@link #getParametersMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getParameters() {
return getParametersMap();
}
/**
*
*
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
*
* map<string, string> parameters = 1;
*/
@java.lang.Override
public java.lang.String getParametersOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 {
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetParameters(), ParametersDefaultEntryHolder.defaultEntry, 1);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry :
internalGetParameters().getMap().entrySet()) {
com.google.protobuf.MapEntry parameters__ =
ParametersDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, parameters__);
}
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.DiscoveryEvent.ConfigDetails)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails other =
(com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails) obj;
if (!internalGetParameters().equals(other.internalGetParameters())) 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 (!internalGetParameters().getMap().isEmpty()) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + internalGetParameters().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails 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.DiscoveryEvent.ConfigDetails parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails 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.DiscoveryEvent.ConfigDetails parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails 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.DiscoveryEvent.ConfigDetails parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails 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.DiscoveryEvent.ConfigDetails parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails 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.DiscoveryEvent.ConfigDetails 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.DiscoveryEvent.ConfigDetails 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.DiscoveryEvent.ConfigDetails 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;
}
/**
*
*
*
* Details about configuration events.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails)
com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetailsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_ConfigDetails_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetParameters();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetMutableParameters();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_ConfigDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.class,
com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
internalGetMutableParameters().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_ConfigDetails_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails build() {
com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails buildPartial() {
com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails result =
new com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.parameters_ = internalGetParameters();
result.parameters_.makeImmutable();
}
}
@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.DiscoveryEvent.ConfigDetails) {
return mergeFrom((com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails other) {
if (other == com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.getDefaultInstance())
return this;
internalGetMutableParameters().mergeFrom(other.internalGetParameters());
bitField0_ |= 0x00000001;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
com.google.protobuf.MapEntry parameters__ =
input.readMessage(
ParametersDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableParameters()
.getMutableMap()
.put(parameters__.getKey(), parameters__.getValue());
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.protobuf.MapField parameters_;
private com.google.protobuf.MapField
internalGetParameters() {
if (parameters_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ParametersDefaultEntryHolder.defaultEntry);
}
return parameters_;
}
private com.google.protobuf.MapField
internalGetMutableParameters() {
if (parameters_ == null) {
parameters_ =
com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry);
}
if (!parameters_.isMutable()) {
parameters_ = parameters_.copy();
}
bitField0_ |= 0x00000001;
onChanged();
return parameters_;
}
public int getParametersCount() {
return internalGetParameters().getMap().size();
}
/**
*
*
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
*
* map<string, string> parameters = 1;
*/
@java.lang.Override
public boolean containsParameters(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetParameters().getMap().containsKey(key);
}
/** Use {@link #getParametersMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getParameters() {
return getParametersMap();
}
/**
*
*
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
*
* map<string, string> parameters = 1;
*/
@java.lang.Override
public java.lang.String getParametersOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearParameters() {
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableParameters().getMutableMap().clear();
return this;
}
/**
*
*
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
*
* map<string, string> parameters = 1;
*/
public Builder removeParameters(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableParameters().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableParameters() {
bitField0_ |= 0x00000001;
return internalGetMutableParameters().getMutableMap();
}
/**
*
*
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
*
* map<string, string> parameters = 1;
*/
public Builder putParameters(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableParameters().getMutableMap().put(key, value);
bitField0_ |= 0x00000001;
return this;
}
/**
*
*
*
* A list of discovery configuration parameters in effect.
* The keys are the field paths within DiscoverySpec.
* Eg. includePatterns, excludePatterns, csvOptions.disableTypeInference,
* etc.
*
*
* map<string, string> parameters = 1;
*/
public Builder putAllParameters(java.util.Map values) {
internalGetMutableParameters().getMutableMap().putAll(values);
bitField0_ |= 0x00000001;
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.DiscoveryEvent.ConfigDetails)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails)
private static final com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails();
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConfigDetails 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.DiscoveryEvent.ConfigDetails getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EntityDetailsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The name of the entity resource.
* The name is the fully-qualified resource name.
*
* The name of the entity resource.
* The name is the fully-qualified resource name.
*
*
* string entity = 1;
*
* @return The bytes for entity.
*/
com.google.protobuf.ByteString getEntityBytes();
/**
*
*
*
* The type of the entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;
*
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
*
*
* The type of the entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;
*
* @return The type.
*/
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType getType();
}
/**
*
*
*
* Details about the entity.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails}
*/
public static final class EntityDetails extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails)
EntityDetailsOrBuilder {
private static final long serialVersionUID = 0L;
// Use EntityDetails.newBuilder() to construct.
private EntityDetails(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EntityDetails() {
entity_ = "";
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new EntityDetails();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_EntityDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_EntityDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.class,
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.Builder.class);
}
public static final int ENTITY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object entity_ = "";
/**
*
*
*
* The name of the entity resource.
* The name is the fully-qualified resource name.
*
* The name of the entity resource.
* The name is the fully-qualified resource name.
*
*
* string entity = 1;
*
* @return The bytes for entity.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEntityBytes() {
java.lang.Object ref = entity_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
entity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_ = 0;
/**
*
*
*
* The type of the entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* The type of the entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType getType() {
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType result =
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.forNumber(type_);
return result == null
? com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.UNRECOGNIZED
: result;
}
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(entity_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_);
}
if (type_
!= com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.ENTITY_TYPE_UNSPECIFIED
.getNumber()) {
output.writeEnum(2, type_);
}
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(entity_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entity_);
}
if (type_
!= com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.ENTITY_TYPE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_);
}
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.DiscoveryEvent.EntityDetails)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails other =
(com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails) obj;
if (!getEntity().equals(other.getEntity())) return false;
if (type_ != other.type_) 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) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntity().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails 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.DiscoveryEvent.EntityDetails parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails 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.DiscoveryEvent.EntityDetails parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails 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.DiscoveryEvent.EntityDetails parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails 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.DiscoveryEvent.EntityDetails parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails 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.DiscoveryEvent.EntityDetails 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.DiscoveryEvent.EntityDetails 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.DiscoveryEvent.EntityDetails 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;
}
/**
*
*
*
* Details about the entity.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails)
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetailsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_EntityDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_EntityDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.class,
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
entity_ = "";
type_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_EntityDetails_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails build() {
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails buildPartial() {
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails result =
new com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.entity_ = entity_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.type_ = type_;
}
}
@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.DiscoveryEvent.EntityDetails) {
return mergeFrom((com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails other) {
if (other == com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.getDefaultInstance())
return this;
if (!other.getEntity().isEmpty()) {
entity_ = other.entity_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
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:
{
entity_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
type_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object entity_ = "";
/**
*
*
*
* The name of the entity resource.
* The name is the fully-qualified resource name.
*
* The name of the entity resource.
* The name is the fully-qualified resource name.
*
*
* string entity = 1;
*
* @param value The bytes for entity to set.
* @return This builder for chaining.
*/
public Builder setEntityBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
entity_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int type_ = 0;
/**
*
*
*
* The type of the entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* The type of the entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;
*
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The type of the entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType getType() {
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType result =
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.forNumber(type_);
return result == null
? com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.UNRECOGNIZED
: result;
}
/**
*
*
*
* The type of the entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;
*
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The type of the entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 2;
*
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
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.DiscoveryEvent.EntityDetails)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails)
private static final com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails();
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EntityDetails 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.DiscoveryEvent.EntityDetails getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PartitionDetailsOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* The name to the partition resource.
* The name is the fully-qualified resource name.
*
* The name to the containing entity resource.
* The name is the fully-qualified resource name.
*
*
* string entity = 2;
*
* @return The bytes for entity.
*/
com.google.protobuf.ByteString getEntityBytes();
/**
*
*
*
* The type of the containing entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
*
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
*
*
* The type of the containing entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
*
* @return The type.
*/
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType getType();
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return A list containing the sampledDataLocations.
*/
java.util.List getSampledDataLocationsList();
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return The count of sampledDataLocations.
*/
int getSampledDataLocationsCount();
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the element to return.
* @return The sampledDataLocations at the given index.
*/
java.lang.String getSampledDataLocations(int index);
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the value to return.
* @return The bytes of the sampledDataLocations at the given index.
*/
com.google.protobuf.ByteString getSampledDataLocationsBytes(int index);
}
/**
*
*
*
* Details about the partition.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails}
*/
public static final class PartitionDetails extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails)
PartitionDetailsOrBuilder {
private static final long serialVersionUID = 0L;
// Use PartitionDetails.newBuilder() to construct.
private PartitionDetails(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PartitionDetails() {
partition_ = "";
entity_ = "";
type_ = 0;
sampledDataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new PartitionDetails();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_PartitionDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_PartitionDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.class,
com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.Builder.class);
}
public static final int PARTITION_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object partition_ = "";
/**
*
*
*
* The name to the partition resource.
* The name is the fully-qualified resource name.
*
* The name to the containing entity resource.
* The name is the fully-qualified resource name.
*
*
* string entity = 2;
*
* @return The bytes for entity.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEntityBytes() {
java.lang.Object ref = entity_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
entity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_ = 0;
/**
*
*
*
* The type of the containing entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* The type of the containing entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType getType() {
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType result =
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.forNumber(type_);
return result == null
? com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.UNRECOGNIZED
: result;
}
public static final int SAMPLED_DATA_LOCATIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList sampledDataLocations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return A list containing the sampledDataLocations.
*/
public com.google.protobuf.ProtocolStringList getSampledDataLocationsList() {
return sampledDataLocations_;
}
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return The count of sampledDataLocations.
*/
public int getSampledDataLocationsCount() {
return sampledDataLocations_.size();
}
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the element to return.
* @return The sampledDataLocations at the given index.
*/
public java.lang.String getSampledDataLocations(int index) {
return sampledDataLocations_.get(index);
}
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the value to return.
* @return The bytes of the sampledDataLocations at the given index.
*/
public com.google.protobuf.ByteString getSampledDataLocationsBytes(int index) {
return sampledDataLocations_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(partition_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, partition_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entity_);
}
if (type_
!= com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.ENTITY_TYPE_UNSPECIFIED
.getNumber()) {
output.writeEnum(3, type_);
}
for (int i = 0; i < sampledDataLocations_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 4, sampledDataLocations_.getRaw(i));
}
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(partition_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, partition_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entity_);
}
if (type_
!= com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.ENTITY_TYPE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_);
}
{
int dataSize = 0;
for (int i = 0; i < sampledDataLocations_.size(); i++) {
dataSize += computeStringSizeNoTag(sampledDataLocations_.getRaw(i));
}
size += dataSize;
size += 1 * getSampledDataLocationsList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails)) {
return super.equals(obj);
}
com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails other =
(com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails) obj;
if (!getPartition().equals(other.getPartition())) return false;
if (!getEntity().equals(other.getEntity())) return false;
if (type_ != other.type_) return false;
if (!getSampledDataLocationsList().equals(other.getSampledDataLocationsList())) 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) + PARTITION_FIELD_NUMBER;
hash = (53 * hash) + getPartition().hashCode();
hash = (37 * hash) + ENTITY_FIELD_NUMBER;
hash = (53 * hash) + getEntity().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
if (getSampledDataLocationsCount() > 0) {
hash = (37 * hash) + SAMPLED_DATA_LOCATIONS_FIELD_NUMBER;
hash = (53 * hash) + getSampledDataLocationsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails 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.DiscoveryEvent.PartitionDetails parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails 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.DiscoveryEvent.PartitionDetails parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails 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.DiscoveryEvent.PartitionDetails parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails 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.DiscoveryEvent.PartitionDetails parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails 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.DiscoveryEvent.PartitionDetails 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.DiscoveryEvent.PartitionDetails 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.DiscoveryEvent.PartitionDetails 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;
}
/**
*
*
*
* Details about the partition.
*
*
* Protobuf type {@code google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails)
com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetailsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_PartitionDetails_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_PartitionDetails_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.class,
com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.Builder.class);
}
// Construct using com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
partition_ = "";
entity_ = "";
type_ = 0;
sampledDataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.dataplex.v1.LogsProto
.internal_static_google_cloud_dataplex_v1_DiscoveryEvent_PartitionDetails_descriptor;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails
getDefaultInstanceForType() {
return com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails build() {
com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails buildPartial() {
com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails result =
new com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.partition_ = partition_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.entity_ = entity_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
sampledDataLocations_.makeImmutable();
result.sampledDataLocations_ = sampledDataLocations_;
}
}
@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.DiscoveryEvent.PartitionDetails) {
return mergeFrom((com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails other) {
if (other
== com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.getDefaultInstance())
return this;
if (!other.getPartition().isEmpty()) {
partition_ = other.partition_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getEntity().isEmpty()) {
entity_ = other.entity_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (!other.sampledDataLocations_.isEmpty()) {
if (sampledDataLocations_.isEmpty()) {
sampledDataLocations_ = other.sampledDataLocations_;
bitField0_ |= 0x00000008;
} else {
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.addAll(other.sampledDataLocations_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
partition_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
entity_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
type_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34:
{
java.lang.String s = input.readStringRequireUtf8();
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.add(s);
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 partition_ = "";
/**
*
*
*
* The name to the partition resource.
* The name is the fully-qualified resource name.
*
* The name to the containing entity resource.
* The name is the fully-qualified resource name.
*
*
* string entity = 2;
*
* @param value The bytes for entity to set.
* @return This builder for chaining.
*/
public Builder setEntityBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
entity_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int type_ = 0;
/**
*
*
*
* The type of the containing entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* The type of the containing entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
*
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The type of the containing entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType getType() {
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType result =
com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.forNumber(type_);
return result == null
? com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType.UNRECOGNIZED
: result;
}
/**
*
*
*
* The type of the containing entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
*
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The type of the containing entity resource.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;
*
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList sampledDataLocations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSampledDataLocationsIsMutable() {
if (!sampledDataLocations_.isModifiable()) {
sampledDataLocations_ =
new com.google.protobuf.LazyStringArrayList(sampledDataLocations_);
}
bitField0_ |= 0x00000008;
}
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return A list containing the sampledDataLocations.
*/
public com.google.protobuf.ProtocolStringList getSampledDataLocationsList() {
sampledDataLocations_.makeImmutable();
return sampledDataLocations_;
}
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @return The count of sampledDataLocations.
*/
public int getSampledDataLocationsCount() {
return sampledDataLocations_.size();
}
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the element to return.
* @return The sampledDataLocations at the given index.
*/
public java.lang.String getSampledDataLocations(int index) {
return sampledDataLocations_.get(index);
}
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index of the value to return.
* @return The bytes of the sampledDataLocations at the given index.
*/
public com.google.protobuf.ByteString getSampledDataLocationsBytes(int index) {
return sampledDataLocations_.getByteString(index);
}
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param index The index to set the value at.
* @param value The sampledDataLocations to set.
* @return This builder for chaining.
*/
public Builder setSampledDataLocations(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param value The sampledDataLocations to add.
* @return This builder for chaining.
*/
public Builder addSampledDataLocations(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSampledDataLocationsIsMutable();
sampledDataLocations_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
*
* repeated string sampled_data_locations = 4;
*
* @param values The sampledDataLocations to add.
* @return This builder for chaining.
*/
public Builder addAllSampledDataLocations(java.lang.Iterable values) {
ensureSampledDataLocationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampledDataLocations_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The locations of the data items (e.g., a Cloud Storage objects) sampled
* for metadata inference.
*
* The type of action.
* Eg. IncompatibleDataSchema, InvalidDataFormat
*
*
* string type = 1;
*
* @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 type of action.
* Eg. IncompatibleDataSchema, InvalidDataFormat
*
*
* string type = 1;
*
* @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_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* The type of action.
* Eg. IncompatibleDataSchema, InvalidDataFormat
*
*
* string type = 1;
*
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* The type of action.
* Eg. IncompatibleDataSchema, InvalidDataFormat
*
*
* string type = 1;
*
* @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_ |= 0x00000001;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails)
}
// @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails)
private static final com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails();
}
public static com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ActionDetails 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.DiscoveryEvent.ActionDetails getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int detailsCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object details_;
public enum DetailsCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CONFIG(20),
ENTITY(21),
PARTITION(22),
ACTION(23),
DETAILS_NOT_SET(0);
private final int value;
private DetailsCase(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 DetailsCase valueOf(int value) {
return forNumber(value);
}
public static DetailsCase forNumber(int value) {
switch (value) {
case 20:
return CONFIG;
case 21:
return ENTITY;
case 22:
return PARTITION;
case 23:
return ACTION;
case 0:
return DETAILS_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public DetailsCase getDetailsCase() {
return DetailsCase.forNumber(detailsCase_);
}
public static final int MESSAGE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
*
*
*
*
* string data_location = 5;
*
* @return The bytes for dataLocation.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDataLocationBytes() {
java.lang.Object ref = dataLocation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
dataLocation_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 10;
private int type_ = 0;
/**
*
*
*
* The type of the event being logged.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10;
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* The type of the event being logged.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10;
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.EventType getType() {
com.google.cloud.dataplex.v1.DiscoveryEvent.EventType result =
com.google.cloud.dataplex.v1.DiscoveryEvent.EventType.forNumber(type_);
return result == null
? com.google.cloud.dataplex.v1.DiscoveryEvent.EventType.UNRECOGNIZED
: result;
}
public static final int CONFIG_FIELD_NUMBER = 20;
/**
*
*
*
* Details about discovery configuration in effect.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20;
*
* @return Whether the config field is set.
*/
@java.lang.Override
public boolean hasConfig() {
return detailsCase_ == 20;
}
/**
*
*
*
* Details about discovery configuration in effect.
*
*
* string data_location = 5;
*
* @param value The bytes for dataLocation to set.
* @return This builder for chaining.
*/
public Builder setDataLocationBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataLocation_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private int type_ = 0;
/**
*
*
*
* The type of the event being logged.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10;
*
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
*
*
*
* The type of the event being logged.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10;
*
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* The type of the event being logged.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10;
*
* @return The type.
*/
@java.lang.Override
public com.google.cloud.dataplex.v1.DiscoveryEvent.EventType getType() {
com.google.cloud.dataplex.v1.DiscoveryEvent.EventType result =
com.google.cloud.dataplex.v1.DiscoveryEvent.EventType.forNumber(type_);
return result == null
? com.google.cloud.dataplex.v1.DiscoveryEvent.EventType.UNRECOGNIZED
: result;
}
/**
*
*
*
* The type of the event being logged.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10;
*
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(com.google.cloud.dataplex.v1.DiscoveryEvent.EventType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The type of the event being logged.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.EventType type = 10;
*
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000020);
type_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails,
com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.Builder,
com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetailsOrBuilder>
configBuilder_;
/**
*
*
*
* Details about discovery configuration in effect.
*
*
* .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20;
*
* @return Whether the config field is set.
*/
@java.lang.Override
public boolean hasConfig() {
return detailsCase_ == 20;
}
/**
*
*
*
* Details about discovery configuration in effect.
*