diff --git a/tidb-binlog/README.md b/tidb-binlog/README.md new file mode 100644 index 000000000..c215a2c9e --- /dev/null +++ b/tidb-binlog/README.md @@ -0,0 +1 @@ +This repository has been moved to . \ No newline at end of file diff --git a/tidb-binlog/driver/README.md b/tidb-binlog/driver/README.md deleted file mode 100644 index 21c571146..000000000 --- a/tidb-binlog/driver/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# TiDB-Binlog Driver library - -A pure go library to handle TiDB Binlog replication. - -# Introduction - -### Reader - -a package read [TiDB Binlog protocol](../slave_binlog_proto/proto) - -### Examples - -[MySQL Replicate client](./example/mysql) - -[Text Output Replicate client](./example/print) \ No newline at end of file diff --git a/tidb-binlog/driver/example/kafkaReader/.gitignore b/tidb-binlog/driver/example/kafkaReader/.gitignore deleted file mode 100644 index 3dad8ccab..000000000 --- a/tidb-binlog/driver/example/kafkaReader/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -target -.idea -out/ -*.iml diff --git a/tidb-binlog/driver/example/kafkaReader/README.md b/tidb-binlog/driver/example/kafkaReader/README.md deleted file mode 100644 index 1f813a562..000000000 --- a/tidb-binlog/driver/example/kafkaReader/README.md +++ /dev/null @@ -1,17 +0,0 @@ -### consume and parse kafka binlog message for java demo - -#### Env: -tidb: v3.0.0
-drainer: v3.0.0
-kafka: kafka_2.12 1.0.0
-local windows environment protobuf version:protoc-3.9.1-win64
-[binlog.proto](https://github.com/pingcap/tidb-tools/blob/master/tidb-binlog/slave_binlog_proto/proto/binlog.proto) use official point file。 - -#### Execute protoc command to generate java file: -protoc --java_out=src/main/java src/main/resources/proto/descriptor.proto --proto_path=src/main/resources/proto/
-protoc --java_out=src/main/java src/main/resources/proto/gogo.proto --proto_path=src/main/resources/proto/
-protoc --java_out=src/main/java src/main/resources/proto/binlog.proto --proto_path=src/main/resources/proto/
- -#### How to run: -in intel idea ide, run Booter.java main method。
-point Booter.topic、Booter.serever、Booter.offset and run it。 diff --git a/tidb-binlog/driver/example/kafkaReader/pom.xml b/tidb-binlog/driver/example/kafkaReader/pom.xml deleted file mode 100644 index c9a801dd1..000000000 --- a/tidb-binlog/driver/example/kafkaReader/pom.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - 4.0.0 - - com.lianlianpay - kafkaReader - 1.0-SNAPSHOT - - - - 1.8 - UTF-8 - 5.3.3 - 5.6.11 - 0.0.1-SNAPSHOT - - - - - - - org.apache.kafka - kafka-clients - 1.0.0 - - - - org.apache.kafka - kafka_2.12 - 1.0.0 - - - - com.google.protobuf - protobuf-java - 3.9.0 - - - - com.google.protobuf - protobuf-java-util - 3.9.1 - - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.3.2 - - utf-8 - ${java.version} - ${java.version} - - - - - - \ No newline at end of file diff --git a/tidb-binlog/driver/example/kafkaReader/src/main/java/Booter.java b/tidb-binlog/driver/example/kafkaReader/src/main/java/Booter.java deleted file mode 100644 index 44eef5903..000000000 --- a/tidb-binlog/driver/example/kafkaReader/src/main/java/Booter.java +++ /dev/null @@ -1,101 +0,0 @@ -import com.pingcap.kafkareader.proto.BinLogInfo; -import org.apache.kafka.clients.consumer.ConsumerRecord; -import org.apache.kafka.clients.consumer.ConsumerRecords; -import org.apache.kafka.clients.consumer.KafkaConsumer; -import org.apache.kafka.clients.consumer.OffsetAndMetadata; -import org.apache.kafka.common.TopicPartition; - -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import java.util.Properties; - -/** - * @description: kafka消费binlog java demo - * @author: ceaserwang@outlook.com - * @create: 2019-08-15 21:45 - **/ -public class Booter { - /** - * 主题 - */ - private static String topic = "6717826900501472462_obinlog"; - /** - * kafka brokers - */ - private static String serever = "192.168.138.22:9092,192.168.138.23:9092,192.168.138.24:9092"; - - /** - * 消费者偏移量 - */ - private static long offset = 60; - - /** - * 消费者线程 - */ - private Thread kafkaConsumerThread; - /** - * 消费者 - */ - private KafkaConsumer consumer; - - public static void main(String[] args) { - Booter booter = new Booter(); - booter.init(); - } - - public void init() { - Properties props = assembleConsumerProperties(); - this.consumer = new KafkaConsumer(props); - consumer.assign(Arrays.asList(new TopicPartition(Booter.topic,0))); - kafkaConsumerThread = new Thread(() -> { - Map currentOffsets = new HashMap<>(); - while (true) { - try { - // 指定分区消费的某个offset消费 - consumer.seek(new TopicPartition(Booter.topic, 0), offset); - ConsumerRecords records = consumer.poll(200); - for (ConsumerRecord record : records) { - try { - //处理消息 - dealMessage(record.value()); - currentOffsets.put(new TopicPartition(Booter.topic, record.partition()), new OffsetAndMetadata(record.offset() + 1, "no metadata")); - //提交 - consumer.commitSync(currentOffsets); - currentOffsets.clear(); - //记录消息offset到db - } catch (Exception ie) { - //当前消息处理失败 - currentOffsets.clear(); - } - } - } catch (Exception e) { - currentOffsets.clear(); - } - } - }); - kafkaConsumerThread.setName("kafkaConsumerThread"); - kafkaConsumerThread.start(); - } - - private void dealMessage(byte[] value) throws Exception { - BinLogInfo.Binlog binlog = BinLogInfo.Binlog.parseFrom(value); - System.out.println(binlog.toString()); - } - - private Properties assembleConsumerProperties() { - Properties props = new Properties(); - props.put("bootstrap.servers",Booter.serever); - props.put("group.id", "mytest"); - //自动提交位移关闭 - props.put("enable.auto.commit", "false"); - props.put("auto.commit.interval.ms", "1000"); - props.put("session.timeout.ms", "30000"); - props.put("max.poll.records", "10"); - //必须使用ByteArrayDeserializer - props.put("key.deserializer", "org.apache.kafka.common.serialization.ByteArrayDeserializer"); - props.put("value.deserializer", "org.apache.kafka.common.serialization.ByteArrayDeserializer"); - return props; - } - -} diff --git a/tidb-binlog/driver/example/kafkaReader/src/main/java/com/pingcap/kafkareader/proto/BinLogInfo.java b/tidb-binlog/driver/example/kafkaReader/src/main/java/com/pingcap/kafkareader/proto/BinLogInfo.java deleted file mode 100644 index b09fd8f40..000000000 --- a/tidb-binlog/driver/example/kafkaReader/src/main/java/com/pingcap/kafkareader/proto/BinLogInfo.java +++ /dev/null @@ -1,8689 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: binlog.proto - -package com.pingcap.kafkareader.proto; - -public final class BinLogInfo { - private BinLogInfo() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code com.tnp.search.MutationType} - */ - public enum MutationType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * Insert = 0; - */ - Insert(0), - /** - * Update = 1; - */ - Update(1), - /** - * Delete = 2; - */ - Delete(2), - ; - - /** - * Insert = 0; - */ - public static final int Insert_VALUE = 0; - /** - * Update = 1; - */ - public static final int Update_VALUE = 1; - /** - * Delete = 2; - */ - public static final int Delete_VALUE = 2; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MutationType valueOf(int value) { - return forNumber(value); - } - - public static MutationType forNumber(int value) { - switch (value) { - case 0: return Insert; - case 1: return Update; - case 2: return Delete; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MutationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MutationType findValueByNumber(int number) { - return MutationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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.pingcap.kafkareader.proto.BinLogInfo.getDescriptor().getEnumTypes().get(0); - } - - private static final MutationType[] VALUES = values(); - - public static MutationType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MutationType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:com.tnp.search.MutationType) - } - - /** - * Protobuf enum {@code com.tnp.search.BinlogType} - */ - public enum BinlogType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     *  has dml_data
-     * 
- * - * DML = 0; - */ - DML(0), - /** - *
-     *  has ddl_query
-     * 
- * - * DDL = 1; - */ - DDL(1), - ; - - /** - *
-     *  has dml_data
-     * 
- * - * DML = 0; - */ - public static final int DML_VALUE = 0; - /** - *
-     *  has ddl_query
-     * 
- * - * DDL = 1; - */ - public static final int DDL_VALUE = 1; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static BinlogType valueOf(int value) { - return forNumber(value); - } - - public static BinlogType forNumber(int value) { - switch (value) { - case 0: return DML; - case 1: return DDL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - BinlogType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BinlogType findValueByNumber(int number) { - return BinlogType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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.pingcap.kafkareader.proto.BinLogInfo.getDescriptor().getEnumTypes().get(1); - } - - private static final BinlogType[] VALUES = values(); - - public static BinlogType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private BinlogType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:com.tnp.search.BinlogType) - } - - public interface ColumnOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.tnp.search.Column) - com.google.protobuf.MessageOrBuilder { - - /** - * optional bool is_null = 1 [default = false]; - */ - boolean hasIsNull(); - /** - * optional bool is_null = 1 [default = false]; - */ - boolean getIsNull(); - - /** - * optional int64 int64_value = 2; - */ - boolean hasInt64Value(); - /** - * optional int64 int64_value = 2; - */ - long getInt64Value(); - - /** - * optional uint64 uint64_value = 3; - */ - boolean hasUint64Value(); - /** - * optional uint64 uint64_value = 3; - */ - long getUint64Value(); - - /** - * optional double double_value = 4; - */ - boolean hasDoubleValue(); - /** - * optional double double_value = 4; - */ - double getDoubleValue(); - - /** - * optional bytes bytes_value = 5; - */ - boolean hasBytesValue(); - /** - * optional bytes bytes_value = 5; - */ - com.google.protobuf.ByteString getBytesValue(); - - /** - * optional string string_value = 6; - */ - boolean hasStringValue(); - /** - * optional string string_value = 6; - */ - java.lang.String getStringValue(); - /** - * optional string string_value = 6; - */ - com.google.protobuf.ByteString - getStringValueBytes(); - } - /** - *
-   * for text and char type, string_value is set
-   * for blob and binary type, bytes_value is set
-   * for enum, set, uint64_value is set
-   * for json, bytes_value is set
-   * 
- * - * Protobuf type {@code com.tnp.search.Column} - */ - public static final class Column extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.tnp.search.Column) - ColumnOrBuilder { - private static final long serialVersionUID = 0L; - // Use Column.newBuilder() to construct. - private Column(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Column() { - bytesValue_ = com.google.protobuf.ByteString.EMPTY; - stringValue_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Column(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Column( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - isNull_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - int64Value_ = input.readInt64(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - uint64Value_ = input.readUInt64(); - break; - } - case 33: { - bitField0_ |= 0x00000008; - doubleValue_ = input.readDouble(); - break; - } - case 42: { - bitField0_ |= 0x00000010; - bytesValue_ = input.readBytes(); - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - stringValue_ = bs; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Column_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Column_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.Column.class, com.pingcap.kafkareader.proto.BinLogInfo.Column.Builder.class); - } - - private int bitField0_; - public static final int IS_NULL_FIELD_NUMBER = 1; - private boolean isNull_; - /** - * optional bool is_null = 1 [default = false]; - */ - public boolean hasIsNull() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional bool is_null = 1 [default = false]; - */ - public boolean getIsNull() { - return isNull_; - } - - public static final int INT64_VALUE_FIELD_NUMBER = 2; - private long int64Value_; - /** - * optional int64 int64_value = 2; - */ - public boolean hasInt64Value() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int64 int64_value = 2; - */ - public long getInt64Value() { - return int64Value_; - } - - public static final int UINT64_VALUE_FIELD_NUMBER = 3; - private long uint64Value_; - /** - * optional uint64 uint64_value = 3; - */ - public boolean hasUint64Value() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional uint64 uint64_value = 3; - */ - public long getUint64Value() { - return uint64Value_; - } - - public static final int DOUBLE_VALUE_FIELD_NUMBER = 4; - private double doubleValue_; - /** - * optional double double_value = 4; - */ - public boolean hasDoubleValue() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional double double_value = 4; - */ - public double getDoubleValue() { - return doubleValue_; - } - - public static final int BYTES_VALUE_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString bytesValue_; - /** - * optional bytes bytes_value = 5; - */ - public boolean hasBytesValue() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional bytes bytes_value = 5; - */ - public com.google.protobuf.ByteString getBytesValue() { - return bytesValue_; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 6; - private volatile java.lang.Object stringValue_; - /** - * optional string string_value = 6; - */ - public boolean hasStringValue() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * optional string string_value = 6; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = stringValue_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stringValue_ = s; - } - return s; - } - } - /** - * optional string string_value = 6; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = stringValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stringValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeBool(1, isNull_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(2, int64Value_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeUInt64(3, uint64Value_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeDouble(4, doubleValue_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeBytes(5, bytesValue_); - } - if (((bitField0_ & 0x00000020) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, stringValue_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isNull_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, int64Value_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeUInt64Size(3, uint64Value_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, doubleValue_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, bytesValue_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, stringValue_); - } - size += unknownFields.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.pingcap.kafkareader.proto.BinLogInfo.Column)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.BinLogInfo.Column other = (com.pingcap.kafkareader.proto.BinLogInfo.Column) obj; - - if (hasIsNull() != other.hasIsNull()) return false; - if (hasIsNull()) { - if (getIsNull() - != other.getIsNull()) return false; - } - if (hasInt64Value() != other.hasInt64Value()) return false; - if (hasInt64Value()) { - if (getInt64Value() - != other.getInt64Value()) return false; - } - if (hasUint64Value() != other.hasUint64Value()) return false; - if (hasUint64Value()) { - if (getUint64Value() - != other.getUint64Value()) return false; - } - if (hasDoubleValue() != other.hasDoubleValue()) return false; - if (hasDoubleValue()) { - if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits( - other.getDoubleValue())) return false; - } - if (hasBytesValue() != other.hasBytesValue()) return false; - if (hasBytesValue()) { - if (!getBytesValue() - .equals(other.getBytesValue())) return false; - } - if (hasStringValue() != other.hasStringValue()) return false; - if (hasStringValue()) { - if (!getStringValue() - .equals(other.getStringValue())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIsNull()) { - hash = (37 * hash) + IS_NULL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsNull()); - } - if (hasInt64Value()) { - hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInt64Value()); - } - if (hasUint64Value()) { - hash = (37 * hash) + UINT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getUint64Value()); - } - if (hasDoubleValue()) { - hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); - } - if (hasBytesValue()) { - hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getBytesValue().hashCode(); - } - if (hasStringValue()) { - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.Column parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Column parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Column parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Column parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Column parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Column parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Column parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Column 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.pingcap.kafkareader.proto.BinLogInfo.Column parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Column 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.pingcap.kafkareader.proto.BinLogInfo.Column parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Column 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.pingcap.kafkareader.proto.BinLogInfo.Column 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; - } - /** - *
-     * for text and char type, string_value is set
-     * for blob and binary type, bytes_value is set
-     * for enum, set, uint64_value is set
-     * for json, bytes_value is set
-     * 
- * - * Protobuf type {@code com.tnp.search.Column} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:com.tnp.search.Column) - com.pingcap.kafkareader.proto.BinLogInfo.ColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Column_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Column_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.Column.class, com.pingcap.kafkareader.proto.BinLogInfo.Column.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.BinLogInfo.Column.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - isNull_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - int64Value_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - uint64Value_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); - doubleValue_ = 0D; - bitField0_ = (bitField0_ & ~0x00000008); - bytesValue_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - stringValue_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Column_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Column getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.Column.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Column build() { - com.pingcap.kafkareader.proto.BinLogInfo.Column result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Column buildPartial() { - com.pingcap.kafkareader.proto.BinLogInfo.Column result = new com.pingcap.kafkareader.proto.BinLogInfo.Column(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.isNull_ = isNull_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.int64Value_ = int64Value_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.uint64Value_ = uint64Value_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.doubleValue_ = doubleValue_; - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - to_bitField0_ |= 0x00000010; - } - result.bytesValue_ = bytesValue_; - if (((from_bitField0_ & 0x00000020) != 0)) { - to_bitField0_ |= 0x00000020; - } - result.stringValue_ = stringValue_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.BinLogInfo.Column) { - return mergeFrom((com.pingcap.kafkareader.proto.BinLogInfo.Column)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.BinLogInfo.Column other) { - if (other == com.pingcap.kafkareader.proto.BinLogInfo.Column.getDefaultInstance()) return this; - if (other.hasIsNull()) { - setIsNull(other.getIsNull()); - } - if (other.hasInt64Value()) { - setInt64Value(other.getInt64Value()); - } - if (other.hasUint64Value()) { - setUint64Value(other.getUint64Value()); - } - if (other.hasDoubleValue()) { - setDoubleValue(other.getDoubleValue()); - } - if (other.hasBytesValue()) { - setBytesValue(other.getBytesValue()); - } - if (other.hasStringValue()) { - bitField0_ |= 0x00000020; - stringValue_ = other.stringValue_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - 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 { - com.pingcap.kafkareader.proto.BinLogInfo.Column parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.BinLogInfo.Column) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean isNull_ ; - /** - * optional bool is_null = 1 [default = false]; - */ - public boolean hasIsNull() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional bool is_null = 1 [default = false]; - */ - public boolean getIsNull() { - return isNull_; - } - /** - * optional bool is_null = 1 [default = false]; - */ - public Builder setIsNull(boolean value) { - bitField0_ |= 0x00000001; - isNull_ = value; - onChanged(); - return this; - } - /** - * optional bool is_null = 1 [default = false]; - */ - public Builder clearIsNull() { - bitField0_ = (bitField0_ & ~0x00000001); - isNull_ = false; - onChanged(); - return this; - } - - private long int64Value_ ; - /** - * optional int64 int64_value = 2; - */ - public boolean hasInt64Value() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int64 int64_value = 2; - */ - public long getInt64Value() { - return int64Value_; - } - /** - * optional int64 int64_value = 2; - */ - public Builder setInt64Value(long value) { - bitField0_ |= 0x00000002; - int64Value_ = value; - onChanged(); - return this; - } - /** - * optional int64 int64_value = 2; - */ - public Builder clearInt64Value() { - bitField0_ = (bitField0_ & ~0x00000002); - int64Value_ = 0L; - onChanged(); - return this; - } - - private long uint64Value_ ; - /** - * optional uint64 uint64_value = 3; - */ - public boolean hasUint64Value() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional uint64 uint64_value = 3; - */ - public long getUint64Value() { - return uint64Value_; - } - /** - * optional uint64 uint64_value = 3; - */ - public Builder setUint64Value(long value) { - bitField0_ |= 0x00000004; - uint64Value_ = value; - onChanged(); - return this; - } - /** - * optional uint64 uint64_value = 3; - */ - public Builder clearUint64Value() { - bitField0_ = (bitField0_ & ~0x00000004); - uint64Value_ = 0L; - onChanged(); - return this; - } - - private double doubleValue_ ; - /** - * optional double double_value = 4; - */ - public boolean hasDoubleValue() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional double double_value = 4; - */ - public double getDoubleValue() { - return doubleValue_; - } - /** - * optional double double_value = 4; - */ - public Builder setDoubleValue(double value) { - bitField0_ |= 0x00000008; - doubleValue_ = value; - onChanged(); - return this; - } - /** - * optional double double_value = 4; - */ - public Builder clearDoubleValue() { - bitField0_ = (bitField0_ & ~0x00000008); - doubleValue_ = 0D; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString bytesValue_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes bytes_value = 5; - */ - public boolean hasBytesValue() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * optional bytes bytes_value = 5; - */ - public com.google.protobuf.ByteString getBytesValue() { - return bytesValue_; - } - /** - * optional bytes bytes_value = 5; - */ - public Builder setBytesValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - bytesValue_ = value; - onChanged(); - return this; - } - /** - * optional bytes bytes_value = 5; - */ - public Builder clearBytesValue() { - bitField0_ = (bitField0_ & ~0x00000010); - bytesValue_ = getDefaultInstance().getBytesValue(); - onChanged(); - return this; - } - - private java.lang.Object stringValue_ = ""; - /** - * optional string string_value = 6; - */ - public boolean hasStringValue() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - * optional string string_value = 6; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = stringValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stringValue_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string string_value = 6; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = stringValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stringValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string string_value = 6; - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - stringValue_ = value; - onChanged(); - return this; - } - /** - * optional string string_value = 6; - */ - public Builder clearStringValue() { - bitField0_ = (bitField0_ & ~0x00000020); - stringValue_ = getDefaultInstance().getStringValue(); - onChanged(); - return this; - } - /** - * optional string string_value = 6; - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - stringValue_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:com.tnp.search.Column) - } - - // @@protoc_insertion_point(class_scope:com.tnp.search.Column) - private static final com.pingcap.kafkareader.proto.BinLogInfo.Column DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.BinLogInfo.Column(); - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.Column getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Column parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Column(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.BinLogInfo.Column getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ColumnInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.tnp.search.ColumnInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasName(); - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - java.lang.String getName(); - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * lower case column field type in mysql
-     * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-     * for numeric type: int bigint smallint tinyint float double decimal bit
-     * for string type: text longtext mediumtext char tinytext varchar
-     * blob longblob mediumblob binary tinyblob varbinary
-     * enum set
-     * for json type: json
-     * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasMysqlType(); - /** - *
-     * lower case column field type in mysql
-     * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-     * for numeric type: int bigint smallint tinyint float double decimal bit
-     * for string type: text longtext mediumtext char tinytext varchar
-     * blob longblob mediumblob binary tinyblob varbinary
-     * enum set
-     * for json type: json
-     * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - java.lang.String getMysqlType(); - /** - *
-     * lower case column field type in mysql
-     * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-     * for numeric type: int bigint smallint tinyint float double decimal bit
-     * for string type: text longtext mediumtext char tinytext varchar
-     * blob longblob mediumblob binary tinyblob varbinary
-     * enum set
-     * for json type: json
-     * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - com.google.protobuf.ByteString - getMysqlTypeBytes(); - - /** - * optional bool is_primary_key = 3 [(.gogoproto.nullable) = false]; - */ - boolean hasIsPrimaryKey(); - /** - * optional bool is_primary_key = 3 [(.gogoproto.nullable) = false]; - */ - boolean getIsPrimaryKey(); - } - /** - * Protobuf type {@code com.tnp.search.ColumnInfo} - */ - public static final class ColumnInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.tnp.search.ColumnInfo) - ColumnInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ColumnInfo.newBuilder() to construct. - private ColumnInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ColumnInfo() { - name_ = ""; - mysqlType_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ColumnInfo(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ColumnInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - mysqlType_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - isPrimaryKey_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_ColumnInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_ColumnInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.class, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MYSQL_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object mysqlType_; - /** - *
-     * lower case column field type in mysql
-     * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-     * for numeric type: int bigint smallint tinyint float double decimal bit
-     * for string type: text longtext mediumtext char tinytext varchar
-     * blob longblob mediumblob binary tinyblob varbinary
-     * enum set
-     * for json type: json
-     * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasMysqlType() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * lower case column field type in mysql
-     * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-     * for numeric type: int bigint smallint tinyint float double decimal bit
-     * for string type: text longtext mediumtext char tinytext varchar
-     * blob longblob mediumblob binary tinyblob varbinary
-     * enum set
-     * for json type: json
-     * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - public java.lang.String getMysqlType() { - java.lang.Object ref = mysqlType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - mysqlType_ = s; - } - return s; - } - } - /** - *
-     * lower case column field type in mysql
-     * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-     * for numeric type: int bigint smallint tinyint float double decimal bit
-     * for string type: text longtext mediumtext char tinytext varchar
-     * blob longblob mediumblob binary tinyblob varbinary
-     * enum set
-     * for json type: json
-     * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - public com.google.protobuf.ByteString - getMysqlTypeBytes() { - java.lang.Object ref = mysqlType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mysqlType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_PRIMARY_KEY_FIELD_NUMBER = 3; - private boolean isPrimaryKey_; - /** - * optional bool is_primary_key = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasIsPrimaryKey() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional bool is_primary_key = 3 [(.gogoproto.nullable) = false]; - */ - public boolean getIsPrimaryKey() { - return isPrimaryKey_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mysqlType_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeBool(3, isPrimaryKey_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mysqlType_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isPrimaryKey_); - } - size += unknownFields.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.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo other = (com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo) obj; - - if (hasName() != other.hasName()) return false; - if (hasName()) { - if (!getName() - .equals(other.getName())) return false; - } - if (hasMysqlType() != other.hasMysqlType()) return false; - if (hasMysqlType()) { - if (!getMysqlType() - .equals(other.getMysqlType())) return false; - } - if (hasIsPrimaryKey() != other.hasIsPrimaryKey()) return false; - if (hasIsPrimaryKey()) { - if (getIsPrimaryKey() - != other.getIsPrimaryKey()) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasMysqlType()) { - hash = (37 * hash) + MYSQL_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMysqlType().hashCode(); - } - if (hasIsPrimaryKey()) { - hash = (37 * hash) + IS_PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsPrimaryKey()); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo 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.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo 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.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo 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.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo 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; - } - /** - * Protobuf type {@code com.tnp.search.ColumnInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:com.tnp.search.ColumnInfo) - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_ColumnInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_ColumnInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.class, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - mysqlType_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - isPrimaryKey_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_ColumnInfo_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo build() { - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo buildPartial() { - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo result = new com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.mysqlType_ = mysqlType_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.isPrimaryKey_ = isPrimaryKey_; - to_bitField0_ |= 0x00000004; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo) { - return mergeFrom((com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo other) { - if (other == com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasMysqlType()) { - bitField0_ |= 0x00000002; - mysqlType_ = other.mysqlType_; - onChanged(); - } - if (other.hasIsPrimaryKey()) { - setIsPrimaryKey(other.getIsPrimaryKey()); - } - this.mergeUnknownFields(other.unknownFields); - 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 { - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object mysqlType_ = ""; - /** - *
-       * lower case column field type in mysql
-       * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-       * for numeric type: int bigint smallint tinyint float double decimal bit
-       * for string type: text longtext mediumtext char tinytext varchar
-       * blob longblob mediumblob binary tinyblob varbinary
-       * enum set
-       * for json type: json
-       * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasMysqlType() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * lower case column field type in mysql
-       * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-       * for numeric type: int bigint smallint tinyint float double decimal bit
-       * for string type: text longtext mediumtext char tinytext varchar
-       * blob longblob mediumblob binary tinyblob varbinary
-       * enum set
-       * for json type: json
-       * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - public java.lang.String getMysqlType() { - java.lang.Object ref = mysqlType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - mysqlType_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * lower case column field type in mysql
-       * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-       * for numeric type: int bigint smallint tinyint float double decimal bit
-       * for string type: text longtext mediumtext char tinytext varchar
-       * blob longblob mediumblob binary tinyblob varbinary
-       * enum set
-       * for json type: json
-       * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - public com.google.protobuf.ByteString - getMysqlTypeBytes() { - java.lang.Object ref = mysqlType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mysqlType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * lower case column field type in mysql
-       * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-       * for numeric type: int bigint smallint tinyint float double decimal bit
-       * for string type: text longtext mediumtext char tinytext varchar
-       * blob longblob mediumblob binary tinyblob varbinary
-       * enum set
-       * for json type: json
-       * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setMysqlType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - mysqlType_ = value; - onChanged(); - return this; - } - /** - *
-       * lower case column field type in mysql
-       * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-       * for numeric type: int bigint smallint tinyint float double decimal bit
-       * for string type: text longtext mediumtext char tinytext varchar
-       * blob longblob mediumblob binary tinyblob varbinary
-       * enum set
-       * for json type: json
-       * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearMysqlType() { - bitField0_ = (bitField0_ & ~0x00000002); - mysqlType_ = getDefaultInstance().getMysqlType(); - onChanged(); - return this; - } - /** - *
-       * lower case column field type in mysql
-       * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
-       * for numeric type: int bigint smallint tinyint float double decimal bit
-       * for string type: text longtext mediumtext char tinytext varchar
-       * blob longblob mediumblob binary tinyblob varbinary
-       * enum set
-       * for json type: json
-       * 
- * - * optional string mysql_type = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setMysqlTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - mysqlType_ = value; - onChanged(); - return this; - } - - private boolean isPrimaryKey_ ; - /** - * optional bool is_primary_key = 3 [(.gogoproto.nullable) = false]; - */ - public boolean hasIsPrimaryKey() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional bool is_primary_key = 3 [(.gogoproto.nullable) = false]; - */ - public boolean getIsPrimaryKey() { - return isPrimaryKey_; - } - /** - * optional bool is_primary_key = 3 [(.gogoproto.nullable) = false]; - */ - public Builder setIsPrimaryKey(boolean value) { - bitField0_ |= 0x00000004; - isPrimaryKey_ = value; - onChanged(); - return this; - } - /** - * optional bool is_primary_key = 3 [(.gogoproto.nullable) = false]; - */ - public Builder clearIsPrimaryKey() { - bitField0_ = (bitField0_ & ~0x00000004); - isPrimaryKey_ = false; - 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:com.tnp.search.ColumnInfo) - } - - // @@protoc_insertion_point(class_scope:com.tnp.search.ColumnInfo) - private static final com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo(); - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColumnInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ColumnInfo(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RowOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.tnp.search.Row) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .com.tnp.search.Column columns = 1; - */ - java.util.List - getColumnsList(); - /** - * repeated .com.tnp.search.Column columns = 1; - */ - com.pingcap.kafkareader.proto.BinLogInfo.Column getColumns(int index); - /** - * repeated .com.tnp.search.Column columns = 1; - */ - int getColumnsCount(); - /** - * repeated .com.tnp.search.Column columns = 1; - */ - java.util.List - getColumnsOrBuilderList(); - /** - * repeated .com.tnp.search.Column columns = 1; - */ - com.pingcap.kafkareader.proto.BinLogInfo.ColumnOrBuilder getColumnsOrBuilder( - int index); - } - /** - * Protobuf type {@code com.tnp.search.Row} - */ - public static final class Row extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.tnp.search.Row) - RowOrBuilder { - private static final long serialVersionUID = 0L; - // Use Row.newBuilder() to construct. - private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Row() { - columns_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Row(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Row( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - columns_.add( - input.readMessage(com.pingcap.kafkareader.proto.BinLogInfo.Column.PARSER, extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Row_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.Row.class, com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder.class); - } - - public static final int COLUMNS_FIELD_NUMBER = 1; - private java.util.List columns_; - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public java.util.List getColumnsList() { - return columns_; - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public java.util.List - getColumnsOrBuilderList() { - return columns_; - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public int getColumnsCount() { - return columns_.size(); - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Column getColumns(int index) { - return columns_.get(index); - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnOrBuilder getColumnsOrBuilder( - int index) { - return columns_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < columns_.size(); i++) { - output.writeMessage(1, columns_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, columns_.get(i)); - } - size += unknownFields.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.pingcap.kafkareader.proto.BinLogInfo.Row)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.BinLogInfo.Row other = (com.pingcap.kafkareader.proto.BinLogInfo.Row) obj; - - if (!getColumnsList() - .equals(other.getColumnsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getColumnsCount() > 0) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getColumnsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.Row parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Row parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Row parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Row parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Row parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Row parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Row parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Row 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.pingcap.kafkareader.proto.BinLogInfo.Row parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Row 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.pingcap.kafkareader.proto.BinLogInfo.Row parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Row 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.pingcap.kafkareader.proto.BinLogInfo.Row 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; - } - /** - * Protobuf type {@code com.tnp.search.Row} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:com.tnp.search.Row) - com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Row_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.Row.class, com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.BinLogInfo.Row.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getColumnsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - columnsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Row_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Row getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Row build() { - com.pingcap.kafkareader.proto.BinLogInfo.Row result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Row buildPartial() { - com.pingcap.kafkareader.proto.BinLogInfo.Row result = new com.pingcap.kafkareader.proto.BinLogInfo.Row(this); - int from_bitField0_ = bitField0_; - if (columnsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.columns_ = columns_; - } else { - result.columns_ = columnsBuilder_.build(); - } - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.BinLogInfo.Row) { - return mergeFrom((com.pingcap.kafkareader.proto.BinLogInfo.Row)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.BinLogInfo.Row other) { - if (other == com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance()) return this; - if (columnsBuilder_ == null) { - if (!other.columns_.isEmpty()) { - if (columns_.isEmpty()) { - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureColumnsIsMutable(); - columns_.addAll(other.columns_); - } - onChanged(); - } - } else { - if (!other.columns_.isEmpty()) { - if (columnsBuilder_.isEmpty()) { - columnsBuilder_.dispose(); - columnsBuilder_ = null; - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - columnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnsFieldBuilder() : null; - } else { - columnsBuilder_.addAllMessages(other.columns_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - 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 { - com.pingcap.kafkareader.proto.BinLogInfo.Row parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.BinLogInfo.Row) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List columns_ = - java.util.Collections.emptyList(); - private void ensureColumnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(columns_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Column, com.pingcap.kafkareader.proto.BinLogInfo.Column.Builder, com.pingcap.kafkareader.proto.BinLogInfo.ColumnOrBuilder> columnsBuilder_; - - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public java.util.List getColumnsList() { - if (columnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(columns_); - } else { - return columnsBuilder_.getMessageList(); - } - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public int getColumnsCount() { - if (columnsBuilder_ == null) { - return columns_.size(); - } else { - return columnsBuilder_.getCount(); - } - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Column getColumns(int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessage(index); - } - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public Builder setColumns( - int index, com.pingcap.kafkareader.proto.BinLogInfo.Column value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.set(index, value); - onChanged(); - } else { - columnsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public Builder setColumns( - int index, com.pingcap.kafkareader.proto.BinLogInfo.Column.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.set(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public Builder addColumns(com.pingcap.kafkareader.proto.BinLogInfo.Column value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(value); - onChanged(); - } else { - columnsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public Builder addColumns( - int index, com.pingcap.kafkareader.proto.BinLogInfo.Column value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(index, value); - onChanged(); - } else { - columnsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public Builder addColumns( - com.pingcap.kafkareader.proto.BinLogInfo.Column.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public Builder addColumns( - int index, com.pingcap.kafkareader.proto.BinLogInfo.Column.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public Builder addAllColumns( - java.lang.Iterable values) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columns_); - onChanged(); - } else { - columnsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public Builder clearColumns() { - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - columnsBuilder_.clear(); - } - return this; - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public Builder removeColumns(int index) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.remove(index); - onChanged(); - } else { - columnsBuilder_.remove(index); - } - return this; - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Column.Builder getColumnsBuilder( - int index) { - return getColumnsFieldBuilder().getBuilder(index); - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnOrBuilder getColumnsOrBuilder( - int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); } else { - return columnsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public java.util.List - getColumnsOrBuilderList() { - if (columnsBuilder_ != null) { - return columnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(columns_); - } - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Column.Builder addColumnsBuilder() { - return getColumnsFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.BinLogInfo.Column.getDefaultInstance()); - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Column.Builder addColumnsBuilder( - int index) { - return getColumnsFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.BinLogInfo.Column.getDefaultInstance()); - } - /** - * repeated .com.tnp.search.Column columns = 1; - */ - public java.util.List - getColumnsBuilderList() { - return getColumnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Column, com.pingcap.kafkareader.proto.BinLogInfo.Column.Builder, com.pingcap.kafkareader.proto.BinLogInfo.ColumnOrBuilder> - getColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Column, com.pingcap.kafkareader.proto.BinLogInfo.Column.Builder, com.pingcap.kafkareader.proto.BinLogInfo.ColumnOrBuilder>( - columns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - columns_ = null; - } - return columnsBuilder_; - } - @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:com.tnp.search.Row) - } - - // @@protoc_insertion_point(class_scope:com.tnp.search.Row) - private static final com.pingcap.kafkareader.proto.BinLogInfo.Row DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.BinLogInfo.Row(); - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.Row getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Row parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Row(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.BinLogInfo.Row getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TableOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.tnp.search.Table) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string schema_name = 1; - */ - boolean hasSchemaName(); - /** - * optional string schema_name = 1; - */ - java.lang.String getSchemaName(); - /** - * optional string schema_name = 1; - */ - com.google.protobuf.ByteString - getSchemaNameBytes(); - - /** - * optional string table_name = 2; - */ - boolean hasTableName(); - /** - * optional string table_name = 2; - */ - java.lang.String getTableName(); - /** - * optional string table_name = 2; - */ - com.google.protobuf.ByteString - getTableNameBytes(); - - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - java.util.List - getColumnInfoList(); - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo getColumnInfo(int index); - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - int getColumnInfoCount(); - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - java.util.List - getColumnInfoOrBuilderList(); - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfoOrBuilder getColumnInfoOrBuilder( - int index); - - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - java.util.List - getMutationsList(); - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation getMutations(int index); - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - int getMutationsCount(); - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - java.util.List - getMutationsOrBuilderList(); - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - com.pingcap.kafkareader.proto.BinLogInfo.TableMutationOrBuilder getMutationsOrBuilder( - int index); - } - /** - *
-   *  Table contains mutations in a table.
-   * 
- * - * Protobuf type {@code com.tnp.search.Table} - */ - public static final class Table extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.tnp.search.Table) - TableOrBuilder { - private static final long serialVersionUID = 0L; - // Use Table.newBuilder() to construct. - private Table(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Table() { - schemaName_ = ""; - tableName_ = ""; - columnInfo_ = java.util.Collections.emptyList(); - mutations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Table(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Table( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - schemaName_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - tableName_ = bs; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - columnInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - columnInfo_.add( - input.readMessage(com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.PARSER, extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - mutations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - mutations_.add( - input.readMessage(com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.PARSER, extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - columnInfo_ = java.util.Collections.unmodifiableList(columnInfo_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - mutations_ = java.util.Collections.unmodifiableList(mutations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Table_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Table_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.Table.class, com.pingcap.kafkareader.proto.BinLogInfo.Table.Builder.class); - } - - private int bitField0_; - public static final int SCHEMA_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object schemaName_; - /** - * optional string schema_name = 1; - */ - public boolean hasSchemaName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string schema_name = 1; - */ - public java.lang.String getSchemaName() { - java.lang.Object ref = schemaName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - schemaName_ = s; - } - return s; - } - } - /** - * optional string schema_name = 1; - */ - public com.google.protobuf.ByteString - getSchemaNameBytes() { - java.lang.Object ref = schemaName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemaName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TABLE_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object tableName_; - /** - * optional string table_name = 2; - */ - public boolean hasTableName() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string table_name = 2; - */ - public java.lang.String getTableName() { - java.lang.Object ref = tableName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tableName_ = s; - } - return s; - } - } - /** - * optional string table_name = 2; - */ - public com.google.protobuf.ByteString - getTableNameBytes() { - java.lang.Object ref = tableName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COLUMN_INFO_FIELD_NUMBER = 3; - private java.util.List columnInfo_; - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public java.util.List getColumnInfoList() { - return columnInfo_; - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public java.util.List - getColumnInfoOrBuilderList() { - return columnInfo_; - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public int getColumnInfoCount() { - return columnInfo_.size(); - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo getColumnInfo(int index) { - return columnInfo_.get(index); - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfoOrBuilder getColumnInfoOrBuilder( - int index) { - return columnInfo_.get(index); - } - - public static final int MUTATIONS_FIELD_NUMBER = 4; - private java.util.List mutations_; - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public java.util.List getMutationsList() { - return mutations_; - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public java.util.List - getMutationsOrBuilderList() { - return mutations_; - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public int getMutationsCount() { - return mutations_.size(); - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.TableMutation getMutations(int index) { - return mutations_.get(index); - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.TableMutationOrBuilder getMutationsOrBuilder( - int index) { - return mutations_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - for (int i = 0; i < getMutationsCount(); i++) { - if (!getMutations(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaName_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableName_); - } - for (int i = 0; i < columnInfo_.size(); i++) { - output.writeMessage(3, columnInfo_.get(i)); - } - for (int i = 0; i < mutations_.size(); i++) { - output.writeMessage(4, mutations_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schemaName_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableName_); - } - for (int i = 0; i < columnInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, columnInfo_.get(i)); - } - for (int i = 0; i < mutations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, mutations_.get(i)); - } - size += unknownFields.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.pingcap.kafkareader.proto.BinLogInfo.Table)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.BinLogInfo.Table other = (com.pingcap.kafkareader.proto.BinLogInfo.Table) obj; - - if (hasSchemaName() != other.hasSchemaName()) return false; - if (hasSchemaName()) { - if (!getSchemaName() - .equals(other.getSchemaName())) return false; - } - if (hasTableName() != other.hasTableName()) return false; - if (hasTableName()) { - if (!getTableName() - .equals(other.getTableName())) return false; - } - if (!getColumnInfoList() - .equals(other.getColumnInfoList())) return false; - if (!getMutationsList() - .equals(other.getMutationsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSchemaName()) { - hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; - hash = (53 * hash) + getSchemaName().hashCode(); - } - if (hasTableName()) { - hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTableName().hashCode(); - } - if (getColumnInfoCount() > 0) { - hash = (37 * hash) + COLUMN_INFO_FIELD_NUMBER; - hash = (53 * hash) + getColumnInfoList().hashCode(); - } - if (getMutationsCount() > 0) { - hash = (37 * hash) + MUTATIONS_FIELD_NUMBER; - hash = (53 * hash) + getMutationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.Table parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Table parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Table parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Table parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Table parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Table parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Table parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Table 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.pingcap.kafkareader.proto.BinLogInfo.Table parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Table 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.pingcap.kafkareader.proto.BinLogInfo.Table parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Table 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.pingcap.kafkareader.proto.BinLogInfo.Table 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; - } - /** - *
-     *  Table contains mutations in a table.
-     * 
- * - * Protobuf type {@code com.tnp.search.Table} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:com.tnp.search.Table) - com.pingcap.kafkareader.proto.BinLogInfo.TableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Table_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Table_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.Table.class, com.pingcap.kafkareader.proto.BinLogInfo.Table.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.BinLogInfo.Table.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getColumnInfoFieldBuilder(); - getMutationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - schemaName_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - tableName_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - if (columnInfoBuilder_ == null) { - columnInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - columnInfoBuilder_.clear(); - } - if (mutationsBuilder_ == null) { - mutations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - mutationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Table_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Table getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.Table.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Table build() { - com.pingcap.kafkareader.proto.BinLogInfo.Table result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Table buildPartial() { - com.pingcap.kafkareader.proto.BinLogInfo.Table result = new com.pingcap.kafkareader.proto.BinLogInfo.Table(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.schemaName_ = schemaName_; - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.tableName_ = tableName_; - if (columnInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - columnInfo_ = java.util.Collections.unmodifiableList(columnInfo_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.columnInfo_ = columnInfo_; - } else { - result.columnInfo_ = columnInfoBuilder_.build(); - } - if (mutationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - mutations_ = java.util.Collections.unmodifiableList(mutations_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.mutations_ = mutations_; - } else { - result.mutations_ = mutationsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.BinLogInfo.Table) { - return mergeFrom((com.pingcap.kafkareader.proto.BinLogInfo.Table)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.BinLogInfo.Table other) { - if (other == com.pingcap.kafkareader.proto.BinLogInfo.Table.getDefaultInstance()) return this; - if (other.hasSchemaName()) { - bitField0_ |= 0x00000001; - schemaName_ = other.schemaName_; - onChanged(); - } - if (other.hasTableName()) { - bitField0_ |= 0x00000002; - tableName_ = other.tableName_; - onChanged(); - } - if (columnInfoBuilder_ == null) { - if (!other.columnInfo_.isEmpty()) { - if (columnInfo_.isEmpty()) { - columnInfo_ = other.columnInfo_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureColumnInfoIsMutable(); - columnInfo_.addAll(other.columnInfo_); - } - onChanged(); - } - } else { - if (!other.columnInfo_.isEmpty()) { - if (columnInfoBuilder_.isEmpty()) { - columnInfoBuilder_.dispose(); - columnInfoBuilder_ = null; - columnInfo_ = other.columnInfo_; - bitField0_ = (bitField0_ & ~0x00000004); - columnInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnInfoFieldBuilder() : null; - } else { - columnInfoBuilder_.addAllMessages(other.columnInfo_); - } - } - } - if (mutationsBuilder_ == null) { - if (!other.mutations_.isEmpty()) { - if (mutations_.isEmpty()) { - mutations_ = other.mutations_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureMutationsIsMutable(); - mutations_.addAll(other.mutations_); - } - onChanged(); - } - } else { - if (!other.mutations_.isEmpty()) { - if (mutationsBuilder_.isEmpty()) { - mutationsBuilder_.dispose(); - mutationsBuilder_ = null; - mutations_ = other.mutations_; - bitField0_ = (bitField0_ & ~0x00000008); - mutationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMutationsFieldBuilder() : null; - } else { - mutationsBuilder_.addAllMessages(other.mutations_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getMutationsCount(); i++) { - if (!getMutations(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pingcap.kafkareader.proto.BinLogInfo.Table parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.BinLogInfo.Table) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object schemaName_ = ""; - /** - * optional string schema_name = 1; - */ - public boolean hasSchemaName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string schema_name = 1; - */ - public java.lang.String getSchemaName() { - java.lang.Object ref = schemaName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - schemaName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string schema_name = 1; - */ - public com.google.protobuf.ByteString - getSchemaNameBytes() { - java.lang.Object ref = schemaName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemaName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string schema_name = 1; - */ - public Builder setSchemaName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - schemaName_ = value; - onChanged(); - return this; - } - /** - * optional string schema_name = 1; - */ - public Builder clearSchemaName() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaName_ = getDefaultInstance().getSchemaName(); - onChanged(); - return this; - } - /** - * optional string schema_name = 1; - */ - public Builder setSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - schemaName_ = value; - onChanged(); - return this; - } - - private java.lang.Object tableName_ = ""; - /** - * optional string table_name = 2; - */ - public boolean hasTableName() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string table_name = 2; - */ - public java.lang.String getTableName() { - java.lang.Object ref = tableName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tableName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string table_name = 2; - */ - public com.google.protobuf.ByteString - getTableNameBytes() { - java.lang.Object ref = tableName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string table_name = 2; - */ - public Builder setTableName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - tableName_ = value; - onChanged(); - return this; - } - /** - * optional string table_name = 2; - */ - public Builder clearTableName() { - bitField0_ = (bitField0_ & ~0x00000002); - tableName_ = getDefaultInstance().getTableName(); - onChanged(); - return this; - } - /** - * optional string table_name = 2; - */ - public Builder setTableNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - tableName_ = value; - onChanged(); - return this; - } - - private java.util.List columnInfo_ = - java.util.Collections.emptyList(); - private void ensureColumnInfoIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - columnInfo_ = new java.util.ArrayList(columnInfo_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.Builder, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfoOrBuilder> columnInfoBuilder_; - - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public java.util.List getColumnInfoList() { - if (columnInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(columnInfo_); - } else { - return columnInfoBuilder_.getMessageList(); - } - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public int getColumnInfoCount() { - if (columnInfoBuilder_ == null) { - return columnInfo_.size(); - } else { - return columnInfoBuilder_.getCount(); - } - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo getColumnInfo(int index) { - if (columnInfoBuilder_ == null) { - return columnInfo_.get(index); - } else { - return columnInfoBuilder_.getMessage(index); - } - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public Builder setColumnInfo( - int index, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo value) { - if (columnInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnInfoIsMutable(); - columnInfo_.set(index, value); - onChanged(); - } else { - columnInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public Builder setColumnInfo( - int index, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.Builder builderForValue) { - if (columnInfoBuilder_ == null) { - ensureColumnInfoIsMutable(); - columnInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - columnInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public Builder addColumnInfo(com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo value) { - if (columnInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnInfoIsMutable(); - columnInfo_.add(value); - onChanged(); - } else { - columnInfoBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public Builder addColumnInfo( - int index, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo value) { - if (columnInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnInfoIsMutable(); - columnInfo_.add(index, value); - onChanged(); - } else { - columnInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public Builder addColumnInfo( - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.Builder builderForValue) { - if (columnInfoBuilder_ == null) { - ensureColumnInfoIsMutable(); - columnInfo_.add(builderForValue.build()); - onChanged(); - } else { - columnInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public Builder addColumnInfo( - int index, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.Builder builderForValue) { - if (columnInfoBuilder_ == null) { - ensureColumnInfoIsMutable(); - columnInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - columnInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public Builder addAllColumnInfo( - java.lang.Iterable values) { - if (columnInfoBuilder_ == null) { - ensureColumnInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columnInfo_); - onChanged(); - } else { - columnInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public Builder clearColumnInfo() { - if (columnInfoBuilder_ == null) { - columnInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - columnInfoBuilder_.clear(); - } - return this; - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public Builder removeColumnInfo(int index) { - if (columnInfoBuilder_ == null) { - ensureColumnInfoIsMutable(); - columnInfo_.remove(index); - onChanged(); - } else { - columnInfoBuilder_.remove(index); - } - return this; - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.Builder getColumnInfoBuilder( - int index) { - return getColumnInfoFieldBuilder().getBuilder(index); - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfoOrBuilder getColumnInfoOrBuilder( - int index) { - if (columnInfoBuilder_ == null) { - return columnInfo_.get(index); } else { - return columnInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public java.util.List - getColumnInfoOrBuilderList() { - if (columnInfoBuilder_ != null) { - return columnInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(columnInfo_); - } - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.Builder addColumnInfoBuilder() { - return getColumnInfoFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.getDefaultInstance()); - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.Builder addColumnInfoBuilder( - int index) { - return getColumnInfoFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.getDefaultInstance()); - } - /** - * repeated .com.tnp.search.ColumnInfo column_info = 3; - */ - public java.util.List - getColumnInfoBuilderList() { - return getColumnInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.Builder, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfoOrBuilder> - getColumnInfoFieldBuilder() { - if (columnInfoBuilder_ == null) { - columnInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfo.Builder, com.pingcap.kafkareader.proto.BinLogInfo.ColumnInfoOrBuilder>( - columnInfo_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - columnInfo_ = null; - } - return columnInfoBuilder_; - } - - private java.util.List mutations_ = - java.util.Collections.emptyList(); - private void ensureMutationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - mutations_ = new java.util.ArrayList(mutations_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation, com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.Builder, com.pingcap.kafkareader.proto.BinLogInfo.TableMutationOrBuilder> mutationsBuilder_; - - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public java.util.List getMutationsList() { - if (mutationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(mutations_); - } else { - return mutationsBuilder_.getMessageList(); - } - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public int getMutationsCount() { - if (mutationsBuilder_ == null) { - return mutations_.size(); - } else { - return mutationsBuilder_.getCount(); - } - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.TableMutation getMutations(int index) { - if (mutationsBuilder_ == null) { - return mutations_.get(index); - } else { - return mutationsBuilder_.getMessage(index); - } - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public Builder setMutations( - int index, com.pingcap.kafkareader.proto.BinLogInfo.TableMutation value) { - if (mutationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMutationsIsMutable(); - mutations_.set(index, value); - onChanged(); - } else { - mutationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public Builder setMutations( - int index, com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.Builder builderForValue) { - if (mutationsBuilder_ == null) { - ensureMutationsIsMutable(); - mutations_.set(index, builderForValue.build()); - onChanged(); - } else { - mutationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public Builder addMutations(com.pingcap.kafkareader.proto.BinLogInfo.TableMutation value) { - if (mutationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMutationsIsMutable(); - mutations_.add(value); - onChanged(); - } else { - mutationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public Builder addMutations( - int index, com.pingcap.kafkareader.proto.BinLogInfo.TableMutation value) { - if (mutationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMutationsIsMutable(); - mutations_.add(index, value); - onChanged(); - } else { - mutationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public Builder addMutations( - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.Builder builderForValue) { - if (mutationsBuilder_ == null) { - ensureMutationsIsMutable(); - mutations_.add(builderForValue.build()); - onChanged(); - } else { - mutationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public Builder addMutations( - int index, com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.Builder builderForValue) { - if (mutationsBuilder_ == null) { - ensureMutationsIsMutable(); - mutations_.add(index, builderForValue.build()); - onChanged(); - } else { - mutationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public Builder addAllMutations( - java.lang.Iterable values) { - if (mutationsBuilder_ == null) { - ensureMutationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mutations_); - onChanged(); - } else { - mutationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public Builder clearMutations() { - if (mutationsBuilder_ == null) { - mutations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - mutationsBuilder_.clear(); - } - return this; - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public Builder removeMutations(int index) { - if (mutationsBuilder_ == null) { - ensureMutationsIsMutable(); - mutations_.remove(index); - onChanged(); - } else { - mutationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.Builder getMutationsBuilder( - int index) { - return getMutationsFieldBuilder().getBuilder(index); - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.TableMutationOrBuilder getMutationsOrBuilder( - int index) { - if (mutationsBuilder_ == null) { - return mutations_.get(index); } else { - return mutationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public java.util.List - getMutationsOrBuilderList() { - if (mutationsBuilder_ != null) { - return mutationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(mutations_); - } - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.Builder addMutationsBuilder() { - return getMutationsFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.getDefaultInstance()); - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.Builder addMutationsBuilder( - int index) { - return getMutationsFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.getDefaultInstance()); - } - /** - * repeated .com.tnp.search.TableMutation mutations = 4; - */ - public java.util.List - getMutationsBuilderList() { - return getMutationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation, com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.Builder, com.pingcap.kafkareader.proto.BinLogInfo.TableMutationOrBuilder> - getMutationsFieldBuilder() { - if (mutationsBuilder_ == null) { - mutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation, com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.Builder, com.pingcap.kafkareader.proto.BinLogInfo.TableMutationOrBuilder>( - mutations_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - mutations_ = null; - } - return mutationsBuilder_; - } - @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:com.tnp.search.Table) - } - - // @@protoc_insertion_point(class_scope:com.tnp.search.Table) - private static final com.pingcap.kafkareader.proto.BinLogInfo.Table DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.BinLogInfo.Table(); - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.Table getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Table parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Table(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.BinLogInfo.Table getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TableMutationOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.tnp.search.TableMutation) - com.google.protobuf.MessageOrBuilder { - - /** - * required .com.tnp.search.MutationType type = 1; - */ - boolean hasType(); - /** - * required .com.tnp.search.MutationType type = 1; - */ - com.pingcap.kafkareader.proto.BinLogInfo.MutationType getType(); - - /** - *
-     *update之后新的值
-     * 
- * - * required .com.tnp.search.Row row = 2; - */ - boolean hasRow(); - /** - *
-     *update之后新的值
-     * 
- * - * required .com.tnp.search.Row row = 2; - */ - com.pingcap.kafkareader.proto.BinLogInfo.Row getRow(); - /** - *
-     *update之后新的值
-     * 
- * - * required .com.tnp.search.Row row = 2; - */ - com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder getRowOrBuilder(); - - /** - *
-     * for Update MutationType only[update之前的老的值]
-     * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - boolean hasChangeRow(); - /** - *
-     * for Update MutationType only[update之前的老的值]
-     * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - com.pingcap.kafkareader.proto.BinLogInfo.Row getChangeRow(); - /** - *
-     * for Update MutationType only[update之前的老的值]
-     * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder getChangeRowOrBuilder(); - } - /** - * Protobuf type {@code com.tnp.search.TableMutation} - */ - public static final class TableMutation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.tnp.search.TableMutation) - TableMutationOrBuilder { - private static final long serialVersionUID = 0L; - // Use TableMutation.newBuilder() to construct. - private TableMutation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TableMutation() { - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TableMutation(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TableMutation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - com.pingcap.kafkareader.proto.BinLogInfo.MutationType value = com.pingcap.kafkareader.proto.BinLogInfo.MutationType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = rawValue; - } - break; - } - case 18: { - com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) != 0)) { - subBuilder = row_.toBuilder(); - } - row_ = input.readMessage(com.pingcap.kafkareader.proto.BinLogInfo.Row.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(row_); - row_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) != 0)) { - subBuilder = changeRow_.toBuilder(); - } - changeRow_ = input.readMessage(com.pingcap.kafkareader.proto.BinLogInfo.Row.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(changeRow_); - changeRow_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_TableMutation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_TableMutation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.class, com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.Builder.class); - } - - private int bitField0_; - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * required .com.tnp.search.MutationType type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required .com.tnp.search.MutationType type = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.MutationType getType() { - @SuppressWarnings("deprecation") - com.pingcap.kafkareader.proto.BinLogInfo.MutationType result = com.pingcap.kafkareader.proto.BinLogInfo.MutationType.valueOf(type_); - return result == null ? com.pingcap.kafkareader.proto.BinLogInfo.MutationType.Insert : result; - } - - public static final int ROW_FIELD_NUMBER = 2; - private com.pingcap.kafkareader.proto.BinLogInfo.Row row_; - /** - *
-     *update之后新的值
-     * 
- * - * required .com.tnp.search.Row row = 2; - */ - public boolean hasRow() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     *update之后新的值
-     * 
- * - * required .com.tnp.search.Row row = 2; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Row getRow() { - return row_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance() : row_; - } - /** - *
-     *update之后新的值
-     * 
- * - * required .com.tnp.search.Row row = 2; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder getRowOrBuilder() { - return row_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance() : row_; - } - - public static final int CHANGE_ROW_FIELD_NUMBER = 3; - private com.pingcap.kafkareader.proto.BinLogInfo.Row changeRow_; - /** - *
-     * for Update MutationType only[update之前的老的值]
-     * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - public boolean hasChangeRow() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * for Update MutationType only[update之前的老的值]
-     * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Row getChangeRow() { - return changeRow_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance() : changeRow_; - } - /** - *
-     * for Update MutationType only[update之前的老的值]
-     * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder getChangeRowOrBuilder() { - return changeRow_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance() : changeRow_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRow()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, type_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getRow()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getChangeRow()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRow()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getChangeRow()); - } - size += unknownFields.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.pingcap.kafkareader.proto.BinLogInfo.TableMutation)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation other = (com.pingcap.kafkareader.proto.BinLogInfo.TableMutation) obj; - - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (type_ != other.type_) return false; - } - if (hasRow() != other.hasRow()) return false; - if (hasRow()) { - if (!getRow() - .equals(other.getRow())) return false; - } - if (hasChangeRow() != other.hasChangeRow()) return false; - if (hasChangeRow()) { - if (!getChangeRow() - .equals(other.getChangeRow())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - } - if (hasRow()) { - hash = (37 * hash) + ROW_FIELD_NUMBER; - hash = (53 * hash) + getRow().hashCode(); - } - if (hasChangeRow()) { - hash = (37 * hash) + CHANGE_ROW_FIELD_NUMBER; - hash = (53 * hash) + getChangeRow().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.TableMutation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.TableMutation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.TableMutation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.TableMutation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.TableMutation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.TableMutation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.TableMutation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.TableMutation 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.pingcap.kafkareader.proto.BinLogInfo.TableMutation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.TableMutation 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.pingcap.kafkareader.proto.BinLogInfo.TableMutation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.TableMutation 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.pingcap.kafkareader.proto.BinLogInfo.TableMutation 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; - } - /** - * Protobuf type {@code com.tnp.search.TableMutation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:com.tnp.search.TableMutation) - com.pingcap.kafkareader.proto.BinLogInfo.TableMutationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_TableMutation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_TableMutation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.class, com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRowFieldBuilder(); - getChangeRowFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - if (rowBuilder_ == null) { - row_ = null; - } else { - rowBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (changeRowBuilder_ == null) { - changeRow_ = null; - } else { - changeRowBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_TableMutation_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.TableMutation getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.TableMutation build() { - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.TableMutation buildPartial() { - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation result = new com.pingcap.kafkareader.proto.BinLogInfo.TableMutation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000002) != 0)) { - if (rowBuilder_ == null) { - result.row_ = row_; - } else { - result.row_ = rowBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - if (changeRowBuilder_ == null) { - result.changeRow_ = changeRow_; - } else { - result.changeRow_ = changeRowBuilder_.build(); - } - to_bitField0_ |= 0x00000004; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.BinLogInfo.TableMutation) { - return mergeFrom((com.pingcap.kafkareader.proto.BinLogInfo.TableMutation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.BinLogInfo.TableMutation other) { - if (other == com.pingcap.kafkareader.proto.BinLogInfo.TableMutation.getDefaultInstance()) return this; - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasRow()) { - mergeRow(other.getRow()); - } - if (other.hasChangeRow()) { - mergeChangeRow(other.getChangeRow()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (!hasType()) { - return false; - } - if (!hasRow()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pingcap.kafkareader.proto.BinLogInfo.TableMutation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.BinLogInfo.TableMutation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int type_ = 0; - /** - * required .com.tnp.search.MutationType type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * required .com.tnp.search.MutationType type = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.MutationType getType() { - @SuppressWarnings("deprecation") - com.pingcap.kafkareader.proto.BinLogInfo.MutationType result = com.pingcap.kafkareader.proto.BinLogInfo.MutationType.valueOf(type_); - return result == null ? com.pingcap.kafkareader.proto.BinLogInfo.MutationType.Insert : result; - } - /** - * required .com.tnp.search.MutationType type = 1; - */ - public Builder setType(com.pingcap.kafkareader.proto.BinLogInfo.MutationType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * required .com.tnp.search.MutationType type = 1; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - onChanged(); - return this; - } - - private com.pingcap.kafkareader.proto.BinLogInfo.Row row_; - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Row, com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder, com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder> rowBuilder_; - /** - *
-       *update之后新的值
-       * 
- * - * required .com.tnp.search.Row row = 2; - */ - public boolean hasRow() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       *update之后新的值
-       * 
- * - * required .com.tnp.search.Row row = 2; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Row getRow() { - if (rowBuilder_ == null) { - return row_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance() : row_; - } else { - return rowBuilder_.getMessage(); - } - } - /** - *
-       *update之后新的值
-       * 
- * - * required .com.tnp.search.Row row = 2; - */ - public Builder setRow(com.pingcap.kafkareader.proto.BinLogInfo.Row value) { - if (rowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - row_ = value; - onChanged(); - } else { - rowBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - *
-       *update之后新的值
-       * 
- * - * required .com.tnp.search.Row row = 2; - */ - public Builder setRow( - com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder builderForValue) { - if (rowBuilder_ == null) { - row_ = builderForValue.build(); - onChanged(); - } else { - rowBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - *
-       *update之后新的值
-       * 
- * - * required .com.tnp.search.Row row = 2; - */ - public Builder mergeRow(com.pingcap.kafkareader.proto.BinLogInfo.Row value) { - if (rowBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - row_ != null && - row_ != com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance()) { - row_ = - com.pingcap.kafkareader.proto.BinLogInfo.Row.newBuilder(row_).mergeFrom(value).buildPartial(); - } else { - row_ = value; - } - onChanged(); - } else { - rowBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - *
-       *update之后新的值
-       * 
- * - * required .com.tnp.search.Row row = 2; - */ - public Builder clearRow() { - if (rowBuilder_ == null) { - row_ = null; - onChanged(); - } else { - rowBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - *
-       *update之后新的值
-       * 
- * - * required .com.tnp.search.Row row = 2; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder getRowBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getRowFieldBuilder().getBuilder(); - } - /** - *
-       *update之后新的值
-       * 
- * - * required .com.tnp.search.Row row = 2; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder getRowOrBuilder() { - if (rowBuilder_ != null) { - return rowBuilder_.getMessageOrBuilder(); - } else { - return row_ == null ? - com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance() : row_; - } - } - /** - *
-       *update之后新的值
-       * 
- * - * required .com.tnp.search.Row row = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Row, com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder, com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder> - getRowFieldBuilder() { - if (rowBuilder_ == null) { - rowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Row, com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder, com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder>( - getRow(), - getParentForChildren(), - isClean()); - row_ = null; - } - return rowBuilder_; - } - - private com.pingcap.kafkareader.proto.BinLogInfo.Row changeRow_; - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Row, com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder, com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder> changeRowBuilder_; - /** - *
-       * for Update MutationType only[update之前的老的值]
-       * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - public boolean hasChangeRow() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * for Update MutationType only[update之前的老的值]
-       * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Row getChangeRow() { - if (changeRowBuilder_ == null) { - return changeRow_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance() : changeRow_; - } else { - return changeRowBuilder_.getMessage(); - } - } - /** - *
-       * for Update MutationType only[update之前的老的值]
-       * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - public Builder setChangeRow(com.pingcap.kafkareader.proto.BinLogInfo.Row value) { - if (changeRowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - changeRow_ = value; - onChanged(); - } else { - changeRowBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - *
-       * for Update MutationType only[update之前的老的值]
-       * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - public Builder setChangeRow( - com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder builderForValue) { - if (changeRowBuilder_ == null) { - changeRow_ = builderForValue.build(); - onChanged(); - } else { - changeRowBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - *
-       * for Update MutationType only[update之前的老的值]
-       * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - public Builder mergeChangeRow(com.pingcap.kafkareader.proto.BinLogInfo.Row value) { - if (changeRowBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - changeRow_ != null && - changeRow_ != com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance()) { - changeRow_ = - com.pingcap.kafkareader.proto.BinLogInfo.Row.newBuilder(changeRow_).mergeFrom(value).buildPartial(); - } else { - changeRow_ = value; - } - onChanged(); - } else { - changeRowBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - *
-       * for Update MutationType only[update之前的老的值]
-       * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - public Builder clearChangeRow() { - if (changeRowBuilder_ == null) { - changeRow_ = null; - onChanged(); - } else { - changeRowBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - *
-       * for Update MutationType only[update之前的老的值]
-       * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder getChangeRowBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getChangeRowFieldBuilder().getBuilder(); - } - /** - *
-       * for Update MutationType only[update之前的老的值]
-       * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder getChangeRowOrBuilder() { - if (changeRowBuilder_ != null) { - return changeRowBuilder_.getMessageOrBuilder(); - } else { - return changeRow_ == null ? - com.pingcap.kafkareader.proto.BinLogInfo.Row.getDefaultInstance() : changeRow_; - } - } - /** - *
-       * for Update MutationType only[update之前的老的值]
-       * 
- * - * optional .com.tnp.search.Row change_row = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Row, com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder, com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder> - getChangeRowFieldBuilder() { - if (changeRowBuilder_ == null) { - changeRowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Row, com.pingcap.kafkareader.proto.BinLogInfo.Row.Builder, com.pingcap.kafkareader.proto.BinLogInfo.RowOrBuilder>( - getChangeRow(), - getParentForChildren(), - isClean()); - changeRow_ = null; - } - return changeRowBuilder_; - } - @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:com.tnp.search.TableMutation) - } - - // @@protoc_insertion_point(class_scope:com.tnp.search.TableMutation) - private static final com.pingcap.kafkareader.proto.BinLogInfo.TableMutation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.BinLogInfo.TableMutation(); - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.TableMutation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableMutation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TableMutation(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.BinLogInfo.TableMutation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DMLDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.tnp.search.DMLData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * tables contains all the table changes.
-     * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - java.util.List - getTablesList(); - /** - *
-     * tables contains all the table changes.
-     * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - com.pingcap.kafkareader.proto.BinLogInfo.Table getTables(int index); - /** - *
-     * tables contains all the table changes.
-     * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - int getTablesCount(); - /** - *
-     * tables contains all the table changes.
-     * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - java.util.List - getTablesOrBuilderList(); - /** - *
-     * tables contains all the table changes.
-     * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - com.pingcap.kafkareader.proto.BinLogInfo.TableOrBuilder getTablesOrBuilder( - int index); - } - /** - * Protobuf type {@code com.tnp.search.DMLData} - */ - public static final class DMLData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.tnp.search.DMLData) - DMLDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use DMLData.newBuilder() to construct. - private DMLData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DMLData() { - tables_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DMLData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DMLData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tables_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tables_.add( - input.readMessage(com.pingcap.kafkareader.proto.BinLogInfo.Table.PARSER, extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - tables_ = java.util.Collections.unmodifiableList(tables_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_DMLData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_DMLData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.DMLData.class, com.pingcap.kafkareader.proto.BinLogInfo.DMLData.Builder.class); - } - - public static final int TABLES_FIELD_NUMBER = 1; - private java.util.List tables_; - /** - *
-     * tables contains all the table changes.
-     * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public java.util.List getTablesList() { - return tables_; - } - /** - *
-     * tables contains all the table changes.
-     * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public java.util.List - getTablesOrBuilderList() { - return tables_; - } - /** - *
-     * tables contains all the table changes.
-     * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public int getTablesCount() { - return tables_.size(); - } - /** - *
-     * tables contains all the table changes.
-     * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Table getTables(int index) { - return tables_.get(index); - } - /** - *
-     * tables contains all the table changes.
-     * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.TableOrBuilder getTablesOrBuilder( - int index) { - return tables_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - for (int i = 0; i < getTablesCount(); i++) { - if (!getTables(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < tables_.size(); i++) { - output.writeMessage(1, tables_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tables_.get(i)); - } - size += unknownFields.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.pingcap.kafkareader.proto.BinLogInfo.DMLData)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.BinLogInfo.DMLData other = (com.pingcap.kafkareader.proto.BinLogInfo.DMLData) obj; - - if (!getTablesList() - .equals(other.getTablesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTablesCount() > 0) { - hash = (37 * hash) + TABLES_FIELD_NUMBER; - hash = (53 * hash) + getTablesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.DMLData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DMLData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DMLData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DMLData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DMLData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DMLData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DMLData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DMLData 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.pingcap.kafkareader.proto.BinLogInfo.DMLData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DMLData 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.pingcap.kafkareader.proto.BinLogInfo.DMLData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DMLData 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.pingcap.kafkareader.proto.BinLogInfo.DMLData 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; - } - /** - * Protobuf type {@code com.tnp.search.DMLData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:com.tnp.search.DMLData) - com.pingcap.kafkareader.proto.BinLogInfo.DMLDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_DMLData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_DMLData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.DMLData.class, com.pingcap.kafkareader.proto.BinLogInfo.DMLData.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.BinLogInfo.DMLData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTablesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tablesBuilder_ == null) { - tables_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tablesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_DMLData_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.DMLData getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.DMLData.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.DMLData build() { - com.pingcap.kafkareader.proto.BinLogInfo.DMLData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.DMLData buildPartial() { - com.pingcap.kafkareader.proto.BinLogInfo.DMLData result = new com.pingcap.kafkareader.proto.BinLogInfo.DMLData(this); - int from_bitField0_ = bitField0_; - if (tablesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tables_ = java.util.Collections.unmodifiableList(tables_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tables_ = tables_; - } else { - result.tables_ = tablesBuilder_.build(); - } - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.BinLogInfo.DMLData) { - return mergeFrom((com.pingcap.kafkareader.proto.BinLogInfo.DMLData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.BinLogInfo.DMLData other) { - if (other == com.pingcap.kafkareader.proto.BinLogInfo.DMLData.getDefaultInstance()) return this; - if (tablesBuilder_ == null) { - if (!other.tables_.isEmpty()) { - if (tables_.isEmpty()) { - tables_ = other.tables_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTablesIsMutable(); - tables_.addAll(other.tables_); - } - onChanged(); - } - } else { - if (!other.tables_.isEmpty()) { - if (tablesBuilder_.isEmpty()) { - tablesBuilder_.dispose(); - tablesBuilder_ = null; - tables_ = other.tables_; - bitField0_ = (bitField0_ & ~0x00000001); - tablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTablesFieldBuilder() : null; - } else { - tablesBuilder_.addAllMessages(other.tables_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getTablesCount(); i++) { - if (!getTables(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pingcap.kafkareader.proto.BinLogInfo.DMLData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.BinLogInfo.DMLData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List tables_ = - java.util.Collections.emptyList(); - private void ensureTablesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tables_ = new java.util.ArrayList(tables_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Table, com.pingcap.kafkareader.proto.BinLogInfo.Table.Builder, com.pingcap.kafkareader.proto.BinLogInfo.TableOrBuilder> tablesBuilder_; - - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public java.util.List getTablesList() { - if (tablesBuilder_ == null) { - return java.util.Collections.unmodifiableList(tables_); - } else { - return tablesBuilder_.getMessageList(); - } - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public int getTablesCount() { - if (tablesBuilder_ == null) { - return tables_.size(); - } else { - return tablesBuilder_.getCount(); - } - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Table getTables(int index) { - if (tablesBuilder_ == null) { - return tables_.get(index); - } else { - return tablesBuilder_.getMessage(index); - } - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public Builder setTables( - int index, com.pingcap.kafkareader.proto.BinLogInfo.Table value) { - if (tablesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTablesIsMutable(); - tables_.set(index, value); - onChanged(); - } else { - tablesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public Builder setTables( - int index, com.pingcap.kafkareader.proto.BinLogInfo.Table.Builder builderForValue) { - if (tablesBuilder_ == null) { - ensureTablesIsMutable(); - tables_.set(index, builderForValue.build()); - onChanged(); - } else { - tablesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public Builder addTables(com.pingcap.kafkareader.proto.BinLogInfo.Table value) { - if (tablesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTablesIsMutable(); - tables_.add(value); - onChanged(); - } else { - tablesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public Builder addTables( - int index, com.pingcap.kafkareader.proto.BinLogInfo.Table value) { - if (tablesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTablesIsMutable(); - tables_.add(index, value); - onChanged(); - } else { - tablesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public Builder addTables( - com.pingcap.kafkareader.proto.BinLogInfo.Table.Builder builderForValue) { - if (tablesBuilder_ == null) { - ensureTablesIsMutable(); - tables_.add(builderForValue.build()); - onChanged(); - } else { - tablesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public Builder addTables( - int index, com.pingcap.kafkareader.proto.BinLogInfo.Table.Builder builderForValue) { - if (tablesBuilder_ == null) { - ensureTablesIsMutable(); - tables_.add(index, builderForValue.build()); - onChanged(); - } else { - tablesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public Builder addAllTables( - java.lang.Iterable values) { - if (tablesBuilder_ == null) { - ensureTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tables_); - onChanged(); - } else { - tablesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public Builder clearTables() { - if (tablesBuilder_ == null) { - tables_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tablesBuilder_.clear(); - } - return this; - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public Builder removeTables(int index) { - if (tablesBuilder_ == null) { - ensureTablesIsMutable(); - tables_.remove(index); - onChanged(); - } else { - tablesBuilder_.remove(index); - } - return this; - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Table.Builder getTablesBuilder( - int index) { - return getTablesFieldBuilder().getBuilder(index); - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.TableOrBuilder getTablesOrBuilder( - int index) { - if (tablesBuilder_ == null) { - return tables_.get(index); } else { - return tablesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public java.util.List - getTablesOrBuilderList() { - if (tablesBuilder_ != null) { - return tablesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tables_); - } - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Table.Builder addTablesBuilder() { - return getTablesFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.BinLogInfo.Table.getDefaultInstance()); - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.Table.Builder addTablesBuilder( - int index) { - return getTablesFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.BinLogInfo.Table.getDefaultInstance()); - } - /** - *
-       * tables contains all the table changes.
-       * 
- * - * repeated .com.tnp.search.Table tables = 1; - */ - public java.util.List - getTablesBuilderList() { - return getTablesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Table, com.pingcap.kafkareader.proto.BinLogInfo.Table.Builder, com.pingcap.kafkareader.proto.BinLogInfo.TableOrBuilder> - getTablesFieldBuilder() { - if (tablesBuilder_ == null) { - tablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.Table, com.pingcap.kafkareader.proto.BinLogInfo.Table.Builder, com.pingcap.kafkareader.proto.BinLogInfo.TableOrBuilder>( - tables_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - tables_ = null; - } - return tablesBuilder_; - } - @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:com.tnp.search.DMLData) - } - - // @@protoc_insertion_point(class_scope:com.tnp.search.DMLData) - private static final com.pingcap.kafkareader.proto.BinLogInfo.DMLData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.BinLogInfo.DMLData(); - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.DMLData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DMLData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DMLData(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.BinLogInfo.DMLData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DDLDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.tnp.search.DDLData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * the current database use
-     * 
- * - * optional string schema_name = 1; - */ - boolean hasSchemaName(); - /** - *
-     * the current database use
-     * 
- * - * optional string schema_name = 1; - */ - java.lang.String getSchemaName(); - /** - *
-     * the current database use
-     * 
- * - * optional string schema_name = 1; - */ - com.google.protobuf.ByteString - getSchemaNameBytes(); - - /** - *
-     * the relate table
-     * 
- * - * optional string table_name = 2; - */ - boolean hasTableName(); - /** - *
-     * the relate table
-     * 
- * - * optional string table_name = 2; - */ - java.lang.String getTableName(); - /** - *
-     * the relate table
-     * 
- * - * optional string table_name = 2; - */ - com.google.protobuf.ByteString - getTableNameBytes(); - - /** - *
-     * ddl_query is the original ddl statement query.
-     * 
- * - * optional bytes ddl_query = 3; - */ - boolean hasDdlQuery(); - /** - *
-     * ddl_query is the original ddl statement query.
-     * 
- * - * optional bytes ddl_query = 3; - */ - com.google.protobuf.ByteString getDdlQuery(); - } - /** - * Protobuf type {@code com.tnp.search.DDLData} - */ - public static final class DDLData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.tnp.search.DDLData) - DDLDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use DDLData.newBuilder() to construct. - private DDLData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DDLData() { - schemaName_ = ""; - tableName_ = ""; - ddlQuery_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DDLData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DDLData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - schemaName_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - tableName_ = bs; - break; - } - case 26: { - bitField0_ |= 0x00000004; - ddlQuery_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_DDLData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_DDLData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.DDLData.class, com.pingcap.kafkareader.proto.BinLogInfo.DDLData.Builder.class); - } - - private int bitField0_; - public static final int SCHEMA_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object schemaName_; - /** - *
-     * the current database use
-     * 
- * - * optional string schema_name = 1; - */ - public boolean hasSchemaName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * the current database use
-     * 
- * - * optional string schema_name = 1; - */ - public java.lang.String getSchemaName() { - java.lang.Object ref = schemaName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - schemaName_ = s; - } - return s; - } - } - /** - *
-     * the current database use
-     * 
- * - * optional string schema_name = 1; - */ - public com.google.protobuf.ByteString - getSchemaNameBytes() { - java.lang.Object ref = schemaName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemaName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TABLE_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object tableName_; - /** - *
-     * the relate table
-     * 
- * - * optional string table_name = 2; - */ - public boolean hasTableName() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * the relate table
-     * 
- * - * optional string table_name = 2; - */ - public java.lang.String getTableName() { - java.lang.Object ref = tableName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tableName_ = s; - } - return s; - } - } - /** - *
-     * the relate table
-     * 
- * - * optional string table_name = 2; - */ - public com.google.protobuf.ByteString - getTableNameBytes() { - java.lang.Object ref = tableName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DDL_QUERY_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString ddlQuery_; - /** - *
-     * ddl_query is the original ddl statement query.
-     * 
- * - * optional bytes ddl_query = 3; - */ - public boolean hasDdlQuery() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * ddl_query is the original ddl statement query.
-     * 
- * - * optional bytes ddl_query = 3; - */ - public com.google.protobuf.ByteString getDdlQuery() { - return ddlQuery_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaName_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableName_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeBytes(3, ddlQuery_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schemaName_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableName_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, ddlQuery_); - } - size += unknownFields.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.pingcap.kafkareader.proto.BinLogInfo.DDLData)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.BinLogInfo.DDLData other = (com.pingcap.kafkareader.proto.BinLogInfo.DDLData) obj; - - if (hasSchemaName() != other.hasSchemaName()) return false; - if (hasSchemaName()) { - if (!getSchemaName() - .equals(other.getSchemaName())) return false; - } - if (hasTableName() != other.hasTableName()) return false; - if (hasTableName()) { - if (!getTableName() - .equals(other.getTableName())) return false; - } - if (hasDdlQuery() != other.hasDdlQuery()) return false; - if (hasDdlQuery()) { - if (!getDdlQuery() - .equals(other.getDdlQuery())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSchemaName()) { - hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; - hash = (53 * hash) + getSchemaName().hashCode(); - } - if (hasTableName()) { - hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTableName().hashCode(); - } - if (hasDdlQuery()) { - hash = (37 * hash) + DDL_QUERY_FIELD_NUMBER; - hash = (53 * hash) + getDdlQuery().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.DDLData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DDLData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DDLData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DDLData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DDLData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DDLData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DDLData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DDLData 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.pingcap.kafkareader.proto.BinLogInfo.DDLData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DDLData 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.pingcap.kafkareader.proto.BinLogInfo.DDLData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.DDLData 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.pingcap.kafkareader.proto.BinLogInfo.DDLData 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; - } - /** - * Protobuf type {@code com.tnp.search.DDLData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:com.tnp.search.DDLData) - com.pingcap.kafkareader.proto.BinLogInfo.DDLDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_DDLData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_DDLData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.DDLData.class, com.pingcap.kafkareader.proto.BinLogInfo.DDLData.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.BinLogInfo.DDLData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - schemaName_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - tableName_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - ddlQuery_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_DDLData_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.DDLData getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.DDLData.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.DDLData build() { - com.pingcap.kafkareader.proto.BinLogInfo.DDLData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.DDLData buildPartial() { - com.pingcap.kafkareader.proto.BinLogInfo.DDLData result = new com.pingcap.kafkareader.proto.BinLogInfo.DDLData(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.schemaName_ = schemaName_; - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.tableName_ = tableName_; - if (((from_bitField0_ & 0x00000004) != 0)) { - to_bitField0_ |= 0x00000004; - } - result.ddlQuery_ = ddlQuery_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.BinLogInfo.DDLData) { - return mergeFrom((com.pingcap.kafkareader.proto.BinLogInfo.DDLData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.BinLogInfo.DDLData other) { - if (other == com.pingcap.kafkareader.proto.BinLogInfo.DDLData.getDefaultInstance()) return this; - if (other.hasSchemaName()) { - bitField0_ |= 0x00000001; - schemaName_ = other.schemaName_; - onChanged(); - } - if (other.hasTableName()) { - bitField0_ |= 0x00000002; - tableName_ = other.tableName_; - onChanged(); - } - if (other.hasDdlQuery()) { - setDdlQuery(other.getDdlQuery()); - } - this.mergeUnknownFields(other.unknownFields); - 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 { - com.pingcap.kafkareader.proto.BinLogInfo.DDLData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.BinLogInfo.DDLData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object schemaName_ = ""; - /** - *
-       * the current database use
-       * 
- * - * optional string schema_name = 1; - */ - public boolean hasSchemaName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * the current database use
-       * 
- * - * optional string schema_name = 1; - */ - public java.lang.String getSchemaName() { - java.lang.Object ref = schemaName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - schemaName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * the current database use
-       * 
- * - * optional string schema_name = 1; - */ - public com.google.protobuf.ByteString - getSchemaNameBytes() { - java.lang.Object ref = schemaName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemaName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * the current database use
-       * 
- * - * optional string schema_name = 1; - */ - public Builder setSchemaName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - schemaName_ = value; - onChanged(); - return this; - } - /** - *
-       * the current database use
-       * 
- * - * optional string schema_name = 1; - */ - public Builder clearSchemaName() { - bitField0_ = (bitField0_ & ~0x00000001); - schemaName_ = getDefaultInstance().getSchemaName(); - onChanged(); - return this; - } - /** - *
-       * the current database use
-       * 
- * - * optional string schema_name = 1; - */ - public Builder setSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - schemaName_ = value; - onChanged(); - return this; - } - - private java.lang.Object tableName_ = ""; - /** - *
-       * the relate table
-       * 
- * - * optional string table_name = 2; - */ - public boolean hasTableName() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * the relate table
-       * 
- * - * optional string table_name = 2; - */ - public java.lang.String getTableName() { - java.lang.Object ref = tableName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - tableName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * the relate table
-       * 
- * - * optional string table_name = 2; - */ - public com.google.protobuf.ByteString - getTableNameBytes() { - java.lang.Object ref = tableName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * the relate table
-       * 
- * - * optional string table_name = 2; - */ - public Builder setTableName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - tableName_ = value; - onChanged(); - return this; - } - /** - *
-       * the relate table
-       * 
- * - * optional string table_name = 2; - */ - public Builder clearTableName() { - bitField0_ = (bitField0_ & ~0x00000002); - tableName_ = getDefaultInstance().getTableName(); - onChanged(); - return this; - } - /** - *
-       * the relate table
-       * 
- * - * optional string table_name = 2; - */ - public Builder setTableNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - tableName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString ddlQuery_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * ddl_query is the original ddl statement query.
-       * 
- * - * optional bytes ddl_query = 3; - */ - public boolean hasDdlQuery() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * ddl_query is the original ddl statement query.
-       * 
- * - * optional bytes ddl_query = 3; - */ - public com.google.protobuf.ByteString getDdlQuery() { - return ddlQuery_; - } - /** - *
-       * ddl_query is the original ddl statement query.
-       * 
- * - * optional bytes ddl_query = 3; - */ - public Builder setDdlQuery(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - ddlQuery_ = value; - onChanged(); - return this; - } - /** - *
-       * ddl_query is the original ddl statement query.
-       * 
- * - * optional bytes ddl_query = 3; - */ - public Builder clearDdlQuery() { - bitField0_ = (bitField0_ & ~0x00000004); - ddlQuery_ = getDefaultInstance().getDdlQuery(); - 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:com.tnp.search.DDLData) - } - - // @@protoc_insertion_point(class_scope:com.tnp.search.DDLData) - private static final com.pingcap.kafkareader.proto.BinLogInfo.DDLData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.BinLogInfo.DDLData(); - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.DDLData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DDLData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DDLData(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.BinLogInfo.DDLData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BinlogOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.tnp.search.Binlog) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .com.tnp.search.BinlogType type = 1 [(.gogoproto.nullable) = false]; - */ - boolean hasType(); - /** - * optional .com.tnp.search.BinlogType type = 1 [(.gogoproto.nullable) = false]; - */ - com.pingcap.kafkareader.proto.BinLogInfo.BinlogType getType(); - - /** - * optional int64 commit_ts = 2 [(.gogoproto.nullable) = false]; - */ - boolean hasCommitTs(); - /** - * optional int64 commit_ts = 2 [(.gogoproto.nullable) = false]; - */ - long getCommitTs(); - - /** - *
-     * dml_data is marshalled from DML type
-     * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - boolean hasDmlData(); - /** - *
-     * dml_data is marshalled from DML type
-     * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - com.pingcap.kafkareader.proto.BinLogInfo.DMLData getDmlData(); - /** - *
-     * dml_data is marshalled from DML type
-     * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - com.pingcap.kafkareader.proto.BinLogInfo.DMLDataOrBuilder getDmlDataOrBuilder(); - - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - boolean hasDdlData(); - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - com.pingcap.kafkareader.proto.BinLogInfo.DDLData getDdlData(); - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - com.pingcap.kafkareader.proto.BinLogInfo.DDLDataOrBuilder getDdlDataOrBuilder(); - } - /** - *
-   * Binlog contains all the changes in a transaction.
-   * 
- * - * Protobuf type {@code com.tnp.search.Binlog} - */ - public static final class Binlog extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:com.tnp.search.Binlog) - BinlogOrBuilder { - private static final long serialVersionUID = 0L; - // Use Binlog.newBuilder() to construct. - private Binlog(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Binlog() { - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Binlog(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Binlog( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - com.pingcap.kafkareader.proto.BinLogInfo.BinlogType value = com.pingcap.kafkareader.proto.BinLogInfo.BinlogType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = rawValue; - } - break; - } - case 16: { - bitField0_ |= 0x00000002; - commitTs_ = input.readInt64(); - break; - } - case 26: { - com.pingcap.kafkareader.proto.BinLogInfo.DMLData.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) != 0)) { - subBuilder = dmlData_.toBuilder(); - } - dmlData_ = input.readMessage(com.pingcap.kafkareader.proto.BinLogInfo.DMLData.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dmlData_); - dmlData_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 34: { - com.pingcap.kafkareader.proto.BinLogInfo.DDLData.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) != 0)) { - subBuilder = ddlData_.toBuilder(); - } - ddlData_ = input.readMessage(com.pingcap.kafkareader.proto.BinLogInfo.DDLData.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ddlData_); - ddlData_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Binlog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Binlog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.Binlog.class, com.pingcap.kafkareader.proto.BinLogInfo.Binlog.Builder.class); - } - - private int bitField0_; - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * optional .com.tnp.search.BinlogType type = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .com.tnp.search.BinlogType type = 1 [(.gogoproto.nullable) = false]; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.BinlogType getType() { - @SuppressWarnings("deprecation") - com.pingcap.kafkareader.proto.BinLogInfo.BinlogType result = com.pingcap.kafkareader.proto.BinLogInfo.BinlogType.valueOf(type_); - return result == null ? com.pingcap.kafkareader.proto.BinLogInfo.BinlogType.DML : result; - } - - public static final int COMMIT_TS_FIELD_NUMBER = 2; - private long commitTs_; - /** - * optional int64 commit_ts = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasCommitTs() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int64 commit_ts = 2 [(.gogoproto.nullable) = false]; - */ - public long getCommitTs() { - return commitTs_; - } - - public static final int DML_DATA_FIELD_NUMBER = 3; - private com.pingcap.kafkareader.proto.BinLogInfo.DMLData dmlData_; - /** - *
-     * dml_data is marshalled from DML type
-     * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - public boolean hasDmlData() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * dml_data is marshalled from DML type
-     * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.DMLData getDmlData() { - return dmlData_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.DMLData.getDefaultInstance() : dmlData_; - } - /** - *
-     * dml_data is marshalled from DML type
-     * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.DMLDataOrBuilder getDmlDataOrBuilder() { - return dmlData_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.DMLData.getDefaultInstance() : dmlData_; - } - - public static final int DDL_DATA_FIELD_NUMBER = 4; - private com.pingcap.kafkareader.proto.BinLogInfo.DDLData ddlData_; - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - public boolean hasDdlData() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.DDLData getDdlData() { - return ddlData_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.DDLData.getDefaultInstance() : ddlData_; - } - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.DDLDataOrBuilder getDdlDataOrBuilder() { - return ddlData_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.DDLData.getDefaultInstance() : ddlData_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasDmlData()) { - if (!getDmlData().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeEnum(1, type_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(2, commitTs_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getDmlData()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(4, getDdlData()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, commitTs_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDmlData()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDdlData()); - } - size += unknownFields.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.pingcap.kafkareader.proto.BinLogInfo.Binlog)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.BinLogInfo.Binlog other = (com.pingcap.kafkareader.proto.BinLogInfo.Binlog) obj; - - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (type_ != other.type_) return false; - } - if (hasCommitTs() != other.hasCommitTs()) return false; - if (hasCommitTs()) { - if (getCommitTs() - != other.getCommitTs()) return false; - } - if (hasDmlData() != other.hasDmlData()) return false; - if (hasDmlData()) { - if (!getDmlData() - .equals(other.getDmlData())) return false; - } - if (hasDdlData() != other.hasDdlData()) return false; - if (hasDdlData()) { - if (!getDdlData() - .equals(other.getDdlData())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - } - if (hasCommitTs()) { - hash = (37 * hash) + COMMIT_TS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCommitTs()); - } - if (hasDmlData()) { - hash = (37 * hash) + DML_DATA_FIELD_NUMBER; - hash = (53 * hash) + getDmlData().hashCode(); - } - if (hasDdlData()) { - hash = (37 * hash) + DDL_DATA_FIELD_NUMBER; - hash = (53 * hash) + getDdlData().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.Binlog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Binlog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Binlog parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Binlog parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Binlog parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Binlog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Binlog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Binlog 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.pingcap.kafkareader.proto.BinLogInfo.Binlog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Binlog 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.pingcap.kafkareader.proto.BinLogInfo.Binlog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.BinLogInfo.Binlog 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.pingcap.kafkareader.proto.BinLogInfo.Binlog 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; - } - /** - *
-     * Binlog contains all the changes in a transaction.
-     * 
- * - * Protobuf type {@code com.tnp.search.Binlog} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:com.tnp.search.Binlog) - com.pingcap.kafkareader.proto.BinLogInfo.BinlogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Binlog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Binlog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.BinLogInfo.Binlog.class, com.pingcap.kafkareader.proto.BinLogInfo.Binlog.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.BinLogInfo.Binlog.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDmlDataFieldBuilder(); - getDdlDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - type_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - commitTs_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - if (dmlDataBuilder_ == null) { - dmlData_ = null; - } else { - dmlDataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (ddlDataBuilder_ == null) { - ddlData_ = null; - } else { - ddlDataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.internal_static_com_tnp_search_Binlog_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Binlog getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.BinLogInfo.Binlog.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Binlog build() { - com.pingcap.kafkareader.proto.BinLogInfo.Binlog result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.BinLogInfo.Binlog buildPartial() { - com.pingcap.kafkareader.proto.BinLogInfo.Binlog result = new com.pingcap.kafkareader.proto.BinLogInfo.Binlog(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.commitTs_ = commitTs_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - if (dmlDataBuilder_ == null) { - result.dmlData_ = dmlData_; - } else { - result.dmlData_ = dmlDataBuilder_.build(); - } - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - if (ddlDataBuilder_ == null) { - result.ddlData_ = ddlData_; - } else { - result.ddlData_ = ddlDataBuilder_.build(); - } - to_bitField0_ |= 0x00000008; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.BinLogInfo.Binlog) { - return mergeFrom((com.pingcap.kafkareader.proto.BinLogInfo.Binlog)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.BinLogInfo.Binlog other) { - if (other == com.pingcap.kafkareader.proto.BinLogInfo.Binlog.getDefaultInstance()) return this; - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasCommitTs()) { - setCommitTs(other.getCommitTs()); - } - if (other.hasDmlData()) { - mergeDmlData(other.getDmlData()); - } - if (other.hasDdlData()) { - mergeDdlData(other.getDdlData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasDmlData()) { - if (!getDmlData().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pingcap.kafkareader.proto.BinLogInfo.Binlog parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.BinLogInfo.Binlog) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int type_ = 0; - /** - * optional .com.tnp.search.BinlogType type = 1 [(.gogoproto.nullable) = false]; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional .com.tnp.search.BinlogType type = 1 [(.gogoproto.nullable) = false]; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.BinlogType getType() { - @SuppressWarnings("deprecation") - com.pingcap.kafkareader.proto.BinLogInfo.BinlogType result = com.pingcap.kafkareader.proto.BinLogInfo.BinlogType.valueOf(type_); - return result == null ? com.pingcap.kafkareader.proto.BinLogInfo.BinlogType.DML : result; - } - /** - * optional .com.tnp.search.BinlogType type = 1 [(.gogoproto.nullable) = false]; - */ - public Builder setType(com.pingcap.kafkareader.proto.BinLogInfo.BinlogType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .com.tnp.search.BinlogType type = 1 [(.gogoproto.nullable) = false]; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - onChanged(); - return this; - } - - private long commitTs_ ; - /** - * optional int64 commit_ts = 2 [(.gogoproto.nullable) = false]; - */ - public boolean hasCommitTs() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int64 commit_ts = 2 [(.gogoproto.nullable) = false]; - */ - public long getCommitTs() { - return commitTs_; - } - /** - * optional int64 commit_ts = 2 [(.gogoproto.nullable) = false]; - */ - public Builder setCommitTs(long value) { - bitField0_ |= 0x00000002; - commitTs_ = value; - onChanged(); - return this; - } - /** - * optional int64 commit_ts = 2 [(.gogoproto.nullable) = false]; - */ - public Builder clearCommitTs() { - bitField0_ = (bitField0_ & ~0x00000002); - commitTs_ = 0L; - onChanged(); - return this; - } - - private com.pingcap.kafkareader.proto.BinLogInfo.DMLData dmlData_; - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.DMLData, com.pingcap.kafkareader.proto.BinLogInfo.DMLData.Builder, com.pingcap.kafkareader.proto.BinLogInfo.DMLDataOrBuilder> dmlDataBuilder_; - /** - *
-       * dml_data is marshalled from DML type
-       * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - public boolean hasDmlData() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * dml_data is marshalled from DML type
-       * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.DMLData getDmlData() { - if (dmlDataBuilder_ == null) { - return dmlData_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.DMLData.getDefaultInstance() : dmlData_; - } else { - return dmlDataBuilder_.getMessage(); - } - } - /** - *
-       * dml_data is marshalled from DML type
-       * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - public Builder setDmlData(com.pingcap.kafkareader.proto.BinLogInfo.DMLData value) { - if (dmlDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dmlData_ = value; - onChanged(); - } else { - dmlDataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - *
-       * dml_data is marshalled from DML type
-       * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - public Builder setDmlData( - com.pingcap.kafkareader.proto.BinLogInfo.DMLData.Builder builderForValue) { - if (dmlDataBuilder_ == null) { - dmlData_ = builderForValue.build(); - onChanged(); - } else { - dmlDataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - *
-       * dml_data is marshalled from DML type
-       * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - public Builder mergeDmlData(com.pingcap.kafkareader.proto.BinLogInfo.DMLData value) { - if (dmlDataBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - dmlData_ != null && - dmlData_ != com.pingcap.kafkareader.proto.BinLogInfo.DMLData.getDefaultInstance()) { - dmlData_ = - com.pingcap.kafkareader.proto.BinLogInfo.DMLData.newBuilder(dmlData_).mergeFrom(value).buildPartial(); - } else { - dmlData_ = value; - } - onChanged(); - } else { - dmlDataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - *
-       * dml_data is marshalled from DML type
-       * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - public Builder clearDmlData() { - if (dmlDataBuilder_ == null) { - dmlData_ = null; - onChanged(); - } else { - dmlDataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - *
-       * dml_data is marshalled from DML type
-       * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.DMLData.Builder getDmlDataBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getDmlDataFieldBuilder().getBuilder(); - } - /** - *
-       * dml_data is marshalled from DML type
-       * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.DMLDataOrBuilder getDmlDataOrBuilder() { - if (dmlDataBuilder_ != null) { - return dmlDataBuilder_.getMessageOrBuilder(); - } else { - return dmlData_ == null ? - com.pingcap.kafkareader.proto.BinLogInfo.DMLData.getDefaultInstance() : dmlData_; - } - } - /** - *
-       * dml_data is marshalled from DML type
-       * 
- * - * optional .com.tnp.search.DMLData dml_data = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.DMLData, com.pingcap.kafkareader.proto.BinLogInfo.DMLData.Builder, com.pingcap.kafkareader.proto.BinLogInfo.DMLDataOrBuilder> - getDmlDataFieldBuilder() { - if (dmlDataBuilder_ == null) { - dmlDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.DMLData, com.pingcap.kafkareader.proto.BinLogInfo.DMLData.Builder, com.pingcap.kafkareader.proto.BinLogInfo.DMLDataOrBuilder>( - getDmlData(), - getParentForChildren(), - isClean()); - dmlData_ = null; - } - return dmlDataBuilder_; - } - - private com.pingcap.kafkareader.proto.BinLogInfo.DDLData ddlData_; - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.DDLData, com.pingcap.kafkareader.proto.BinLogInfo.DDLData.Builder, com.pingcap.kafkareader.proto.BinLogInfo.DDLDataOrBuilder> ddlDataBuilder_; - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - public boolean hasDdlData() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.DDLData getDdlData() { - if (ddlDataBuilder_ == null) { - return ddlData_ == null ? com.pingcap.kafkareader.proto.BinLogInfo.DDLData.getDefaultInstance() : ddlData_; - } else { - return ddlDataBuilder_.getMessage(); - } - } - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - public Builder setDdlData(com.pingcap.kafkareader.proto.BinLogInfo.DDLData value) { - if (ddlDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ddlData_ = value; - onChanged(); - } else { - ddlDataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - public Builder setDdlData( - com.pingcap.kafkareader.proto.BinLogInfo.DDLData.Builder builderForValue) { - if (ddlDataBuilder_ == null) { - ddlData_ = builderForValue.build(); - onChanged(); - } else { - ddlDataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - public Builder mergeDdlData(com.pingcap.kafkareader.proto.BinLogInfo.DDLData value) { - if (ddlDataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - ddlData_ != null && - ddlData_ != com.pingcap.kafkareader.proto.BinLogInfo.DDLData.getDefaultInstance()) { - ddlData_ = - com.pingcap.kafkareader.proto.BinLogInfo.DDLData.newBuilder(ddlData_).mergeFrom(value).buildPartial(); - } else { - ddlData_ = value; - } - onChanged(); - } else { - ddlDataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - public Builder clearDdlData() { - if (ddlDataBuilder_ == null) { - ddlData_ = null; - onChanged(); - } else { - ddlDataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.DDLData.Builder getDdlDataBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getDdlDataFieldBuilder().getBuilder(); - } - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - public com.pingcap.kafkareader.proto.BinLogInfo.DDLDataOrBuilder getDdlDataOrBuilder() { - if (ddlDataBuilder_ != null) { - return ddlDataBuilder_.getMessageOrBuilder(); - } else { - return ddlData_ == null ? - com.pingcap.kafkareader.proto.BinLogInfo.DDLData.getDefaultInstance() : ddlData_; - } - } - /** - * optional .com.tnp.search.DDLData ddl_data = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.DDLData, com.pingcap.kafkareader.proto.BinLogInfo.DDLData.Builder, com.pingcap.kafkareader.proto.BinLogInfo.DDLDataOrBuilder> - getDdlDataFieldBuilder() { - if (ddlDataBuilder_ == null) { - ddlDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.BinLogInfo.DDLData, com.pingcap.kafkareader.proto.BinLogInfo.DDLData.Builder, com.pingcap.kafkareader.proto.BinLogInfo.DDLDataOrBuilder>( - getDdlData(), - getParentForChildren(), - isClean()); - ddlData_ = null; - } - return ddlDataBuilder_; - } - @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:com.tnp.search.Binlog) - } - - // @@protoc_insertion_point(class_scope:com.tnp.search.Binlog) - private static final com.pingcap.kafkareader.proto.BinLogInfo.Binlog DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.BinLogInfo.Binlog(); - } - - public static com.pingcap.kafkareader.proto.BinLogInfo.Binlog getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Binlog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Binlog(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.BinLogInfo.Binlog getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_tnp_search_Column_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_tnp_search_Column_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_tnp_search_ColumnInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_tnp_search_ColumnInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_tnp_search_Row_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_tnp_search_Row_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_tnp_search_Table_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_tnp_search_Table_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_tnp_search_TableMutation_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_tnp_search_TableMutation_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_tnp_search_DMLData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_tnp_search_DMLData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_tnp_search_DDLData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_tnp_search_DDLData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_com_tnp_search_Binlog_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_com_tnp_search_Binlog_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014binlog.proto\022\016com.tnp.search\032\ngogo.pro" + - "to\"\214\001\n\006Column\022\026\n\007is_null\030\001 \001(\010:\005false\022\023\n" + - "\013int64_value\030\002 \001(\003\022\024\n\014uint64_value\030\003 \001(\004" + - "\022\024\n\014double_value\030\004 \001(\001\022\023\n\013bytes_value\030\005 " + - "\001(\014\022\024\n\014string_value\030\006 \001(\t\"X\n\nColumnInfo\022" + - "\022\n\004name\030\001 \001(\tB\004\310\336\037\000\022\030\n\nmysql_type\030\002 \001(\tB" + - "\004\310\336\037\000\022\034\n\016is_primary_key\030\003 \001(\010B\004\310\336\037\000\".\n\003R" + - "ow\022\'\n\007columns\030\001 \003(\0132\026.com.tnp.search.Col" + - "umn\"\223\001\n\005Table\022\023\n\013schema_name\030\001 \001(\t\022\022\n\nta" + - "ble_name\030\002 \001(\t\022/\n\013column_info\030\003 \003(\0132\032.co" + - "m.tnp.search.ColumnInfo\0220\n\tmutations\030\004 \003" + - "(\0132\035.com.tnp.search.TableMutation\"\206\001\n\rTa" + - "bleMutation\022*\n\004type\030\001 \002(\0162\034.com.tnp.sear" + - "ch.MutationType\022 \n\003row\030\002 \002(\0132\023.com.tnp.s" + - "earch.Row\022\'\n\nchange_row\030\003 \001(\0132\023.com.tnp." + - "search.Row\"0\n\007DMLData\022%\n\006tables\030\001 \003(\0132\025." + - "com.tnp.search.Table\"E\n\007DDLData\022\023\n\013schem" + - "a_name\030\001 \001(\t\022\022\n\ntable_name\030\002 \001(\t\022\021\n\tddl_" + - "query\030\003 \001(\014\"\247\001\n\006Binlog\022.\n\004type\030\001 \001(\0162\032.c" + - "om.tnp.search.BinlogTypeB\004\310\336\037\000\022\027\n\tcommit" + - "_ts\030\002 \001(\003B\004\310\336\037\000\022)\n\010dml_data\030\003 \001(\0132\027.com." + - "tnp.search.DMLData\022)\n\010ddl_data\030\004 \001(\0132\027.c" + - "om.tnp.search.DDLData*2\n\014MutationType\022\n\n" + - "\006Insert\020\000\022\n\n\006Update\020\001\022\n\n\006Delete\020\002*\036\n\nBin" + - "logType\022\007\n\003DML\020\000\022\007\n\003DDL\020\001B7\n\035com.pingcap" + - ".kafkareader.protoB\nBinLogInfo\310\342\036\001\340\342\036\001\320\342" + - "\036\001" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.pingcap.kafkareader.proto.GoGoProtos.getDescriptor(), - }); - internal_static_com_tnp_search_Column_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_com_tnp_search_Column_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_tnp_search_Column_descriptor, - new java.lang.String[] { "IsNull", "Int64Value", "Uint64Value", "DoubleValue", "BytesValue", "StringValue", }); - internal_static_com_tnp_search_ColumnInfo_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_com_tnp_search_ColumnInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_tnp_search_ColumnInfo_descriptor, - new java.lang.String[] { "Name", "MysqlType", "IsPrimaryKey", }); - internal_static_com_tnp_search_Row_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_com_tnp_search_Row_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_tnp_search_Row_descriptor, - new java.lang.String[] { "Columns", }); - internal_static_com_tnp_search_Table_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_com_tnp_search_Table_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_tnp_search_Table_descriptor, - new java.lang.String[] { "SchemaName", "TableName", "ColumnInfo", "Mutations", }); - internal_static_com_tnp_search_TableMutation_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_com_tnp_search_TableMutation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_tnp_search_TableMutation_descriptor, - new java.lang.String[] { "Type", "Row", "ChangeRow", }); - internal_static_com_tnp_search_DMLData_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_com_tnp_search_DMLData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_tnp_search_DMLData_descriptor, - new java.lang.String[] { "Tables", }); - internal_static_com_tnp_search_DDLData_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_com_tnp_search_DDLData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_tnp_search_DDLData_descriptor, - new java.lang.String[] { "SchemaName", "TableName", "DdlQuery", }); - internal_static_com_tnp_search_Binlog_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_com_tnp_search_Binlog_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_com_tnp_search_Binlog_descriptor, - new java.lang.String[] { "Type", "CommitTs", "DmlData", "DdlData", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.pingcap.kafkareader.proto.GoGoProtos.marshalerAll); - registry.add(com.pingcap.kafkareader.proto.GoGoProtos.nullable); - registry.add(com.pingcap.kafkareader.proto.GoGoProtos.sizerAll); - registry.add(com.pingcap.kafkareader.proto.GoGoProtos.unmarshalerAll); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.pingcap.kafkareader.proto.GoGoProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/tidb-binlog/driver/example/kafkaReader/src/main/java/com/pingcap/kafkareader/proto/DescriptorProtos.java b/tidb-binlog/driver/example/kafkaReader/src/main/java/com/pingcap/kafkareader/proto/DescriptorProtos.java deleted file mode 100644 index 9c458833e..000000000 --- a/tidb-binlog/driver/example/kafkaReader/src/main/java/com/pingcap/kafkareader/proto/DescriptorProtos.java +++ /dev/null @@ -1,44029 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: descriptor.proto - -package com.pingcap.kafkareader.proto; - -public final class DescriptorProtos { - private DescriptorProtos() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface FileDescriptorSetOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.FileDescriptorSet) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - java.util.List - getFileList(); - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto getFile(int index); - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - int getFileCount(); - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - java.util.List - getFileOrBuilderList(); - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( - int index); - } - /** - *
-   * The protocol compiler can output a FileDescriptorSet containing the .proto
-   * files it parses.
-   * 
- * - * Protobuf type {@code google.protobuf.FileDescriptorSet} - */ - public static final class FileDescriptorSet extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.FileDescriptorSet) - FileDescriptorSetOrBuilder { - private static final long serialVersionUID = 0L; - // Use FileDescriptorSet.newBuilder() to construct. - private FileDescriptorSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FileDescriptorSet() { - file_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FileDescriptorSet(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FileDescriptorSet( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - file_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - file_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.PARSER, extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - file_ = java.util.Collections.unmodifiableList(file_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet.class, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet.Builder.class); - } - - public static final int FILE_FIELD_NUMBER = 1; - private java.util.List file_; - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public java.util.List getFileList() { - return file_; - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public java.util.List - getFileOrBuilderList() { - return file_; - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public int getFileCount() { - return file_.size(); - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto getFile(int index) { - return file_.get(index); - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( - int index) { - return file_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - for (int i = 0; i < getFileCount(); i++) { - if (!getFile(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < file_.size(); i++) { - output.writeMessage(1, file_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < file_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, file_.get(i)); - } - size += unknownFields.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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet other = (com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet) obj; - - if (!getFileList() - .equals(other.getFileList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getFileCount() > 0) { - hash = (37 * hash) + FILE_FIELD_NUMBER; - hash = (53 * hash) + getFileList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet 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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet 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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet 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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet 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 protocol compiler can output a FileDescriptorSet containing the .proto
-     * files it parses.
-     * 
- * - * Protobuf type {@code google.protobuf.FileDescriptorSet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.protobuf.FileDescriptorSet) - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet.class, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFileFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (fileBuilder_ == null) { - file_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - fileBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FileDescriptorSet_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet build() { - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet buildPartial() { - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet result = new com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet(this); - int from_bitField0_ = bitField0_; - if (fileBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - file_ = java.util.Collections.unmodifiableList(file_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.file_ = file_; - } else { - result.file_ = fileBuilder_.build(); - } - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet) { - return mergeFrom((com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet other) { - if (other == com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) return this; - if (fileBuilder_ == null) { - if (!other.file_.isEmpty()) { - if (file_.isEmpty()) { - file_ = other.file_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFileIsMutable(); - file_.addAll(other.file_); - } - onChanged(); - } - } else { - if (!other.file_.isEmpty()) { - if (fileBuilder_.isEmpty()) { - fileBuilder_.dispose(); - fileBuilder_ = null; - file_ = other.file_; - bitField0_ = (bitField0_ & ~0x00000001); - fileBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFileFieldBuilder() : null; - } else { - fileBuilder_.addAllMessages(other.file_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getFileCount(); i++) { - if (!getFile(i).isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List file_ = - java.util.Collections.emptyList(); - private void ensureFileIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - file_ = new java.util.ArrayList(file_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProtoOrBuilder> fileBuilder_; - - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public java.util.List getFileList() { - if (fileBuilder_ == null) { - return java.util.Collections.unmodifiableList(file_); - } else { - return fileBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public int getFileCount() { - if (fileBuilder_ == null) { - return file_.size(); - } else { - return fileBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto getFile(int index) { - if (fileBuilder_ == null) { - return file_.get(index); - } else { - return fileBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public Builder setFile( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto value) { - if (fileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileIsMutable(); - file_.set(index, value); - onChanged(); - } else { - fileBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public Builder setFile( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.set(index, builderForValue.build()); - onChanged(); - } else { - fileBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public Builder addFile(com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto value) { - if (fileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileIsMutable(); - file_.add(value); - onChanged(); - } else { - fileBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public Builder addFile( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto value) { - if (fileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFileIsMutable(); - file_.add(index, value); - onChanged(); - } else { - fileBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public Builder addFile( - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.add(builderForValue.build()); - onChanged(); - } else { - fileBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public Builder addFile( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.Builder builderForValue) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.add(index, builderForValue.build()); - onChanged(); - } else { - fileBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public Builder addAllFile( - java.lang.Iterable values) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, file_); - onChanged(); - } else { - fileBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public Builder clearFile() { - if (fileBuilder_ == null) { - file_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - fileBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public Builder removeFile(int index) { - if (fileBuilder_ == null) { - ensureFileIsMutable(); - file_.remove(index); - onChanged(); - } else { - fileBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.Builder getFileBuilder( - int index) { - return getFileFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProtoOrBuilder getFileOrBuilder( - int index) { - if (fileBuilder_ == null) { - return file_.get(index); } else { - return fileBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public java.util.List - getFileOrBuilderList() { - if (fileBuilder_ != null) { - return fileBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(file_); - } - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.Builder addFileBuilder() { - return getFileFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.Builder addFileBuilder( - int index) { - return getFileFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.FileDescriptorProto file = 1; - */ - public java.util.List - getFileBuilderList() { - return getFileFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProtoOrBuilder> - getFileFieldBuilder() { - if (fileBuilder_ == null) { - fileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProtoOrBuilder>( - file_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - file_ = null; - } - return fileBuilder_; - } - @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.protobuf.FileDescriptorSet) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet) - private static final com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet(); - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FileDescriptorSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FileDescriptorSet(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorSet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FileDescriptorProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.FileDescriptorProto) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * file name, relative to root of source tree
-     * 
- * - * optional string name = 1; - */ - boolean hasName(); - /** - *
-     * file name, relative to root of source tree
-     * 
- * - * optional string name = 1; - */ - java.lang.String getName(); - /** - *
-     * file name, relative to root of source tree
-     * 
- * - * optional string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * e.g. "foo", "foo.bar", etc.
-     * 
- * - * optional string package = 2; - */ - boolean hasPackage(); - /** - *
-     * e.g. "foo", "foo.bar", etc.
-     * 
- * - * optional string package = 2; - */ - java.lang.String getPackage(); - /** - *
-     * e.g. "foo", "foo.bar", etc.
-     * 
- * - * optional string package = 2; - */ - com.google.protobuf.ByteString - getPackageBytes(); - - /** - *
-     * Names of files imported by this file.
-     * 
- * - * repeated string dependency = 3; - */ - java.util.List - getDependencyList(); - /** - *
-     * Names of files imported by this file.
-     * 
- * - * repeated string dependency = 3; - */ - int getDependencyCount(); - /** - *
-     * Names of files imported by this file.
-     * 
- * - * repeated string dependency = 3; - */ - java.lang.String getDependency(int index); - /** - *
-     * Names of files imported by this file.
-     * 
- * - * repeated string dependency = 3; - */ - com.google.protobuf.ByteString - getDependencyBytes(int index); - - /** - *
-     * Indexes of the public imported files in the dependency list above.
-     * 
- * - * repeated int32 public_dependency = 10; - */ - java.util.List getPublicDependencyList(); - /** - *
-     * Indexes of the public imported files in the dependency list above.
-     * 
- * - * repeated int32 public_dependency = 10; - */ - int getPublicDependencyCount(); - /** - *
-     * Indexes of the public imported files in the dependency list above.
-     * 
- * - * repeated int32 public_dependency = 10; - */ - int getPublicDependency(int index); - - /** - *
-     * Indexes of the weak imported files in the dependency list.
-     * For Google-internal migration only. Do not use.
-     * 
- * - * repeated int32 weak_dependency = 11; - */ - java.util.List getWeakDependencyList(); - /** - *
-     * Indexes of the weak imported files in the dependency list.
-     * For Google-internal migration only. Do not use.
-     * 
- * - * repeated int32 weak_dependency = 11; - */ - int getWeakDependencyCount(); - /** - *
-     * Indexes of the weak imported files in the dependency list.
-     * For Google-internal migration only. Do not use.
-     * 
- * - * repeated int32 weak_dependency = 11; - */ - int getWeakDependency(int index); - - /** - *
-     * All top-level definitions in this file.
-     * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - java.util.List - getMessageTypeList(); - /** - *
-     * All top-level definitions in this file.
-     * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto getMessageType(int index); - /** - *
-     * All top-level definitions in this file.
-     * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - int getMessageTypeCount(); - /** - *
-     * All top-level definitions in this file.
-     * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - java.util.List - getMessageTypeOrBuilderList(); - /** - *
-     * All top-level definitions in this file.
-     * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( - int index); - - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - java.util.List - getEnumTypeList(); - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto getEnumType(int index); - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - int getEnumTypeCount(); - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - java.util.List - getEnumTypeOrBuilderList(); - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index); - - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - java.util.List - getServiceList(); - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto getService(int index); - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - int getServiceCount(); - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - java.util.List - getServiceOrBuilderList(); - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( - int index); - - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - java.util.List - getExtensionList(); - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto getExtension(int index); - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - int getExtensionCount(); - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - java.util.List - getExtensionOrBuilderList(); - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index); - - /** - * optional .google.protobuf.FileOptions options = 8; - */ - boolean hasOptions(); - /** - * optional .google.protobuf.FileOptions options = 8; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions getOptions(); - /** - * optional .google.protobuf.FileOptions options = 8; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder(); - - /** - *
-     * This field contains optional information about the original source code.
-     * You may safely remove this entire field without harming runtime
-     * functionality of the descriptors -- the information is needed only by
-     * development tools.
-     * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - boolean hasSourceCodeInfo(); - /** - *
-     * This field contains optional information about the original source code.
-     * You may safely remove this entire field without harming runtime
-     * functionality of the descriptors -- the information is needed only by
-     * development tools.
-     * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo getSourceCodeInfo(); - /** - *
-     * This field contains optional information about the original source code.
-     * You may safely remove this entire field without harming runtime
-     * functionality of the descriptors -- the information is needed only by
-     * development tools.
-     * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder(); - - /** - *
-     * The syntax of the proto file.
-     * The supported values are "proto2" and "proto3".
-     * 
- * - * optional string syntax = 12; - */ - boolean hasSyntax(); - /** - *
-     * The syntax of the proto file.
-     * The supported values are "proto2" and "proto3".
-     * 
- * - * optional string syntax = 12; - */ - java.lang.String getSyntax(); - /** - *
-     * The syntax of the proto file.
-     * The supported values are "proto2" and "proto3".
-     * 
- * - * optional string syntax = 12; - */ - com.google.protobuf.ByteString - getSyntaxBytes(); - } - /** - *
-   * Describes a complete .proto file.
-   * 
- * - * Protobuf type {@code google.protobuf.FileDescriptorProto} - */ - public static final class FileDescriptorProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.FileDescriptorProto) - FileDescriptorProtoOrBuilder { - private static final long serialVersionUID = 0L; - // Use FileDescriptorProto.newBuilder() to construct. - private FileDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FileDescriptorProto() { - name_ = ""; - package_ = ""; - dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; - publicDependency_ = emptyIntList(); - weakDependency_ = emptyIntList(); - messageType_ = java.util.Collections.emptyList(); - enumType_ = java.util.Collections.emptyList(); - service_ = java.util.Collections.emptyList(); - extension_ = java.util.Collections.emptyList(); - syntax_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FileDescriptorProto(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FileDescriptorProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - package_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - dependency_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - dependency_.add(bs); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - messageType_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - messageType_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - enumType_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - enumType_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - service_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - service_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.PARSER, extensionRegistry)); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - extension_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000100; - } - extension_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); - break; - } - case 66: { - com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) != 0)) { - subBuilder = options_.toBuilder(); - } - options_ = input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(options_); - options_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - case 74: { - com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) != 0)) { - subBuilder = sourceCodeInfo_.toBuilder(); - } - sourceCodeInfo_ = input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sourceCodeInfo_); - sourceCodeInfo_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 80: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - publicDependency_ = newIntList(); - mutable_bitField0_ |= 0x00000008; - } - publicDependency_.addInt(input.readInt32()); - break; - } - case 82: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000008) != 0) && input.getBytesUntilLimit() > 0) { - publicDependency_ = newIntList(); - mutable_bitField0_ |= 0x00000008; - } - while (input.getBytesUntilLimit() > 0) { - publicDependency_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } - case 88: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - weakDependency_ = newIntList(); - mutable_bitField0_ |= 0x00000010; - } - weakDependency_.addInt(input.readInt32()); - break; - } - case 90: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000010) != 0) && input.getBytesUntilLimit() > 0) { - weakDependency_ = newIntList(); - mutable_bitField0_ |= 0x00000010; - } - while (input.getBytesUntilLimit() > 0) { - weakDependency_.addInt(input.readInt32()); - } - input.popLimit(limit); - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - syntax_ = bs; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - dependency_ = dependency_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - messageType_ = java.util.Collections.unmodifiableList(messageType_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - enumType_ = java.util.Collections.unmodifiableList(enumType_); - } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - service_ = java.util.Collections.unmodifiableList(service_); - } - if (((mutable_bitField0_ & 0x00000100) != 0)) { - extension_ = java.util.Collections.unmodifiableList(extension_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - publicDependency_.makeImmutable(); // C - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - weakDependency_.makeImmutable(); // C - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.class, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * file name, relative to root of source tree
-     * 
- * - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * file name, relative to root of source tree
-     * 
- * - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - *
-     * file name, relative to root of source tree
-     * 
- * - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PACKAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object package_; - /** - *
-     * e.g. "foo", "foo.bar", etc.
-     * 
- * - * optional string package = 2; - */ - public boolean hasPackage() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * e.g. "foo", "foo.bar", etc.
-     * 
- * - * optional string package = 2; - */ - public java.lang.String getPackage() { - java.lang.Object ref = package_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - package_ = s; - } - return s; - } - } - /** - *
-     * e.g. "foo", "foo.bar", etc.
-     * 
- * - * optional string package = 2; - */ - public com.google.protobuf.ByteString - getPackageBytes() { - java.lang.Object ref = package_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - package_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPENDENCY_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList dependency_; - /** - *
-     * Names of files imported by this file.
-     * 
- * - * repeated string dependency = 3; - */ - public com.google.protobuf.ProtocolStringList - getDependencyList() { - return dependency_; - } - /** - *
-     * Names of files imported by this file.
-     * 
- * - * repeated string dependency = 3; - */ - public int getDependencyCount() { - return dependency_.size(); - } - /** - *
-     * Names of files imported by this file.
-     * 
- * - * repeated string dependency = 3; - */ - public java.lang.String getDependency(int index) { - return dependency_.get(index); - } - /** - *
-     * Names of files imported by this file.
-     * 
- * - * repeated string dependency = 3; - */ - public com.google.protobuf.ByteString - getDependencyBytes(int index) { - return dependency_.getByteString(index); - } - - public static final int PUBLIC_DEPENDENCY_FIELD_NUMBER = 10; - private com.google.protobuf.Internal.IntList publicDependency_; - /** - *
-     * Indexes of the public imported files in the dependency list above.
-     * 
- * - * repeated int32 public_dependency = 10; - */ - public java.util.List - getPublicDependencyList() { - return publicDependency_; - } - /** - *
-     * Indexes of the public imported files in the dependency list above.
-     * 
- * - * repeated int32 public_dependency = 10; - */ - public int getPublicDependencyCount() { - return publicDependency_.size(); - } - /** - *
-     * Indexes of the public imported files in the dependency list above.
-     * 
- * - * repeated int32 public_dependency = 10; - */ - public int getPublicDependency(int index) { - return publicDependency_.getInt(index); - } - - public static final int WEAK_DEPENDENCY_FIELD_NUMBER = 11; - private com.google.protobuf.Internal.IntList weakDependency_; - /** - *
-     * Indexes of the weak imported files in the dependency list.
-     * For Google-internal migration only. Do not use.
-     * 
- * - * repeated int32 weak_dependency = 11; - */ - public java.util.List - getWeakDependencyList() { - return weakDependency_; - } - /** - *
-     * Indexes of the weak imported files in the dependency list.
-     * For Google-internal migration only. Do not use.
-     * 
- * - * repeated int32 weak_dependency = 11; - */ - public int getWeakDependencyCount() { - return weakDependency_.size(); - } - /** - *
-     * Indexes of the weak imported files in the dependency list.
-     * For Google-internal migration only. Do not use.
-     * 
- * - * repeated int32 weak_dependency = 11; - */ - public int getWeakDependency(int index) { - return weakDependency_.getInt(index); - } - - public static final int MESSAGE_TYPE_FIELD_NUMBER = 4; - private java.util.List messageType_; - /** - *
-     * All top-level definitions in this file.
-     * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public java.util.List getMessageTypeList() { - return messageType_; - } - /** - *
-     * All top-level definitions in this file.
-     * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public java.util.List - getMessageTypeOrBuilderList() { - return messageType_; - } - /** - *
-     * All top-level definitions in this file.
-     * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public int getMessageTypeCount() { - return messageType_.size(); - } - /** - *
-     * All top-level definitions in this file.
-     * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto getMessageType(int index) { - return messageType_.get(index); - } - /** - *
-     * All top-level definitions in this file.
-     * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( - int index) { - return messageType_.get(index); - } - - public static final int ENUM_TYPE_FIELD_NUMBER = 5; - private java.util.List enumType_; - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public java.util.List getEnumTypeList() { - return enumType_; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public java.util.List - getEnumTypeOrBuilderList() { - return enumType_; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public int getEnumTypeCount() { - return enumType_.size(); - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { - return enumType_.get(index); - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index) { - return enumType_.get(index); - } - - public static final int SERVICE_FIELD_NUMBER = 6; - private java.util.List service_; - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public java.util.List getServiceList() { - return service_; - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public java.util.List - getServiceOrBuilderList() { - return service_; - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public int getServiceCount() { - return service_.size(); - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto getService(int index) { - return service_.get(index); - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( - int index) { - return service_.get(index); - } - - public static final int EXTENSION_FIELD_NUMBER = 7; - private java.util.List extension_; - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public java.util.List getExtensionList() { - return extension_; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public java.util.List - getExtensionOrBuilderList() { - return extension_; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public int getExtensionCount() { - return extension_.size(); - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto getExtension(int index) { - return extension_.get(index); - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index) { - return extension_.get(index); - } - - public static final int OPTIONS_FIELD_NUMBER = 8; - private com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions options_; - /** - * optional .google.protobuf.FileOptions options = 8; - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .google.protobuf.FileOptions options = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions getOptions() { - return options_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.getDefaultInstance() : options_; - } - /** - * optional .google.protobuf.FileOptions options = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { - return options_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.getDefaultInstance() : options_; - } - - public static final int SOURCE_CODE_INFO_FIELD_NUMBER = 9; - private com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo sourceCodeInfo_; - /** - *
-     * This field contains optional information about the original source code.
-     * You may safely remove this entire field without harming runtime
-     * functionality of the descriptors -- the information is needed only by
-     * development tools.
-     * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - public boolean hasSourceCodeInfo() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * This field contains optional information about the original source code.
-     * You may safely remove this entire field without harming runtime
-     * functionality of the descriptors -- the information is needed only by
-     * development tools.
-     * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { - return sourceCodeInfo_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; - } - /** - *
-     * This field contains optional information about the original source code.
-     * You may safely remove this entire field without harming runtime
-     * functionality of the descriptors -- the information is needed only by
-     * development tools.
-     * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { - return sourceCodeInfo_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; - } - - public static final int SYNTAX_FIELD_NUMBER = 12; - private volatile java.lang.Object syntax_; - /** - *
-     * The syntax of the proto file.
-     * The supported values are "proto2" and "proto3".
-     * 
- * - * optional string syntax = 12; - */ - public boolean hasSyntax() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * The syntax of the proto file.
-     * The supported values are "proto2" and "proto3".
-     * 
- * - * optional string syntax = 12; - */ - public java.lang.String getSyntax() { - java.lang.Object ref = syntax_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - syntax_ = s; - } - return s; - } - } - /** - *
-     * The syntax of the proto file.
-     * The supported values are "proto2" and "proto3".
-     * 
- * - * optional string syntax = 12; - */ - public com.google.protobuf.ByteString - getSyntaxBytes() { - java.lang.Object ref = syntax_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - syntax_ = 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; - - for (int i = 0; i < getMessageTypeCount(); i++) { - if (!getMessageType(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getEnumTypeCount(); i++) { - if (!getEnumType(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getServiceCount(); i++) { - if (!getService(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getExtensionCount(); i++) { - if (!getExtension(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOptions()) { - if (!getOptions().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000002) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, package_); - } - for (int i = 0; i < dependency_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dependency_.getRaw(i)); - } - for (int i = 0; i < messageType_.size(); i++) { - output.writeMessage(4, messageType_.get(i)); - } - for (int i = 0; i < enumType_.size(); i++) { - output.writeMessage(5, enumType_.get(i)); - } - for (int i = 0; i < service_.size(); i++) { - output.writeMessage(6, service_.get(i)); - } - for (int i = 0; i < extension_.size(); i++) { - output.writeMessage(7, extension_.get(i)); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(8, getOptions()); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(9, getSourceCodeInfo()); - } - for (int i = 0; i < publicDependency_.size(); i++) { - output.writeInt32(10, publicDependency_.getInt(i)); - } - for (int i = 0; i < weakDependency_.size(); i++) { - output.writeInt32(11, weakDependency_.getInt(i)); - } - if (((bitField0_ & 0x00000010) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, syntax_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, package_); - } - { - int dataSize = 0; - for (int i = 0; i < dependency_.size(); i++) { - dataSize += computeStringSizeNoTag(dependency_.getRaw(i)); - } - size += dataSize; - size += 1 * getDependencyList().size(); - } - for (int i = 0; i < messageType_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, messageType_.get(i)); - } - for (int i = 0; i < enumType_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, enumType_.get(i)); - } - for (int i = 0; i < service_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, service_.get(i)); - } - for (int i = 0; i < extension_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, extension_.get(i)); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getOptions()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getSourceCodeInfo()); - } - { - int dataSize = 0; - for (int i = 0; i < publicDependency_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(publicDependency_.getInt(i)); - } - size += dataSize; - size += 1 * getPublicDependencyList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < weakDependency_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(weakDependency_.getInt(i)); - } - size += dataSize; - size += 1 * getWeakDependencyList().size(); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, syntax_); - } - size += unknownFields.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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto other = (com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto) obj; - - if (hasName() != other.hasName()) return false; - if (hasName()) { - if (!getName() - .equals(other.getName())) return false; - } - if (hasPackage() != other.hasPackage()) return false; - if (hasPackage()) { - if (!getPackage() - .equals(other.getPackage())) return false; - } - if (!getDependencyList() - .equals(other.getDependencyList())) return false; - if (!getPublicDependencyList() - .equals(other.getPublicDependencyList())) return false; - if (!getWeakDependencyList() - .equals(other.getWeakDependencyList())) return false; - if (!getMessageTypeList() - .equals(other.getMessageTypeList())) return false; - if (!getEnumTypeList() - .equals(other.getEnumTypeList())) return false; - if (!getServiceList() - .equals(other.getServiceList())) return false; - if (!getExtensionList() - .equals(other.getExtensionList())) return false; - if (hasOptions() != other.hasOptions()) return false; - if (hasOptions()) { - if (!getOptions() - .equals(other.getOptions())) return false; - } - if (hasSourceCodeInfo() != other.hasSourceCodeInfo()) return false; - if (hasSourceCodeInfo()) { - if (!getSourceCodeInfo() - .equals(other.getSourceCodeInfo())) return false; - } - if (hasSyntax() != other.hasSyntax()) return false; - if (hasSyntax()) { - if (!getSyntax() - .equals(other.getSyntax())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (hasPackage()) { - hash = (37 * hash) + PACKAGE_FIELD_NUMBER; - hash = (53 * hash) + getPackage().hashCode(); - } - if (getDependencyCount() > 0) { - hash = (37 * hash) + DEPENDENCY_FIELD_NUMBER; - hash = (53 * hash) + getDependencyList().hashCode(); - } - if (getPublicDependencyCount() > 0) { - hash = (37 * hash) + PUBLIC_DEPENDENCY_FIELD_NUMBER; - hash = (53 * hash) + getPublicDependencyList().hashCode(); - } - if (getWeakDependencyCount() > 0) { - hash = (37 * hash) + WEAK_DEPENDENCY_FIELD_NUMBER; - hash = (53 * hash) + getWeakDependencyList().hashCode(); - } - if (getMessageTypeCount() > 0) { - hash = (37 * hash) + MESSAGE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMessageTypeList().hashCode(); - } - if (getEnumTypeCount() > 0) { - hash = (37 * hash) + ENUM_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getEnumTypeList().hashCode(); - } - if (getServiceCount() > 0) { - hash = (37 * hash) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getServiceList().hashCode(); - } - if (getExtensionCount() > 0) { - hash = (37 * hash) + EXTENSION_FIELD_NUMBER; - hash = (53 * hash) + getExtensionList().hashCode(); - } - if (hasOptions()) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptions().hashCode(); - } - if (hasSourceCodeInfo()) { - hash = (37 * hash) + SOURCE_CODE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getSourceCodeInfo().hashCode(); - } - if (hasSyntax()) { - hash = (37 * hash) + SYNTAX_FIELD_NUMBER; - hash = (53 * hash) + getSyntax().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto 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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto 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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto 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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto 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; - } - /** - *
-     * Describes a complete .proto file.
-     * 
- * - * Protobuf type {@code google.protobuf.FileDescriptorProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.protobuf.FileDescriptorProto) - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.class, com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMessageTypeFieldBuilder(); - getEnumTypeFieldBuilder(); - getServiceFieldBuilder(); - getExtensionFieldBuilder(); - getOptionsFieldBuilder(); - getSourceCodeInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - package_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - publicDependency_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - weakDependency_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000010); - if (messageTypeBuilder_ == null) { - messageType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - messageTypeBuilder_.clear(); - } - if (enumTypeBuilder_ == null) { - enumType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - enumTypeBuilder_.clear(); - } - if (serviceBuilder_ == null) { - service_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - serviceBuilder_.clear(); - } - if (extensionBuilder_ == null) { - extension_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - } else { - extensionBuilder_.clear(); - } - if (optionsBuilder_ == null) { - options_ = null; - } else { - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - if (sourceCodeInfoBuilder_ == null) { - sourceCodeInfo_ = null; - } else { - sourceCodeInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - syntax_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FileDescriptorProto_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto build() { - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto buildPartial() { - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto result = new com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) != 0)) { - to_bitField0_ |= 0x00000002; - } - result.package_ = package_; - if (((bitField0_ & 0x00000004) != 0)) { - dependency_ = dependency_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.dependency_ = dependency_; - if (((bitField0_ & 0x00000008) != 0)) { - publicDependency_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.publicDependency_ = publicDependency_; - if (((bitField0_ & 0x00000010) != 0)) { - weakDependency_.makeImmutable(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.weakDependency_ = weakDependency_; - if (messageTypeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - messageType_ = java.util.Collections.unmodifiableList(messageType_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.messageType_ = messageType_; - } else { - result.messageType_ = messageTypeBuilder_.build(); - } - if (enumTypeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - enumType_ = java.util.Collections.unmodifiableList(enumType_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.enumType_ = enumType_; - } else { - result.enumType_ = enumTypeBuilder_.build(); - } - if (serviceBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - service_ = java.util.Collections.unmodifiableList(service_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.service_ = service_; - } else { - result.service_ = serviceBuilder_.build(); - } - if (extensionBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { - extension_ = java.util.Collections.unmodifiableList(extension_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.extension_ = extension_; - } else { - result.extension_ = extensionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) != 0)) { - if (optionsBuilder_ == null) { - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - if (sourceCodeInfoBuilder_ == null) { - result.sourceCodeInfo_ = sourceCodeInfo_; - } else { - result.sourceCodeInfo_ = sourceCodeInfoBuilder_.build(); - } - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - to_bitField0_ |= 0x00000010; - } - result.syntax_ = syntax_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto) { - return mergeFrom((com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto other) { - if (other == com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasPackage()) { - bitField0_ |= 0x00000002; - package_ = other.package_; - onChanged(); - } - if (!other.dependency_.isEmpty()) { - if (dependency_.isEmpty()) { - dependency_ = other.dependency_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureDependencyIsMutable(); - dependency_.addAll(other.dependency_); - } - onChanged(); - } - if (!other.publicDependency_.isEmpty()) { - if (publicDependency_.isEmpty()) { - publicDependency_ = other.publicDependency_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensurePublicDependencyIsMutable(); - publicDependency_.addAll(other.publicDependency_); - } - onChanged(); - } - if (!other.weakDependency_.isEmpty()) { - if (weakDependency_.isEmpty()) { - weakDependency_ = other.weakDependency_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureWeakDependencyIsMutable(); - weakDependency_.addAll(other.weakDependency_); - } - onChanged(); - } - if (messageTypeBuilder_ == null) { - if (!other.messageType_.isEmpty()) { - if (messageType_.isEmpty()) { - messageType_ = other.messageType_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureMessageTypeIsMutable(); - messageType_.addAll(other.messageType_); - } - onChanged(); - } - } else { - if (!other.messageType_.isEmpty()) { - if (messageTypeBuilder_.isEmpty()) { - messageTypeBuilder_.dispose(); - messageTypeBuilder_ = null; - messageType_ = other.messageType_; - bitField0_ = (bitField0_ & ~0x00000020); - messageTypeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMessageTypeFieldBuilder() : null; - } else { - messageTypeBuilder_.addAllMessages(other.messageType_); - } - } - } - if (enumTypeBuilder_ == null) { - if (!other.enumType_.isEmpty()) { - if (enumType_.isEmpty()) { - enumType_ = other.enumType_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureEnumTypeIsMutable(); - enumType_.addAll(other.enumType_); - } - onChanged(); - } - } else { - if (!other.enumType_.isEmpty()) { - if (enumTypeBuilder_.isEmpty()) { - enumTypeBuilder_.dispose(); - enumTypeBuilder_ = null; - enumType_ = other.enumType_; - bitField0_ = (bitField0_ & ~0x00000040); - enumTypeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEnumTypeFieldBuilder() : null; - } else { - enumTypeBuilder_.addAllMessages(other.enumType_); - } - } - } - if (serviceBuilder_ == null) { - if (!other.service_.isEmpty()) { - if (service_.isEmpty()) { - service_ = other.service_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureServiceIsMutable(); - service_.addAll(other.service_); - } - onChanged(); - } - } else { - if (!other.service_.isEmpty()) { - if (serviceBuilder_.isEmpty()) { - serviceBuilder_.dispose(); - serviceBuilder_ = null; - service_ = other.service_; - bitField0_ = (bitField0_ & ~0x00000080); - serviceBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServiceFieldBuilder() : null; - } else { - serviceBuilder_.addAllMessages(other.service_); - } - } - } - if (extensionBuilder_ == null) { - if (!other.extension_.isEmpty()) { - if (extension_.isEmpty()) { - extension_ = other.extension_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureExtensionIsMutable(); - extension_.addAll(other.extension_); - } - onChanged(); - } - } else { - if (!other.extension_.isEmpty()) { - if (extensionBuilder_.isEmpty()) { - extensionBuilder_.dispose(); - extensionBuilder_ = null; - extension_ = other.extension_; - bitField0_ = (bitField0_ & ~0x00000100); - extensionBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExtensionFieldBuilder() : null; - } else { - extensionBuilder_.addAllMessages(other.extension_); - } - } - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - if (other.hasSourceCodeInfo()) { - mergeSourceCodeInfo(other.getSourceCodeInfo()); - } - if (other.hasSyntax()) { - bitField0_ |= 0x00000800; - syntax_ = other.syntax_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getMessageTypeCount(); i++) { - if (!getMessageType(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getEnumTypeCount(); i++) { - if (!getEnumType(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getServiceCount(); i++) { - if (!getService(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getExtensionCount(); i++) { - if (!getExtension(i).isInitialized()) { - return false; - } - } - if (hasOptions()) { - if (!getOptions().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * file name, relative to root of source tree
-       * 
- * - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * file name, relative to root of source tree
-       * 
- * - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * file name, relative to root of source tree
-       * 
- * - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * file name, relative to root of source tree
-       * 
- * - * optional string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - *
-       * file name, relative to root of source tree
-       * 
- * - * optional string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * file name, relative to root of source tree
-       * 
- * - * optional string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object package_ = ""; - /** - *
-       * e.g. "foo", "foo.bar", etc.
-       * 
- * - * optional string package = 2; - */ - public boolean hasPackage() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * e.g. "foo", "foo.bar", etc.
-       * 
- * - * optional string package = 2; - */ - public java.lang.String getPackage() { - java.lang.Object ref = package_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - package_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * e.g. "foo", "foo.bar", etc.
-       * 
- * - * optional string package = 2; - */ - public com.google.protobuf.ByteString - getPackageBytes() { - java.lang.Object ref = package_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - package_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * e.g. "foo", "foo.bar", etc.
-       * 
- * - * optional string package = 2; - */ - public Builder setPackage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - package_ = value; - onChanged(); - return this; - } - /** - *
-       * e.g. "foo", "foo.bar", etc.
-       * 
- * - * optional string package = 2; - */ - public Builder clearPackage() { - bitField0_ = (bitField0_ & ~0x00000002); - package_ = getDefaultInstance().getPackage(); - onChanged(); - return this; - } - /** - *
-       * e.g. "foo", "foo.bar", etc.
-       * 
- * - * optional string package = 2; - */ - public Builder setPackageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - package_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureDependencyIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - dependency_ = new com.google.protobuf.LazyStringArrayList(dependency_); - bitField0_ |= 0x00000004; - } - } - /** - *
-       * Names of files imported by this file.
-       * 
- * - * repeated string dependency = 3; - */ - public com.google.protobuf.ProtocolStringList - getDependencyList() { - return dependency_.getUnmodifiableView(); - } - /** - *
-       * Names of files imported by this file.
-       * 
- * - * repeated string dependency = 3; - */ - public int getDependencyCount() { - return dependency_.size(); - } - /** - *
-       * Names of files imported by this file.
-       * 
- * - * repeated string dependency = 3; - */ - public java.lang.String getDependency(int index) { - return dependency_.get(index); - } - /** - *
-       * Names of files imported by this file.
-       * 
- * - * repeated string dependency = 3; - */ - public com.google.protobuf.ByteString - getDependencyBytes(int index) { - return dependency_.getByteString(index); - } - /** - *
-       * Names of files imported by this file.
-       * 
- * - * repeated string dependency = 3; - */ - public Builder setDependency( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyIsMutable(); - dependency_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Names of files imported by this file.
-       * 
- * - * repeated string dependency = 3; - */ - public Builder addDependency( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyIsMutable(); - dependency_.add(value); - onChanged(); - return this; - } - /** - *
-       * Names of files imported by this file.
-       * 
- * - * repeated string dependency = 3; - */ - public Builder addAllDependency( - java.lang.Iterable values) { - ensureDependencyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dependency_); - onChanged(); - return this; - } - /** - *
-       * Names of files imported by this file.
-       * 
- * - * repeated string dependency = 3; - */ - public Builder clearDependency() { - dependency_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * Names of files imported by this file.
-       * 
- * - * repeated string dependency = 3; - */ - public Builder addDependencyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDependencyIsMutable(); - dependency_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList publicDependency_ = emptyIntList(); - private void ensurePublicDependencyIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - publicDependency_ = mutableCopy(publicDependency_); - bitField0_ |= 0x00000008; - } - } - /** - *
-       * Indexes of the public imported files in the dependency list above.
-       * 
- * - * repeated int32 public_dependency = 10; - */ - public java.util.List - getPublicDependencyList() { - return ((bitField0_ & 0x00000008) != 0) ? - java.util.Collections.unmodifiableList(publicDependency_) : publicDependency_; - } - /** - *
-       * Indexes of the public imported files in the dependency list above.
-       * 
- * - * repeated int32 public_dependency = 10; - */ - public int getPublicDependencyCount() { - return publicDependency_.size(); - } - /** - *
-       * Indexes of the public imported files in the dependency list above.
-       * 
- * - * repeated int32 public_dependency = 10; - */ - public int getPublicDependency(int index) { - return publicDependency_.getInt(index); - } - /** - *
-       * Indexes of the public imported files in the dependency list above.
-       * 
- * - * repeated int32 public_dependency = 10; - */ - public Builder setPublicDependency( - int index, int value) { - ensurePublicDependencyIsMutable(); - publicDependency_.setInt(index, value); - onChanged(); - return this; - } - /** - *
-       * Indexes of the public imported files in the dependency list above.
-       * 
- * - * repeated int32 public_dependency = 10; - */ - public Builder addPublicDependency(int value) { - ensurePublicDependencyIsMutable(); - publicDependency_.addInt(value); - onChanged(); - return this; - } - /** - *
-       * Indexes of the public imported files in the dependency list above.
-       * 
- * - * repeated int32 public_dependency = 10; - */ - public Builder addAllPublicDependency( - java.lang.Iterable values) { - ensurePublicDependencyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, publicDependency_); - onChanged(); - return this; - } - /** - *
-       * Indexes of the public imported files in the dependency list above.
-       * 
- * - * repeated int32 public_dependency = 10; - */ - public Builder clearPublicDependency() { - publicDependency_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList weakDependency_ = emptyIntList(); - private void ensureWeakDependencyIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - weakDependency_ = mutableCopy(weakDependency_); - bitField0_ |= 0x00000010; - } - } - /** - *
-       * Indexes of the weak imported files in the dependency list.
-       * For Google-internal migration only. Do not use.
-       * 
- * - * repeated int32 weak_dependency = 11; - */ - public java.util.List - getWeakDependencyList() { - return ((bitField0_ & 0x00000010) != 0) ? - java.util.Collections.unmodifiableList(weakDependency_) : weakDependency_; - } - /** - *
-       * Indexes of the weak imported files in the dependency list.
-       * For Google-internal migration only. Do not use.
-       * 
- * - * repeated int32 weak_dependency = 11; - */ - public int getWeakDependencyCount() { - return weakDependency_.size(); - } - /** - *
-       * Indexes of the weak imported files in the dependency list.
-       * For Google-internal migration only. Do not use.
-       * 
- * - * repeated int32 weak_dependency = 11; - */ - public int getWeakDependency(int index) { - return weakDependency_.getInt(index); - } - /** - *
-       * Indexes of the weak imported files in the dependency list.
-       * For Google-internal migration only. Do not use.
-       * 
- * - * repeated int32 weak_dependency = 11; - */ - public Builder setWeakDependency( - int index, int value) { - ensureWeakDependencyIsMutable(); - weakDependency_.setInt(index, value); - onChanged(); - return this; - } - /** - *
-       * Indexes of the weak imported files in the dependency list.
-       * For Google-internal migration only. Do not use.
-       * 
- * - * repeated int32 weak_dependency = 11; - */ - public Builder addWeakDependency(int value) { - ensureWeakDependencyIsMutable(); - weakDependency_.addInt(value); - onChanged(); - return this; - } - /** - *
-       * Indexes of the weak imported files in the dependency list.
-       * For Google-internal migration only. Do not use.
-       * 
- * - * repeated int32 weak_dependency = 11; - */ - public Builder addAllWeakDependency( - java.lang.Iterable values) { - ensureWeakDependencyIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, weakDependency_); - onChanged(); - return this; - } - /** - *
-       * Indexes of the weak imported files in the dependency list.
-       * For Google-internal migration only. Do not use.
-       * 
- * - * repeated int32 weak_dependency = 11; - */ - public Builder clearWeakDependency() { - weakDependency_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - private java.util.List messageType_ = - java.util.Collections.emptyList(); - private void ensureMessageTypeIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - messageType_ = new java.util.ArrayList(messageType_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder> messageTypeBuilder_; - - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public java.util.List getMessageTypeList() { - if (messageTypeBuilder_ == null) { - return java.util.Collections.unmodifiableList(messageType_); - } else { - return messageTypeBuilder_.getMessageList(); - } - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public int getMessageTypeCount() { - if (messageTypeBuilder_ == null) { - return messageType_.size(); - } else { - return messageTypeBuilder_.getCount(); - } - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto getMessageType(int index) { - if (messageTypeBuilder_ == null) { - return messageType_.get(index); - } else { - return messageTypeBuilder_.getMessage(index); - } - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public Builder setMessageType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto value) { - if (messageTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageTypeIsMutable(); - messageType_.set(index, value); - onChanged(); - } else { - messageTypeBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public Builder setMessageType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (messageTypeBuilder_ == null) { - ensureMessageTypeIsMutable(); - messageType_.set(index, builderForValue.build()); - onChanged(); - } else { - messageTypeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public Builder addMessageType(com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto value) { - if (messageTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageTypeIsMutable(); - messageType_.add(value); - onChanged(); - } else { - messageTypeBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public Builder addMessageType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto value) { - if (messageTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMessageTypeIsMutable(); - messageType_.add(index, value); - onChanged(); - } else { - messageTypeBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public Builder addMessageType( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (messageTypeBuilder_ == null) { - ensureMessageTypeIsMutable(); - messageType_.add(builderForValue.build()); - onChanged(); - } else { - messageTypeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public Builder addMessageType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (messageTypeBuilder_ == null) { - ensureMessageTypeIsMutable(); - messageType_.add(index, builderForValue.build()); - onChanged(); - } else { - messageTypeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public Builder addAllMessageType( - java.lang.Iterable values) { - if (messageTypeBuilder_ == null) { - ensureMessageTypeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, messageType_); - onChanged(); - } else { - messageTypeBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public Builder clearMessageType() { - if (messageTypeBuilder_ == null) { - messageType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - messageTypeBuilder_.clear(); - } - return this; - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public Builder removeMessageType(int index) { - if (messageTypeBuilder_ == null) { - ensureMessageTypeIsMutable(); - messageType_.remove(index); - onChanged(); - } else { - messageTypeBuilder_.remove(index); - } - return this; - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder getMessageTypeBuilder( - int index) { - return getMessageTypeFieldBuilder().getBuilder(index); - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder( - int index) { - if (messageTypeBuilder_ == null) { - return messageType_.get(index); } else { - return messageTypeBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public java.util.List - getMessageTypeOrBuilderList() { - if (messageTypeBuilder_ != null) { - return messageTypeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(messageType_); - } - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder() { - return getMessageTypeFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.getDefaultInstance()); - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder( - int index) { - return getMessageTypeFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.getDefaultInstance()); - } - /** - *
-       * All top-level definitions in this file.
-       * 
- * - * repeated .google.protobuf.DescriptorProto message_type = 4; - */ - public java.util.List - getMessageTypeBuilderList() { - return getMessageTypeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder> - getMessageTypeFieldBuilder() { - if (messageTypeBuilder_ == null) { - messageTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder>( - messageType_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - messageType_ = null; - } - return messageTypeBuilder_; - } - - private java.util.List enumType_ = - java.util.Collections.emptyList(); - private void ensureEnumTypeIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - enumType_ = new java.util.ArrayList(enumType_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_; - - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public java.util.List getEnumTypeList() { - if (enumTypeBuilder_ == null) { - return java.util.Collections.unmodifiableList(enumType_); - } else { - return enumTypeBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public int getEnumTypeCount() { - if (enumTypeBuilder_ == null) { - return enumType_.size(); - } else { - return enumTypeBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { - if (enumTypeBuilder_ == null) { - return enumType_.get(index); - } else { - return enumTypeBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public Builder setEnumType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.set(index, value); - onChanged(); - } else { - enumTypeBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public Builder setEnumType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.set(index, builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public Builder addEnumType(com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.add(value); - onChanged(); - } else { - enumTypeBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public Builder addEnumType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.add(index, value); - onChanged(); - } else { - enumTypeBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public Builder addEnumType( - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.add(builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public Builder addEnumType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.add(index, builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public Builder addAllEnumType( - java.lang.Iterable values) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, enumType_); - onChanged(); - } else { - enumTypeBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public Builder clearEnumType() { - if (enumTypeBuilder_ == null) { - enumType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - enumTypeBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public Builder removeEnumType(int index) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.remove(index); - onChanged(); - } else { - enumTypeBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( - int index) { - return getEnumTypeFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index) { - if (enumTypeBuilder_ == null) { - return enumType_.get(index); } else { - return enumTypeBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public java.util.List - getEnumTypeOrBuilderList() { - if (enumTypeBuilder_ != null) { - return enumTypeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(enumType_); - } - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder() { - return getEnumTypeFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder( - int index) { - return getEnumTypeFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - */ - public java.util.List - getEnumTypeBuilderList() { - return getEnumTypeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder> - getEnumTypeFieldBuilder() { - if (enumTypeBuilder_ == null) { - enumTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder>( - enumType_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - enumType_ = null; - } - return enumTypeBuilder_; - } - - private java.util.List service_ = - java.util.Collections.emptyList(); - private void ensureServiceIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - service_ = new java.util.ArrayList(service_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProtoOrBuilder> serviceBuilder_; - - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public java.util.List getServiceList() { - if (serviceBuilder_ == null) { - return java.util.Collections.unmodifiableList(service_); - } else { - return serviceBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public int getServiceCount() { - if (serviceBuilder_ == null) { - return service_.size(); - } else { - return serviceBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto getService(int index) { - if (serviceBuilder_ == null) { - return service_.get(index); - } else { - return serviceBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public Builder setService( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto value) { - if (serviceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServiceIsMutable(); - service_.set(index, value); - onChanged(); - } else { - serviceBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public Builder setService( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { - if (serviceBuilder_ == null) { - ensureServiceIsMutable(); - service_.set(index, builderForValue.build()); - onChanged(); - } else { - serviceBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public Builder addService(com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto value) { - if (serviceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServiceIsMutable(); - service_.add(value); - onChanged(); - } else { - serviceBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public Builder addService( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto value) { - if (serviceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServiceIsMutable(); - service_.add(index, value); - onChanged(); - } else { - serviceBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public Builder addService( - com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { - if (serviceBuilder_ == null) { - ensureServiceIsMutable(); - service_.add(builderForValue.build()); - onChanged(); - } else { - serviceBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public Builder addService( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) { - if (serviceBuilder_ == null) { - ensureServiceIsMutable(); - service_.add(index, builderForValue.build()); - onChanged(); - } else { - serviceBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public Builder addAllService( - java.lang.Iterable values) { - if (serviceBuilder_ == null) { - ensureServiceIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, service_); - onChanged(); - } else { - serviceBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public Builder clearService() { - if (serviceBuilder_ == null) { - service_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - serviceBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public Builder removeService(int index) { - if (serviceBuilder_ == null) { - ensureServiceIsMutable(); - service_.remove(index); - onChanged(); - } else { - serviceBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.Builder getServiceBuilder( - int index) { - return getServiceFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder( - int index) { - if (serviceBuilder_ == null) { - return service_.get(index); } else { - return serviceBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public java.util.List - getServiceOrBuilderList() { - if (serviceBuilder_ != null) { - return serviceBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(service_); - } - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder() { - return getServiceFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder( - int index) { - return getServiceFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.ServiceDescriptorProto service = 6; - */ - public java.util.List - getServiceBuilderList() { - return getServiceFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProtoOrBuilder> - getServiceFieldBuilder() { - if (serviceBuilder_ == null) { - serviceBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.ServiceDescriptorProtoOrBuilder>( - service_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - service_ = null; - } - return serviceBuilder_; - } - - private java.util.List extension_ = - java.util.Collections.emptyList(); - private void ensureExtensionIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - extension_ = new java.util.ArrayList(extension_); - bitField0_ |= 0x00000100; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_; - - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public java.util.List getExtensionList() { - if (extensionBuilder_ == null) { - return java.util.Collections.unmodifiableList(extension_); - } else { - return extensionBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public int getExtensionCount() { - if (extensionBuilder_ == null) { - return extension_.size(); - } else { - return extensionBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto getExtension(int index) { - if (extensionBuilder_ == null) { - return extension_.get(index); - } else { - return extensionBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public Builder setExtension( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.set(index, value); - onChanged(); - } else { - extensionBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public Builder setExtension( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.set(index, builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public Builder addExtension(com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.add(value); - onChanged(); - } else { - extensionBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public Builder addExtension( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.add(index, value); - onChanged(); - } else { - extensionBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public Builder addExtension( - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.add(builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public Builder addExtension( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.add(index, builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public Builder addAllExtension( - java.lang.Iterable values) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, extension_); - onChanged(); - } else { - extensionBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public Builder clearExtension() { - if (extensionBuilder_ == null) { - extension_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - } else { - extensionBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public Builder removeExtension(int index) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.remove(index); - onChanged(); - } else { - extensionBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( - int index) { - return getExtensionFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index) { - if (extensionBuilder_ == null) { - return extension_.get(index); } else { - return extensionBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public java.util.List - getExtensionOrBuilderList() { - if (extensionBuilder_ != null) { - return extensionBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extension_); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder() { - return getExtensionFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder( - int index) { - return getExtensionFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 7; - */ - public java.util.List - getExtensionBuilderList() { - return getExtensionFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getExtensionFieldBuilder() { - if (extensionBuilder_ == null) { - extensionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder>( - extension_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); - extension_ = null; - } - return extensionBuilder_; - } - - private com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions options_; - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions, com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FileOptionsOrBuilder> optionsBuilder_; - /** - * optional .google.protobuf.FileOptions options = 8; - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000200) != 0); - } - /** - * optional .google.protobuf.FileOptions options = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions getOptions() { - if (optionsBuilder_ == null) { - return options_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.getDefaultInstance() : options_; - } else { - return optionsBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.FileOptions options = 8; - */ - public Builder setOptions(com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - options_ = value; - onChanged(); - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - return this; - } - /** - * optional .google.protobuf.FileOptions options = 8; - */ - public Builder setOptions( - com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - onChanged(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - return this; - } - /** - * optional .google.protobuf.FileOptions options = 8; - */ - public Builder mergeOptions(com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions value) { - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - options_ != null && - options_ != com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.getDefaultInstance()) { - options_ = - com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.newBuilder(options_).mergeFrom(value).buildPartial(); - } else { - options_ = value; - } - onChanged(); - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - return this; - } - /** - * optional .google.protobuf.FileOptions options = 8; - */ - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = null; - onChanged(); - } else { - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - /** - * optional .google.protobuf.FileOptions options = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.FileOptions options = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilder(); - } else { - return options_ == null ? - com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.getDefaultInstance() : options_; - } - } - /** - * optional .google.protobuf.FileOptions options = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions, com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FileOptionsOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions, com.pingcap.kafkareader.proto.DescriptorProtos.FileOptions.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FileOptionsOrBuilder>( - getOptions(), - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - - private com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo sourceCodeInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo, com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfoOrBuilder> sourceCodeInfoBuilder_; - /** - *
-       * This field contains optional information about the original source code.
-       * You may safely remove this entire field without harming runtime
-       * functionality of the descriptors -- the information is needed only by
-       * development tools.
-       * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - public boolean hasSourceCodeInfo() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - *
-       * This field contains optional information about the original source code.
-       * You may safely remove this entire field without harming runtime
-       * functionality of the descriptors -- the information is needed only by
-       * development tools.
-       * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo getSourceCodeInfo() { - if (sourceCodeInfoBuilder_ == null) { - return sourceCodeInfo_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; - } else { - return sourceCodeInfoBuilder_.getMessage(); - } - } - /** - *
-       * This field contains optional information about the original source code.
-       * You may safely remove this entire field without harming runtime
-       * functionality of the descriptors -- the information is needed only by
-       * development tools.
-       * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - public Builder setSourceCodeInfo(com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo value) { - if (sourceCodeInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sourceCodeInfo_ = value; - onChanged(); - } else { - sourceCodeInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - return this; - } - /** - *
-       * This field contains optional information about the original source code.
-       * You may safely remove this entire field without harming runtime
-       * functionality of the descriptors -- the information is needed only by
-       * development tools.
-       * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - public Builder setSourceCodeInfo( - com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.Builder builderForValue) { - if (sourceCodeInfoBuilder_ == null) { - sourceCodeInfo_ = builderForValue.build(); - onChanged(); - } else { - sourceCodeInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - return this; - } - /** - *
-       * This field contains optional information about the original source code.
-       * You may safely remove this entire field without harming runtime
-       * functionality of the descriptors -- the information is needed only by
-       * development tools.
-       * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - public Builder mergeSourceCodeInfo(com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo value) { - if (sourceCodeInfoBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - sourceCodeInfo_ != null && - sourceCodeInfo_ != com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.getDefaultInstance()) { - sourceCodeInfo_ = - com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.newBuilder(sourceCodeInfo_).mergeFrom(value).buildPartial(); - } else { - sourceCodeInfo_ = value; - } - onChanged(); - } else { - sourceCodeInfoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - return this; - } - /** - *
-       * This field contains optional information about the original source code.
-       * You may safely remove this entire field without harming runtime
-       * functionality of the descriptors -- the information is needed only by
-       * development tools.
-       * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - public Builder clearSourceCodeInfo() { - if (sourceCodeInfoBuilder_ == null) { - sourceCodeInfo_ = null; - onChanged(); - } else { - sourceCodeInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - return this; - } - /** - *
-       * This field contains optional information about the original source code.
-       * You may safely remove this entire field without harming runtime
-       * functionality of the descriptors -- the information is needed only by
-       * development tools.
-       * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.Builder getSourceCodeInfoBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getSourceCodeInfoFieldBuilder().getBuilder(); - } - /** - *
-       * This field contains optional information about the original source code.
-       * You may safely remove this entire field without harming runtime
-       * functionality of the descriptors -- the information is needed only by
-       * development tools.
-       * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder() { - if (sourceCodeInfoBuilder_ != null) { - return sourceCodeInfoBuilder_.getMessageOrBuilder(); - } else { - return sourceCodeInfo_ == null ? - com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.getDefaultInstance() : sourceCodeInfo_; - } - } - /** - *
-       * This field contains optional information about the original source code.
-       * You may safely remove this entire field without harming runtime
-       * functionality of the descriptors -- the information is needed only by
-       * development tools.
-       * 
- * - * optional .google.protobuf.SourceCodeInfo source_code_info = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo, com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfoOrBuilder> - getSourceCodeInfoFieldBuilder() { - if (sourceCodeInfoBuilder_ == null) { - sourceCodeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo, com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfo.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.SourceCodeInfoOrBuilder>( - getSourceCodeInfo(), - getParentForChildren(), - isClean()); - sourceCodeInfo_ = null; - } - return sourceCodeInfoBuilder_; - } - - private java.lang.Object syntax_ = ""; - /** - *
-       * The syntax of the proto file.
-       * The supported values are "proto2" and "proto3".
-       * 
- * - * optional string syntax = 12; - */ - public boolean hasSyntax() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - *
-       * The syntax of the proto file.
-       * The supported values are "proto2" and "proto3".
-       * 
- * - * optional string syntax = 12; - */ - public java.lang.String getSyntax() { - java.lang.Object ref = syntax_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - syntax_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The syntax of the proto file.
-       * The supported values are "proto2" and "proto3".
-       * 
- * - * optional string syntax = 12; - */ - public com.google.protobuf.ByteString - getSyntaxBytes() { - java.lang.Object ref = syntax_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - syntax_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The syntax of the proto file.
-       * The supported values are "proto2" and "proto3".
-       * 
- * - * optional string syntax = 12; - */ - public Builder setSyntax( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - syntax_ = value; - onChanged(); - return this; - } - /** - *
-       * The syntax of the proto file.
-       * The supported values are "proto2" and "proto3".
-       * 
- * - * optional string syntax = 12; - */ - public Builder clearSyntax() { - bitField0_ = (bitField0_ & ~0x00000800); - syntax_ = getDefaultInstance().getSyntax(); - onChanged(); - return this; - } - /** - *
-       * The syntax of the proto file.
-       * The supported values are "proto2" and "proto3".
-       * 
- * - * optional string syntax = 12; - */ - public Builder setSyntaxBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - syntax_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.protobuf.FileDescriptorProto) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto) - private static final com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto(); - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FileDescriptorProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FileDescriptorProto(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.DescriptorProtos.FileDescriptorProto getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DescriptorProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.DescriptorProto) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string name = 1; - */ - boolean hasName(); - /** - * optional string name = 1; - */ - java.lang.String getName(); - /** - * optional string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - java.util.List - getFieldList(); - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto getField(int index); - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - int getFieldCount(); - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - java.util.List - getFieldOrBuilderList(); - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( - int index); - - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - java.util.List - getExtensionList(); - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto getExtension(int index); - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - int getExtensionCount(); - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - java.util.List - getExtensionOrBuilderList(); - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index); - - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - java.util.List - getNestedTypeList(); - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto getNestedType(int index); - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - int getNestedTypeCount(); - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - java.util.List - getNestedTypeOrBuilderList(); - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( - int index); - - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - java.util.List - getEnumTypeList(); - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto getEnumType(int index); - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - int getEnumTypeCount(); - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - java.util.List - getEnumTypeOrBuilderList(); - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index); - - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - java.util.List - getExtensionRangeList(); - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index); - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - int getExtensionRangeCount(); - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - java.util.List - getExtensionRangeOrBuilderList(); - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( - int index); - - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - java.util.List - getOneofDeclList(); - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index); - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - int getOneofDeclCount(); - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - java.util.List - getOneofDeclOrBuilderList(); - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( - int index); - - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - boolean hasOptions(); - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions getOptions(); - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder(); - - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - java.util.List - getReservedRangeList(); - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index); - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - int getReservedRangeCount(); - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - java.util.List - getReservedRangeOrBuilderList(); - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder( - int index); - - /** - *
-     * Reserved field names, which may not be used by fields in the same message.
-     * A given name may only be reserved once.
-     * 
- * - * repeated string reserved_name = 10; - */ - java.util.List - getReservedNameList(); - /** - *
-     * Reserved field names, which may not be used by fields in the same message.
-     * A given name may only be reserved once.
-     * 
- * - * repeated string reserved_name = 10; - */ - int getReservedNameCount(); - /** - *
-     * Reserved field names, which may not be used by fields in the same message.
-     * A given name may only be reserved once.
-     * 
- * - * repeated string reserved_name = 10; - */ - java.lang.String getReservedName(int index); - /** - *
-     * Reserved field names, which may not be used by fields in the same message.
-     * A given name may only be reserved once.
-     * 
- * - * repeated string reserved_name = 10; - */ - com.google.protobuf.ByteString - getReservedNameBytes(int index); - } - /** - *
-   * Describes a message type.
-   * 
- * - * Protobuf type {@code google.protobuf.DescriptorProto} - */ - public static final class DescriptorProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.DescriptorProto) - DescriptorProtoOrBuilder { - private static final long serialVersionUID = 0L; - // Use DescriptorProto.newBuilder() to construct. - private DescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DescriptorProto() { - name_ = ""; - field_ = java.util.Collections.emptyList(); - extension_ = java.util.Collections.emptyList(); - nestedType_ = java.util.Collections.emptyList(); - enumType_ = java.util.Collections.emptyList(); - extensionRange_ = java.util.Collections.emptyList(); - oneofDecl_ = java.util.Collections.emptyList(); - reservedRange_ = java.util.Collections.emptyList(); - reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DescriptorProto(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DescriptorProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - field_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - field_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - nestedType_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - nestedType_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.PARSER, extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - enumType_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - enumType_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.PARSER, extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - extensionRange_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - extensionRange_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.PARSER, extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - extension_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - extension_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.PARSER, extensionRegistry)); - break; - } - case 58: { - com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) != 0)) { - subBuilder = options_.toBuilder(); - } - options_ = input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(options_); - options_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - oneofDecl_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - oneofDecl_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.PARSER, extensionRegistry)); - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - reservedRange_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000100; - } - reservedRange_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.PARSER, extensionRegistry)); - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000200) != 0)) { - reservedName_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000200; - } - reservedName_.add(bs); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - field_ = java.util.Collections.unmodifiableList(field_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - nestedType_ = java.util.Collections.unmodifiableList(nestedType_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - enumType_ = java.util.Collections.unmodifiableList(enumType_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - extensionRange_ = java.util.Collections.unmodifiableList(extensionRange_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - extension_ = java.util.Collections.unmodifiableList(extension_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - oneofDecl_ = java.util.Collections.unmodifiableList(oneofDecl_); - } - if (((mutable_bitField0_ & 0x00000100) != 0)) { - reservedRange_ = java.util.Collections.unmodifiableList(reservedRange_); - } - if (((mutable_bitField0_ & 0x00000200) != 0)) { - reservedName_ = reservedName_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.class, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder.class); - } - - public interface ExtensionRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.DescriptorProto.ExtensionRange) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 start = 1; - */ - boolean hasStart(); - /** - * optional int32 start = 1; - */ - int getStart(); - - /** - * optional int32 end = 2; - */ - boolean hasEnd(); - /** - * optional int32 end = 2; - */ - int getEnd(); - - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - boolean hasOptions(); - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions getOptions(); - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptionsOrBuilder getOptionsOrBuilder(); - } - /** - * Protobuf type {@code google.protobuf.DescriptorProto.ExtensionRange} - */ - public static final class ExtensionRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.DescriptorProto.ExtensionRange) - ExtensionRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExtensionRange.newBuilder() to construct. - private ExtensionRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExtensionRange() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExtensionRange(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExtensionRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - start_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - end_ = input.readInt32(); - break; - } - case 26: { - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) != 0)) { - subBuilder = options_.toBuilder(); - } - options_ = input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(options_); - options_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000004; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.class, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.Builder.class); - } - - private int bitField0_; - public static final int START_FIELD_NUMBER = 1; - private int start_; - /** - * optional int32 start = 1; - */ - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 start = 1; - */ - public int getStart() { - return start_; - } - - public static final int END_FIELD_NUMBER = 2; - private int end_; - /** - * optional int32 end = 2; - */ - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int32 end = 2; - */ - public int getEnd() { - return end_; - } - - public static final int OPTIONS_FIELD_NUMBER = 3; - private com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions options_; - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions getOptions() { - return options_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; - } - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptionsOrBuilder getOptionsOrBuilder() { - return options_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (hasOptions()) { - if (!getOptions().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, start_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt32(2, end_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getOptions()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, start_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, end_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOptions()); - } - size += unknownFields.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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange other = (com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange) obj; - - if (hasStart() != other.hasStart()) return false; - if (hasStart()) { - if (getStart() - != other.getStart()) return false; - } - if (hasEnd() != other.hasEnd()) return false; - if (hasEnd()) { - if (getEnd() - != other.getEnd()) return false; - } - if (hasOptions() != other.hasOptions()) return false; - if (hasOptions()) { - if (!getOptions() - .equals(other.getOptions())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasStart()) { - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + getStart(); - } - if (hasEnd()) { - hash = (37 * hash) + END_FIELD_NUMBER; - hash = (53 * hash) + getEnd(); - } - if (hasOptions()) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptions().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange 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; - } - /** - * Protobuf type {@code google.protobuf.DescriptorProto.ExtensionRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.protobuf.DescriptorProto.ExtensionRange) - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.class, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOptionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - start_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - end_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - if (optionsBuilder_ == null) { - options_ = null; - } else { - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange build() { - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange buildPartial() { - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange result = new com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.start_ = start_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.end_ = end_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - if (optionsBuilder_ == null) { - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - to_bitField0_ |= 0x00000004; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange) { - return mergeFrom((com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange other) { - if (other == com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()) return this; - if (other.hasStart()) { - setStart(other.getStart()); - } - if (other.hasEnd()) { - setEnd(other.getEnd()); - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - if (hasOptions()) { - if (!getOptions().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int start_ ; - /** - * optional int32 start = 1; - */ - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional int32 start = 1; - */ - public int getStart() { - return start_; - } - /** - * optional int32 start = 1; - */ - public Builder setStart(int value) { - bitField0_ |= 0x00000001; - start_ = value; - onChanged(); - return this; - } - /** - * optional int32 start = 1; - */ - public Builder clearStart() { - bitField0_ = (bitField0_ & ~0x00000001); - start_ = 0; - onChanged(); - return this; - } - - private int end_ ; - /** - * optional int32 end = 2; - */ - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional int32 end = 2; - */ - public int getEnd() { - return end_; - } - /** - * optional int32 end = 2; - */ - public Builder setEnd(int value) { - bitField0_ |= 0x00000002; - end_ = value; - onChanged(); - return this; - } - /** - * optional int32 end = 2; - */ - public Builder clearEnd() { - bitField0_ = (bitField0_ & ~0x00000002); - end_ = 0; - onChanged(); - return this; - } - - private com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions options_; - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions, com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptionsOrBuilder> optionsBuilder_; - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions getOptions() { - if (optionsBuilder_ == null) { - return options_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; - } else { - return optionsBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - public Builder setOptions(com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - options_ = value; - onChanged(); - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - public Builder setOptions( - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - onChanged(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - public Builder mergeOptions(com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions value) { - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - options_ != null && - options_ != com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance()) { - options_ = - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.newBuilder(options_).mergeFrom(value).buildPartial(); - } else { - options_ = value; - } - onChanged(); - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; - } - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = null; - onChanged(); - } else { - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptionsOrBuilder getOptionsOrBuilder() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilder(); - } else { - return options_ == null ? - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance() : options_; - } - } - /** - * optional .google.protobuf.ExtensionRangeOptions options = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions, com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptionsOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions, com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptionsOrBuilder>( - getOptions(), - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - @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.protobuf.DescriptorProto.ExtensionRange) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange) - private static final com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange(); - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExtensionRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExtensionRange(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ReservedRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.DescriptorProto.ReservedRange) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * Inclusive.
-       * 
- * - * optional int32 start = 1; - */ - boolean hasStart(); - /** - *
-       * Inclusive.
-       * 
- * - * optional int32 start = 1; - */ - int getStart(); - - /** - *
-       * Exclusive.
-       * 
- * - * optional int32 end = 2; - */ - boolean hasEnd(); - /** - *
-       * Exclusive.
-       * 
- * - * optional int32 end = 2; - */ - int getEnd(); - } - /** - *
-     * Range of reserved tag numbers. Reserved tag numbers may not be used by
-     * fields or extension ranges in the same message. Reserved ranges may
-     * not overlap.
-     * 
- * - * Protobuf type {@code google.protobuf.DescriptorProto.ReservedRange} - */ - public static final class ReservedRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.DescriptorProto.ReservedRange) - ReservedRangeOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReservedRange.newBuilder() to construct. - private ReservedRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReservedRange() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReservedRange(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReservedRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - bitField0_ |= 0x00000001; - start_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - end_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.class, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.Builder.class); - } - - private int bitField0_; - public static final int START_FIELD_NUMBER = 1; - private int start_; - /** - *
-       * Inclusive.
-       * 
- * - * optional int32 start = 1; - */ - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Inclusive.
-       * 
- * - * optional int32 start = 1; - */ - public int getStart() { - return start_; - } - - public static final int END_FIELD_NUMBER = 2; - private int end_; - /** - *
-       * Exclusive.
-       * 
- * - * optional int32 end = 2; - */ - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Exclusive.
-       * 
- * - * optional int32 end = 2; - */ - public int getEnd() { - return end_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(1, start_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt32(2, end_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, start_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, end_); - } - size += unknownFields.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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange other = (com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange) obj; - - if (hasStart() != other.hasStart()) return false; - if (hasStart()) { - if (getStart() - != other.getStart()) return false; - } - if (hasEnd() != other.hasEnd()) return false; - if (hasEnd()) { - if (getEnd() - != other.getEnd()) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasStart()) { - hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + getStart(); - } - if (hasEnd()) { - hash = (37 * hash) + END_FIELD_NUMBER; - hash = (53 * hash) + getEnd(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange 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; - } - /** - *
-       * Range of reserved tag numbers. Reserved tag numbers may not be used by
-       * fields or extension ranges in the same message. Reserved ranges may
-       * not overlap.
-       * 
- * - * Protobuf type {@code google.protobuf.DescriptorProto.ReservedRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.protobuf.DescriptorProto.ReservedRange) - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.class, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - start_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - end_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_ReservedRange_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange build() { - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange buildPartial() { - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange result = new com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.start_ = start_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.end_ = end_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange) { - return mergeFrom((com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange other) { - if (other == com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance()) return this; - if (other.hasStart()) { - setStart(other.getStart()); - } - if (other.hasEnd()) { - setEnd(other.getEnd()); - } - this.mergeUnknownFields(other.unknownFields); - 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 { - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int start_ ; - /** - *
-         * Inclusive.
-         * 
- * - * optional int32 start = 1; - */ - public boolean hasStart() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-         * Inclusive.
-         * 
- * - * optional int32 start = 1; - */ - public int getStart() { - return start_; - } - /** - *
-         * Inclusive.
-         * 
- * - * optional int32 start = 1; - */ - public Builder setStart(int value) { - bitField0_ |= 0x00000001; - start_ = value; - onChanged(); - return this; - } - /** - *
-         * Inclusive.
-         * 
- * - * optional int32 start = 1; - */ - public Builder clearStart() { - bitField0_ = (bitField0_ & ~0x00000001); - start_ = 0; - onChanged(); - return this; - } - - private int end_ ; - /** - *
-         * Exclusive.
-         * 
- * - * optional int32 end = 2; - */ - public boolean hasEnd() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-         * Exclusive.
-         * 
- * - * optional int32 end = 2; - */ - public int getEnd() { - return end_; - } - /** - *
-         * Exclusive.
-         * 
- * - * optional int32 end = 2; - */ - public Builder setEnd(int value) { - bitField0_ |= 0x00000002; - end_ = value; - onChanged(); - return this; - } - /** - *
-         * Exclusive.
-         * 
- * - * optional int32 end = 2; - */ - public Builder clearEnd() { - bitField0_ = (bitField0_ & ~0x00000002); - end_ = 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.protobuf.DescriptorProto.ReservedRange) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ReservedRange) - private static final com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange(); - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservedRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReservedRange(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELD_FIELD_NUMBER = 2; - private java.util.List field_; - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public java.util.List getFieldList() { - return field_; - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public java.util.List - getFieldOrBuilderList() { - return field_; - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public int getFieldCount() { - return field_.size(); - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto getField(int index) { - return field_.get(index); - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( - int index) { - return field_.get(index); - } - - public static final int EXTENSION_FIELD_NUMBER = 6; - private java.util.List extension_; - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public java.util.List getExtensionList() { - return extension_; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public java.util.List - getExtensionOrBuilderList() { - return extension_; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public int getExtensionCount() { - return extension_.size(); - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto getExtension(int index) { - return extension_.get(index); - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index) { - return extension_.get(index); - } - - public static final int NESTED_TYPE_FIELD_NUMBER = 3; - private java.util.List nestedType_; - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public java.util.List getNestedTypeList() { - return nestedType_; - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public java.util.List - getNestedTypeOrBuilderList() { - return nestedType_; - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public int getNestedTypeCount() { - return nestedType_.size(); - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto getNestedType(int index) { - return nestedType_.get(index); - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( - int index) { - return nestedType_.get(index); - } - - public static final int ENUM_TYPE_FIELD_NUMBER = 4; - private java.util.List enumType_; - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public java.util.List getEnumTypeList() { - return enumType_; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public java.util.List - getEnumTypeOrBuilderList() { - return enumType_; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public int getEnumTypeCount() { - return enumType_.size(); - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { - return enumType_.get(index); - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index) { - return enumType_.get(index); - } - - public static final int EXTENSION_RANGE_FIELD_NUMBER = 5; - private java.util.List extensionRange_; - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public java.util.List getExtensionRangeList() { - return extensionRange_; - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public java.util.List - getExtensionRangeOrBuilderList() { - return extensionRange_; - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public int getExtensionRangeCount() { - return extensionRange_.size(); - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { - return extensionRange_.get(index); - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( - int index) { - return extensionRange_.get(index); - } - - public static final int ONEOF_DECL_FIELD_NUMBER = 8; - private java.util.List oneofDecl_; - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public java.util.List getOneofDeclList() { - return oneofDecl_; - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public java.util.List - getOneofDeclOrBuilderList() { - return oneofDecl_; - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public int getOneofDeclCount() { - return oneofDecl_.size(); - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index) { - return oneofDecl_.get(index); - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( - int index) { - return oneofDecl_.get(index); - } - - public static final int OPTIONS_FIELD_NUMBER = 7; - private com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions options_; - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions getOptions() { - return options_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; - } - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { - return options_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; - } - - public static final int RESERVED_RANGE_FIELD_NUMBER = 9; - private java.util.List reservedRange_; - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public java.util.List getReservedRangeList() { - return reservedRange_; - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public java.util.List - getReservedRangeOrBuilderList() { - return reservedRange_; - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public int getReservedRangeCount() { - return reservedRange_.size(); - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index) { - return reservedRange_.get(index); - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder( - int index) { - return reservedRange_.get(index); - } - - public static final int RESERVED_NAME_FIELD_NUMBER = 10; - private com.google.protobuf.LazyStringList reservedName_; - /** - *
-     * Reserved field names, which may not be used by fields in the same message.
-     * A given name may only be reserved once.
-     * 
- * - * repeated string reserved_name = 10; - */ - public com.google.protobuf.ProtocolStringList - getReservedNameList() { - return reservedName_; - } - /** - *
-     * Reserved field names, which may not be used by fields in the same message.
-     * A given name may only be reserved once.
-     * 
- * - * repeated string reserved_name = 10; - */ - public int getReservedNameCount() { - return reservedName_.size(); - } - /** - *
-     * Reserved field names, which may not be used by fields in the same message.
-     * A given name may only be reserved once.
-     * 
- * - * repeated string reserved_name = 10; - */ - public java.lang.String getReservedName(int index) { - return reservedName_.get(index); - } - /** - *
-     * Reserved field names, which may not be used by fields in the same message.
-     * A given name may only be reserved once.
-     * 
- * - * repeated string reserved_name = 10; - */ - public com.google.protobuf.ByteString - getReservedNameBytes(int index) { - return reservedName_.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; - - for (int i = 0; i < getFieldCount(); i++) { - if (!getField(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getExtensionCount(); i++) { - if (!getExtension(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getNestedTypeCount(); i++) { - if (!getNestedType(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getEnumTypeCount(); i++) { - if (!getEnumType(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getExtensionRangeCount(); i++) { - if (!getExtensionRange(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - for (int i = 0; i < getOneofDeclCount(); i++) { - if (!getOneofDecl(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (hasOptions()) { - if (!getOptions().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < field_.size(); i++) { - output.writeMessage(2, field_.get(i)); - } - for (int i = 0; i < nestedType_.size(); i++) { - output.writeMessage(3, nestedType_.get(i)); - } - for (int i = 0; i < enumType_.size(); i++) { - output.writeMessage(4, enumType_.get(i)); - } - for (int i = 0; i < extensionRange_.size(); i++) { - output.writeMessage(5, extensionRange_.get(i)); - } - for (int i = 0; i < extension_.size(); i++) { - output.writeMessage(6, extension_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(7, getOptions()); - } - for (int i = 0; i < oneofDecl_.size(); i++) { - output.writeMessage(8, oneofDecl_.get(i)); - } - for (int i = 0; i < reservedRange_.size(); i++) { - output.writeMessage(9, reservedRange_.get(i)); - } - for (int i = 0; i < reservedName_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, reservedName_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (int i = 0; i < field_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, field_.get(i)); - } - for (int i = 0; i < nestedType_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, nestedType_.get(i)); - } - for (int i = 0; i < enumType_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, enumType_.get(i)); - } - for (int i = 0; i < extensionRange_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, extensionRange_.get(i)); - } - for (int i = 0; i < extension_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, extension_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getOptions()); - } - for (int i = 0; i < oneofDecl_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, oneofDecl_.get(i)); - } - for (int i = 0; i < reservedRange_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, reservedRange_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < reservedName_.size(); i++) { - dataSize += computeStringSizeNoTag(reservedName_.getRaw(i)); - } - size += dataSize; - size += 1 * getReservedNameList().size(); - } - size += unknownFields.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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto other = (com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto) obj; - - if (hasName() != other.hasName()) return false; - if (hasName()) { - if (!getName() - .equals(other.getName())) return false; - } - if (!getFieldList() - .equals(other.getFieldList())) return false; - if (!getExtensionList() - .equals(other.getExtensionList())) return false; - if (!getNestedTypeList() - .equals(other.getNestedTypeList())) return false; - if (!getEnumTypeList() - .equals(other.getEnumTypeList())) return false; - if (!getExtensionRangeList() - .equals(other.getExtensionRangeList())) return false; - if (!getOneofDeclList() - .equals(other.getOneofDeclList())) return false; - if (hasOptions() != other.hasOptions()) return false; - if (hasOptions()) { - if (!getOptions() - .equals(other.getOptions())) return false; - } - if (!getReservedRangeList() - .equals(other.getReservedRangeList())) return false; - if (!getReservedNameList() - .equals(other.getReservedNameList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - } - if (getFieldCount() > 0) { - hash = (37 * hash) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getFieldList().hashCode(); - } - if (getExtensionCount() > 0) { - hash = (37 * hash) + EXTENSION_FIELD_NUMBER; - hash = (53 * hash) + getExtensionList().hashCode(); - } - if (getNestedTypeCount() > 0) { - hash = (37 * hash) + NESTED_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getNestedTypeList().hashCode(); - } - if (getEnumTypeCount() > 0) { - hash = (37 * hash) + ENUM_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getEnumTypeList().hashCode(); - } - if (getExtensionRangeCount() > 0) { - hash = (37 * hash) + EXTENSION_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getExtensionRangeList().hashCode(); - } - if (getOneofDeclCount() > 0) { - hash = (37 * hash) + ONEOF_DECL_FIELD_NUMBER; - hash = (53 * hash) + getOneofDeclList().hashCode(); - } - if (hasOptions()) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptions().hashCode(); - } - if (getReservedRangeCount() > 0) { - hash = (37 * hash) + RESERVED_RANGE_FIELD_NUMBER; - hash = (53 * hash) + getReservedRangeList().hashCode(); - } - if (getReservedNameCount() > 0) { - hash = (37 * hash) + RESERVED_NAME_FIELD_NUMBER; - hash = (53 * hash) + getReservedNameList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto 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; - } - /** - *
-     * Describes a message type.
-     * 
- * - * Protobuf type {@code google.protobuf.DescriptorProto} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.protobuf.DescriptorProto) - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.class, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFieldFieldBuilder(); - getExtensionFieldBuilder(); - getNestedTypeFieldBuilder(); - getEnumTypeFieldBuilder(); - getExtensionRangeFieldBuilder(); - getOneofDeclFieldBuilder(); - getOptionsFieldBuilder(); - getReservedRangeFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (fieldBuilder_ == null) { - field_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - fieldBuilder_.clear(); - } - if (extensionBuilder_ == null) { - extension_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - extensionBuilder_.clear(); - } - if (nestedTypeBuilder_ == null) { - nestedType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - nestedTypeBuilder_.clear(); - } - if (enumTypeBuilder_ == null) { - enumType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - enumTypeBuilder_.clear(); - } - if (extensionRangeBuilder_ == null) { - extensionRange_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - extensionRangeBuilder_.clear(); - } - if (oneofDeclBuilder_ == null) { - oneofDecl_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - oneofDeclBuilder_.clear(); - } - if (optionsBuilder_ == null) { - options_ = null; - } else { - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - if (reservedRangeBuilder_ == null) { - reservedRange_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - } else { - reservedRangeBuilder_.clear(); - } - reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_DescriptorProto_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto build() { - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto buildPartial() { - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto result = new com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (fieldBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - field_ = java.util.Collections.unmodifiableList(field_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.field_ = field_; - } else { - result.field_ = fieldBuilder_.build(); - } - if (extensionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - extension_ = java.util.Collections.unmodifiableList(extension_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.extension_ = extension_; - } else { - result.extension_ = extensionBuilder_.build(); - } - if (nestedTypeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - nestedType_ = java.util.Collections.unmodifiableList(nestedType_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.nestedType_ = nestedType_; - } else { - result.nestedType_ = nestedTypeBuilder_.build(); - } - if (enumTypeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - enumType_ = java.util.Collections.unmodifiableList(enumType_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.enumType_ = enumType_; - } else { - result.enumType_ = enumTypeBuilder_.build(); - } - if (extensionRangeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - extensionRange_ = java.util.Collections.unmodifiableList(extensionRange_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.extensionRange_ = extensionRange_; - } else { - result.extensionRange_ = extensionRangeBuilder_.build(); - } - if (oneofDeclBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - oneofDecl_ = java.util.Collections.unmodifiableList(oneofDecl_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.oneofDecl_ = oneofDecl_; - } else { - result.oneofDecl_ = oneofDeclBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - if (optionsBuilder_ == null) { - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - if (reservedRangeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { - reservedRange_ = java.util.Collections.unmodifiableList(reservedRange_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.reservedRange_ = reservedRange_; - } else { - result.reservedRange_ = reservedRangeBuilder_.build(); - } - if (((bitField0_ & 0x00000200) != 0)) { - reservedName_ = reservedName_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.reservedName_ = reservedName_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto) { - return mergeFrom((com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto other) { - if (other == com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (fieldBuilder_ == null) { - if (!other.field_.isEmpty()) { - if (field_.isEmpty()) { - field_ = other.field_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFieldIsMutable(); - field_.addAll(other.field_); - } - onChanged(); - } - } else { - if (!other.field_.isEmpty()) { - if (fieldBuilder_.isEmpty()) { - fieldBuilder_.dispose(); - fieldBuilder_ = null; - field_ = other.field_; - bitField0_ = (bitField0_ & ~0x00000002); - fieldBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldFieldBuilder() : null; - } else { - fieldBuilder_.addAllMessages(other.field_); - } - } - } - if (extensionBuilder_ == null) { - if (!other.extension_.isEmpty()) { - if (extension_.isEmpty()) { - extension_ = other.extension_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureExtensionIsMutable(); - extension_.addAll(other.extension_); - } - onChanged(); - } - } else { - if (!other.extension_.isEmpty()) { - if (extensionBuilder_.isEmpty()) { - extensionBuilder_.dispose(); - extensionBuilder_ = null; - extension_ = other.extension_; - bitField0_ = (bitField0_ & ~0x00000004); - extensionBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExtensionFieldBuilder() : null; - } else { - extensionBuilder_.addAllMessages(other.extension_); - } - } - } - if (nestedTypeBuilder_ == null) { - if (!other.nestedType_.isEmpty()) { - if (nestedType_.isEmpty()) { - nestedType_ = other.nestedType_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureNestedTypeIsMutable(); - nestedType_.addAll(other.nestedType_); - } - onChanged(); - } - } else { - if (!other.nestedType_.isEmpty()) { - if (nestedTypeBuilder_.isEmpty()) { - nestedTypeBuilder_.dispose(); - nestedTypeBuilder_ = null; - nestedType_ = other.nestedType_; - bitField0_ = (bitField0_ & ~0x00000008); - nestedTypeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNestedTypeFieldBuilder() : null; - } else { - nestedTypeBuilder_.addAllMessages(other.nestedType_); - } - } - } - if (enumTypeBuilder_ == null) { - if (!other.enumType_.isEmpty()) { - if (enumType_.isEmpty()) { - enumType_ = other.enumType_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureEnumTypeIsMutable(); - enumType_.addAll(other.enumType_); - } - onChanged(); - } - } else { - if (!other.enumType_.isEmpty()) { - if (enumTypeBuilder_.isEmpty()) { - enumTypeBuilder_.dispose(); - enumTypeBuilder_ = null; - enumType_ = other.enumType_; - bitField0_ = (bitField0_ & ~0x00000010); - enumTypeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEnumTypeFieldBuilder() : null; - } else { - enumTypeBuilder_.addAllMessages(other.enumType_); - } - } - } - if (extensionRangeBuilder_ == null) { - if (!other.extensionRange_.isEmpty()) { - if (extensionRange_.isEmpty()) { - extensionRange_ = other.extensionRange_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureExtensionRangeIsMutable(); - extensionRange_.addAll(other.extensionRange_); - } - onChanged(); - } - } else { - if (!other.extensionRange_.isEmpty()) { - if (extensionRangeBuilder_.isEmpty()) { - extensionRangeBuilder_.dispose(); - extensionRangeBuilder_ = null; - extensionRange_ = other.extensionRange_; - bitField0_ = (bitField0_ & ~0x00000020); - extensionRangeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExtensionRangeFieldBuilder() : null; - } else { - extensionRangeBuilder_.addAllMessages(other.extensionRange_); - } - } - } - if (oneofDeclBuilder_ == null) { - if (!other.oneofDecl_.isEmpty()) { - if (oneofDecl_.isEmpty()) { - oneofDecl_ = other.oneofDecl_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureOneofDeclIsMutable(); - oneofDecl_.addAll(other.oneofDecl_); - } - onChanged(); - } - } else { - if (!other.oneofDecl_.isEmpty()) { - if (oneofDeclBuilder_.isEmpty()) { - oneofDeclBuilder_.dispose(); - oneofDeclBuilder_ = null; - oneofDecl_ = other.oneofDecl_; - bitField0_ = (bitField0_ & ~0x00000040); - oneofDeclBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOneofDeclFieldBuilder() : null; - } else { - oneofDeclBuilder_.addAllMessages(other.oneofDecl_); - } - } - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - if (reservedRangeBuilder_ == null) { - if (!other.reservedRange_.isEmpty()) { - if (reservedRange_.isEmpty()) { - reservedRange_ = other.reservedRange_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureReservedRangeIsMutable(); - reservedRange_.addAll(other.reservedRange_); - } - onChanged(); - } - } else { - if (!other.reservedRange_.isEmpty()) { - if (reservedRangeBuilder_.isEmpty()) { - reservedRangeBuilder_.dispose(); - reservedRangeBuilder_ = null; - reservedRange_ = other.reservedRange_; - bitField0_ = (bitField0_ & ~0x00000100); - reservedRangeBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReservedRangeFieldBuilder() : null; - } else { - reservedRangeBuilder_.addAllMessages(other.reservedRange_); - } - } - } - if (!other.reservedName_.isEmpty()) { - if (reservedName_.isEmpty()) { - reservedName_ = other.reservedName_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureReservedNameIsMutable(); - reservedName_.addAll(other.reservedName_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getFieldCount(); i++) { - if (!getField(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getExtensionCount(); i++) { - if (!getExtension(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getNestedTypeCount(); i++) { - if (!getNestedType(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getEnumTypeCount(); i++) { - if (!getEnumType(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getExtensionRangeCount(); i++) { - if (!getExtensionRange(i).isInitialized()) { - return false; - } - } - for (int i = 0; i < getOneofDeclCount(); i++) { - if (!getOneofDecl(i).isInitialized()) { - return false; - } - } - if (hasOptions()) { - if (!getOptions().isInitialized()) { - return false; - } - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private java.util.List field_ = - java.util.Collections.emptyList(); - private void ensureFieldIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - field_ = new java.util.ArrayList(field_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder> fieldBuilder_; - - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public java.util.List getFieldList() { - if (fieldBuilder_ == null) { - return java.util.Collections.unmodifiableList(field_); - } else { - return fieldBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public int getFieldCount() { - if (fieldBuilder_ == null) { - return field_.size(); - } else { - return fieldBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto getField(int index) { - if (fieldBuilder_ == null) { - return field_.get(index); - } else { - return fieldBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public Builder setField( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto value) { - if (fieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldIsMutable(); - field_.set(index, value); - onChanged(); - } else { - fieldBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public Builder setField( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (fieldBuilder_ == null) { - ensureFieldIsMutable(); - field_.set(index, builderForValue.build()); - onChanged(); - } else { - fieldBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public Builder addField(com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto value) { - if (fieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldIsMutable(); - field_.add(value); - onChanged(); - } else { - fieldBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public Builder addField( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto value) { - if (fieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFieldIsMutable(); - field_.add(index, value); - onChanged(); - } else { - fieldBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public Builder addField( - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (fieldBuilder_ == null) { - ensureFieldIsMutable(); - field_.add(builderForValue.build()); - onChanged(); - } else { - fieldBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public Builder addField( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (fieldBuilder_ == null) { - ensureFieldIsMutable(); - field_.add(index, builderForValue.build()); - onChanged(); - } else { - fieldBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public Builder addAllField( - java.lang.Iterable values) { - if (fieldBuilder_ == null) { - ensureFieldIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, field_); - onChanged(); - } else { - fieldBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public Builder clearField() { - if (fieldBuilder_ == null) { - field_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - fieldBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public Builder removeField(int index) { - if (fieldBuilder_ == null) { - ensureFieldIsMutable(); - field_.remove(index); - onChanged(); - } else { - fieldBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder getFieldBuilder( - int index) { - return getFieldFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder( - int index) { - if (fieldBuilder_ == null) { - return field_.get(index); } else { - return fieldBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public java.util.List - getFieldOrBuilderList() { - if (fieldBuilder_ != null) { - return fieldBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(field_); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder addFieldBuilder() { - return getFieldFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder addFieldBuilder( - int index) { - return getFieldFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.FieldDescriptorProto field = 2; - */ - public java.util.List - getFieldBuilderList() { - return getFieldFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getFieldFieldBuilder() { - if (fieldBuilder_ == null) { - fieldBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder>( - field_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - field_ = null; - } - return fieldBuilder_; - } - - private java.util.List extension_ = - java.util.Collections.emptyList(); - private void ensureExtensionIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - extension_ = new java.util.ArrayList(extension_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder> extensionBuilder_; - - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public java.util.List getExtensionList() { - if (extensionBuilder_ == null) { - return java.util.Collections.unmodifiableList(extension_); - } else { - return extensionBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public int getExtensionCount() { - if (extensionBuilder_ == null) { - return extension_.size(); - } else { - return extensionBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto getExtension(int index) { - if (extensionBuilder_ == null) { - return extension_.get(index); - } else { - return extensionBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public Builder setExtension( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.set(index, value); - onChanged(); - } else { - extensionBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public Builder setExtension( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.set(index, builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public Builder addExtension(com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.add(value); - onChanged(); - } else { - extensionBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public Builder addExtension( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto value) { - if (extensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionIsMutable(); - extension_.add(index, value); - onChanged(); - } else { - extensionBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public Builder addExtension( - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.add(builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public Builder addExtension( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.add(index, builderForValue.build()); - onChanged(); - } else { - extensionBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public Builder addAllExtension( - java.lang.Iterable values) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, extension_); - onChanged(); - } else { - extensionBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public Builder clearExtension() { - if (extensionBuilder_ == null) { - extension_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - extensionBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public Builder removeExtension(int index) { - if (extensionBuilder_ == null) { - ensureExtensionIsMutable(); - extension_.remove(index); - onChanged(); - } else { - extensionBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder( - int index) { - return getExtensionFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder( - int index) { - if (extensionBuilder_ == null) { - return extension_.get(index); } else { - return extensionBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public java.util.List - getExtensionOrBuilderList() { - if (extensionBuilder_ != null) { - return extensionBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extension_); - } - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder() { - return getExtensionFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder( - int index) { - return getExtensionFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.FieldDescriptorProto extension = 6; - */ - public java.util.List - getExtensionBuilderList() { - return getExtensionFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder> - getExtensionFieldBuilder() { - if (extensionBuilder_ == null) { - extensionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProtoOrBuilder>( - extension_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - extension_ = null; - } - return extensionBuilder_; - } - - private java.util.List nestedType_ = - java.util.Collections.emptyList(); - private void ensureNestedTypeIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - nestedType_ = new java.util.ArrayList(nestedType_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder> nestedTypeBuilder_; - - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public java.util.List getNestedTypeList() { - if (nestedTypeBuilder_ == null) { - return java.util.Collections.unmodifiableList(nestedType_); - } else { - return nestedTypeBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public int getNestedTypeCount() { - if (nestedTypeBuilder_ == null) { - return nestedType_.size(); - } else { - return nestedTypeBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto getNestedType(int index) { - if (nestedTypeBuilder_ == null) { - return nestedType_.get(index); - } else { - return nestedTypeBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public Builder setNestedType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto value) { - if (nestedTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNestedTypeIsMutable(); - nestedType_.set(index, value); - onChanged(); - } else { - nestedTypeBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public Builder setNestedType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (nestedTypeBuilder_ == null) { - ensureNestedTypeIsMutable(); - nestedType_.set(index, builderForValue.build()); - onChanged(); - } else { - nestedTypeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public Builder addNestedType(com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto value) { - if (nestedTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNestedTypeIsMutable(); - nestedType_.add(value); - onChanged(); - } else { - nestedTypeBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public Builder addNestedType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto value) { - if (nestedTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNestedTypeIsMutable(); - nestedType_.add(index, value); - onChanged(); - } else { - nestedTypeBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public Builder addNestedType( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (nestedTypeBuilder_ == null) { - ensureNestedTypeIsMutable(); - nestedType_.add(builderForValue.build()); - onChanged(); - } else { - nestedTypeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public Builder addNestedType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder builderForValue) { - if (nestedTypeBuilder_ == null) { - ensureNestedTypeIsMutable(); - nestedType_.add(index, builderForValue.build()); - onChanged(); - } else { - nestedTypeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public Builder addAllNestedType( - java.lang.Iterable values) { - if (nestedTypeBuilder_ == null) { - ensureNestedTypeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nestedType_); - onChanged(); - } else { - nestedTypeBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public Builder clearNestedType() { - if (nestedTypeBuilder_ == null) { - nestedType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - nestedTypeBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public Builder removeNestedType(int index) { - if (nestedTypeBuilder_ == null) { - ensureNestedTypeIsMutable(); - nestedType_.remove(index); - onChanged(); - } else { - nestedTypeBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder getNestedTypeBuilder( - int index) { - return getNestedTypeFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder( - int index) { - if (nestedTypeBuilder_ == null) { - return nestedType_.get(index); } else { - return nestedTypeBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public java.util.List - getNestedTypeOrBuilderList() { - if (nestedTypeBuilder_ != null) { - return nestedTypeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nestedType_); - } - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder addNestedTypeBuilder() { - return getNestedTypeFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder addNestedTypeBuilder( - int index) { - return getNestedTypeFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.DescriptorProto nested_type = 3; - */ - public java.util.List - getNestedTypeBuilderList() { - return getNestedTypeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder> - getNestedTypeFieldBuilder() { - if (nestedTypeBuilder_ == null) { - nestedTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProtoOrBuilder>( - nestedType_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - nestedType_ = null; - } - return nestedTypeBuilder_; - } - - private java.util.List enumType_ = - java.util.Collections.emptyList(); - private void ensureEnumTypeIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - enumType_ = new java.util.ArrayList(enumType_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder> enumTypeBuilder_; - - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public java.util.List getEnumTypeList() { - if (enumTypeBuilder_ == null) { - return java.util.Collections.unmodifiableList(enumType_); - } else { - return enumTypeBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public int getEnumTypeCount() { - if (enumTypeBuilder_ == null) { - return enumType_.size(); - } else { - return enumTypeBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto getEnumType(int index) { - if (enumTypeBuilder_ == null) { - return enumType_.get(index); - } else { - return enumTypeBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public Builder setEnumType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.set(index, value); - onChanged(); - } else { - enumTypeBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public Builder setEnumType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.set(index, builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public Builder addEnumType(com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.add(value); - onChanged(); - } else { - enumTypeBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public Builder addEnumType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnumTypeIsMutable(); - enumType_.add(index, value); - onChanged(); - } else { - enumTypeBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public Builder addEnumType( - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.add(builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public Builder addEnumType( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.add(index, builderForValue.build()); - onChanged(); - } else { - enumTypeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public Builder addAllEnumType( - java.lang.Iterable values) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, enumType_); - onChanged(); - } else { - enumTypeBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public Builder clearEnumType() { - if (enumTypeBuilder_ == null) { - enumType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - enumTypeBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public Builder removeEnumType(int index) { - if (enumTypeBuilder_ == null) { - ensureEnumTypeIsMutable(); - enumType_.remove(index); - onChanged(); - } else { - enumTypeBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder( - int index) { - return getEnumTypeFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder( - int index) { - if (enumTypeBuilder_ == null) { - return enumType_.get(index); } else { - return enumTypeBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public java.util.List - getEnumTypeOrBuilderList() { - if (enumTypeBuilder_ != null) { - return enumTypeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(enumType_); - } - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder() { - return getEnumTypeFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder( - int index) { - return getEnumTypeFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - */ - public java.util.List - getEnumTypeBuilderList() { - return getEnumTypeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder> - getEnumTypeFieldBuilder() { - if (enumTypeBuilder_ == null) { - enumTypeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.EnumDescriptorProtoOrBuilder>( - enumType_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - enumType_ = null; - } - return enumTypeBuilder_; - } - - private java.util.List extensionRange_ = - java.util.Collections.emptyList(); - private void ensureExtensionRangeIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - extensionRange_ = new java.util.ArrayList(extensionRange_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> extensionRangeBuilder_; - - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public java.util.List getExtensionRangeList() { - if (extensionRangeBuilder_ == null) { - return java.util.Collections.unmodifiableList(extensionRange_); - } else { - return extensionRangeBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public int getExtensionRangeCount() { - if (extensionRangeBuilder_ == null) { - return extensionRange_.size(); - } else { - return extensionRangeBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index) { - if (extensionRangeBuilder_ == null) { - return extensionRange_.get(index); - } else { - return extensionRangeBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public Builder setExtensionRange( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange value) { - if (extensionRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionRangeIsMutable(); - extensionRange_.set(index, value); - onChanged(); - } else { - extensionRangeBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public Builder setExtensionRange( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { - if (extensionRangeBuilder_ == null) { - ensureExtensionRangeIsMutable(); - extensionRange_.set(index, builderForValue.build()); - onChanged(); - } else { - extensionRangeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public Builder addExtensionRange(com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange value) { - if (extensionRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionRangeIsMutable(); - extensionRange_.add(value); - onChanged(); - } else { - extensionRangeBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public Builder addExtensionRange( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange value) { - if (extensionRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionRangeIsMutable(); - extensionRange_.add(index, value); - onChanged(); - } else { - extensionRangeBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public Builder addExtensionRange( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { - if (extensionRangeBuilder_ == null) { - ensureExtensionRangeIsMutable(); - extensionRange_.add(builderForValue.build()); - onChanged(); - } else { - extensionRangeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public Builder addExtensionRange( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue) { - if (extensionRangeBuilder_ == null) { - ensureExtensionRangeIsMutable(); - extensionRange_.add(index, builderForValue.build()); - onChanged(); - } else { - extensionRangeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public Builder addAllExtensionRange( - java.lang.Iterable values) { - if (extensionRangeBuilder_ == null) { - ensureExtensionRangeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, extensionRange_); - onChanged(); - } else { - extensionRangeBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public Builder clearExtensionRange() { - if (extensionRangeBuilder_ == null) { - extensionRange_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - extensionRangeBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public Builder removeExtensionRange(int index) { - if (extensionRangeBuilder_ == null) { - ensureExtensionRangeIsMutable(); - extensionRange_.remove(index); - onChanged(); - } else { - extensionRangeBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.Builder getExtensionRangeBuilder( - int index) { - return getExtensionRangeFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder( - int index) { - if (extensionRangeBuilder_ == null) { - return extensionRange_.get(index); } else { - return extensionRangeBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public java.util.List - getExtensionRangeOrBuilderList() { - if (extensionRangeBuilder_ != null) { - return extensionRangeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extensionRange_); - } - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.Builder addExtensionRangeBuilder() { - return getExtensionRangeFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()); - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.Builder addExtensionRangeBuilder( - int index) { - return getExtensionRangeFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.getDefaultInstance()); - } - /** - * repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - */ - public java.util.List - getExtensionRangeBuilderList() { - return getExtensionRangeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> - getExtensionRangeFieldBuilder() { - if (extensionRangeBuilder_ == null) { - extensionRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRange.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder>( - extensionRange_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - extensionRange_ = null; - } - return extensionRangeBuilder_; - } - - private java.util.List oneofDecl_ = - java.util.Collections.emptyList(); - private void ensureOneofDeclIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - oneofDecl_ = new java.util.ArrayList(oneofDecl_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProtoOrBuilder> oneofDeclBuilder_; - - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public java.util.List getOneofDeclList() { - if (oneofDeclBuilder_ == null) { - return java.util.Collections.unmodifiableList(oneofDecl_); - } else { - return oneofDeclBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public int getOneofDeclCount() { - if (oneofDeclBuilder_ == null) { - return oneofDecl_.size(); - } else { - return oneofDeclBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto getOneofDecl(int index) { - if (oneofDeclBuilder_ == null) { - return oneofDecl_.get(index); - } else { - return oneofDeclBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public Builder setOneofDecl( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto value) { - if (oneofDeclBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOneofDeclIsMutable(); - oneofDecl_.set(index, value); - onChanged(); - } else { - oneofDeclBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public Builder setOneofDecl( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.Builder builderForValue) { - if (oneofDeclBuilder_ == null) { - ensureOneofDeclIsMutable(); - oneofDecl_.set(index, builderForValue.build()); - onChanged(); - } else { - oneofDeclBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public Builder addOneofDecl(com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto value) { - if (oneofDeclBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOneofDeclIsMutable(); - oneofDecl_.add(value); - onChanged(); - } else { - oneofDeclBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public Builder addOneofDecl( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto value) { - if (oneofDeclBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOneofDeclIsMutable(); - oneofDecl_.add(index, value); - onChanged(); - } else { - oneofDeclBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public Builder addOneofDecl( - com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.Builder builderForValue) { - if (oneofDeclBuilder_ == null) { - ensureOneofDeclIsMutable(); - oneofDecl_.add(builderForValue.build()); - onChanged(); - } else { - oneofDeclBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public Builder addOneofDecl( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.Builder builderForValue) { - if (oneofDeclBuilder_ == null) { - ensureOneofDeclIsMutable(); - oneofDecl_.add(index, builderForValue.build()); - onChanged(); - } else { - oneofDeclBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public Builder addAllOneofDecl( - java.lang.Iterable values) { - if (oneofDeclBuilder_ == null) { - ensureOneofDeclIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oneofDecl_); - onChanged(); - } else { - oneofDeclBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public Builder clearOneofDecl() { - if (oneofDeclBuilder_ == null) { - oneofDecl_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - oneofDeclBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public Builder removeOneofDecl(int index) { - if (oneofDeclBuilder_ == null) { - ensureOneofDeclIsMutable(); - oneofDecl_.remove(index); - onChanged(); - } else { - oneofDeclBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.Builder getOneofDeclBuilder( - int index) { - return getOneofDeclFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder( - int index) { - if (oneofDeclBuilder_ == null) { - return oneofDecl_.get(index); } else { - return oneofDeclBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public java.util.List - getOneofDeclOrBuilderList() { - if (oneofDeclBuilder_ != null) { - return oneofDeclBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(oneofDecl_); - } - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.Builder addOneofDeclBuilder() { - return getOneofDeclFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.Builder addOneofDeclBuilder( - int index) { - return getOneofDeclFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.getDefaultInstance()); - } - /** - * repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - */ - public java.util.List - getOneofDeclBuilderList() { - return getOneofDeclFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProtoOrBuilder> - getOneofDeclFieldBuilder() { - if (oneofDeclBuilder_ == null) { - oneofDeclBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto, com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProto.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.OneofDescriptorProtoOrBuilder>( - oneofDecl_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - oneofDecl_ = null; - } - return oneofDeclBuilder_; - } - - private com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions options_; - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions, com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptionsOrBuilder> optionsBuilder_; - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - public boolean hasOptions() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions getOptions() { - if (optionsBuilder_ == null) { - return options_ == null ? com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; - } else { - return optionsBuilder_.getMessage(); - } - } - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - public Builder setOptions(com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - options_ = value; - onChanged(); - } else { - optionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - public Builder setOptions( - com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - onChanged(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - public Builder mergeOptions(com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions value) { - if (optionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - options_ != null && - options_ != com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.getDefaultInstance()) { - options_ = - com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.newBuilder(options_).mergeFrom(value).buildPartial(); - } else { - options_ = value; - } - onChanged(); - } else { - optionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = null; - onChanged(); - } else { - optionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.Builder getOptionsBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilder(); - } else { - return options_ == null ? - com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.getDefaultInstance() : options_; - } - } - /** - * optional .google.protobuf.MessageOptions options = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions, com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptionsOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions, com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptions.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.MessageOptionsOrBuilder>( - getOptions(), - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - - private java.util.List reservedRange_ = - java.util.Collections.emptyList(); - private void ensureReservedRangeIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - reservedRange_ = new java.util.ArrayList(reservedRange_); - bitField0_ |= 0x00000100; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> reservedRangeBuilder_; - - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public java.util.List getReservedRangeList() { - if (reservedRangeBuilder_ == null) { - return java.util.Collections.unmodifiableList(reservedRange_); - } else { - return reservedRangeBuilder_.getMessageList(); - } - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public int getReservedRangeCount() { - if (reservedRangeBuilder_ == null) { - return reservedRange_.size(); - } else { - return reservedRangeBuilder_.getCount(); - } - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index) { - if (reservedRangeBuilder_ == null) { - return reservedRange_.get(index); - } else { - return reservedRangeBuilder_.getMessage(index); - } - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public Builder setReservedRange( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange value) { - if (reservedRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReservedRangeIsMutable(); - reservedRange_.set(index, value); - onChanged(); - } else { - reservedRangeBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public Builder setReservedRange( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue) { - if (reservedRangeBuilder_ == null) { - ensureReservedRangeIsMutable(); - reservedRange_.set(index, builderForValue.build()); - onChanged(); - } else { - reservedRangeBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public Builder addReservedRange(com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange value) { - if (reservedRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReservedRangeIsMutable(); - reservedRange_.add(value); - onChanged(); - } else { - reservedRangeBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public Builder addReservedRange( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange value) { - if (reservedRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReservedRangeIsMutable(); - reservedRange_.add(index, value); - onChanged(); - } else { - reservedRangeBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public Builder addReservedRange( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue) { - if (reservedRangeBuilder_ == null) { - ensureReservedRangeIsMutable(); - reservedRange_.add(builderForValue.build()); - onChanged(); - } else { - reservedRangeBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public Builder addReservedRange( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue) { - if (reservedRangeBuilder_ == null) { - ensureReservedRangeIsMutable(); - reservedRange_.add(index, builderForValue.build()); - onChanged(); - } else { - reservedRangeBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public Builder addAllReservedRange( - java.lang.Iterable values) { - if (reservedRangeBuilder_ == null) { - ensureReservedRangeIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reservedRange_); - onChanged(); - } else { - reservedRangeBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public Builder clearReservedRange() { - if (reservedRangeBuilder_ == null) { - reservedRange_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - } else { - reservedRangeBuilder_.clear(); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public Builder removeReservedRange(int index) { - if (reservedRangeBuilder_ == null) { - ensureReservedRangeIsMutable(); - reservedRange_.remove(index); - onChanged(); - } else { - reservedRangeBuilder_.remove(index); - } - return this; - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.Builder getReservedRangeBuilder( - int index) { - return getReservedRangeFieldBuilder().getBuilder(index); - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder( - int index) { - if (reservedRangeBuilder_ == null) { - return reservedRange_.get(index); } else { - return reservedRangeBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public java.util.List - getReservedRangeOrBuilderList() { - if (reservedRangeBuilder_ != null) { - return reservedRangeBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(reservedRange_); - } - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.Builder addReservedRangeBuilder() { - return getReservedRangeFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance()); - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.Builder addReservedRangeBuilder( - int index) { - return getReservedRangeFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.getDefaultInstance()); - } - /** - * repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - */ - public java.util.List - getReservedRangeBuilderList() { - return getReservedRangeFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> - getReservedRangeFieldBuilder() { - if (reservedRangeBuilder_ == null) { - reservedRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRange.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder>( - reservedRange_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); - reservedRange_ = null; - } - return reservedRangeBuilder_; - } - - private com.google.protobuf.LazyStringList reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureReservedNameIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - reservedName_ = new com.google.protobuf.LazyStringArrayList(reservedName_); - bitField0_ |= 0x00000200; - } - } - /** - *
-       * Reserved field names, which may not be used by fields in the same message.
-       * A given name may only be reserved once.
-       * 
- * - * repeated string reserved_name = 10; - */ - public com.google.protobuf.ProtocolStringList - getReservedNameList() { - return reservedName_.getUnmodifiableView(); - } - /** - *
-       * Reserved field names, which may not be used by fields in the same message.
-       * A given name may only be reserved once.
-       * 
- * - * repeated string reserved_name = 10; - */ - public int getReservedNameCount() { - return reservedName_.size(); - } - /** - *
-       * Reserved field names, which may not be used by fields in the same message.
-       * A given name may only be reserved once.
-       * 
- * - * repeated string reserved_name = 10; - */ - public java.lang.String getReservedName(int index) { - return reservedName_.get(index); - } - /** - *
-       * Reserved field names, which may not be used by fields in the same message.
-       * A given name may only be reserved once.
-       * 
- * - * repeated string reserved_name = 10; - */ - public com.google.protobuf.ByteString - getReservedNameBytes(int index) { - return reservedName_.getByteString(index); - } - /** - *
-       * Reserved field names, which may not be used by fields in the same message.
-       * A given name may only be reserved once.
-       * 
- * - * repeated string reserved_name = 10; - */ - public Builder setReservedName( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureReservedNameIsMutable(); - reservedName_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Reserved field names, which may not be used by fields in the same message.
-       * A given name may only be reserved once.
-       * 
- * - * repeated string reserved_name = 10; - */ - public Builder addReservedName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureReservedNameIsMutable(); - reservedName_.add(value); - onChanged(); - return this; - } - /** - *
-       * Reserved field names, which may not be used by fields in the same message.
-       * A given name may only be reserved once.
-       * 
- * - * repeated string reserved_name = 10; - */ - public Builder addAllReservedName( - java.lang.Iterable values) { - ensureReservedNameIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reservedName_); - onChanged(); - return this; - } - /** - *
-       * Reserved field names, which may not be used by fields in the same message.
-       * A given name may only be reserved once.
-       * 
- * - * repeated string reserved_name = 10; - */ - public Builder clearReservedName() { - reservedName_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - /** - *
-       * Reserved field names, which may not be used by fields in the same message.
-       * A given name may only be reserved once.
-       * 
- * - * repeated string reserved_name = 10; - */ - public Builder addReservedNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureReservedNameIsMutable(); - reservedName_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.protobuf.DescriptorProto) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto) - private static final com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto(); - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DescriptorProto parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DescriptorProto(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.DescriptorProtos.DescriptorProto getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExtensionRangeOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.ExtensionRangeOptions) - com.google.protobuf.GeneratedMessageV3. - ExtendableMessageOrBuilder { - - /** - *
-     * The parser stores options it doesn't recognize here. See above.
-     * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - java.util.List - getUninterpretedOptionList(); - /** - *
-     * The parser stores options it doesn't recognize here. See above.
-     * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); - /** - *
-     * The parser stores options it doesn't recognize here. See above.
-     * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - int getUninterpretedOptionCount(); - /** - *
-     * The parser stores options it doesn't recognize here. See above.
-     * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - java.util.List - getUninterpretedOptionOrBuilderList(); - /** - *
-     * The parser stores options it doesn't recognize here. See above.
-     * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( - int index); - } - /** - * Protobuf type {@code google.protobuf.ExtensionRangeOptions} - */ - public static final class ExtensionRangeOptions extends - com.google.protobuf.GeneratedMessageV3.ExtendableMessage< - ExtensionRangeOptions> implements - // @@protoc_insertion_point(message_implements:google.protobuf.ExtensionRangeOptions) - ExtensionRangeOptionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExtensionRangeOptions.newBuilder() to construct. - private ExtensionRangeOptions(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) { - super(builder); - } - private ExtensionRangeOptions() { - uninterpretedOption_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExtensionRangeOptions(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExtensionRangeOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 7994: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - uninterpretedOption_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - uninterpretedOption_.add( - input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.class, com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.Builder.class); - } - - public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; - private java.util.List uninterpretedOption_; - /** - *
-     * The parser stores options it doesn't recognize here. See above.
-     * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public java.util.List getUninterpretedOptionList() { - return uninterpretedOption_; - } - /** - *
-     * The parser stores options it doesn't recognize here. See above.
-     * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public java.util.List - getUninterpretedOptionOrBuilderList() { - return uninterpretedOption_; - } - /** - *
-     * The parser stores options it doesn't recognize here. See above.
-     * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public int getUninterpretedOptionCount() { - return uninterpretedOption_.size(); - } - /** - *
-     * The parser stores options it doesn't recognize here. See above.
-     * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { - return uninterpretedOption_.get(index); - } - /** - *
-     * The parser stores options it doesn't recognize here. See above.
-     * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( - int index) { - return uninterpretedOption_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - for (int i = 0; i < getUninterpretedOptionCount(); i++) { - if (!getUninterpretedOption(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - if (!extensionsAreInitialized()) { - memoizedIsInitialized = 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 - .ExtendableMessage.ExtensionWriter - extensionWriter = newExtensionWriter(); - for (int i = 0; i < uninterpretedOption_.size(); i++) { - output.writeMessage(999, uninterpretedOption_.get(i)); - } - extensionWriter.writeUntil(536870912, output); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < uninterpretedOption_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(999, uninterpretedOption_.get(i)); - } - size += extensionsSerializedSize(); - size += unknownFields.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.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions)) { - return super.equals(obj); - } - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions other = (com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions) obj; - - if (!getUninterpretedOptionList() - .equals(other.getUninterpretedOptionList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - if (!getExtensionFields().equals(other.getExtensionFields())) - return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUninterpretedOptionCount() > 0) { - hash = (37 * hash) + UNINTERPRETED_OPTION_FIELD_NUMBER; - hash = (53 * hash) + getUninterpretedOptionList().hashCode(); - } - hash = hashFields(hash, getExtensionFields()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions 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.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions 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.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions 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.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions 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; - } - /** - * Protobuf type {@code google.protobuf.ExtensionRangeOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.ExtendableBuilder< - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions, Builder> implements - // @@protoc_insertion_point(builder_implements:google.protobuf.ExtensionRangeOptions) - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.class, com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.Builder.class); - } - - // Construct using com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getUninterpretedOptionFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOption_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - uninterpretedOptionBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_ExtensionRangeOptions_descriptor; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions getDefaultInstanceForType() { - return com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance(); - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions build() { - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions buildPartial() { - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions result = new com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions(this); - int from_bitField0_ = bitField0_; - if (uninterpretedOptionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.uninterpretedOption_ = uninterpretedOption_; - } else { - result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); - } - onBuilt(); - return result; - } - - @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 setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions, Type> extension, - Type value) { - return super.setExtension(extension, value); - } - @java.lang.Override - public Builder setExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions, java.util.List> extension, - int index, Type value) { - return super.setExtension(extension, index, value); - } - @java.lang.Override - public Builder addExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions, java.util.List> extension, - Type value) { - return super.addExtension(extension, value); - } - @java.lang.Override - public Builder clearExtension( - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions, ?> extension) { - return super.clearExtension(extension); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions) { - return mergeFrom((com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions other) { - if (other == com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions.getDefaultInstance()) return this; - if (uninterpretedOptionBuilder_ == null) { - if (!other.uninterpretedOption_.isEmpty()) { - if (uninterpretedOption_.isEmpty()) { - uninterpretedOption_ = other.uninterpretedOption_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.addAll(other.uninterpretedOption_); - } - onChanged(); - } - } else { - if (!other.uninterpretedOption_.isEmpty()) { - if (uninterpretedOptionBuilder_.isEmpty()) { - uninterpretedOptionBuilder_.dispose(); - uninterpretedOptionBuilder_ = null; - uninterpretedOption_ = other.uninterpretedOption_; - bitField0_ = (bitField0_ & ~0x00000001); - uninterpretedOptionBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUninterpretedOptionFieldBuilder() : null; - } else { - uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); - } - } - } - this.mergeExtensionFields(other); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - for (int i = 0; i < getUninterpretedOptionCount(); i++) { - if (!getUninterpretedOption(i).isInitialized()) { - return false; - } - } - if (!extensionsAreInitialized()) { - return false; - } - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List uninterpretedOption_ = - java.util.Collections.emptyList(); - private void ensureUninterpretedOptionIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - uninterpretedOption_ = new java.util.ArrayList(uninterpretedOption_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption, com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; - - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public java.util.List getUninterpretedOptionList() { - if (uninterpretedOptionBuilder_ == null) { - return java.util.Collections.unmodifiableList(uninterpretedOption_); - } else { - return uninterpretedOptionBuilder_.getMessageList(); - } - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public int getUninterpretedOptionCount() { - if (uninterpretedOptionBuilder_ == null) { - return uninterpretedOption_.size(); - } else { - return uninterpretedOptionBuilder_.getCount(); - } - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { - if (uninterpretedOptionBuilder_ == null) { - return uninterpretedOption_.get(index); - } else { - return uninterpretedOptionBuilder_.getMessage(index); - } - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public Builder setUninterpretedOption( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption value) { - if (uninterpretedOptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.set(index, value); - onChanged(); - } else { - uninterpretedOptionBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public Builder setUninterpretedOption( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.Builder builderForValue) { - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.set(index, builderForValue.build()); - onChanged(); - } else { - uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public Builder addUninterpretedOption(com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption value) { - if (uninterpretedOptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(value); - onChanged(); - } else { - uninterpretedOptionBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public Builder addUninterpretedOption( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption value) { - if (uninterpretedOptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(index, value); - onChanged(); - } else { - uninterpretedOptionBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public Builder addUninterpretedOption( - com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.Builder builderForValue) { - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(builderForValue.build()); - onChanged(); - } else { - uninterpretedOptionBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public Builder addUninterpretedOption( - int index, com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.Builder builderForValue) { - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.add(index, builderForValue.build()); - onChanged(); - } else { - uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public Builder addAllUninterpretedOption( - java.lang.Iterable values) { - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, uninterpretedOption_); - onChanged(); - } else { - uninterpretedOptionBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public Builder clearUninterpretedOption() { - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOption_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - uninterpretedOptionBuilder_.clear(); - } - return this; - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public Builder removeUninterpretedOption(int index) { - if (uninterpretedOptionBuilder_ == null) { - ensureUninterpretedOptionIsMutable(); - uninterpretedOption_.remove(index); - onChanged(); - } else { - uninterpretedOptionBuilder_.remove(index); - } - return this; - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( - int index) { - return getUninterpretedOptionFieldBuilder().getBuilder(index); - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( - int index) { - if (uninterpretedOptionBuilder_ == null) { - return uninterpretedOption_.get(index); } else { - return uninterpretedOptionBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public java.util.List - getUninterpretedOptionOrBuilderList() { - if (uninterpretedOptionBuilder_ != null) { - return uninterpretedOptionBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(uninterpretedOption_); - } - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { - return getUninterpretedOptionFieldBuilder().addBuilder( - com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.getDefaultInstance()); - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( - int index) { - return getUninterpretedOptionFieldBuilder().addBuilder( - index, com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.getDefaultInstance()); - } - /** - *
-       * The parser stores options it doesn't recognize here. See above.
-       * 
- * - * repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - */ - public java.util.List - getUninterpretedOptionBuilderList() { - return getUninterpretedOptionFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption, com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOptionOrBuilder> - getUninterpretedOptionFieldBuilder() { - if (uninterpretedOptionBuilder_ == null) { - uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption, com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOption.Builder, com.pingcap.kafkareader.proto.DescriptorProtos.UninterpretedOptionOrBuilder>( - uninterpretedOption_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - uninterpretedOption_ = null; - } - return uninterpretedOptionBuilder_; - } - @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.protobuf.ExtensionRangeOptions) - } - - // @@protoc_insertion_point(class_scope:google.protobuf.ExtensionRangeOptions) - private static final com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions(); - } - - public static com.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExtensionRangeOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExtensionRangeOptions(input, extensionRegistry); - } - }; - - 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.pingcap.kafkareader.proto.DescriptorProtos.ExtensionRangeOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FieldDescriptorProtoOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.protobuf.FieldDescriptorProto) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string name = 1; - */ - boolean hasName(); - /** - * optional string name = 1; - */ - java.lang.String getName(); - /** - * optional string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional int32 number = 3; - */ - boolean hasNumber(); - /** - * optional int32 number = 3; - */ - int getNumber(); - - /** - * optional .google.protobuf.FieldDescriptorProto.Label label = 4; - */ - boolean hasLabel(); - /** - * optional .google.protobuf.FieldDescriptorProto.Label label = 4; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Label getLabel(); - - /** - *
-     * If type_name is set, this need not be set.  If both this and type_name
-     * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type type = 5; - */ - boolean hasType(); - /** - *
-     * If type_name is set, this need not be set.  If both this and type_name
-     * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
-     * 
- * - * optional .google.protobuf.FieldDescriptorProto.Type type = 5; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Type getType(); - - /** - *
-     * For message and enum types, this is the name of the type.  If the name
-     * starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
-     * rules are used to find the type (i.e. first the nested types within this
-     * message are searched, then within the parent, on up to the root
-     * namespace).
-     * 
- * - * optional string type_name = 6; - */ - boolean hasTypeName(); - /** - *
-     * For message and enum types, this is the name of the type.  If the name
-     * starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
-     * rules are used to find the type (i.e. first the nested types within this
-     * message are searched, then within the parent, on up to the root
-     * namespace).
-     * 
- * - * optional string type_name = 6; - */ - java.lang.String getTypeName(); - /** - *
-     * For message and enum types, this is the name of the type.  If the name
-     * starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
-     * rules are used to find the type (i.e. first the nested types within this
-     * message are searched, then within the parent, on up to the root
-     * namespace).
-     * 
- * - * optional string type_name = 6; - */ - com.google.protobuf.ByteString - getTypeNameBytes(); - - /** - *
-     * For extensions, this is the name of the type being extended.  It is
-     * resolved in the same manner as type_name.
-     * 
- * - * optional string extendee = 2; - */ - boolean hasExtendee(); - /** - *
-     * For extensions, this is the name of the type being extended.  It is
-     * resolved in the same manner as type_name.
-     * 
- * - * optional string extendee = 2; - */ - java.lang.String getExtendee(); - /** - *
-     * For extensions, this is the name of the type being extended.  It is
-     * resolved in the same manner as type_name.
-     * 
- * - * optional string extendee = 2; - */ - com.google.protobuf.ByteString - getExtendeeBytes(); - - /** - *
-     * For numeric types, contains the original text representation of the value.
-     * For booleans, "true" or "false".
-     * For strings, contains the default text contents (not escaped in any way).
-     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
-     * TODO(kenton):  Base-64 encode?
-     * 
- * - * optional string default_value = 7; - */ - boolean hasDefaultValue(); - /** - *
-     * For numeric types, contains the original text representation of the value.
-     * For booleans, "true" or "false".
-     * For strings, contains the default text contents (not escaped in any way).
-     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
-     * TODO(kenton):  Base-64 encode?
-     * 
- * - * optional string default_value = 7; - */ - java.lang.String getDefaultValue(); - /** - *
-     * For numeric types, contains the original text representation of the value.
-     * For booleans, "true" or "false".
-     * For strings, contains the default text contents (not escaped in any way).
-     * For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
-     * TODO(kenton):  Base-64 encode?
-     * 
- * - * optional string default_value = 7; - */ - com.google.protobuf.ByteString - getDefaultValueBytes(); - - /** - *
-     * If set, gives the index of a oneof in the containing type's oneof_decl
-     * list.  This field is a member of that oneof.
-     * 
- * - * optional int32 oneof_index = 9; - */ - boolean hasOneofIndex(); - /** - *
-     * If set, gives the index of a oneof in the containing type's oneof_decl
-     * list.  This field is a member of that oneof.
-     * 
- * - * optional int32 oneof_index = 9; - */ - int getOneofIndex(); - - /** - *
-     * JSON name of this field. The value is set by protocol compiler. If the
-     * user has set a "json_name" option on this field, that option's value
-     * will be used. Otherwise, it's deduced from the field's name by converting
-     * it to camelCase.
-     * 
- * - * optional string json_name = 10; - */ - boolean hasJsonName(); - /** - *
-     * JSON name of this field. The value is set by protocol compiler. If the
-     * user has set a "json_name" option on this field, that option's value
-     * will be used. Otherwise, it's deduced from the field's name by converting
-     * it to camelCase.
-     * 
- * - * optional string json_name = 10; - */ - java.lang.String getJsonName(); - /** - *
-     * JSON name of this field. The value is set by protocol compiler. If the
-     * user has set a "json_name" option on this field, that option's value
-     * will be used. Otherwise, it's deduced from the field's name by converting
-     * it to camelCase.
-     * 
- * - * optional string json_name = 10; - */ - com.google.protobuf.ByteString - getJsonNameBytes(); - - /** - * optional .google.protobuf.FieldOptions options = 8; - */ - boolean hasOptions(); - /** - * optional .google.protobuf.FieldOptions options = 8; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FieldOptions getOptions(); - /** - * optional .google.protobuf.FieldOptions options = 8; - */ - com.pingcap.kafkareader.proto.DescriptorProtos.FieldOptionsOrBuilder getOptionsOrBuilder(); - } - /** - *
-   * Describes a field within a message.
-   * 
- * - * Protobuf type {@code google.protobuf.FieldDescriptorProto} - */ - public static final class FieldDescriptorProto extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.protobuf.FieldDescriptorProto) - FieldDescriptorProtoOrBuilder { - private static final long serialVersionUID = 0L; - // Use FieldDescriptorProto.newBuilder() to construct. - private FieldDescriptorProto(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FieldDescriptorProto() { - name_ = ""; - label_ = 1; - type_ = 1; - typeName_ = ""; - extendee_ = ""; - defaultValue_ = ""; - jsonName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FieldDescriptorProto(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FieldDescriptorProto( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - extendee_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000002; - number_ = input.readInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Label value = com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Label.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000004; - label_ = rawValue; - } - break; - } - case 40: { - int rawValue = input.readEnum(); - @SuppressWarnings("deprecation") - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Type value = com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000008; - type_ = rawValue; - } - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - typeName_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - defaultValue_ = bs; - break; - } - case 66: { - com.pingcap.kafkareader.proto.DescriptorProtos.FieldOptions.Builder subBuilder = null; - if (((bitField0_ & 0x00000200) != 0)) { - subBuilder = options_.toBuilder(); - } - options_ = input.readMessage(com.pingcap.kafkareader.proto.DescriptorProtos.FieldOptions.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(options_); - options_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000200; - break; - } - case 72: { - bitField0_ |= 0x00000080; - oneofIndex_ = input.readInt32(); - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - jsonName_ = bs; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.pingcap.kafkareader.proto.DescriptorProtos.internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.class, com.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.Builder.class); - } - - /** - * Protobuf enum {@code google.protobuf.FieldDescriptorProto.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * 0 is reserved for errors.
-       * Order is weird for historical reasons.
-       * 
- * - * TYPE_DOUBLE = 1; - */ - TYPE_DOUBLE(1), - /** - * TYPE_FLOAT = 2; - */ - TYPE_FLOAT(2), - /** - *
-       * Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
-       * negative values are likely.
-       * 
- * - * TYPE_INT64 = 3; - */ - TYPE_INT64(3), - /** - * TYPE_UINT64 = 4; - */ - TYPE_UINT64(4), - /** - *
-       * Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
-       * negative values are likely.
-       * 
- * - * TYPE_INT32 = 5; - */ - TYPE_INT32(5), - /** - * TYPE_FIXED64 = 6; - */ - TYPE_FIXED64(6), - /** - * TYPE_FIXED32 = 7; - */ - TYPE_FIXED32(7), - /** - * TYPE_BOOL = 8; - */ - TYPE_BOOL(8), - /** - * TYPE_STRING = 9; - */ - TYPE_STRING(9), - /** - *
-       * Tag-delimited aggregate.
-       * Group type is deprecated and not supported in proto3. However, Proto3
-       * implementations should still be able to parse the group wire format and
-       * treat group fields as unknown fields.
-       * 
- * - * TYPE_GROUP = 10; - */ - TYPE_GROUP(10), - /** - *
-       * Length-delimited aggregate.
-       * 
- * - * TYPE_MESSAGE = 11; - */ - TYPE_MESSAGE(11), - /** - *
-       * New in version 2.
-       * 
- * - * TYPE_BYTES = 12; - */ - TYPE_BYTES(12), - /** - * TYPE_UINT32 = 13; - */ - TYPE_UINT32(13), - /** - * TYPE_ENUM = 14; - */ - TYPE_ENUM(14), - /** - * TYPE_SFIXED32 = 15; - */ - TYPE_SFIXED32(15), - /** - * TYPE_SFIXED64 = 16; - */ - TYPE_SFIXED64(16), - /** - *
-       * Uses ZigZag encoding.
-       * 
- * - * TYPE_SINT32 = 17; - */ - TYPE_SINT32(17), - /** - *
-       * Uses ZigZag encoding.
-       * 
- * - * TYPE_SINT64 = 18; - */ - TYPE_SINT64(18), - ; - - /** - *
-       * 0 is reserved for errors.
-       * Order is weird for historical reasons.
-       * 
- * - * TYPE_DOUBLE = 1; - */ - public static final int TYPE_DOUBLE_VALUE = 1; - /** - * TYPE_FLOAT = 2; - */ - public static final int TYPE_FLOAT_VALUE = 2; - /** - *
-       * Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
-       * negative values are likely.
-       * 
- * - * TYPE_INT64 = 3; - */ - public static final int TYPE_INT64_VALUE = 3; - /** - * TYPE_UINT64 = 4; - */ - public static final int TYPE_UINT64_VALUE = 4; - /** - *
-       * Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
-       * negative values are likely.
-       * 
- * - * TYPE_INT32 = 5; - */ - public static final int TYPE_INT32_VALUE = 5; - /** - * TYPE_FIXED64 = 6; - */ - public static final int TYPE_FIXED64_VALUE = 6; - /** - * TYPE_FIXED32 = 7; - */ - public static final int TYPE_FIXED32_VALUE = 7; - /** - * TYPE_BOOL = 8; - */ - public static final int TYPE_BOOL_VALUE = 8; - /** - * TYPE_STRING = 9; - */ - public static final int TYPE_STRING_VALUE = 9; - /** - *
-       * Tag-delimited aggregate.
-       * Group type is deprecated and not supported in proto3. However, Proto3
-       * implementations should still be able to parse the group wire format and
-       * treat group fields as unknown fields.
-       * 
- * - * TYPE_GROUP = 10; - */ - public static final int TYPE_GROUP_VALUE = 10; - /** - *
-       * Length-delimited aggregate.
-       * 
- * - * TYPE_MESSAGE = 11; - */ - public static final int TYPE_MESSAGE_VALUE = 11; - /** - *
-       * New in version 2.
-       * 
- * - * TYPE_BYTES = 12; - */ - public static final int TYPE_BYTES_VALUE = 12; - /** - * TYPE_UINT32 = 13; - */ - public static final int TYPE_UINT32_VALUE = 13; - /** - * TYPE_ENUM = 14; - */ - public static final int TYPE_ENUM_VALUE = 14; - /** - * TYPE_SFIXED32 = 15; - */ - public static final int TYPE_SFIXED32_VALUE = 15; - /** - * TYPE_SFIXED64 = 16; - */ - public static final int TYPE_SFIXED64_VALUE = 16; - /** - *
-       * Uses ZigZag encoding.
-       * 
- * - * TYPE_SINT32 = 17; - */ - public static final int TYPE_SINT32_VALUE = 17; - /** - *
-       * Uses ZigZag encoding.
-       * 
- * - * TYPE_SINT64 = 18; - */ - public static final int TYPE_SINT64_VALUE = 18; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - public static Type forNumber(int value) { - switch (value) { - case 1: return TYPE_DOUBLE; - case 2: return TYPE_FLOAT; - case 3: return TYPE_INT64; - case 4: return TYPE_UINT64; - case 5: return TYPE_INT32; - case 6: return TYPE_FIXED64; - case 7: return TYPE_FIXED32; - case 8: return TYPE_BOOL; - case 9: return TYPE_STRING; - case 10: return TYPE_GROUP; - case 11: return TYPE_MESSAGE; - case 12: return TYPE_BYTES; - case 13: return TYPE_UINT32; - case 14: return TYPE_ENUM; - case 15: return TYPE_SFIXED32; - case 16: return TYPE_SFIXED64; - case 17: return TYPE_SINT32; - case 18: return TYPE_SINT64; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - 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.pingcap.kafkareader.proto.DescriptorProtos.FieldDescriptorProto.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.protobuf.FieldDescriptorProto.Type) - } - - /** - * Protobuf enum {@code google.protobuf.FieldDescriptorProto.Label} - */ - public enum Label - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * 0 is reserved for errors
-       * 
- * - * LABEL_OPTIONAL = 1; - */ - LABEL_OPTIONAL(1), - /** - * LABEL_REQUIRED = 2; - */ - LABEL_REQUIRED(2), - /** - * LABEL_REPEATED = 3; - */ - LABEL_REPEATED(3), - ; - - /** - *
-       * 0 is reserved for errors
-       * 
- * - * LABEL_OPTIONAL = 1; - */ - public static final int LABEL_OPTIONAL_VALUE = 1; - /** - * LABEL_REQUIRED = 2; - */ - public static final int LABEL_REQUIRED_VALUE = 2; - /** - * LABEL_REPEATED = 3; - */ - public static final int LABEL_REPEATED_VALUE = 3; - - - public final int getNumber() { - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Label valueOf(int value) { - return forNumber(value); - } - - public static Label forNumber(int value) { - switch (value) { - case 1: return LABEL_OPTIONAL; - case 2: return LABEL_REQUIRED; - case 3: return LABEL_REPEATED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap