All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dataplex.v1.DiscoveryEvent Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/dataplex/v1/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); } /** * * *
   * The type of the event.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.DiscoveryEvent.EventType} */ public enum EventType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * An unspecified event type.
     * 
* * EVENT_TYPE_UNSPECIFIED = 0; */ EVENT_TYPE_UNSPECIFIED(0), /** * * *
     * An event representing discovery configuration in effect.
     * 
* * CONFIG = 1; */ CONFIG(1), /** * * *
     * An event representing a metadata entity being created.
     * 
* * ENTITY_CREATED = 2; */ ENTITY_CREATED(2), /** * * *
     * An event representing a metadata entity being updated.
     * 
* * ENTITY_UPDATED = 3; */ ENTITY_UPDATED(3), /** * * *
     * An event representing a metadata entity being deleted.
     * 
* * ENTITY_DELETED = 4; */ ENTITY_DELETED(4), /** * * *
     * An event representing a partition being created.
     * 
* * PARTITION_CREATED = 5; */ PARTITION_CREATED(5), /** * * *
     * An event representing a partition being updated.
     * 
* * PARTITION_UPDATED = 6; */ PARTITION_UPDATED(6), /** * * *
     * An event representing a partition being deleted.
     * 
* * PARTITION_DELETED = 7; */ PARTITION_DELETED(7), UNRECOGNIZED(-1), ; /** * * *
     * An unspecified event type.
     * 
* * 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) } /** * * *
   * The type of the entity.
   * 
* * Protobuf enum {@code google.cloud.dataplex.v1.DiscoveryEvent.EntityType} */ public enum EntityType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * An unspecified event type.
     * 
* * ENTITY_TYPE_UNSPECIFIED = 0; */ ENTITY_TYPE_UNSPECIFIED(0), /** * * *
     * Entities representing structured data.
     * 
* * TABLE = 1; */ TABLE(1), /** * * *
     * Entities representing unstructured data.
     * 
* * FILESET = 2; */ FILESET(2), UNRECOGNIZED(-1), ; /** * * *
     * An unspecified event type.
     * 
* * 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.
     * 
* * map<string, string> parameters = 1; */ int getParametersCount(); /** * * *
     * 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; */ boolean containsParameters(java.lang.String key); /** Use {@link #getParametersMap()} instead. */ @java.lang.Deprecated java.util.Map getParameters(); /** * * *
     * 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.util.Map getParametersMap(); /** * * *
     * 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; */ /* nullable */ java.lang.String getParametersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** * * *
     * 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.String getParametersOrThrow(java.lang.String key); } /** * * *
   * Details about configuration events.
   * 
* * 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.
     * 
* * map<string, string> parameters = 1; */ @java.lang.Override public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** * * *
     * 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 /* nullable */ java.lang.String getParametersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * 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.
       * 
* * map<string, string> parameters = 1; */ @java.lang.Override public java.util.Map getParametersMap() { return internalGetParameters().getMap(); } /** * * *
       * 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 /* nullable */ java.lang.String getParametersOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetParameters().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
       * 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.
     * 
* * string entity = 1; * * @return The entity. */ java.lang.String getEntity(); /** * * *
     * 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.
     * 
* * string entity = 1; * * @return The entity. */ @java.lang.Override public java.lang.String getEntity() { java.lang.Object ref = entity_; 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(); entity_ = s; return s; } } /** * * *
     * 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.
       * 
* * string entity = 1; * * @return The entity. */ public java.lang.String getEntity() { java.lang.Object ref = entity_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name of the entity resource.
       * The name is the fully-qualified resource name.
       * 
* * string entity = 1; * * @return The bytes for entity. */ public com.google.protobuf.ByteString getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof 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; } } /** * * *
       * The name of the entity resource.
       * The name is the fully-qualified resource name.
       * 
* * string entity = 1; * * @param value The entity to set. * @return This builder for chaining. */ public Builder setEntity(java.lang.String value) { if (value == null) { throw new NullPointerException(); } entity_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The name of the entity resource.
       * The name is the fully-qualified resource name.
       * 
* * string entity = 1; * * @return This builder for chaining. */ public Builder clearEntity() { entity_ = getDefaultInstance().getEntity(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * 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.
     * 
* * string partition = 1; * * @return The partition. */ java.lang.String getPartition(); /** * * *
     * The name to the partition resource.
     * The name is the fully-qualified resource name.
     * 
* * string partition = 1; * * @return The bytes for partition. */ com.google.protobuf.ByteString getPartitionBytes(); /** * * *
     * The name to the containing entity resource.
     * The name is the fully-qualified resource name.
     * 
* * string entity = 2; * * @return The entity. */ java.lang.String getEntity(); /** * * *
     * 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.
     * 
* * string partition = 1; * * @return The partition. */ @java.lang.Override public java.lang.String getPartition() { java.lang.Object ref = partition_; 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(); partition_ = s; return s; } } /** * * *
     * The name to the partition resource.
     * The name is the fully-qualified resource name.
     * 
* * string partition = 1; * * @return The bytes for partition. */ @java.lang.Override public com.google.protobuf.ByteString getPartitionBytes() { java.lang.Object ref = partition_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); partition_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENTITY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** * * *
     * The name to the containing entity resource.
     * The name is the fully-qualified resource name.
     * 
* * string entity = 2; * * @return The entity. */ @java.lang.Override public java.lang.String getEntity() { java.lang.Object ref = entity_; 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(); entity_ = s; return s; } } /** * * *
     * 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.
       * 
* * string partition = 1; * * @return The partition. */ public java.lang.String getPartition() { java.lang.Object ref = partition_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); partition_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name to the partition resource.
       * The name is the fully-qualified resource name.
       * 
* * string partition = 1; * * @return The bytes for partition. */ public com.google.protobuf.ByteString getPartitionBytes() { java.lang.Object ref = partition_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); partition_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The name to the partition resource.
       * The name is the fully-qualified resource name.
       * 
* * string partition = 1; * * @param value The partition to set. * @return This builder for chaining. */ public Builder setPartition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } partition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The name to the partition resource.
       * The name is the fully-qualified resource name.
       * 
* * string partition = 1; * * @return This builder for chaining. */ public Builder clearPartition() { partition_ = getDefaultInstance().getPartition(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The name to the partition resource.
       * The name is the fully-qualified resource name.
       * 
* * string partition = 1; * * @param value The bytes for partition to set. * @return This builder for chaining. */ public Builder setPartitionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); partition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object entity_ = ""; /** * * *
       * The name to the containing entity resource.
       * The name is the fully-qualified resource name.
       * 
* * string entity = 2; * * @return The entity. */ public java.lang.String getEntity() { java.lang.Object ref = entity_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The name to the containing entity resource.
       * The name is the fully-qualified resource name.
       * 
* * string entity = 2; * * @return The bytes for entity. */ public com.google.protobuf.ByteString getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof 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; } } /** * * *
       * The name to the containing entity resource.
       * The name is the fully-qualified resource name.
       * 
* * string entity = 2; * * @param value The entity to set. * @return This builder for chaining. */ public Builder setEntity(java.lang.String value) { if (value == null) { throw new NullPointerException(); } entity_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The name to the containing entity resource.
       * The name is the fully-qualified resource name.
       * 
* * string entity = 2; * * @return This builder for chaining. */ public Builder clearEntity() { entity_ = getDefaultInstance().getEntity(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * 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.
       * 
* * repeated string sampled_data_locations = 4; * * @return This builder for chaining. */ public Builder clearSampledDataLocations() { sampledDataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (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 bytes of the sampledDataLocations to add. * @return This builder for chaining. */ public Builder addSampledDataLocationsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSampledDataLocationsIsMutable(); sampledDataLocations_.add(value); bitField0_ |= 0x00000008; 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.PartitionDetails) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails) private static final com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails(); } public static com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PartitionDetails 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.PartitionDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionDetailsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) com.google.protobuf.MessageOrBuilder { /** * * *
     * The type of action.
     * Eg. IncompatibleDataSchema, InvalidDataFormat
     * 
* * string type = 1; * * @return The type. */ java.lang.String getType(); /** * * *
     * The type of action.
     * Eg. IncompatibleDataSchema, InvalidDataFormat
     * 
* * string type = 1; * * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); } /** * * *
   * Details about the action.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails} */ public static final class ActionDetails extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) ActionDetailsOrBuilder { private static final long serialVersionUID = 0L; // Use ActionDetails.newBuilder() to construct. private ActionDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActionDetails() { type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ActionDetails(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_DiscoveryEvent_ActionDetails_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_ActionDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.class, com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** * * *
     * The type of action.
     * Eg. IncompatibleDataSchema, InvalidDataFormat
     * 
* * string type = 1; * * @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 type of action.
     * Eg. IncompatibleDataSchema, InvalidDataFormat
     * 
* * string type = 1; * * @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; } } 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(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, 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(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, 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.ActionDetails)) { return super.equals(obj); } com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails other = (com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) obj; if (!getType().equals(other.getType())) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails 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.ActionDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails 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.ActionDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails 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.ActionDetails 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.ActionDetails 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.ActionDetails 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.ActionDetails 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.ActionDetails 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.ActionDetails 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.ActionDetails 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 action.
     * 
* * Protobuf type {@code google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataplex.v1.LogsProto .internal_static_google_cloud_dataplex_v1_DiscoveryEvent_ActionDetails_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_ActionDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.class, com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.Builder.class); } // Construct using com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = ""; 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_ActionDetails_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails build() { com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails buildPartial() { com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails result = new com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 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.ActionDetails) { return mergeFrom((com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails other) { if (other == com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000001; 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: { type_ = input.readStringRequireUtf8(); 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 java.lang.Object type_ = ""; /** * * *
       * The type of action.
       * Eg. IncompatibleDataSchema, InvalidDataFormat
       * 
* * string type = 1; * * @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 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_ = ""; /** * * *
   * The log message.
   * 
* * string message = 1; * * @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; } } /** * * *
   * The log message.
   * 
* * string message = 1; * * @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; } } public static final int LAKE_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object lakeId_ = ""; /** * * *
   * The id of the associated lake.
   * 
* * string lake_id = 2; * * @return The lakeId. */ @java.lang.Override public java.lang.String getLakeId() { java.lang.Object ref = lakeId_; 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(); lakeId_ = s; return s; } } /** * * *
   * The id of the associated lake.
   * 
* * string lake_id = 2; * * @return The bytes for lakeId. */ @java.lang.Override public com.google.protobuf.ByteString getLakeIdBytes() { java.lang.Object ref = lakeId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lakeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ZONE_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object zoneId_ = ""; /** * * *
   * The id of the associated zone.
   * 
* * string zone_id = 3; * * @return The zoneId. */ @java.lang.Override public java.lang.String getZoneId() { java.lang.Object ref = zoneId_; 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(); zoneId_ = s; return s; } } /** * * *
   * The id of the associated zone.
   * 
* * string zone_id = 3; * * @return The bytes for zoneId. */ @java.lang.Override public com.google.protobuf.ByteString getZoneIdBytes() { java.lang.Object ref = zoneId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ASSET_ID_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object assetId_ = ""; /** * * *
   * The id of the associated asset.
   * 
* * string asset_id = 4; * * @return The assetId. */ @java.lang.Override public java.lang.String getAssetId() { java.lang.Object ref = assetId_; 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(); assetId_ = s; return s; } } /** * * *
   * The id of the associated asset.
   * 
* * string asset_id = 4; * * @return The bytes for assetId. */ @java.lang.Override public com.google.protobuf.ByteString getAssetIdBytes() { java.lang.Object ref = assetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_LOCATION_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object dataLocation_ = ""; /** * * *
   * The data location associated with the event.
   * 
* * string data_location = 5; * * @return The dataLocation. */ @java.lang.Override public java.lang.String getDataLocation() { java.lang.Object ref = dataLocation_; 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(); dataLocation_ = s; return s; } } /** * * *
   * The data location associated with the event.
   * 
* * 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.
   * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; * * @return The config. */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails getConfig() { if (detailsCase_ == 20) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.getDefaultInstance(); } /** * * *
   * Details about discovery configuration in effect.
   * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetailsOrBuilder getConfigOrBuilder() { if (detailsCase_ == 20) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.getDefaultInstance(); } public static final int ENTITY_FIELD_NUMBER = 21; /** * * *
   * Details about the entity associated with the event.
   * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; * * @return Whether the entity field is set. */ @java.lang.Override public boolean hasEntity() { return detailsCase_ == 21; } /** * * *
   * Details about the entity associated with the event.
   * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; * * @return The entity. */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails getEntity() { if (detailsCase_ == 21) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.getDefaultInstance(); } /** * * *
   * Details about the entity associated with the event.
   * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetailsOrBuilder getEntityOrBuilder() { if (detailsCase_ == 21) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.getDefaultInstance(); } public static final int PARTITION_FIELD_NUMBER = 22; /** * * *
   * Details about the partition associated with the event.
   * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; * * @return Whether the partition field is set. */ @java.lang.Override public boolean hasPartition() { return detailsCase_ == 22; } /** * * *
   * Details about the partition associated with the event.
   * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; * * @return The partition. */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails getPartition() { if (detailsCase_ == 22) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.getDefaultInstance(); } /** * * *
   * Details about the partition associated with the event.
   * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetailsOrBuilder getPartitionOrBuilder() { if (detailsCase_ == 22) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.getDefaultInstance(); } public static final int ACTION_FIELD_NUMBER = 23; /** * * *
   * Details about the action associated with the event.
   * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; * * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return detailsCase_ == 23; } /** * * *
   * Details about the action associated with the event.
   * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; * * @return The action. */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails getAction() { if (detailsCase_ == 23) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.getDefaultInstance(); } /** * * *
   * Details about the action associated with the event.
   * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetailsOrBuilder getActionOrBuilder() { if (detailsCase_ == 23) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lakeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lakeId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, zoneId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, assetId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataLocation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dataLocation_); } if (type_ != com.google.cloud.dataplex.v1.DiscoveryEvent.EventType.EVENT_TYPE_UNSPECIFIED .getNumber()) { output.writeEnum(10, type_); } if (detailsCase_ == 20) { output.writeMessage(20, (com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails) details_); } if (detailsCase_ == 21) { output.writeMessage(21, (com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails) details_); } if (detailsCase_ == 22) { output.writeMessage( 22, (com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails) details_); } if (detailsCase_ == 23) { output.writeMessage(23, (com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) details_); } 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(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lakeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lakeId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, zoneId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, assetId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataLocation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dataLocation_); } if (type_ != com.google.cloud.dataplex.v1.DiscoveryEvent.EventType.EVENT_TYPE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, type_); } if (detailsCase_ == 20) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 20, (com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails) details_); } if (detailsCase_ == 21) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 21, (com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails) details_); } if (detailsCase_ == 22) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 22, (com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails) details_); } if (detailsCase_ == 23) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 23, (com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) details_); } 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)) { return super.equals(obj); } com.google.cloud.dataplex.v1.DiscoveryEvent other = (com.google.cloud.dataplex.v1.DiscoveryEvent) obj; if (!getMessage().equals(other.getMessage())) return false; if (!getLakeId().equals(other.getLakeId())) return false; if (!getZoneId().equals(other.getZoneId())) return false; if (!getAssetId().equals(other.getAssetId())) return false; if (!getDataLocation().equals(other.getDataLocation())) return false; if (type_ != other.type_) return false; if (!getDetailsCase().equals(other.getDetailsCase())) return false; switch (detailsCase_) { case 20: if (!getConfig().equals(other.getConfig())) return false; break; case 21: if (!getEntity().equals(other.getEntity())) return false; break; case 22: if (!getPartition().equals(other.getPartition())) return false; break; case 23: if (!getAction().equals(other.getAction())) 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) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + LAKE_ID_FIELD_NUMBER; hash = (53 * hash) + getLakeId().hashCode(); hash = (37 * hash) + ZONE_ID_FIELD_NUMBER; hash = (53 * hash) + getZoneId().hashCode(); hash = (37 * hash) + ASSET_ID_FIELD_NUMBER; hash = (53 * hash) + getAssetId().hashCode(); hash = (37 * hash) + DATA_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getDataLocation().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; switch (detailsCase_) { case 20: hash = (37 * hash) + CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfig().hashCode(); break; case 21: hash = (37 * hash) + ENTITY_FIELD_NUMBER; hash = (53 * hash) + getEntity().hashCode(); break; case 22: hash = (37 * hash) + PARTITION_FIELD_NUMBER; hash = (53 * hash) + getPartition().hashCode(); break; case 23: hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dataplex.v1.DiscoveryEvent parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.DiscoveryEvent 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 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.DiscoveryEvent 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dataplex.v1.DiscoveryEvent 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 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 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 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 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 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 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 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 payload associated with Discovery data processing.
   * 
* * Protobuf type {@code google.cloud.dataplex.v1.DiscoveryEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dataplex.v1.DiscoveryEvent) com.google.cloud.dataplex.v1.DiscoveryEventOrBuilder { 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); } // Construct using com.google.cloud.dataplex.v1.DiscoveryEvent.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; message_ = ""; lakeId_ = ""; zoneId_ = ""; assetId_ = ""; dataLocation_ = ""; type_ = 0; if (configBuilder_ != null) { configBuilder_.clear(); } if (entityBuilder_ != null) { entityBuilder_.clear(); } if (partitionBuilder_ != null) { partitionBuilder_.clear(); } if (actionBuilder_ != null) { actionBuilder_.clear(); } detailsCase_ = 0; details_ = null; 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_descriptor; } @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent getDefaultInstanceForType() { return com.google.cloud.dataplex.v1.DiscoveryEvent.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent build() { com.google.cloud.dataplex.v1.DiscoveryEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent buildPartial() { com.google.cloud.dataplex.v1.DiscoveryEvent result = new com.google.cloud.dataplex.v1.DiscoveryEvent(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.cloud.dataplex.v1.DiscoveryEvent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.message_ = message_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.lakeId_ = lakeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.zoneId_ = zoneId_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.assetId_ = assetId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.dataLocation_ = dataLocation_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.type_ = type_; } } private void buildPartialOneofs(com.google.cloud.dataplex.v1.DiscoveryEvent result) { result.detailsCase_ = detailsCase_; result.details_ = this.details_; if (detailsCase_ == 20 && configBuilder_ != null) { result.details_ = configBuilder_.build(); } if (detailsCase_ == 21 && entityBuilder_ != null) { result.details_ = entityBuilder_.build(); } if (detailsCase_ == 22 && partitionBuilder_ != null) { result.details_ = partitionBuilder_.build(); } if (detailsCase_ == 23 && actionBuilder_ != null) { result.details_ = actionBuilder_.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.DiscoveryEvent) { return mergeFrom((com.google.cloud.dataplex.v1.DiscoveryEvent) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dataplex.v1.DiscoveryEvent other) { if (other == com.google.cloud.dataplex.v1.DiscoveryEvent.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getLakeId().isEmpty()) { lakeId_ = other.lakeId_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getZoneId().isEmpty()) { zoneId_ = other.zoneId_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getAssetId().isEmpty()) { assetId_ = other.assetId_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getDataLocation().isEmpty()) { dataLocation_ = other.dataLocation_; bitField0_ |= 0x00000010; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } switch (other.getDetailsCase()) { case CONFIG: { mergeConfig(other.getConfig()); break; } case ENTITY: { mergeEntity(other.getEntity()); break; } case PARTITION: { mergePartition(other.getPartition()); break; } case ACTION: { mergeAction(other.getAction()); break; } case DETAILS_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { lakeId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { zoneId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { assetId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { dataLocation_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 80: { type_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 80 case 162: { input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); detailsCase_ = 20; break; } // case 162 case 170: { input.readMessage(getEntityFieldBuilder().getBuilder(), extensionRegistry); detailsCase_ = 21; break; } // case 170 case 178: { input.readMessage(getPartitionFieldBuilder().getBuilder(), extensionRegistry); detailsCase_ = 22; break; } // case 178 case 186: { input.readMessage(getActionFieldBuilder().getBuilder(), extensionRegistry); detailsCase_ = 23; break; } // case 186 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 detailsCase_ = 0; private java.lang.Object details_; public DetailsCase getDetailsCase() { return DetailsCase.forNumber(detailsCase_); } public Builder clearDetails() { detailsCase_ = 0; details_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object message_ = ""; /** * * *
     * The log message.
     * 
* * string message = 1; * * @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; } } /** * * *
     * The log message.
     * 
* * string message = 1; * * @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; } } /** * * *
     * The log message.
     * 
* * string message = 1; * * @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_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The log message.
     * 
* * string message = 1; * * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The log message.
     * 
* * string message = 1; * * @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_ |= 0x00000001; onChanged(); return this; } private java.lang.Object lakeId_ = ""; /** * * *
     * The id of the associated lake.
     * 
* * string lake_id = 2; * * @return The lakeId. */ public java.lang.String getLakeId() { java.lang.Object ref = lakeId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lakeId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The id of the associated lake.
     * 
* * string lake_id = 2; * * @return The bytes for lakeId. */ public com.google.protobuf.ByteString getLakeIdBytes() { java.lang.Object ref = lakeId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lakeId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The id of the associated lake.
     * 
* * string lake_id = 2; * * @param value The lakeId to set. * @return This builder for chaining. */ public Builder setLakeId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } lakeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The id of the associated lake.
     * 
* * string lake_id = 2; * * @return This builder for chaining. */ public Builder clearLakeId() { lakeId_ = getDefaultInstance().getLakeId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * The id of the associated lake.
     * 
* * string lake_id = 2; * * @param value The bytes for lakeId to set. * @return This builder for chaining. */ public Builder setLakeIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lakeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object zoneId_ = ""; /** * * *
     * The id of the associated zone.
     * 
* * string zone_id = 3; * * @return The zoneId. */ public java.lang.String getZoneId() { java.lang.Object ref = zoneId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); zoneId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The id of the associated zone.
     * 
* * string zone_id = 3; * * @return The bytes for zoneId. */ public com.google.protobuf.ByteString getZoneIdBytes() { java.lang.Object ref = zoneId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); zoneId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The id of the associated zone.
     * 
* * string zone_id = 3; * * @param value The zoneId to set. * @return This builder for chaining. */ public Builder setZoneId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } zoneId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The id of the associated zone.
     * 
* * string zone_id = 3; * * @return This builder for chaining. */ public Builder clearZoneId() { zoneId_ = getDefaultInstance().getZoneId(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * The id of the associated zone.
     * 
* * string zone_id = 3; * * @param value The bytes for zoneId to set. * @return This builder for chaining. */ public Builder setZoneIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); zoneId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object assetId_ = ""; /** * * *
     * The id of the associated asset.
     * 
* * string asset_id = 4; * * @return The assetId. */ public java.lang.String getAssetId() { java.lang.Object ref = assetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); assetId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The id of the associated asset.
     * 
* * string asset_id = 4; * * @return The bytes for assetId. */ public com.google.protobuf.ByteString getAssetIdBytes() { java.lang.Object ref = assetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); assetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The id of the associated asset.
     * 
* * string asset_id = 4; * * @param value The assetId to set. * @return This builder for chaining. */ public Builder setAssetId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } assetId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * The id of the associated asset.
     * 
* * string asset_id = 4; * * @return This builder for chaining. */ public Builder clearAssetId() { assetId_ = getDefaultInstance().getAssetId(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * The id of the associated asset.
     * 
* * string asset_id = 4; * * @param value The bytes for assetId to set. * @return This builder for chaining. */ public Builder setAssetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); assetId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object dataLocation_ = ""; /** * * *
     * The data location associated with the event.
     * 
* * string data_location = 5; * * @return The dataLocation. */ public java.lang.String getDataLocation() { java.lang.Object ref = dataLocation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataLocation_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The data location associated with the event.
     * 
* * string data_location = 5; * * @return The bytes for dataLocation. */ public com.google.protobuf.ByteString getDataLocationBytes() { java.lang.Object ref = dataLocation_; if (ref instanceof 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; } } /** * * *
     * The data location associated with the event.
     * 
* * string data_location = 5; * * @param value The dataLocation to set. * @return This builder for chaining. */ public Builder setDataLocation(java.lang.String value) { if (value == null) { throw new NullPointerException(); } dataLocation_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The data location associated with the event.
     * 
* * string data_location = 5; * * @return This builder for chaining. */ public Builder clearDataLocation() { dataLocation_ = getDefaultInstance().getDataLocation(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * The data location associated with the event.
     * 
* * 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.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; * * @return The config. */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails getConfig() { if (configBuilder_ == null) { if (detailsCase_ == 20) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.getDefaultInstance(); } else { if (detailsCase_ == 20) { return configBuilder_.getMessage(); } return com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.getDefaultInstance(); } } /** * * *
     * Details about discovery configuration in effect.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; */ public Builder setConfig(com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails value) { if (configBuilder_ == null) { if (value == null) { throw new NullPointerException(); } details_ = value; onChanged(); } else { configBuilder_.setMessage(value); } detailsCase_ = 20; return this; } /** * * *
     * Details about discovery configuration in effect.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; */ public Builder setConfig( com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.Builder builderForValue) { if (configBuilder_ == null) { details_ = builderForValue.build(); onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } detailsCase_ = 20; return this; } /** * * *
     * Details about discovery configuration in effect.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; */ public Builder mergeConfig(com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails value) { if (configBuilder_ == null) { if (detailsCase_ == 20 && details_ != com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.getDefaultInstance()) { details_ = com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.newBuilder( (com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails) details_) .mergeFrom(value) .buildPartial(); } else { details_ = value; } onChanged(); } else { if (detailsCase_ == 20) { configBuilder_.mergeFrom(value); } else { configBuilder_.setMessage(value); } } detailsCase_ = 20; return this; } /** * * *
     * Details about discovery configuration in effect.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; */ public Builder clearConfig() { if (configBuilder_ == null) { if (detailsCase_ == 20) { detailsCase_ = 0; details_ = null; onChanged(); } } else { if (detailsCase_ == 20) { detailsCase_ = 0; details_ = null; } configBuilder_.clear(); } return this; } /** * * *
     * Details about discovery configuration in effect.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; */ public com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.Builder getConfigBuilder() { return getConfigFieldBuilder().getBuilder(); } /** * * *
     * Details about discovery configuration in effect.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetailsOrBuilder getConfigOrBuilder() { if ((detailsCase_ == 20) && (configBuilder_ != null)) { return configBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 20) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.getDefaultInstance(); } } /** * * *
     * Details about discovery configuration in effect.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails config = 20; */ 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> getConfigFieldBuilder() { if (configBuilder_ == null) { if (!(detailsCase_ == 20)) { details_ = com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails.getDefaultInstance(); } configBuilder_ = new 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>( (com.google.cloud.dataplex.v1.DiscoveryEvent.ConfigDetails) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 20; onChanged(); return configBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails, com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.Builder, com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetailsOrBuilder> entityBuilder_; /** * * *
     * Details about the entity associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; * * @return Whether the entity field is set. */ @java.lang.Override public boolean hasEntity() { return detailsCase_ == 21; } /** * * *
     * Details about the entity associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; * * @return The entity. */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails getEntity() { if (entityBuilder_ == null) { if (detailsCase_ == 21) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.getDefaultInstance(); } else { if (detailsCase_ == 21) { return entityBuilder_.getMessage(); } return com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.getDefaultInstance(); } } /** * * *
     * Details about the entity associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; */ public Builder setEntity(com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails value) { if (entityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } details_ = value; onChanged(); } else { entityBuilder_.setMessage(value); } detailsCase_ = 21; return this; } /** * * *
     * Details about the entity associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; */ public Builder setEntity( com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.Builder builderForValue) { if (entityBuilder_ == null) { details_ = builderForValue.build(); onChanged(); } else { entityBuilder_.setMessage(builderForValue.build()); } detailsCase_ = 21; return this; } /** * * *
     * Details about the entity associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; */ public Builder mergeEntity(com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails value) { if (entityBuilder_ == null) { if (detailsCase_ == 21 && details_ != com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.getDefaultInstance()) { details_ = com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.newBuilder( (com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails) details_) .mergeFrom(value) .buildPartial(); } else { details_ = value; } onChanged(); } else { if (detailsCase_ == 21) { entityBuilder_.mergeFrom(value); } else { entityBuilder_.setMessage(value); } } detailsCase_ = 21; return this; } /** * * *
     * Details about the entity associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; */ public Builder clearEntity() { if (entityBuilder_ == null) { if (detailsCase_ == 21) { detailsCase_ = 0; details_ = null; onChanged(); } } else { if (detailsCase_ == 21) { detailsCase_ = 0; details_ = null; } entityBuilder_.clear(); } return this; } /** * * *
     * Details about the entity associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; */ public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.Builder getEntityBuilder() { return getEntityFieldBuilder().getBuilder(); } /** * * *
     * Details about the entity associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetailsOrBuilder getEntityOrBuilder() { if ((detailsCase_ == 21) && (entityBuilder_ != null)) { return entityBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 21) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.getDefaultInstance(); } } /** * * *
     * Details about the entity associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails entity = 21; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails, com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.Builder, com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetailsOrBuilder> getEntityFieldBuilder() { if (entityBuilder_ == null) { if (!(detailsCase_ == 21)) { details_ = com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.getDefaultInstance(); } entityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails, com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails.Builder, com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetailsOrBuilder>( (com.google.cloud.dataplex.v1.DiscoveryEvent.EntityDetails) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 21; onChanged(); return entityBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails, com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.Builder, com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetailsOrBuilder> partitionBuilder_; /** * * *
     * Details about the partition associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; * * @return Whether the partition field is set. */ @java.lang.Override public boolean hasPartition() { return detailsCase_ == 22; } /** * * *
     * Details about the partition associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; * * @return The partition. */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails getPartition() { if (partitionBuilder_ == null) { if (detailsCase_ == 22) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.getDefaultInstance(); } else { if (detailsCase_ == 22) { return partitionBuilder_.getMessage(); } return com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.getDefaultInstance(); } } /** * * *
     * Details about the partition associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; */ public Builder setPartition( com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails value) { if (partitionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } details_ = value; onChanged(); } else { partitionBuilder_.setMessage(value); } detailsCase_ = 22; return this; } /** * * *
     * Details about the partition associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; */ public Builder setPartition( com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.Builder builderForValue) { if (partitionBuilder_ == null) { details_ = builderForValue.build(); onChanged(); } else { partitionBuilder_.setMessage(builderForValue.build()); } detailsCase_ = 22; return this; } /** * * *
     * Details about the partition associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; */ public Builder mergePartition( com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails value) { if (partitionBuilder_ == null) { if (detailsCase_ == 22 && details_ != com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails .getDefaultInstance()) { details_ = com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.newBuilder( (com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails) details_) .mergeFrom(value) .buildPartial(); } else { details_ = value; } onChanged(); } else { if (detailsCase_ == 22) { partitionBuilder_.mergeFrom(value); } else { partitionBuilder_.setMessage(value); } } detailsCase_ = 22; return this; } /** * * *
     * Details about the partition associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; */ public Builder clearPartition() { if (partitionBuilder_ == null) { if (detailsCase_ == 22) { detailsCase_ = 0; details_ = null; onChanged(); } } else { if (detailsCase_ == 22) { detailsCase_ = 0; details_ = null; } partitionBuilder_.clear(); } return this; } /** * * *
     * Details about the partition associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; */ public com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.Builder getPartitionBuilder() { return getPartitionFieldBuilder().getBuilder(); } /** * * *
     * Details about the partition associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetailsOrBuilder getPartitionOrBuilder() { if ((detailsCase_ == 22) && (partitionBuilder_ != null)) { return partitionBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 22) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.getDefaultInstance(); } } /** * * *
     * Details about the partition associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails partition = 22; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails, com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.Builder, com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetailsOrBuilder> getPartitionFieldBuilder() { if (partitionBuilder_ == null) { if (!(detailsCase_ == 22)) { details_ = com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.getDefaultInstance(); } partitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails, com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails.Builder, com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetailsOrBuilder>( (com.google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 22; onChanged(); return partitionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails, com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.Builder, com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetailsOrBuilder> actionBuilder_; /** * * *
     * Details about the action associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; * * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return detailsCase_ == 23; } /** * * *
     * Details about the action associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; * * @return The action. */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails getAction() { if (actionBuilder_ == null) { if (detailsCase_ == 23) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.getDefaultInstance(); } else { if (detailsCase_ == 23) { return actionBuilder_.getMessage(); } return com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.getDefaultInstance(); } } /** * * *
     * Details about the action associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; */ public Builder setAction(com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails value) { if (actionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } details_ = value; onChanged(); } else { actionBuilder_.setMessage(value); } detailsCase_ = 23; return this; } /** * * *
     * Details about the action associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; */ public Builder setAction( com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.Builder builderForValue) { if (actionBuilder_ == null) { details_ = builderForValue.build(); onChanged(); } else { actionBuilder_.setMessage(builderForValue.build()); } detailsCase_ = 23; return this; } /** * * *
     * Details about the action associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; */ public Builder mergeAction(com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails value) { if (actionBuilder_ == null) { if (detailsCase_ == 23 && details_ != com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.getDefaultInstance()) { details_ = com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.newBuilder( (com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) details_) .mergeFrom(value) .buildPartial(); } else { details_ = value; } onChanged(); } else { if (detailsCase_ == 23) { actionBuilder_.mergeFrom(value); } else { actionBuilder_.setMessage(value); } } detailsCase_ = 23; return this; } /** * * *
     * Details about the action associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; */ public Builder clearAction() { if (actionBuilder_ == null) { if (detailsCase_ == 23) { detailsCase_ = 0; details_ = null; onChanged(); } } else { if (detailsCase_ == 23) { detailsCase_ = 0; details_ = null; } actionBuilder_.clear(); } return this; } /** * * *
     * Details about the action associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; */ public com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.Builder getActionBuilder() { return getActionFieldBuilder().getBuilder(); } /** * * *
     * Details about the action associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; */ @java.lang.Override public com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetailsOrBuilder getActionOrBuilder() { if ((detailsCase_ == 23) && (actionBuilder_ != null)) { return actionBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 23) { return (com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) details_; } return com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.getDefaultInstance(); } } /** * * *
     * Details about the action associated with the event.
     * 
* * .google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails action = 23; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails, com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.Builder, com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetailsOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { if (!(detailsCase_ == 23)) { details_ = com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.getDefaultInstance(); } actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails, com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails.Builder, com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetailsOrBuilder>( (com.google.cloud.dataplex.v1.DiscoveryEvent.ActionDetails) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 23; onChanged(); return actionBuilder_; } @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) } // @@protoc_insertion_point(class_scope:google.cloud.dataplex.v1.DiscoveryEvent) private static final com.google.cloud.dataplex.v1.DiscoveryEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dataplex.v1.DiscoveryEvent(); } public static com.google.cloud.dataplex.v1.DiscoveryEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiscoveryEvent 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 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy