diff --git a/.gitignore b/.gitignore index 3f1a5d6b..90bd720f 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ jtester.properties .idea/ *.iml .DS_Store +*.tar.gz +*.rpm diff --git a/README.md b/README.md index 456bd2db..86ef8755 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@
+ * 1. 网络接收 (单线程) + * 2. 事件基本解析 (单线程,事件类型、DDL解析构造TableMeta、维护位点信息) + * 3. 事件深度解析 (多线程, DML事件数据的完整解析) + * 4. 投递到store (单线程) + *+ * + * @author agapple 2018年7月3日 下午4:54:17 + * @since 1.0.26 + */ +public interface MultiStageCoprocessor extends CanalLifeCycle { + + /** + * 网络数据投递 + */ + public boolean publish(LogBuffer buffer); + + public boolean publish(LogBuffer buffer, String binlogFileName); + + public void reset(); +} diff --git a/parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/AbstractMysqlEventParser.java b/parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/AbstractMysqlEventParser.java index 3b0e605d..c0d2f190 100644 --- a/parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/AbstractMysqlEventParser.java +++ b/parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/AbstractMysqlEventParser.java @@ -7,10 +7,12 @@ import org.slf4j.LoggerFactory; import com.alibaba.otter.canal.filter.CanalEventFilter; import com.alibaba.otter.canal.filter.aviater.AviaterRegexFilter; +import com.alibaba.otter.canal.parse.CanalEventParser; import com.alibaba.otter.canal.parse.driver.mysql.packets.MysqlGTIDSet; import com.alibaba.otter.canal.parse.exception.CanalParseException; import com.alibaba.otter.canal.parse.inbound.AbstractEventParser; import com.alibaba.otter.canal.parse.inbound.BinlogParser; +import com.alibaba.otter.canal.parse.inbound.MultiStageCoprocessor; import com.alibaba.otter.canal.parse.inbound.mysql.dbsync.LogEventConvert; import com.alibaba.otter.canal.parse.inbound.mysql.tsdb.TableMetaTSDB; import com.alibaba.otter.canal.parse.inbound.mysql.tsdb.TableMetaTSDBBuilder; @@ -90,8 +92,16 @@ public abstract class AbstractMysqlEventParser extends AbstractEventParser { public void start() throws CanalParseException { if (enableTsdb) { if (tableMetaTSDB == null) { - // 初始化 - tableMetaTSDB = TableMetaTSDBBuilder.build(destination, tsdbSpringXml); + synchronized (CanalEventParser.class) { + try { + // 设置当前正在加载的通道,加载spring查找文件时会用到该变量 + System.setProperty("canal.instance.destination", destination); + // 初始化 + tableMetaTSDB = TableMetaTSDBBuilder.build(destination, tsdbSpringXml); + } finally { + System.setProperty("canal.instance.destination", ""); + } + } } } @@ -117,6 +127,14 @@ public abstract class AbstractMysqlEventParser extends AbstractEventParser { } } + protected MultiStageCoprocessor buildMultiStageCoprocessor() { + return new MysqlMultiStageCoprocessor(parallelBufferSize, + parallelThreadSize, + (LogEventConvert) binlogParser, + transactionBuffer, + destination); + } + // ============================ setter / getter ========================= public void setConnectionCharsetNumber(byte connectionCharsetNumber) { diff --git a/parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java b/parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java index 68086633..6c59465b 100644 --- a/parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java +++ b/parse/src/main/java/com/alibaba/otter/canal/parse/inbound/mysql/LocalBinLogConnection.java @@ -4,16 +4,18 @@ import java.io.File; import java.io.IOException; import java.util.List; -import com.alibaba.otter.canal.parse.driver.mysql.packets.GTIDSet; import org.apache.commons.lang.NotImplementedException; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import com.alibaba.otter.canal.parse.driver.mysql.packets.GTIDSet; import com.alibaba.otter.canal.parse.inbound.ErosaConnection; +import com.alibaba.otter.canal.parse.inbound.MultiStageCoprocessor; import com.alibaba.otter.canal.parse.inbound.SinkFunction; import com.alibaba.otter.canal.parse.inbound.mysql.local.BinLogFileQueue; import com.taobao.tddl.dbsync.binlog.FileLogFetcher; +import com.taobao.tddl.dbsync.binlog.LogBuffer; import com.taobao.tddl.dbsync.binlog.LogContext; import com.taobao.tddl.dbsync.binlog.LogDecoder; import com.taobao.tddl.dbsync.binlog.LogEvent; @@ -207,6 +209,132 @@ public class LocalBinLogConnection implements ErosaConnection { throw new NotImplementedException(); } + @Override + public void dump(String binlogfilename, Long binlogPosition, MultiStageCoprocessor coprocessor) throws IOException { + File current = new File(directory, binlogfilename); + + FileLogFetcher fetcher = new FileLogFetcher(bufferSize); + try { + fetcher.open(current, binlogPosition); + while (running) { + boolean needContinue = true; + while (fetcher.fetch()) { + LogBuffer buffer = fetcher.duplicate(); + fetcher.consume(fetcher.limit()); + // set filename + if (!coprocessor.publish(buffer, binlogfilename)) { + needContinue = false; + break; + } + } + + if (needContinue) {// 读取下一个 + fetcher.close(); // 关闭上一个文件 + + File nextFile; + if (needWait) { + nextFile = binlogs.waitForNextFile(current); + } else { + nextFile = binlogs.getNextFile(current); + } + + if (nextFile == null) { + break; + } + + current = nextFile; + fetcher.open(current); + binlogfilename = nextFile.getName(); + } else { + break;// 跳出 + } + } + } catch (InterruptedException e) { + logger.warn("LocalBinLogConnection dump interrupted"); + } finally { + if (fetcher != null) { + fetcher.close(); + } + } + } + + @Override + public void dump(long timestampMills, MultiStageCoprocessor coprocessor) throws IOException { + List
+ * 1. 网络接收 (单线程) + * 2. 事件基本解析 (单线程,事件类型、DDL解析构造TableMeta、维护位点信息) + * 3. 事件深度解析 (多线程, DML事件数据的完整解析) + * 4. 投递到store (单线程) + *+ * + * @author agapple 2018年7月3日 下午4:54:17 + * @since 1.0.26 + */ +public class MysqlMultiStageCoprocessor extends AbstractCanalLifeCycle implements MultiStageCoprocessor { + + private LogEventConvert logEventConvert; + private EventTransactionBuffer transactionBuffer; + private ErosaConnection connection; + + private int parserThreadCount; + private int ringBufferSize; + private RingBuffer
TRANSACTIONBEGIN = 1;
- */
- TRANSACTIONBEGIN(0, 1),
- /**
- * ROWDATA = 2;
- */
- ROWDATA(1, 2),
- /**
- * TRANSACTIONEND = 3;
- */
- TRANSACTIONEND(2, 3),
+ public enum EntryType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * TRANSACTIONBEGIN = 1;
+ */
+ TRANSACTIONBEGIN(0, 1),
+ /**
+ * ROWDATA = 2;
+ */
+ ROWDATA(1, 2),
+ /**
+ * TRANSACTIONEND = 3;
+ */
+ TRANSACTIONEND(2, 3),
/**
* HEARTBEAT = 4;
*
@@ -37,25 +38,24 @@ public final class CanalEntry {
* * 心跳类型,内部使用,外部暂不可见,可忽略 *
*
*/
- HEARTBEAT(3, 4),
- /**
- * GTIDLOG = 5;
- */
- GTIDLOG(4, 5),
- ;
+ HEARTBEAT(3, 4),
+ /**
+ * GTIDLOG = 5;
+ */
+ GTIDLOG(4, 5), ;
- /**
- * TRANSACTIONBEGIN = 1;
- */
- public static final int TRANSACTIONBEGIN_VALUE = 1;
- /**
- * ROWDATA = 2;
- */
- public static final int ROWDATA_VALUE = 2;
- /**
- * TRANSACTIONEND = 3;
- */
- public static final int TRANSACTIONEND_VALUE = 3;
+ /**
+ * TRANSACTIONBEGIN = 1;
+ */
+ public static final int TRANSACTIONBEGIN_VALUE = 1;
+ /**
+ * ROWDATA = 2;
+ */
+ public static final int ROWDATA_VALUE = 2;
+ /**
+ * TRANSACTIONEND = 3;
+ */
+ public static final int TRANSACTIONEND_VALUE = 3;
/**
* HEARTBEAT = 4;
*
@@ -63,72 +63,75 @@ public final class CanalEntry {
* * 心跳类型,内部使用,外部暂不可见,可忽略 *
*
*/
- public static final int HEARTBEAT_VALUE = 4;
- /**
- * GTIDLOG = 5;
- */
- public static final int GTIDLOG_VALUE = 5;
+ public static final int HEARTBEAT_VALUE = 4;
+ /**
+ * GTIDLOG = 5;
+ */
+ public static final int GTIDLOG_VALUE = 5;
+ public final int getNumber() {
+ return value;
+ }
- public final int getNumber() { return value; }
-
- public static EntryType valueOf(int value) {
- switch (value) {
- case 1: return TRANSACTIONBEGIN;
- case 2: return ROWDATA;
- case 3: return TRANSACTIONEND;
- case 4: return HEARTBEAT;
- case 5: return GTIDLOG;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMapINSERT = 1;
- */
- INSERT(0, 1),
- /**
- * UPDATE = 2;
- */
- UPDATE(1, 2),
- /**
- * DELETE = 3;
- */
- DELETE(2, 3),
- /**
- * CREATE = 4;
- */
- CREATE(3, 4),
- /**
- * ALTER = 5;
- */
- ALTER(4, 5),
- /**
- * ERASE = 6;
- */
- ERASE(5, 6),
- /**
- * QUERY = 7;
- */
- QUERY(6, 7),
- /**
- * TRUNCATE = 8;
- */
- TRUNCATE(7, 8),
- /**
- * RENAME = 9;
- */
- RENAME(8, 9),
- /**
- * CINDEX = 10;
- *
- * - **CREATE INDEX* - *- */ - CINDEX(9, 10), - /** - *
DINDEX = 11;
- */
- DINDEX(10, 11),
- /**
- * GTID = 12;
- */
- GTID(11, 12),
- /**
- * XASTART = 13;
- *
- * - ** XA * - *- */ - XASTART(12, 13), - /** - *
XAEND = 14;
- */
- XAEND(13, 14),
- /**
- * XACOMMIT = 15;
- */
- XACOMMIT(14, 15),
- /**
- * XAROLLBACK = 16;
- */
- XAROLLBACK(15, 16),
- ;
+ public enum EventType implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * INSERT = 1;
+ */
+ INSERT(0, 1),
+ /**
+ * UPDATE = 2;
+ */
+ UPDATE(1, 2),
+ /**
+ * DELETE = 3;
+ */
+ DELETE(2, 3),
+ /**
+ * CREATE = 4;
+ */
+ CREATE(3, 4),
+ /**
+ * ALTER = 5;
+ */
+ ALTER(4, 5),
+ /**
+ * ERASE = 6;
+ */
+ ERASE(5, 6),
+ /**
+ * QUERY = 7;
+ */
+ QUERY(6, 7),
+ /**
+ * TRUNCATE = 8;
+ */
+ TRUNCATE(7, 8),
+ /**
+ * RENAME = 9;
+ */
+ RENAME(8, 9),
+ /**
+ * CINDEX = 10;
+ *
+ * + * *CREATE INDEX* + *+ */ + CINDEX(9, 10), + /** + *
DINDEX = 11;
+ */
+ DINDEX(10, 11),
+ /**
+ * GTID = 12;
+ */
+ GTID(11, 12),
+ /**
+ * XASTART = 13;
+ *
+ * + * * XA * + *+ */ + XASTART(12, 13), + /** + *
XAEND = 14;
+ */
+ XAEND(13, 14),
+ /**
+ * XACOMMIT = 15;
+ */
+ XACOMMIT(14, 15),
+ /**
+ * XAROLLBACK = 16;
+ */
+ XAROLLBACK(15, 16), ;
- /**
- * INSERT = 1;
- */
- public static final int INSERT_VALUE = 1;
- /**
- * UPDATE = 2;
- */
- public static final int UPDATE_VALUE = 2;
- /**
- * DELETE = 3;
- */
- public static final int DELETE_VALUE = 3;
- /**
- * CREATE = 4;
- */
- public static final int CREATE_VALUE = 4;
- /**
- * ALTER = 5;
- */
- public static final int ALTER_VALUE = 5;
- /**
- * ERASE = 6;
- */
- public static final int ERASE_VALUE = 6;
- /**
- * QUERY = 7;
- */
- public static final int QUERY_VALUE = 7;
- /**
- * TRUNCATE = 8;
- */
- public static final int TRUNCATE_VALUE = 8;
- /**
- * RENAME = 9;
- */
- public static final int RENAME_VALUE = 9;
- /**
- * CINDEX = 10;
- *
- * - **CREATE INDEX* - *- */ - public static final int CINDEX_VALUE = 10; - /** - *
DINDEX = 11;
- */
- public static final int DINDEX_VALUE = 11;
- /**
- * GTID = 12;
- */
- public static final int GTID_VALUE = 12;
- /**
- * XASTART = 13;
- *
- * - ** XA * - *- */ - public static final int XASTART_VALUE = 13; - /** - *
XAEND = 14;
- */
- public static final int XAEND_VALUE = 14;
- /**
- * XACOMMIT = 15;
- */
- public static final int XACOMMIT_VALUE = 15;
- /**
- * XAROLLBACK = 16;
- */
- public static final int XAROLLBACK_VALUE = 16;
+ /**
+ * INSERT = 1;
+ */
+ public static final int INSERT_VALUE = 1;
+ /**
+ * UPDATE = 2;
+ */
+ public static final int UPDATE_VALUE = 2;
+ /**
+ * DELETE = 3;
+ */
+ public static final int DELETE_VALUE = 3;
+ /**
+ * CREATE = 4;
+ */
+ public static final int CREATE_VALUE = 4;
+ /**
+ * ALTER = 5;
+ */
+ public static final int ALTER_VALUE = 5;
+ /**
+ * ERASE = 6;
+ */
+ public static final int ERASE_VALUE = 6;
+ /**
+ * QUERY = 7;
+ */
+ public static final int QUERY_VALUE = 7;
+ /**
+ * TRUNCATE = 8;
+ */
+ public static final int TRUNCATE_VALUE = 8;
+ /**
+ * RENAME = 9;
+ */
+ public static final int RENAME_VALUE = 9;
+ /**
+ * CINDEX = 10;
+ *
+ * + * *CREATE INDEX* + *+ */ + public static final int CINDEX_VALUE = 10; + /** + *
DINDEX = 11;
+ */
+ public static final int DINDEX_VALUE = 11;
+ /**
+ * GTID = 12;
+ */
+ public static final int GTID_VALUE = 12;
+ /**
+ * XASTART = 13;
+ *
+ * + * * XA * + *+ */ + public static final int XASTART_VALUE = 13; + /** + *
XAEND = 14;
+ */
+ public static final int XAEND_VALUE = 14;
+ /**
+ * XACOMMIT = 15;
+ */
+ public static final int XACOMMIT_VALUE = 15;
+ /**
+ * XAROLLBACK = 16;
+ */
+ public static final int XAROLLBACK_VALUE = 16;
+ public final int getNumber() {
+ return value;
+ }
- public final int getNumber() { return value; }
-
- public static EventType valueOf(int value) {
- switch (value) {
- case 1: return INSERT;
- case 2: return UPDATE;
- case 3: return DELETE;
- case 4: return CREATE;
- case 5: return ALTER;
- case 6: return ERASE;
- case 7: return QUERY;
- case 8: return TRUNCATE;
- case 9: return RENAME;
- case 10: return CINDEX;
- case 11: return DINDEX;
- case 12: return GTID;
- case 13: return XASTART;
- case 14: return XAEND;
- case 15: return XACOMMIT;
- case 16: return XAROLLBACK;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMapORACLE = 1;
- */
- ORACLE(0, 1),
- /**
- * MYSQL = 2;
- */
- MYSQL(1, 2),
- /**
- * PGSQL = 3;
- */
- PGSQL(2, 3),
- ;
+ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * ORACLE = 1;
+ */
+ ORACLE(0, 1),
+ /**
+ * MYSQL = 2;
+ */
+ MYSQL(1, 2),
+ /**
+ * PGSQL = 3;
+ */
+ PGSQL(2, 3), ;
- /**
- * ORACLE = 1;
- */
- public static final int ORACLE_VALUE = 1;
- /**
- * MYSQL = 2;
- */
- public static final int MYSQL_VALUE = 2;
- /**
- * PGSQL = 3;
- */
- public static final int PGSQL_VALUE = 3;
+ /**
+ * ORACLE = 1;
+ */
+ public static final int ORACLE_VALUE = 1;
+ /**
+ * MYSQL = 2;
+ */
+ public static final int MYSQL_VALUE = 2;
+ /**
+ * PGSQL = 3;
+ */
+ public static final int PGSQL_VALUE = 3;
+ public final int getNumber() {
+ return value;
+ }
- public final int getNumber() { return value; }
-
- public static Type valueOf(int value) {
- switch (value) {
- case 1: return ORACLE;
- case 2: return MYSQL;
- case 3: return PGSQL;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMapoptional .com.alibaba.otter.canal.protocol.Header header = 1;
@@ -464,8 +478,8 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- boolean hasHeader();
-
+ boolean hasHeader();
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -473,8 +487,8 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.Header getHeader();
-
+ com.alibaba.otter.canal.protocol.CanalEntry.Header getHeader();
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -482,7 +496,7 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.HeaderOrBuilder getHeaderOrBuilder();
+ com.alibaba.otter.canal.protocol.CanalEntry.HeaderOrBuilder getHeaderOrBuilder();
/**
* optional .com.alibaba.otter.canal.protocol.EntryType entryType = 2 [default = ROWDATA];
@@ -491,8 +505,8 @@ public final class CanalEntry {
* *打散后的事件类型*
*
*/
- boolean hasEntryType();
-
+ boolean hasEntryType();
+
/**
* optional .com.alibaba.otter.canal.protocol.EntryType entryType = 2 [default = ROWDATA];
*
@@ -500,7 +514,7 @@ public final class CanalEntry {
* *打散后的事件类型*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.EntryType getEntryType();
+ com.alibaba.otter.canal.protocol.CanalEntry.EntryType getEntryType();
/**
* optional bytes storeValue = 3;
@@ -509,8 +523,8 @@ public final class CanalEntry {
* *传输的二进制数组*
*
*/
- boolean hasStoreValue();
-
+ boolean hasStoreValue();
+
/**
* optional bytes storeValue = 3;
*
@@ -518,9 +532,9 @@ public final class CanalEntry {
* *传输的二进制数组*
*
*/
- com.google.protobuf.ByteString getStoreValue();
- }
-
+ com.google.protobuf.ByteString getStoreValue();
+ }
+
/**
* Protobuf type {@code com.alibaba.otter.canal.protocol.Entry}
*
@@ -531,127 +545,126 @@ public final class CanalEntry {
***************************************************************
*
*/
- public static final class Entry extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.Entry)
- EntryOrBuilder {
- // Use Entry.newBuilder() to construct.
- private Entry(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Entry(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+ public static final class Entry extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.Entry)
+ EntryOrBuilder {
- private static final Entry defaultInstance;
- public static Entry getDefaultInstance() {
- return defaultInstance;
- }
-
- public Entry getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Entry(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- 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;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.alibaba.otter.canal.protocol.CanalEntry.Header.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = header_.toBuilder();
- }
- header_ = input.readMessage(com.alibaba.otter.canal.protocol.CanalEntry.Header.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(header_);
- header_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 16: {
- int rawValue = input.readEnum();
- com.alibaba.otter.canal.protocol.CanalEntry.EntryType value = com.alibaba.otter.canal.protocol.CanalEntry.EntryType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(2, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- entryType_ = value;
- }
- break;
- }
- case 26: {
- bitField0_ |= 0x00000004;
- storeValue_ = input.readBytes();
- break;
- }
- }
+ // Use Entry.newBuilder() to construct.
+ private Entry(com.google.protobuf.GeneratedMessage.Builder> builder){
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
}
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Entry_descriptor;
- }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Entry_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.alibaba.otter.canal.protocol.CanalEntry.Entry.class, com.alibaba.otter.canal.protocol.CanalEntry.Entry.Builder.class);
- }
+ private Entry(boolean noInit){
+ this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+ }
- public static com.google.protobuf.Parseroptional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -659,10 +672,10 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- public boolean hasHeader() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
+ public boolean hasHeader() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -670,10 +683,10 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.Header getHeader() {
- return header_;
- }
-
+ public com.alibaba.otter.canal.protocol.CanalEntry.Header getHeader() {
+ return header_;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -681,13 +694,13 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.HeaderOrBuilder getHeaderOrBuilder() {
- return header_;
- }
+ public com.alibaba.otter.canal.protocol.CanalEntry.HeaderOrBuilder getHeaderOrBuilder() {
+ return header_;
+ }
+
+ public static final int ENTRYTYPE_FIELD_NUMBER = 2;
+ private com.alibaba.otter.canal.protocol.CanalEntry.EntryType entryType_;
- public static final int ENTRYTYPE_FIELD_NUMBER = 2;
- private com.alibaba.otter.canal.protocol.CanalEntry.EntryType entryType_;
-
/**
* optional .com.alibaba.otter.canal.protocol.EntryType entryType = 2 [default = ROWDATA];
*
@@ -695,10 +708,10 @@ public final class CanalEntry {
* *打散后的事件类型*
*
*/
- public boolean hasEntryType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
+ public boolean hasEntryType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.EntryType entryType = 2 [default = ROWDATA];
*
@@ -706,13 +719,13 @@ public final class CanalEntry {
* *打散后的事件类型*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.EntryType getEntryType() {
- return entryType_;
- }
+ public com.alibaba.otter.canal.protocol.CanalEntry.EntryType getEntryType() {
+ return entryType_;
+ }
+
+ public static final int STOREVALUE_FIELD_NUMBER = 3;
+ private com.google.protobuf.ByteString storeValue_;
- public static final int STOREVALUE_FIELD_NUMBER = 3;
- private com.google.protobuf.ByteString storeValue_;
-
/**
* optional bytes storeValue = 3;
*
@@ -720,10 +733,10 @@ public final class CanalEntry {
* *传输的二进制数组*
*
*/
- public boolean hasStoreValue() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
-
+ public boolean hasStoreValue() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+
/**
* optional bytes storeValue = 3;
*
@@ -731,137 +744,146 @@ public final class CanalEntry {
* *传输的二进制数组*
*
*/
- public com.google.protobuf.ByteString getStoreValue() {
- return storeValue_;
- }
+ public com.google.protobuf.ByteString getStoreValue() {
+ return storeValue_;
+ }
- private void initFields() {
- header_ = com.alibaba.otter.canal.protocol.CanalEntry.Header.getDefaultInstance();
- entryType_ = com.alibaba.otter.canal.protocol.CanalEntry.EntryType.ROWDATA;
- storeValue_ = com.google.protobuf.ByteString.EMPTY;
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ private void initFields() {
+ header_ = com.alibaba.otter.canal.protocol.CanalEntry.Header.getDefaultInstance();
+ entryType_ = com.alibaba.otter.canal.protocol.CanalEntry.EntryType.ROWDATA;
+ storeValue_ = com.google.protobuf.ByteString.EMPTY;
+ }
- memoizedIsInitialized = 1;
- return true;
- }
+ private byte memoizedIsInitialized = -1;
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, header_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, entryType_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, storeValue_);
- }
- getUnknownFields().writeTo(output);
- }
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
+ memoizedIsInitialized = 1;
+ return true;
+ }
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, header_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, entryType_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, storeValue_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(1, header_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeEnum(2, entryType_.getNumber());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBytes(3, storeValue_);
+ }
+ getUnknownFields().writeTo(output);
+ }
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
+ private int memoizedSerializedSize = -1;
- public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Entry prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, header_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, entryType_.getNumber());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, storeValue_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+
+ @java.lang.Override
+ protected java.lang.Object writeReplace() throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseDelimitedFrom(java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Entry parseFrom(com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() {
+ return Builder.create();
+ }
+
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Entry prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+
+ public Builder toBuilder() {
+ return newBuilder(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
/**
* Protobuf type {@code com.alibaba.otter.canal.protocol.Entry}
*
@@ -872,153 +894,150 @@ public final class CanalEntry {
***************************************************************
*
*/
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderoptional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -1026,10 +1045,10 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- public boolean hasHeader() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
+ public boolean hasHeader() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -1037,14 +1056,14 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.Header getHeader() {
- if (headerBuilder_ == null) {
- return header_;
- } else {
- return headerBuilder_.getMessage();
- }
- }
-
+ public com.alibaba.otter.canal.protocol.CanalEntry.Header getHeader() {
+ if (headerBuilder_ == null) {
+ return header_;
+ } else {
+ return headerBuilder_.getMessage();
+ }
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -1052,20 +1071,20 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- public Builder setHeader(com.alibaba.otter.canal.protocol.CanalEntry.Header value) {
- if (headerBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- header_ = value;
- onChanged();
- } else {
- headerBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
-
+ public Builder setHeader(com.alibaba.otter.canal.protocol.CanalEntry.Header value) {
+ if (headerBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ header_ = value;
+ onChanged();
+ } else {
+ headerBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -1073,18 +1092,17 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- public Builder setHeader(
- com.alibaba.otter.canal.protocol.CanalEntry.Header.Builder builderForValue) {
- if (headerBuilder_ == null) {
- header_ = builderForValue.build();
- onChanged();
- } else {
- headerBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
-
+ public Builder setHeader(com.alibaba.otter.canal.protocol.CanalEntry.Header.Builder builderForValue) {
+ if (headerBuilder_ == null) {
+ header_ = builderForValue.build();
+ onChanged();
+ } else {
+ headerBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -1092,23 +1110,24 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- public Builder mergeHeader(com.alibaba.otter.canal.protocol.CanalEntry.Header value) {
- if (headerBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- header_ != com.alibaba.otter.canal.protocol.CanalEntry.Header.getDefaultInstance()) {
- header_ =
- com.alibaba.otter.canal.protocol.CanalEntry.Header.newBuilder(header_).mergeFrom(value).buildPartial();
- } else {
- header_ = value;
- }
- onChanged();
- } else {
- headerBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
-
+ public Builder mergeHeader(com.alibaba.otter.canal.protocol.CanalEntry.Header value) {
+ if (headerBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)
+ && header_ != com.alibaba.otter.canal.protocol.CanalEntry.Header.getDefaultInstance()) {
+ header_ = com.alibaba.otter.canal.protocol.CanalEntry.Header.newBuilder(header_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ header_ = value;
+ }
+ onChanged();
+ } else {
+ headerBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -1116,17 +1135,17 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- public Builder clearHeader() {
- if (headerBuilder_ == null) {
- header_ = com.alibaba.otter.canal.protocol.CanalEntry.Header.getDefaultInstance();
- onChanged();
- } else {
- headerBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
+ public Builder clearHeader() {
+ if (headerBuilder_ == null) {
+ header_ = com.alibaba.otter.canal.protocol.CanalEntry.Header.getDefaultInstance();
+ onChanged();
+ } else {
+ headerBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -1134,12 +1153,12 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.Header.Builder getHeaderBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getHeaderFieldBuilder().getBuilder();
- }
-
+ public com.alibaba.otter.canal.protocol.CanalEntry.Header.Builder getHeaderBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getHeaderFieldBuilder().getBuilder();
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -1147,14 +1166,14 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.HeaderOrBuilder getHeaderOrBuilder() {
- if (headerBuilder_ != null) {
- return headerBuilder_.getMessageOrBuilder();
- } else {
- return header_;
- }
- }
-
+ public com.alibaba.otter.canal.protocol.CanalEntry.HeaderOrBuilder getHeaderOrBuilder() {
+ if (headerBuilder_ != null) {
+ return headerBuilder_.getMessageOrBuilder();
+ } else {
+ return header_;
+ }
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Header header = 1;
*
@@ -1162,22 +1181,18 @@ public final class CanalEntry {
* *协议头部信息*
*
*/
- private com.google.protobuf.SingleFieldBuilder<
- com.alibaba.otter.canal.protocol.CanalEntry.Header, com.alibaba.otter.canal.protocol.CanalEntry.Header.Builder, com.alibaba.otter.canal.protocol.CanalEntry.HeaderOrBuilder>
- getHeaderFieldBuilder() {
- if (headerBuilder_ == null) {
- headerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- com.alibaba.otter.canal.protocol.CanalEntry.Header, com.alibaba.otter.canal.protocol.CanalEntry.Header.Builder, com.alibaba.otter.canal.protocol.CanalEntry.HeaderOrBuilder>(
- getHeader(),
- getParentForChildren(),
- isClean());
- header_ = null;
- }
- return headerBuilder_;
- }
+ private com.google.protobuf.SingleFieldBuilderoptional .com.alibaba.otter.canal.protocol.EntryType entryType = 2 [default = ROWDATA];
*
@@ -1185,10 +1200,10 @@ public final class CanalEntry {
* *打散后的事件类型*
*
*/
- public boolean hasEntryType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
+ public boolean hasEntryType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.EntryType entryType = 2 [default = ROWDATA];
*
@@ -1196,10 +1211,10 @@ public final class CanalEntry {
* *打散后的事件类型*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.EntryType getEntryType() {
- return entryType_;
- }
-
+ public com.alibaba.otter.canal.protocol.CanalEntry.EntryType getEntryType() {
+ return entryType_;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.EntryType entryType = 2 [default = ROWDATA];
*
@@ -1207,99 +1222,99 @@ public final class CanalEntry {
* *打散后的事件类型*
*
*/
- public Builder setEntryType(com.alibaba.otter.canal.protocol.CanalEntry.EntryType value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder setEntryType(com.alibaba.otter.canal.protocol.CanalEntry.EntryType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ entryType_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * optional .com.alibaba.otter.canal.protocol.EntryType entryType = 2 [default = ROWDATA];
+ *
+ * + * *打散后的事件类型* + *+ */ + public Builder clearEntryType() { + bitField0_ = (bitField0_ & ~0x00000002); + entryType_ = com.alibaba.otter.canal.protocol.CanalEntry.EntryType.ROWDATA; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString storeValue_ = com.google.protobuf.ByteString.EMPTY; + + /** + *
optional bytes storeValue = 3;
+ *
+ * + * *传输的二进制数组* + *+ */ + public boolean hasStoreValue() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + + /** + *
optional bytes storeValue = 3;
+ *
+ * + * *传输的二进制数组* + *+ */ + public com.google.protobuf.ByteString getStoreValue() { + return storeValue_; + } + + /** + *
optional bytes storeValue = 3;
+ *
+ * + * *传输的二进制数组* + *+ */ + public Builder setStoreValue(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + storeValue_ = value; + onChanged(); + return this; + } + + /** + *
optional bytes storeValue = 3;
+ *
+ * + * *传输的二进制数组* + *+ */ + public Builder clearStoreValue() { + bitField0_ = (bitField0_ & ~0x00000004); + storeValue_ = getDefaultInstance().getStoreValue(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.Entry) } - bitField0_ |= 0x00000002; - entryType_ = value; - onChanged(); - return this; - } - - /** - *
optional .com.alibaba.otter.canal.protocol.EntryType entryType = 2 [default = ROWDATA];
- *
- * - * *打散后的事件类型* - *- */ - public Builder clearEntryType() { - bitField0_ = (bitField0_ & ~0x00000002); - entryType_ = com.alibaba.otter.canal.protocol.CanalEntry.EntryType.ROWDATA; - onChanged(); - return this; - } - private com.google.protobuf.ByteString storeValue_ = com.google.protobuf.ByteString.EMPTY; - - /** - *
optional bytes storeValue = 3;
- *
- * - * *传输的二进制数组* - *- */ - public boolean hasStoreValue() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - - /** - *
optional bytes storeValue = 3;
- *
- * - * *传输的二进制数组* - *- */ - public com.google.protobuf.ByteString getStoreValue() { - return storeValue_; - } - - /** - *
optional bytes storeValue = 3;
- *
- * - * *传输的二进制数组* - *- */ - public Builder setStoreValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - storeValue_ = value; - onChanged(); - return this; - } - - /** - *
optional bytes storeValue = 3;
- *
- * - * *传输的二进制数组* - *- */ - public Builder clearStoreValue() { - bitField0_ = (bitField0_ & ~0x00000004); - storeValue_ = getDefaultInstance().getStoreValue(); - onChanged(); - return this; - } + static { + defaultInstance = new Entry(true); + defaultInstance.initFields(); + } - // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.Entry) + // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.Entry) } - static { - defaultInstance = new Entry(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.Entry) - } - - public interface HeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Header) - com.google.protobuf.MessageOrBuilder { + public interface HeaderOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Header) + com.google.protobuf.MessageOrBuilder { /** *
optional int32 version = 1 [default = 1];
@@ -1308,8 +1323,8 @@ public final class CanalEntry {
* *协议的版本号*
*
*/
- boolean hasVersion();
-
+ boolean hasVersion();
+
/**
* optional int32 version = 1 [default = 1];
*
@@ -1317,7 +1332,7 @@ public final class CanalEntry {
* *协议的版本号*
*
*/
- int getVersion();
+ int getVersion();
/**
* optional string logfileName = 2;
@@ -1326,8 +1341,8 @@ public final class CanalEntry {
* *binlog/redolog 文件名*
*
*/
- boolean hasLogfileName();
-
+ boolean hasLogfileName();
+
/**
* optional string logfileName = 2;
*
@@ -1335,8 +1350,8 @@ public final class CanalEntry {
* *binlog/redolog 文件名*
*
*/
- java.lang.String getLogfileName();
-
+ java.lang.String getLogfileName();
+
/**
* optional string logfileName = 2;
*
@@ -1344,8 +1359,7 @@ public final class CanalEntry {
* *binlog/redolog 文件名*
*
*/
- com.google.protobuf.ByteString
- getLogfileNameBytes();
+ com.google.protobuf.ByteString getLogfileNameBytes();
/**
* optional int64 logfileOffset = 3;
@@ -1354,8 +1368,8 @@ public final class CanalEntry {
* *binlog/redolog 文件的偏移位置*
*
*/
- boolean hasLogfileOffset();
-
+ boolean hasLogfileOffset();
+
/**
* optional int64 logfileOffset = 3;
*
@@ -1363,7 +1377,7 @@ public final class CanalEntry {
* *binlog/redolog 文件的偏移位置*
*
*/
- long getLogfileOffset();
+ long getLogfileOffset();
/**
* optional int64 serverId = 4;
@@ -1372,8 +1386,8 @@ public final class CanalEntry {
* *服务端serverId*
*
*/
- boolean hasServerId();
-
+ boolean hasServerId();
+
/**
* optional int64 serverId = 4;
*
@@ -1381,7 +1395,7 @@ public final class CanalEntry {
* *服务端serverId*
*
*/
- long getServerId();
+ long getServerId();
/**
* optional string serverenCode = 5;
@@ -1390,8 +1404,8 @@ public final class CanalEntry {
* * 变更数据的编码 *
*
*/
- boolean hasServerenCode();
-
+ boolean hasServerenCode();
+
/**
* optional string serverenCode = 5;
*
@@ -1399,8 +1413,8 @@ public final class CanalEntry {
* * 变更数据的编码 *
*
*/
- java.lang.String getServerenCode();
-
+ java.lang.String getServerenCode();
+
/**
* optional string serverenCode = 5;
*
@@ -1408,8 +1422,7 @@ public final class CanalEntry {
* * 变更数据的编码 *
*
*/
- com.google.protobuf.ByteString
- getServerenCodeBytes();
+ com.google.protobuf.ByteString getServerenCodeBytes();
/**
* optional int64 executeTime = 6;
@@ -1418,8 +1431,8 @@ public final class CanalEntry {
* *变更数据的执行时间 *
*
*/
- boolean hasExecuteTime();
-
+ boolean hasExecuteTime();
+
/**
* optional int64 executeTime = 6;
*
@@ -1427,7 +1440,7 @@ public final class CanalEntry {
* *变更数据的执行时间 *
*
*/
- long getExecuteTime();
+ long getExecuteTime();
/**
* optional .com.alibaba.otter.canal.protocol.Type sourceType = 7 [default = MYSQL];
@@ -1436,8 +1449,8 @@ public final class CanalEntry {
* * 变更数据的来源*
*
*/
- boolean hasSourceType();
-
+ boolean hasSourceType();
+
/**
* optional .com.alibaba.otter.canal.protocol.Type sourceType = 7 [default = MYSQL];
*
@@ -1445,7 +1458,7 @@ public final class CanalEntry {
* * 变更数据的来源*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.Type getSourceType();
+ com.alibaba.otter.canal.protocol.CanalEntry.Type getSourceType();
/**
* optional string schemaName = 8;
@@ -1454,8 +1467,8 @@ public final class CanalEntry {
* * 变更数据的schemaname*
*
*/
- boolean hasSchemaName();
-
+ boolean hasSchemaName();
+
/**
* optional string schemaName = 8;
*
@@ -1463,8 +1476,8 @@ public final class CanalEntry {
* * 变更数据的schemaname*
*
*/
- java.lang.String getSchemaName();
-
+ java.lang.String getSchemaName();
+
/**
* optional string schemaName = 8;
*
@@ -1472,8 +1485,7 @@ public final class CanalEntry {
* * 变更数据的schemaname*
*
*/
- com.google.protobuf.ByteString
- getSchemaNameBytes();
+ com.google.protobuf.ByteString getSchemaNameBytes();
/**
* optional string tableName = 9;
@@ -1482,8 +1494,8 @@ public final class CanalEntry {
* *变更数据的tablename*
*
*/
- boolean hasTableName();
-
+ boolean hasTableName();
+
/**
* optional string tableName = 9;
*
@@ -1491,8 +1503,8 @@ public final class CanalEntry {
* *变更数据的tablename*
*
*/
- java.lang.String getTableName();
-
+ java.lang.String getTableName();
+
/**
* optional string tableName = 9;
*
@@ -1500,8 +1512,7 @@ public final class CanalEntry {
* *变更数据的tablename*
*
*/
- com.google.protobuf.ByteString
- getTableNameBytes();
+ com.google.protobuf.ByteString getTableNameBytes();
/**
* optional int64 eventLength = 10;
@@ -1510,8 +1521,8 @@ public final class CanalEntry {
* *每个event的长度*
*
*/
- boolean hasEventLength();
-
+ boolean hasEventLength();
+
/**
* optional int64 eventLength = 10;
*
@@ -1519,7 +1530,7 @@ public final class CanalEntry {
* *每个event的长度*
*
*/
- long getEventLength();
+ long getEventLength();
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 11 [default = UPDATE];
@@ -1528,8 +1539,8 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- boolean hasEventType();
-
+ boolean hasEventType();
+
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 11 [default = UPDATE];
*
@@ -1537,7 +1548,7 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType();
+ com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType();
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
@@ -1546,9 +1557,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- java.util.Listrepeated .com.alibaba.otter.canal.protocol.Pair props = 12;
*
@@ -1556,8 +1566,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
-
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
*
@@ -1565,8 +1575,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- int getPropsCount();
-
+ int getPropsCount();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
*
@@ -1574,9 +1584,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
- getPropsOrBuilderList();
-
+ java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
*
@@ -1584,8 +1593,7 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
- int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index);
/**
* optional string gtid = 13;
@@ -1594,8 +1602,8 @@ public final class CanalEntry {
* *当前事务的gitd*
*
*/
- boolean hasGtid();
-
+ boolean hasGtid();
+
/**
* optional string gtid = 13;
*
@@ -1603,8 +1611,8 @@ public final class CanalEntry {
* *当前事务的gitd*
*
*/
- java.lang.String getGtid();
-
+ java.lang.String getGtid();
+
/**
* optional string gtid = 13;
*
@@ -1612,1195 +1620,1168 @@ public final class CanalEntry {
* *当前事务的gitd*
*
*/
- com.google.protobuf.ByteString
- getGtidBytes();
- }
- /**
- * Protobuf type {@code com.alibaba.otter.canal.protocol.Header}
- *
- * - **message Header* - *- */ - public static final class Header extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.Header) - HeaderOrBuilder { - // Use Header.newBuilder() to construct. - private Header(com.google.protobuf.GeneratedMessage.Builder> builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private Header(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final Header defaultInstance; - public static Header getDefaultInstance() { - return defaultInstance; + com.google.protobuf.ByteString getGtidBytes(); } - public Header getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Header( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - version_ = input.readInt32(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - logfileName_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - logfileOffset_ = input.readInt64(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - serverId_ = input.readInt64(); - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - serverenCode_ = bs; - break; - } - case 48: { - bitField0_ |= 0x00000020; - executeTime_ = input.readInt64(); - break; - } - case 56: { - int rawValue = input.readEnum(); - com.alibaba.otter.canal.protocol.CanalEntry.Type value = com.alibaba.otter.canal.protocol.CanalEntry.Type.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(7, rawValue); - } else { - bitField0_ |= 0x00000040; - sourceType_ = value; - } - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - schemaName_ = bs; - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - tableName_ = bs; - break; - } - case 80: { - bitField0_ |= 0x00000200; - eventLength_ = input.readInt64(); - break; - } - case 88: { - int rawValue = input.readEnum(); - com.alibaba.otter.canal.protocol.CanalEntry.EventType value = com.alibaba.otter.canal.protocol.CanalEntry.EventType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(11, rawValue); - } else { - bitField0_ |= 0x00000400; - eventType_ = value; - } - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { - props_ = new java.util.ArrayList
optional int32 version = 1 [default = 1];
- *
- * - * *协议的版本号* - *- */ - public boolean hasVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - - /** - *
optional int32 version = 1 [default = 1];
- *
- * - * *协议的版本号* - *- */ - public int getVersion() { - return version_; - } - - public static final int LOGFILENAME_FIELD_NUMBER = 2; - private java.lang.Object logfileName_; - - /** - *
optional string logfileName = 2;
- *
- * - * *binlog/redolog 文件名* - *- */ - public boolean hasLogfileName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - - /** - *
optional string logfileName = 2;
- *
- * - * *binlog/redolog 文件名* - *- */ - public java.lang.String getLogfileName() { - java.lang.Object ref = logfileName_; - 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()) { - logfileName_ = s; - } - return s; - } - } - - /** - *
optional string logfileName = 2;
- *
- * - * *binlog/redolog 文件名* - *- */ - public com.google.protobuf.ByteString - getLogfileNameBytes() { - java.lang.Object ref = logfileName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - logfileName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOGFILEOFFSET_FIELD_NUMBER = 3; - private long logfileOffset_; - - /** - *
optional int64 logfileOffset = 3;
- *
- * - * *binlog/redolog 文件的偏移位置* - *- */ - public boolean hasLogfileOffset() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - - /** - *
optional int64 logfileOffset = 3;
- *
- * - * *binlog/redolog 文件的偏移位置* - *- */ - public long getLogfileOffset() { - return logfileOffset_; - } - - public static final int SERVERID_FIELD_NUMBER = 4; - private long serverId_; - - /** - *
optional int64 serverId = 4;
- *
- * - * *服务端serverId* - *- */ - public boolean hasServerId() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - - /** - *
optional int64 serverId = 4;
- *
- * - * *服务端serverId* - *- */ - public long getServerId() { - return serverId_; - } - - public static final int SERVERENCODE_FIELD_NUMBER = 5; - private java.lang.Object serverenCode_; - - /** - *
optional string serverenCode = 5;
- *
- * - * * 变更数据的编码 * - *- */ - public boolean hasServerenCode() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - - /** - *
optional string serverenCode = 5;
- *
- * - * * 变更数据的编码 * - *- */ - public java.lang.String getServerenCode() { - java.lang.Object ref = serverenCode_; - 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()) { - serverenCode_ = s; - } - return s; - } - } - - /** - *
optional string serverenCode = 5;
- *
- * - * * 变更数据的编码 * - *- */ - public com.google.protobuf.ByteString - getServerenCodeBytes() { - java.lang.Object ref = serverenCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serverenCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXECUTETIME_FIELD_NUMBER = 6; - private long executeTime_; - - /** - *
optional int64 executeTime = 6;
- *
- * - * *变更数据的执行时间 * - *- */ - public boolean hasExecuteTime() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - - /** - *
optional int64 executeTime = 6;
- *
- * - * *变更数据的执行时间 * - *- */ - public long getExecuteTime() { - return executeTime_; - } - - public static final int SOURCETYPE_FIELD_NUMBER = 7; - private com.alibaba.otter.canal.protocol.CanalEntry.Type sourceType_; - - /** - *
optional .com.alibaba.otter.canal.protocol.Type sourceType = 7 [default = MYSQL];
- *
- * - * * 变更数据的来源* - *- */ - public boolean hasSourceType() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - - /** - *
optional .com.alibaba.otter.canal.protocol.Type sourceType = 7 [default = MYSQL];
- *
- * - * * 变更数据的来源* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Type getSourceType() { - return sourceType_; - } - - public static final int SCHEMANAME_FIELD_NUMBER = 8; - private java.lang.Object schemaName_; - - /** - *
optional string schemaName = 8;
- *
- * - * * 变更数据的schemaname* - *- */ - public boolean hasSchemaName() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - - /** - *
optional string schemaName = 8;
- *
- * - * * 变更数据的schemaname* - *- */ - 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 schemaName = 8;
- *
- * - * * 变更数据的schemaname* - *- */ - 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 TABLENAME_FIELD_NUMBER = 9; - private java.lang.Object tableName_; - - /** - *
optional string tableName = 9;
- *
- * - * *变更数据的tablename* - *- */ - public boolean hasTableName() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - - /** - *
optional string tableName = 9;
- *
- * - * *变更数据的tablename* - *- */ - 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 tableName = 9;
- *
- * - * *变更数据的tablename* - *- */ - 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 EVENTLENGTH_FIELD_NUMBER = 10; - private long eventLength_; - - /** - *
optional int64 eventLength = 10;
- *
- * - * *每个event的长度* - *- */ - public boolean hasEventLength() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - - /** - *
optional int64 eventLength = 10;
- *
- * - * *每个event的长度* - *- */ - public long getEventLength() { - return eventLength_; - } - - public static final int EVENTTYPE_FIELD_NUMBER = 11; - private com.alibaba.otter.canal.protocol.CanalEntry.EventType eventType_; - - /** - *
optional .com.alibaba.otter.canal.protocol.EventType eventType = 11 [default = UPDATE];
- *
- * - * *数据变更类型* - *- */ - public boolean hasEventType() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - - /** - *
optional .com.alibaba.otter.canal.protocol.EventType eventType = 11 [default = UPDATE];
- *
- * - * *数据变更类型* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() { - return eventType_; - } - - public static final int PROPS_FIELD_NUMBER = 12; - private java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> - getPropsOrBuilderList() { - return props_; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public int getPropsCount() { - return props_.size(); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { - return props_.get(index); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder( - int index) { - return props_.get(index); - } - - public static final int GTID_FIELD_NUMBER = 13; - private java.lang.Object gtid_; - - /** - *
optional string gtid = 13;
- *
- * - * *当前事务的gitd* - *- */ - public boolean hasGtid() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - - /** - *
optional string gtid = 13;
- *
- * - * *当前事务的gitd* - *- */ - public java.lang.String getGtid() { - java.lang.Object ref = gtid_; - 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()) { - gtid_ = s; - } - return s; - } - } - - /** - *
optional string gtid = 13;
- *
- * - * *当前事务的gitd* - *- */ - public com.google.protobuf.ByteString - getGtidBytes() { - java.lang.Object ref = gtid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gtid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { - version_ = 1; - logfileName_ = ""; - logfileOffset_ = 0L; - serverId_ = 0L; - serverenCode_ = ""; - executeTime_ = 0L; - sourceType_ = com.alibaba.otter.canal.protocol.CanalEntry.Type.MYSQL; - schemaName_ = ""; - tableName_ = ""; - eventLength_ = 0L; - eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE; - props_ = java.util.Collections.emptyList(); - gtid_ = ""; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, version_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getLogfileNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt64(3, logfileOffset_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt64(4, serverId_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getServerenCodeBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeInt64(6, executeTime_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeEnum(7, sourceType_.getNumber()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getSchemaNameBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getTableNameBytes()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeInt64(10, eventLength_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeEnum(11, eventType_.getNumber()); - } - for (int i = 0; i < props_.size(); i++) { - output.writeMessage(12, props_.get(i)); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(13, getGtidBytes()); - } - getUnknownFields().writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, version_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getLogfileNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, logfileOffset_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, serverId_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getServerenCodeBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, executeTime_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, sourceType_.getNumber()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getSchemaNameBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getTableNameBytes()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, eventLength_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, eventType_.getNumber()); - } - for (int i = 0; i < props_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, props_.get(i)); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, getGtidBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - - public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Header prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } /** * Protobuf type {@code com.alibaba.otter.canal.protocol.Header} * *
- **message Header*
+ * *message Header*
*
*/
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderoptional int32 version = 1 [default = 1];
+ *
+ * + * *协议的版本号* + *+ */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + + /** + *
optional int32 version = 1 [default = 1];
+ *
+ * + * *协议的版本号* + *+ */ + public int getVersion() { + return version_; + } + + public static final int LOGFILENAME_FIELD_NUMBER = 2; + private java.lang.Object logfileName_; + + /** + *
optional string logfileName = 2;
+ *
+ * + * *binlog/redolog 文件名* + *+ */ + public boolean hasLogfileName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + + /** + *
optional string logfileName = 2;
+ *
+ * + * *binlog/redolog 文件名* + *+ */ + public java.lang.String getLogfileName() { + java.lang.Object ref = logfileName_; + 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()) { + logfileName_ = s; + } + return s; + } + } + + /** + *
optional string logfileName = 2;
+ *
+ * + * *binlog/redolog 文件名* + *+ */ + public com.google.protobuf.ByteString getLogfileNameBytes() { + java.lang.Object ref = logfileName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logfileName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGFILEOFFSET_FIELD_NUMBER = 3; + private long logfileOffset_; + + /** + *
optional int64 logfileOffset = 3;
+ *
+ * + * *binlog/redolog 文件的偏移位置* + *+ */ + public boolean hasLogfileOffset() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + + /** + *
optional int64 logfileOffset = 3;
+ *
+ * + * *binlog/redolog 文件的偏移位置* + *+ */ + public long getLogfileOffset() { + return logfileOffset_; + } + + public static final int SERVERID_FIELD_NUMBER = 4; + private long serverId_; + + /** + *
optional int64 serverId = 4;
+ *
+ * + * *服务端serverId* + *+ */ + public boolean hasServerId() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + + /** + *
optional int64 serverId = 4;
+ *
+ * + * *服务端serverId* + *+ */ + public long getServerId() { + return serverId_; + } + + public static final int SERVERENCODE_FIELD_NUMBER = 5; + private java.lang.Object serverenCode_; + + /** + *
optional string serverenCode = 5;
+ *
+ * + * * 变更数据的编码 * + *+ */ + public boolean hasServerenCode() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + + /** + *
optional string serverenCode = 5;
+ *
+ * + * * 变更数据的编码 * + *+ */ + public java.lang.String getServerenCode() { + java.lang.Object ref = serverenCode_; + 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()) { + serverenCode_ = s; + } + return s; + } + } + + /** + *
optional string serverenCode = 5;
+ *
+ * + * * 变更数据的编码 * + *+ */ + public com.google.protobuf.ByteString getServerenCodeBytes() { + java.lang.Object ref = serverenCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serverenCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTETIME_FIELD_NUMBER = 6; + private long executeTime_; + + /** + *
optional int64 executeTime = 6;
+ *
+ * + * *变更数据的执行时间 * + *+ */ + public boolean hasExecuteTime() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + + /** + *
optional int64 executeTime = 6;
+ *
+ * + * *变更数据的执行时间 * + *+ */ + public long getExecuteTime() { + return executeTime_; + } + + public static final int SOURCETYPE_FIELD_NUMBER = 7; + private com.alibaba.otter.canal.protocol.CanalEntry.Type sourceType_; + + /** + *
optional .com.alibaba.otter.canal.protocol.Type sourceType = 7 [default = MYSQL];
+ *
+ * + * * 变更数据的来源* + *+ */ + public boolean hasSourceType() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + + /** + *
optional .com.alibaba.otter.canal.protocol.Type sourceType = 7 [default = MYSQL];
+ *
+ * + * * 变更数据的来源* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Type getSourceType() { + return sourceType_; + } + + public static final int SCHEMANAME_FIELD_NUMBER = 8; + private java.lang.Object schemaName_; + + /** + *
optional string schemaName = 8;
+ *
+ * + * * 变更数据的schemaname* + *+ */ + public boolean hasSchemaName() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + + /** + *
optional string schemaName = 8;
+ *
+ * + * * 变更数据的schemaname* + *+ */ + 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 schemaName = 8;
+ *
+ * + * * 变更数据的schemaname* + *+ */ + 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 TABLENAME_FIELD_NUMBER = 9; + private java.lang.Object tableName_; + + /** + *
optional string tableName = 9;
+ *
+ * + * *变更数据的tablename* + *+ */ + public boolean hasTableName() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + + /** + *
optional string tableName = 9;
+ *
+ * + * *变更数据的tablename* + *+ */ + 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 tableName = 9;
+ *
+ * + * *变更数据的tablename* + *+ */ + 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 EVENTLENGTH_FIELD_NUMBER = 10; + private long eventLength_; + + /** + *
optional int64 eventLength = 10;
+ *
+ * + * *每个event的长度* + *+ */ + public boolean hasEventLength() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + + /** + *
optional int64 eventLength = 10;
+ *
+ * + * *每个event的长度* + *+ */ + public long getEventLength() { + return eventLength_; + } + + public static final int EVENTTYPE_FIELD_NUMBER = 11; + private com.alibaba.otter.canal.protocol.CanalEntry.EventType eventType_; + + /** + *
optional .com.alibaba.otter.canal.protocol.EventType eventType = 11 [default = UPDATE];
+ *
+ * + * *数据变更类型* + *+ */ + public boolean hasEventType() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + + /** + *
optional .com.alibaba.otter.canal.protocol.EventType eventType = 11 [default = UPDATE];
+ *
+ * + * *数据变更类型* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() { + return eventType_; + } + + public static final int PROPS_FIELD_NUMBER = 12; + private java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() { + return props_; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public int getPropsCount() { + return props_.size(); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { + return props_.get(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) { + return props_.get(index); + } + + public static final int GTID_FIELD_NUMBER = 13; + private java.lang.Object gtid_; + + /** + *
optional string gtid = 13;
+ *
+ * + * *当前事务的gitd* + *+ */ + public boolean hasGtid() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + + /** + *
optional string gtid = 13;
+ *
+ * + * *当前事务的gitd* + *+ */ + public java.lang.String getGtid() { + java.lang.Object ref = gtid_; + 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()) { + gtid_ = s; + } + return s; + } + } + + /** + *
optional string gtid = 13;
+ *
+ * + * *当前事务的gitd* + *+ */ + public com.google.protobuf.ByteString getGtidBytes() { + java.lang.Object ref = gtid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gtid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + version_ = 1; + logfileName_ = ""; + logfileOffset_ = 0L; + serverId_ = 0L; + serverenCode_ = ""; + executeTime_ = 0L; + sourceType_ = com.alibaba.otter.canal.protocol.CanalEntry.Type.MYSQL; + schemaName_ = ""; + tableName_ = ""; + eventLength_ = 0L; + eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE; + props_ = java.util.Collections.emptyList(); + gtid_ = ""; + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, version_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getLogfileNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt64(3, logfileOffset_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt64(4, serverId_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(5, getServerenCodeBytes()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt64(6, executeTime_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeEnum(7, sourceType_.getNumber()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeBytes(8, getSchemaNameBytes()); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeBytes(9, getTableNameBytes()); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + output.writeInt64(10, eventLength_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeEnum(11, eventType_.getNumber()); + } + for (int i = 0; i < props_.size(); i++) { + output.writeMessage(12, props_.get(i)); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + output.writeBytes(13, getGtidBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, version_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, getLogfileNameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, logfileOffset_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, serverId_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, getServerenCodeBytes()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, executeTime_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, sourceType_.getNumber()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, getSchemaNameBytes()); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(9, getTableNameBytes()); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, eventLength_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, eventType_.getNumber()); + } + for (int i = 0; i < props_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, props_.get(i)); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(13, getGtidBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Header parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Header prototype) { + return newBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return newBuilder(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * Protobuf type {@code com.alibaba.otter.canal.protocol.Header} + * + *
+ * *message Header* + *+ */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
optional int32 version = 1 [default = 1];
*
@@ -2808,10 +2789,10 @@ public final class CanalEntry {
* *协议的版本号*
*
*/
- public boolean hasVersion() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
+ public boolean hasVersion() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+
/**
* optional int32 version = 1 [default = 1];
*
@@ -2819,10 +2800,10 @@ public final class CanalEntry {
* *协议的版本号*
*
*/
- public int getVersion() {
- return version_;
- }
-
+ public int getVersion() {
+ return version_;
+ }
+
/**
* optional int32 version = 1 [default = 1];
*
@@ -2830,13 +2811,13 @@ public final class CanalEntry {
* *协议的版本号*
*
*/
- public Builder setVersion(int value) {
- bitField0_ |= 0x00000001;
- version_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setVersion(int value) {
+ bitField0_ |= 0x00000001;
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional int32 version = 1 [default = 1];
*
@@ -2844,15 +2825,15 @@ public final class CanalEntry {
* *协议的版本号*
*
*/
- public Builder clearVersion() {
- bitField0_ = (bitField0_ & ~0x00000001);
- version_ = 1;
- onChanged();
- return this;
- }
+ public Builder clearVersion() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ version_ = 1;
+ onChanged();
+ return this;
+ }
- private java.lang.Object logfileName_ = "";
-
+ private java.lang.Object logfileName_ = "";
+
/**
* optional string logfileName = 2;
*
@@ -2860,10 +2841,10 @@ public final class CanalEntry {
* *binlog/redolog 文件名*
*
*/
- public boolean hasLogfileName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
+ public boolean hasLogfileName() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+
/**
* optional string logfileName = 2;
*
@@ -2871,21 +2852,20 @@ public final class CanalEntry {
* *binlog/redolog 文件名*
*
*/
- public java.lang.String getLogfileName() {
- java.lang.Object ref = logfileName_;
- 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()) {
- logfileName_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
+ public java.lang.String getLogfileName() {
+ java.lang.Object ref = logfileName_;
+ 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()) {
+ logfileName_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
/**
* optional string logfileName = 2;
*
@@ -2893,20 +2873,17 @@ public final class CanalEntry {
* *binlog/redolog 文件名*
*
*/
- public com.google.protobuf.ByteString
- getLogfileNameBytes() {
- java.lang.Object ref = logfileName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- logfileName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
+ public com.google.protobuf.ByteString getLogfileNameBytes() {
+ java.lang.Object ref = logfileName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ logfileName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
/**
* optional string logfileName = 2;
*
@@ -2914,17 +2891,16 @@ public final class CanalEntry {
* *binlog/redolog 文件名*
*
*/
- public Builder setLogfileName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- logfileName_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setLogfileName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ logfileName_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional string logfileName = 2;
*
@@ -2932,13 +2908,13 @@ public final class CanalEntry {
* *binlog/redolog 文件名*
*
*/
- public Builder clearLogfileName() {
- bitField0_ = (bitField0_ & ~0x00000002);
- logfileName_ = getDefaultInstance().getLogfileName();
- onChanged();
- return this;
- }
-
+ public Builder clearLogfileName() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ logfileName_ = getDefaultInstance().getLogfileName();
+ onChanged();
+ return this;
+ }
+
/**
* optional string logfileName = 2;
*
@@ -2946,19 +2922,18 @@ public final class CanalEntry {
* *binlog/redolog 文件名*
*
*/
- public Builder setLogfileNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- logfileName_ = value;
- onChanged();
- return this;
- }
+ public Builder setLogfileNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ logfileName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long logfileOffset_;
- private long logfileOffset_ ;
-
/**
* optional int64 logfileOffset = 3;
*
@@ -2966,10 +2941,10 @@ public final class CanalEntry {
* *binlog/redolog 文件的偏移位置*
*
*/
- public boolean hasLogfileOffset() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
-
+ public boolean hasLogfileOffset() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+
/**
* optional int64 logfileOffset = 3;
*
@@ -2977,10 +2952,10 @@ public final class CanalEntry {
* *binlog/redolog 文件的偏移位置*
*
*/
- public long getLogfileOffset() {
- return logfileOffset_;
- }
-
+ public long getLogfileOffset() {
+ return logfileOffset_;
+ }
+
/**
* optional int64 logfileOffset = 3;
*
@@ -2988,13 +2963,13 @@ public final class CanalEntry {
* *binlog/redolog 文件的偏移位置*
*
*/
- public Builder setLogfileOffset(long value) {
- bitField0_ |= 0x00000004;
- logfileOffset_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setLogfileOffset(long value) {
+ bitField0_ |= 0x00000004;
+ logfileOffset_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional int64 logfileOffset = 3;
*
@@ -3002,15 +2977,15 @@ public final class CanalEntry {
* *binlog/redolog 文件的偏移位置*
*
*/
- public Builder clearLogfileOffset() {
- bitField0_ = (bitField0_ & ~0x00000004);
- logfileOffset_ = 0L;
- onChanged();
- return this;
- }
+ public Builder clearLogfileOffset() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ logfileOffset_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long serverId_;
- private long serverId_ ;
-
/**
* optional int64 serverId = 4;
*
@@ -3018,10 +2993,10 @@ public final class CanalEntry {
* *服务端serverId*
*
*/
- public boolean hasServerId() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
-
+ public boolean hasServerId() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+
/**
* optional int64 serverId = 4;
*
@@ -3029,10 +3004,10 @@ public final class CanalEntry {
* *服务端serverId*
*
*/
- public long getServerId() {
- return serverId_;
- }
-
+ public long getServerId() {
+ return serverId_;
+ }
+
/**
* optional int64 serverId = 4;
*
@@ -3040,13 +3015,13 @@ public final class CanalEntry {
* *服务端serverId*
*
*/
- public Builder setServerId(long value) {
- bitField0_ |= 0x00000008;
- serverId_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setServerId(long value) {
+ bitField0_ |= 0x00000008;
+ serverId_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional int64 serverId = 4;
*
@@ -3054,15 +3029,15 @@ public final class CanalEntry {
* *服务端serverId*
*
*/
- public Builder clearServerId() {
- bitField0_ = (bitField0_ & ~0x00000008);
- serverId_ = 0L;
- onChanged();
- return this;
- }
+ public Builder clearServerId() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ serverId_ = 0L;
+ onChanged();
+ return this;
+ }
- private java.lang.Object serverenCode_ = "";
-
+ private java.lang.Object serverenCode_ = "";
+
/**
* optional string serverenCode = 5;
*
@@ -3070,10 +3045,10 @@ public final class CanalEntry {
* * 变更数据的编码 *
*
*/
- public boolean hasServerenCode() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
-
+ public boolean hasServerenCode() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+
/**
* optional string serverenCode = 5;
*
@@ -3081,21 +3056,20 @@ public final class CanalEntry {
* * 变更数据的编码 *
*
*/
- public java.lang.String getServerenCode() {
- java.lang.Object ref = serverenCode_;
- 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()) {
- serverenCode_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
+ public java.lang.String getServerenCode() {
+ java.lang.Object ref = serverenCode_;
+ 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()) {
+ serverenCode_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
/**
* optional string serverenCode = 5;
*
@@ -3103,20 +3077,17 @@ public final class CanalEntry {
* * 变更数据的编码 *
*
*/
- public com.google.protobuf.ByteString
- getServerenCodeBytes() {
- java.lang.Object ref = serverenCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- serverenCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
+ public com.google.protobuf.ByteString getServerenCodeBytes() {
+ java.lang.Object ref = serverenCode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ serverenCode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
/**
* optional string serverenCode = 5;
*
@@ -3124,17 +3095,16 @@ public final class CanalEntry {
* * 变更数据的编码 *
*
*/
- public Builder setServerenCode(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- serverenCode_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setServerenCode(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ serverenCode_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional string serverenCode = 5;
*
@@ -3142,13 +3112,13 @@ public final class CanalEntry {
* * 变更数据的编码 *
*
*/
- public Builder clearServerenCode() {
- bitField0_ = (bitField0_ & ~0x00000010);
- serverenCode_ = getDefaultInstance().getServerenCode();
- onChanged();
- return this;
- }
-
+ public Builder clearServerenCode() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ serverenCode_ = getDefaultInstance().getServerenCode();
+ onChanged();
+ return this;
+ }
+
/**
* optional string serverenCode = 5;
*
@@ -3156,19 +3126,18 @@ public final class CanalEntry {
* * 变更数据的编码 *
*
*/
- public Builder setServerenCodeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- serverenCode_ = value;
- onChanged();
- return this;
- }
+ public Builder setServerenCodeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ serverenCode_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long executeTime_;
- private long executeTime_ ;
-
/**
* optional int64 executeTime = 6;
*
@@ -3176,10 +3145,10 @@ public final class CanalEntry {
* *变更数据的执行时间 *
*
*/
- public boolean hasExecuteTime() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
-
+ public boolean hasExecuteTime() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+
/**
* optional int64 executeTime = 6;
*
@@ -3187,10 +3156,10 @@ public final class CanalEntry {
* *变更数据的执行时间 *
*
*/
- public long getExecuteTime() {
- return executeTime_;
- }
-
+ public long getExecuteTime() {
+ return executeTime_;
+ }
+
/**
* optional int64 executeTime = 6;
*
@@ -3198,13 +3167,13 @@ public final class CanalEntry {
* *变更数据的执行时间 *
*
*/
- public Builder setExecuteTime(long value) {
- bitField0_ |= 0x00000020;
- executeTime_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setExecuteTime(long value) {
+ bitField0_ |= 0x00000020;
+ executeTime_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional int64 executeTime = 6;
*
@@ -3212,15 +3181,15 @@ public final class CanalEntry {
* *变更数据的执行时间 *
*
*/
- public Builder clearExecuteTime() {
- bitField0_ = (bitField0_ & ~0x00000020);
- executeTime_ = 0L;
- onChanged();
- return this;
- }
+ public Builder clearExecuteTime() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ executeTime_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.alibaba.otter.canal.protocol.CanalEntry.Type sourceType_ = com.alibaba.otter.canal.protocol.CanalEntry.Type.MYSQL;
- private com.alibaba.otter.canal.protocol.CanalEntry.Type sourceType_ = com.alibaba.otter.canal.protocol.CanalEntry.Type.MYSQL;
-
/**
* optional .com.alibaba.otter.canal.protocol.Type sourceType = 7 [default = MYSQL];
*
@@ -3228,10 +3197,10 @@ public final class CanalEntry {
* * 变更数据的来源*
*
*/
- public boolean hasSourceType() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
- }
-
+ public boolean hasSourceType() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Type sourceType = 7 [default = MYSQL];
*
@@ -3239,10 +3208,10 @@ public final class CanalEntry {
* * 变更数据的来源*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.Type getSourceType() {
- return sourceType_;
- }
-
+ public com.alibaba.otter.canal.protocol.CanalEntry.Type getSourceType() {
+ return sourceType_;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Type sourceType = 7 [default = MYSQL];
*
@@ -3250,16 +3219,16 @@ public final class CanalEntry {
* * 变更数据的来源*
*
*/
- public Builder setSourceType(com.alibaba.otter.canal.protocol.CanalEntry.Type value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
- sourceType_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setSourceType(com.alibaba.otter.canal.protocol.CanalEntry.Type value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ sourceType_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.Type sourceType = 7 [default = MYSQL];
*
@@ -3267,154 +3236,147 @@ public final class CanalEntry {
* * 变更数据的来源*
*
*/
- public Builder clearSourceType() {
- bitField0_ = (bitField0_ & ~0x00000040);
- sourceType_ = com.alibaba.otter.canal.protocol.CanalEntry.Type.MYSQL;
- onChanged();
- return this;
- }
+ public Builder clearSourceType() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ sourceType_ = com.alibaba.otter.canal.protocol.CanalEntry.Type.MYSQL;
+ onChanged();
+ return this;
+ }
- private java.lang.Object schemaName_ = "";
-
- /**
- * optional string schemaName = 8;
- *
- * - * * 变更数据的schemaname* - *- */ - public boolean hasSchemaName() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - - /** - *
optional string schemaName = 8;
- *
- * - * * 变更数据的schemaname* - *- */ - 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 schemaName = 8;
- *
- * - * * 变更数据的schemaname* - *- */ - 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 schemaName = 8;
- *
- * - * * 变更数据的schemaname* - *- */ - public Builder setSchemaName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - schemaName_ = value; - onChanged(); - return this; - } - - /** - *
optional string schemaName = 8;
- *
- * - * * 变更数据的schemaname* - *- */ - public Builder clearSchemaName() { - bitField0_ = (bitField0_ & ~0x00000080); - schemaName_ = getDefaultInstance().getSchemaName(); - onChanged(); - return this; - } - - /** - *
optional string schemaName = 8;
- *
- * - * * 变更数据的schemaname* - *- */ - public Builder setSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - schemaName_ = value; - onChanged(); - return this; - } + private java.lang.Object schemaName_ = ""; - private java.lang.Object tableName_ = ""; - /** - *
optional string tableName = 9;
+ * optional string schemaName = 8;
*
*
- * *变更数据的tablename*
+ * * 变更数据的schemaname*
*
*/
- public boolean hasTableName() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
- }
-
+ public boolean hasSchemaName() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+
/**
+ * optional string schemaName = 8;
+ *
+ * + * * 变更数据的schemaname* + *+ */ + 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 schemaName = 8;
+ *
+ * + * * 变更数据的schemaname* + *+ */ + 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 schemaName = 8;
+ *
+ * + * * 变更数据的schemaname* + *+ */ + public Builder setSchemaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + schemaName_ = value; + onChanged(); + return this; + } + + /** + *
optional string schemaName = 8;
+ *
+ * + * * 变更数据的schemaname* + *+ */ + public Builder clearSchemaName() { + bitField0_ = (bitField0_ & ~0x00000080); + schemaName_ = getDefaultInstance().getSchemaName(); + onChanged(); + return this; + } + + /** + *
optional string schemaName = 8;
+ *
+ * + * * 变更数据的schemaname* + *+ */ + public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + schemaName_ = value; + onChanged(); + return this; + } + + private java.lang.Object tableName_ = ""; + + /** + *
optional string tableName = 9;
+ *
+ * + * *变更数据的tablename* + *+ */ + public boolean hasTableName() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + + /** *
optional string tableName = 9;
*
*
* *变更数据的tablename*
*
*/
- 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;
- }
- }
-
+ 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 tableName = 9;
*
@@ -3422,20 +3384,17 @@ public final class CanalEntry {
* *变更数据的tablename*
*
*/
- 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;
- }
- }
-
+ 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 tableName = 9;
*
@@ -3443,17 +3402,16 @@ public final class CanalEntry {
* *变更数据的tablename*
*
*/
- public Builder setTableName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000100;
- tableName_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setTableName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000100;
+ tableName_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional string tableName = 9;
*
@@ -3461,13 +3419,13 @@ public final class CanalEntry {
* *变更数据的tablename*
*
*/
- public Builder clearTableName() {
- bitField0_ = (bitField0_ & ~0x00000100);
- tableName_ = getDefaultInstance().getTableName();
- onChanged();
- return this;
- }
-
+ public Builder clearTableName() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ tableName_ = getDefaultInstance().getTableName();
+ onChanged();
+ return this;
+ }
+
/**
* optional string tableName = 9;
*
@@ -3475,19 +3433,18 @@ public final class CanalEntry {
* *变更数据的tablename*
*
*/
- public Builder setTableNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000100;
- tableName_ = value;
- onChanged();
- return this;
- }
+ public Builder setTableNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000100;
+ tableName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private long eventLength_;
- private long eventLength_ ;
-
/**
* optional int64 eventLength = 10;
*
@@ -3495,10 +3452,10 @@ public final class CanalEntry {
* *每个event的长度*
*
*/
- public boolean hasEventLength() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
- }
-
+ public boolean hasEventLength() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
+ }
+
/**
* optional int64 eventLength = 10;
*
@@ -3506,10 +3463,10 @@ public final class CanalEntry {
* *每个event的长度*
*
*/
- public long getEventLength() {
- return eventLength_;
- }
-
+ public long getEventLength() {
+ return eventLength_;
+ }
+
/**
* optional int64 eventLength = 10;
*
@@ -3517,13 +3474,13 @@ public final class CanalEntry {
* *每个event的长度*
*
*/
- public Builder setEventLength(long value) {
- bitField0_ |= 0x00000200;
- eventLength_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setEventLength(long value) {
+ bitField0_ |= 0x00000200;
+ eventLength_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional int64 eventLength = 10;
*
@@ -3531,15 +3488,15 @@ public final class CanalEntry {
* *每个event的长度*
*
*/
- public Builder clearEventLength() {
- bitField0_ = (bitField0_ & ~0x00000200);
- eventLength_ = 0L;
- onChanged();
- return this;
- }
+ public Builder clearEventLength() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ eventLength_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.alibaba.otter.canal.protocol.CanalEntry.EventType eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
- private com.alibaba.otter.canal.protocol.CanalEntry.EventType eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
-
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 11 [default = UPDATE];
*
@@ -3547,10 +3504,10 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- public boolean hasEventType() {
- return ((bitField0_ & 0x00000400) == 0x00000400);
- }
-
+ public boolean hasEventType() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 11 [default = UPDATE];
*
@@ -3558,10 +3515,10 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() {
- return eventType_;
- }
-
+ public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() {
+ return eventType_;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 11 [default = UPDATE];
*
@@ -3569,16 +3526,16 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- public Builder setEventType(com.alibaba.otter.canal.protocol.CanalEntry.EventType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000400;
- eventType_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setEventType(com.alibaba.otter.canal.protocol.CanalEntry.EventType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000400;
+ eventType_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 11 [default = UPDATE];
*
@@ -3586,24 +3543,23 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- public Builder clearEventType() {
- bitField0_ = (bitField0_ & ~0x00000400);
- eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
- onChanged();
- return this;
- }
+ public Builder clearEventType() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
+ onChanged();
+ return this;
+ }
- private java.util.Listrepeated .com.alibaba.otter.canal.protocol.Pair props = 12;
@@ -3612,436 +3568,415 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- public java.util.Listrepeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public int getPropsCount() { - if (propsBuilder_ == null) { - return props_.size(); - } else { - return propsBuilder_.getCount(); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { - if (propsBuilder_ == null) { - return props_.get(index); - } else { - return propsBuilder_.getMessage(index); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public Builder setProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { - if (propsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropsIsMutable(); - props_.set(index, value); - onChanged(); - } else { - propsBuilder_.setMessage(index, value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public Builder setProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.set(index, builderForValue.build()); - onChanged(); - } else { - propsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { - if (propsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropsIsMutable(); - props_.add(value); - onChanged(); - } else { - propsBuilder_.addMessage(value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public Builder addProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { - if (propsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropsIsMutable(); - props_.add(index, value); - onChanged(); - } else { - propsBuilder_.addMessage(index, value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public Builder addProps( - com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.add(builderForValue.build()); - onChanged(); - } else { - propsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public Builder addProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.add(index, builderForValue.build()); - onChanged(); - } else { - propsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public Builder addAllProps( - java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, props_); - onChanged(); - } else { - propsBuilder_.addAllMessages(values); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public Builder clearProps() { - if (propsBuilder_ == null) { - props_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - propsBuilder_.clear(); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public Builder removeProps(int index) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.remove(index); - onChanged(); - } else { - propsBuilder_.remove(index); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder getPropsBuilder( - int index) { - return getPropsFieldBuilder().getBuilder(index); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder( - int index) { - if (propsBuilder_ == null) { - return props_.get(index); } else { - return propsBuilder_.getMessageOrBuilder(index); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> - getPropsOrBuilderList() { - if (propsBuilder_ != null) { - return propsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(props_); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() { - return getPropsFieldBuilder().addBuilder( - com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder( - int index) { - return getPropsFieldBuilder().addBuilder( - index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
- *
- * - * *预留扩展* - *- */ - public java.util.List
optional string gtid = 13;
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
*
*
- * *当前事务的gitd*
+ * *预留扩展*
*
*/
- public boolean hasGtid() {
- return ((bitField0_ & 0x00001000) == 0x00001000);
- }
-
- /**
- * optional string gtid = 13;
- *
- * - * *当前事务的gitd* - *- */ - public java.lang.String getGtid() { - java.lang.Object ref = gtid_; - 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()) { - gtid_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - *
optional string gtid = 13;
- *
- * - * *当前事务的gitd* - *- */ - public com.google.protobuf.ByteString - getGtidBytes() { - java.lang.Object ref = gtid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gtid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - *
optional string gtid = 13;
- *
- * - * *当前事务的gitd* - *- */ - public Builder setGtid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - gtid_ = value; - onChanged(); - return this; - } - - /** - *
optional string gtid = 13;
- *
- * - * *当前事务的gitd* - *- */ - public Builder clearGtid() { - bitField0_ = (bitField0_ & ~0x00001000); - gtid_ = getDefaultInstance().getGtid(); - onChanged(); - return this; - } - - /** - *
optional string gtid = 13;
- *
- * - * *当前事务的gitd* - *- */ - public Builder setGtidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - gtid_ = value; - onChanged(); - return this; - } + public int getPropsCount() { + if (propsBuilder_ == null) { + return props_.size(); + } else { + return propsBuilder_.getCount(); + } + } - // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.Header) + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { + if (propsBuilder_ == null) { + return props_.get(index); + } else { + return propsBuilder_.getMessage(index); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { + if (propsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropsIsMutable(); + props_.set(index, value); + onChanged(); + } else { + propsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.set(index, builderForValue.build()); + onChanged(); + } else { + propsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { + if (propsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropsIsMutable(); + props_.add(value); + onChanged(); + } else { + propsBuilder_.addMessage(value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { + if (propsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropsIsMutable(); + props_.add(index, value); + onChanged(); + } else { + propsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.add(builderForValue.build()); + onChanged(); + } else { + propsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.add(index, builderForValue.build()); + onChanged(); + } else { + propsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addAllProps(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, props_); + onChanged(); + } else { + propsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public Builder clearProps() { + if (propsBuilder_ == null) { + props_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + } else { + propsBuilder_.clear(); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public Builder removeProps(int index) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.remove(index); + onChanged(); + } else { + propsBuilder_.remove(index); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder getPropsBuilder(int index) { + return getPropsFieldBuilder().getBuilder(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) { + if (propsBuilder_ == null) { + return props_.get(index); + } else { + return propsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() { + if (propsBuilder_ != null) { + return propsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(props_); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() { + return getPropsFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder(int index) { + return getPropsFieldBuilder().addBuilder(index, + com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 12;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List
optional string gtid = 13;
+ *
+ * + * *当前事务的gitd* + *+ */ + public boolean hasGtid() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + + /** + *
optional string gtid = 13;
+ *
+ * + * *当前事务的gitd* + *+ */ + public java.lang.String getGtid() { + java.lang.Object ref = gtid_; + 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()) { + gtid_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + *
optional string gtid = 13;
+ *
+ * + * *当前事务的gitd* + *+ */ + public com.google.protobuf.ByteString getGtidBytes() { + java.lang.Object ref = gtid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gtid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + *
optional string gtid = 13;
+ *
+ * + * *当前事务的gitd* + *+ */ + public Builder setGtid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + gtid_ = value; + onChanged(); + return this; + } + + /** + *
optional string gtid = 13;
+ *
+ * + * *当前事务的gitd* + *+ */ + public Builder clearGtid() { + bitField0_ = (bitField0_ & ~0x00001000); + gtid_ = getDefaultInstance().getGtid(); + onChanged(); + return this; + } + + /** + *
optional string gtid = 13;
+ *
+ * + * *当前事务的gitd* + *+ */ + public Builder setGtidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + gtid_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.Header) + } + + static { + defaultInstance = new Header(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.Header) } - static { - defaultInstance = new Header(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.Header) - } - - public interface ColumnOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Column) - com.google.protobuf.MessageOrBuilder { + public interface ColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Column) + com.google.protobuf.MessageOrBuilder { /** *
optional int32 index = 1;
@@ -4050,8 +3985,8 @@ public final class CanalEntry {
* *字段下标*
*
*/
- boolean hasIndex();
-
+ boolean hasIndex();
+
/**
* optional int32 index = 1;
*
@@ -4059,7 +3994,7 @@ public final class CanalEntry {
* *字段下标*
*
*/
- int getIndex();
+ int getIndex();
/**
* optional int32 sqlType = 2;
@@ -4068,8 +4003,8 @@ public final class CanalEntry {
* *字段java中类型*
*
*/
- boolean hasSqlType();
-
+ boolean hasSqlType();
+
/**
* optional int32 sqlType = 2;
*
@@ -4077,7 +4012,7 @@ public final class CanalEntry {
* *字段java中类型*
*
*/
- int getSqlType();
+ int getSqlType();
/**
* optional string name = 3;
@@ -4086,8 +4021,8 @@ public final class CanalEntry {
* *字段名称(忽略大小写),在mysql中是没有的*
*
*/
- boolean hasName();
-
+ boolean hasName();
+
/**
* optional string name = 3;
*
@@ -4095,8 +4030,8 @@ public final class CanalEntry {
* *字段名称(忽略大小写),在mysql中是没有的*
*
*/
- java.lang.String getName();
-
+ java.lang.String getName();
+
/**
* optional string name = 3;
*
@@ -4104,8 +4039,7 @@ public final class CanalEntry {
* *字段名称(忽略大小写),在mysql中是没有的*
*
*/
- com.google.protobuf.ByteString
- getNameBytes();
+ com.google.protobuf.ByteString getNameBytes();
/**
* optional bool isKey = 4;
@@ -4114,8 +4048,8 @@ public final class CanalEntry {
* *是否是主键*
*
*/
- boolean hasIsKey();
-
+ boolean hasIsKey();
+
/**
* optional bool isKey = 4;
*
@@ -4123,7 +4057,7 @@ public final class CanalEntry {
* *是否是主键*
*
*/
- boolean getIsKey();
+ boolean getIsKey();
/**
* optional bool updated = 5;
@@ -4132,8 +4066,8 @@ public final class CanalEntry {
* *如果EventType=UPDATE,用于标识这个字段值是否有修改*
*
*/
- boolean hasUpdated();
-
+ boolean hasUpdated();
+
/**
* optional bool updated = 5;
*
@@ -4141,7 +4075,7 @@ public final class CanalEntry {
* *如果EventType=UPDATE,用于标识这个字段值是否有修改*
*
*/
- boolean getUpdated();
+ boolean getUpdated();
/**
* optional bool isNull = 6 [default = false];
@@ -4150,8 +4084,8 @@ public final class CanalEntry {
* * 标识是否为空 *
*
*/
- boolean hasIsNull();
-
+ boolean hasIsNull();
+
/**
* optional bool isNull = 6 [default = false];
*
@@ -4159,7 +4093,7 @@ public final class CanalEntry {
* * 标识是否为空 *
*
*/
- boolean getIsNull();
+ boolean getIsNull();
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
@@ -4168,9 +4102,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- java.util.Listrepeated .com.alibaba.otter.canal.protocol.Pair props = 7;
*
@@ -4178,8 +4111,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
-
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
*
@@ -4187,8 +4120,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- int getPropsCount();
-
+ int getPropsCount();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
*
@@ -4196,9 +4129,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
- getPropsOrBuilderList();
-
+ java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
*
@@ -4206,8 +4138,7 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
- int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index);
/**
* optional string value = 8;
@@ -4216,8 +4147,8 @@ public final class CanalEntry {
* * 字段值,timestamp,Datetime是一个时间格式的文本 *
*
*/
- boolean hasValue();
-
+ boolean hasValue();
+
/**
* optional string value = 8;
*
@@ -4225,8 +4156,8 @@ public final class CanalEntry {
* * 字段值,timestamp,Datetime是一个时间格式的文本 *
*
*/
- java.lang.String getValue();
-
+ java.lang.String getValue();
+
/**
* optional string value = 8;
*
@@ -4234,8 +4165,7 @@ public final class CanalEntry {
* * 字段值,timestamp,Datetime是一个时间格式的文本 *
*
*/
- com.google.protobuf.ByteString
- getValueBytes();
+ com.google.protobuf.ByteString getValueBytes();
/**
* optional int32 length = 9;
@@ -4244,8 +4174,8 @@ public final class CanalEntry {
* * 对应数据对象原始长度 *
*
*/
- boolean hasLength();
-
+ boolean hasLength();
+
/**
* optional int32 length = 9;
*
@@ -4253,7 +4183,7 @@ public final class CanalEntry {
* * 对应数据对象原始长度 *
*
*/
- int getLength();
+ int getLength();
/**
* optional string mysqlType = 10;
@@ -4262,8 +4192,8 @@ public final class CanalEntry {
* *字段mysql类型*
*
*/
- boolean hasMysqlType();
-
+ boolean hasMysqlType();
+
/**
* optional string mysqlType = 10;
*
@@ -4271,8 +4201,8 @@ public final class CanalEntry {
* *字段mysql类型*
*
*/
- java.lang.String getMysqlType();
-
+ java.lang.String getMysqlType();
+
/**
* optional string mysqlType = 10;
*
@@ -4280,10 +4210,9 @@ public final class CanalEntry {
* *字段mysql类型*
*
*/
- com.google.protobuf.ByteString
- getMysqlTypeBytes();
- }
-
+ com.google.protobuf.ByteString getMysqlTypeBytes();
+ }
+
/**
* Protobuf type {@code com.alibaba.otter.canal.protocol.Column}
*
@@ -4291,157 +4220,156 @@ public final class CanalEntry {
* *每个字段的数据结构*
*
*/
- public static final class Column extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.Column)
- ColumnOrBuilder {
- // Use Column.newBuilder() to construct.
- private Column(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Column(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+ public static final class Column extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.Column)
+ ColumnOrBuilder {
- private static final Column defaultInstance;
- public static Column getDefaultInstance() {
- return defaultInstance;
- }
-
- public Column getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @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 {
- initFields();
- 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;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 8: {
- bitField0_ |= 0x00000001;
- index_ = input.readInt32();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- sqlType_ = input.readInt32();
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- name_ = bs;
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- isKey_ = input.readBool();
- break;
- }
- case 40: {
- bitField0_ |= 0x00000010;
- updated_ = input.readBool();
- break;
- }
- case 48: {
- bitField0_ |= 0x00000020;
- isNull_ = input.readBool();
- break;
- }
- case 58: {
- if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
- props_ = new java.util.ArrayListoptional int32 index = 1;
*
@@ -4449,10 +4377,10 @@ public final class CanalEntry {
* *字段下标*
*
*/
- public boolean hasIndex() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
+ public boolean hasIndex() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+
/**
* optional int32 index = 1;
*
@@ -4460,13 +4388,13 @@ public final class CanalEntry {
* *字段下标*
*
*/
- public int getIndex() {
- return index_;
- }
+ public int getIndex() {
+ return index_;
+ }
+
+ public static final int SQLTYPE_FIELD_NUMBER = 2;
+ private int sqlType_;
- public static final int SQLTYPE_FIELD_NUMBER = 2;
- private int sqlType_;
-
/**
* optional int32 sqlType = 2;
*
@@ -4474,10 +4402,10 @@ public final class CanalEntry {
* *字段java中类型*
*
*/
- public boolean hasSqlType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
+ public boolean hasSqlType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+
/**
* optional int32 sqlType = 2;
*
@@ -4485,46 +4413,13 @@ public final class CanalEntry {
* *字段java中类型*
*
*/
- public int getSqlType() {
- return sqlType_;
- }
-
- public static final int NAME_FIELD_NUMBER = 3;
- private java.lang.Object name_;
-
- /**
- * optional string name = 3;
- *
- * - * *字段名称(忽略大小写),在mysql中是没有的* - *- */ - public boolean hasName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - - /** - *
optional string name = 3;
- *
- * - * *字段名称(忽略大小写),在mysql中是没有的* - *- */ - 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; + public int getSqlType() { + return sqlType_; } - return s; - } - } - + + public static final int NAME_FIELD_NUMBER = 3; + private java.lang.Object name_; + /** *
optional string name = 3;
*
@@ -4532,23 +4427,52 @@ public final class CanalEntry {
* *字段名称(忽略大小写),在mysql中是没有的*
*
*/
- 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 boolean hasName() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+
+ /**
+ * optional string name = 3;
+ *
+ * + * *字段名称(忽略大小写),在mysql中是没有的* + *+ */ + 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 = 3;
+ *
+ * + * *字段名称(忽略大小写),在mysql中是没有的* + *+ */ + 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 ISKEY_FIELD_NUMBER = 4; + private boolean isKey_; - public static final int ISKEY_FIELD_NUMBER = 4; - private boolean isKey_; - /** *
optional bool isKey = 4;
*
@@ -4556,10 +4480,10 @@ public final class CanalEntry {
* *是否是主键*
*
*/
- public boolean hasIsKey() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
-
+ public boolean hasIsKey() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+
/**
* optional bool isKey = 4;
*
@@ -4567,13 +4491,13 @@ public final class CanalEntry {
* *是否是主键*
*
*/
- public boolean getIsKey() {
- return isKey_;
- }
+ public boolean getIsKey() {
+ return isKey_;
+ }
+
+ public static final int UPDATED_FIELD_NUMBER = 5;
+ private boolean updated_;
- public static final int UPDATED_FIELD_NUMBER = 5;
- private boolean updated_;
-
/**
* optional bool updated = 5;
*
@@ -4581,10 +4505,10 @@ public final class CanalEntry {
* *如果EventType=UPDATE,用于标识这个字段值是否有修改*
*
*/
- public boolean hasUpdated() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
-
+ public boolean hasUpdated() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+
/**
* optional bool updated = 5;
*
@@ -4592,13 +4516,13 @@ public final class CanalEntry {
* *如果EventType=UPDATE,用于标识这个字段值是否有修改*
*
*/
- public boolean getUpdated() {
- return updated_;
- }
+ public boolean getUpdated() {
+ return updated_;
+ }
+
+ public static final int ISNULL_FIELD_NUMBER = 6;
+ private boolean isNull_;
- public static final int ISNULL_FIELD_NUMBER = 6;
- private boolean isNull_;
-
/**
* optional bool isNull = 6 [default = false];
*
@@ -4606,10 +4530,10 @@ public final class CanalEntry {
* * 标识是否为空 *
*
*/
- public boolean hasIsNull() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
-
+ public boolean hasIsNull() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+
/**
* optional bool isNull = 6 [default = false];
*
@@ -4617,106 +4541,71 @@ public final class CanalEntry {
* * 标识是否为空 *
*
*/
- public boolean getIsNull() {
- return isNull_;
- }
-
- public static final int PROPS_FIELD_NUMBER = 7;
- private java.util.Listrepeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> - getPropsOrBuilderList() { - return props_; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public int getPropsCount() { - return props_.size(); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { - return props_.get(index); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder( - int index) { - return props_.get(index); - } - - public static final int VALUE_FIELD_NUMBER = 8; - private java.lang.Object value_; - - /** - *
optional string value = 8;
- *
- * - * * 字段值,timestamp,Datetime是一个时间格式的文本 * - *- */ - public boolean hasValue() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - - /** - *
optional string value = 8;
- *
- * - * * 字段值,timestamp,Datetime是一个时间格式的文本 * - *- */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - value_ = s; + public boolean getIsNull() { + return isNull_; } - return s; - } - } - + + public static final int PROPS_FIELD_NUMBER = 7; + private java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() { + return props_; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public int getPropsCount() { + return props_.size(); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { + return props_.get(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) { + return props_.get(index); + } + + public static final int VALUE_FIELD_NUMBER = 8; + private java.lang.Object value_; + /** *
optional string value = 8;
*
@@ -4724,23 +4613,52 @@ public final class CanalEntry {
* * 字段值,timestamp,Datetime是一个时间格式的文本 *
*
*/
- public com.google.protobuf.ByteString
- getValueBytes() {
- java.lang.Object ref = value_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- value_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000040) == 0x00000040);
+ }
+
+ /**
+ * optional string value = 8;
+ *
+ * + * * 字段值,timestamp,Datetime是一个时间格式的文本 * + *+ */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } + } + + /** + *
optional string value = 8;
+ *
+ * + * * 字段值,timestamp,Datetime是一个时间格式的文本 * + *+ */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LENGTH_FIELD_NUMBER = 9; + private int length_; - public static final int LENGTH_FIELD_NUMBER = 9; - private int length_; - /** *
optional int32 length = 9;
*
@@ -4748,10 +4666,10 @@ public final class CanalEntry {
* * 对应数据对象原始长度 *
*
*/
- public boolean hasLength() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
- }
-
+ public boolean hasLength() {
+ return ((bitField0_ & 0x00000080) == 0x00000080);
+ }
+
/**
* optional int32 length = 9;
*
@@ -4759,46 +4677,13 @@ public final class CanalEntry {
* * 对应数据对象原始长度 *
*
*/
- public int getLength() {
- return length_;
- }
-
- public static final int MYSQLTYPE_FIELD_NUMBER = 10;
- private java.lang.Object mysqlType_;
-
- /**
- * optional string mysqlType = 10;
- *
- * - * *字段mysql类型* - *- */ - public boolean hasMysqlType() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - - /** - *
optional string mysqlType = 10;
- *
- * - * *字段mysql类型* - *- */ - 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; + public int getLength() { + return length_; } - return s; - } - } - + + public static final int MYSQLTYPE_FIELD_NUMBER = 10; + private java.lang.Object mysqlType_; + /** *
optional string mysqlType = 10;
*
@@ -4806,203 +4691,234 @@ public final class CanalEntry {
* *字段mysql类型*
*
*/
- 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 boolean hasMysqlType() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
- private void initFields() {
- index_ = 0;
- sqlType_ = 0;
- name_ = "";
- isKey_ = false;
- updated_ = false;
- isNull_ = false;
- props_ = java.util.Collections.emptyList();
- value_ = "";
- length_ = 0;
- mysqlType_ = "";
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ /**
+ * optional string mysqlType = 10;
+ *
+ * + * *字段mysql类型* + *+ */ + 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; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + *
optional string mysqlType = 10;
+ *
+ * + * *字段mysql类型* + *+ */ + 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 void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, index_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, sqlType_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, isKey_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBool(5, updated_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBool(6, isNull_); - } - for (int i = 0; i < props_.size(); i++) { - output.writeMessage(7, props_.get(i)); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(8, getValueBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeInt32(9, length_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(10, getMysqlTypeBytes()); - } - getUnknownFields().writeTo(output); - } + private void initFields() { + index_ = 0; + sqlType_ = 0; + name_ = ""; + isKey_ = false; + updated_ = false; + isNull_ = false; + props_ = java.util.Collections.emptyList(); + value_ = ""; + length_ = 0; + mysqlType_ = ""; + } - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; + private byte memoizedIsInitialized = -1; - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, index_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, sqlType_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isKey_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, updated_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, isNull_); - } - for (int i = 0; i < props_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, props_.get(i)); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getValueBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, length_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getMysqlTypeBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } + memoizedIsInitialized = 1; + return true; + } - public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.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.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, index_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, sqlType_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(3, getNameBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBool(4, isKey_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBool(5, updated_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBool(6, isNull_); + } + for (int i = 0; i < props_.size(); i++) { + output.writeMessage(7, props_.get(i)); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBytes(8, getValueBytes()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeInt32(9, length_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeBytes(10, getMysqlTypeBytes()); + } + getUnknownFields().writeTo(output); + } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Column prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } + private int memoizedSerializedSize = -1; + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, index_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sqlType_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, getNameBytes()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isKey_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, updated_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, isNull_); + } + for (int i = 0; i < props_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, props_.get(i)); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(8, getValueBytes()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, length_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(10, getMysqlTypeBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.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.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.Column parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Column prototype) { + return newBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return newBuilder(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** * Protobuf type {@code com.alibaba.otter.canal.protocol.Column} * @@ -5010,244 +4926,240 @@ public final class CanalEntry { * *每个字段的数据结构* * */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder
optional int32 index = 1;
*
@@ -5255,10 +5167,10 @@ public final class CanalEntry {
* *字段下标*
*
*/
- public boolean hasIndex() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
+ public boolean hasIndex() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+
/**
* optional int32 index = 1;
*
@@ -5266,10 +5178,10 @@ public final class CanalEntry {
* *字段下标*
*
*/
- public int getIndex() {
- return index_;
- }
-
+ public int getIndex() {
+ return index_;
+ }
+
/**
* optional int32 index = 1;
*
@@ -5277,13 +5189,13 @@ public final class CanalEntry {
* *字段下标*
*
*/
- public Builder setIndex(int value) {
- bitField0_ |= 0x00000001;
- index_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setIndex(int value) {
+ bitField0_ |= 0x00000001;
+ index_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional int32 index = 1;
*
@@ -5291,15 +5203,15 @@ public final class CanalEntry {
* *字段下标*
*
*/
- public Builder clearIndex() {
- bitField0_ = (bitField0_ & ~0x00000001);
- index_ = 0;
- onChanged();
- return this;
- }
+ public Builder clearIndex() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ index_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int sqlType_;
- private int sqlType_ ;
-
/**
* optional int32 sqlType = 2;
*
@@ -5307,10 +5219,10 @@ public final class CanalEntry {
* *字段java中类型*
*
*/
- public boolean hasSqlType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
+ public boolean hasSqlType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+
/**
* optional int32 sqlType = 2;
*
@@ -5318,10 +5230,10 @@ public final class CanalEntry {
* *字段java中类型*
*
*/
- public int getSqlType() {
- return sqlType_;
- }
-
+ public int getSqlType() {
+ return sqlType_;
+ }
+
/**
* optional int32 sqlType = 2;
*
@@ -5329,13 +5241,13 @@ public final class CanalEntry {
* *字段java中类型*
*
*/
- public Builder setSqlType(int value) {
- bitField0_ |= 0x00000002;
- sqlType_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setSqlType(int value) {
+ bitField0_ |= 0x00000002;
+ sqlType_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional int32 sqlType = 2;
*
@@ -5343,15 +5255,15 @@ public final class CanalEntry {
* *字段java中类型*
*
*/
- public Builder clearSqlType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- sqlType_ = 0;
- onChanged();
- return this;
- }
+ public Builder clearSqlType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ sqlType_ = 0;
+ onChanged();
+ return this;
+ }
- private java.lang.Object name_ = "";
-
+ private java.lang.Object name_ = "";
+
/**
* optional string name = 3;
*
@@ -5359,10 +5271,10 @@ public final class CanalEntry {
* *字段名称(忽略大小写),在mysql中是没有的*
*
*/
- public boolean hasName() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
-
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+
/**
* optional string name = 3;
*
@@ -5370,21 +5282,20 @@ public final class CanalEntry {
* *字段名称(忽略大小写),在mysql中是没有的*
*
*/
- 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;
- }
- }
-
+ 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 = 3;
*
@@ -5392,20 +5303,17 @@ public final class CanalEntry {
* *字段名称(忽略大小写),在mysql中是没有的*
*
*/
- 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;
- }
- }
-
+ 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 = 3;
*
@@ -5413,17 +5321,16 @@ public final class CanalEntry {
* *字段名称(忽略大小写),在mysql中是没有的*
*
*/
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- name_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional string name = 3;
*
@@ -5431,13 +5338,13 @@ public final class CanalEntry {
* *字段名称(忽略大小写),在mysql中是没有的*
*
*/
- public Builder clearName() {
- bitField0_ = (bitField0_ & ~0x00000004);
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
-
+ public Builder clearName() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+
/**
* optional string name = 3;
*
@@ -5445,19 +5352,18 @@ public final class CanalEntry {
* *字段名称(忽略大小写),在mysql中是没有的*
*
*/
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- name_ = value;
- onChanged();
- return this;
- }
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000004;
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean isKey_;
- private boolean isKey_ ;
-
/**
* optional bool isKey = 4;
*
@@ -5465,10 +5371,10 @@ public final class CanalEntry {
* *是否是主键*
*
*/
- public boolean hasIsKey() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
-
+ public boolean hasIsKey() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+
/**
* optional bool isKey = 4;
*
@@ -5476,10 +5382,10 @@ public final class CanalEntry {
* *是否是主键*
*
*/
- public boolean getIsKey() {
- return isKey_;
- }
-
+ public boolean getIsKey() {
+ return isKey_;
+ }
+
/**
* optional bool isKey = 4;
*
@@ -5487,13 +5393,13 @@ public final class CanalEntry {
* *是否是主键*
*
*/
- public Builder setIsKey(boolean value) {
- bitField0_ |= 0x00000008;
- isKey_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setIsKey(boolean value) {
+ bitField0_ |= 0x00000008;
+ isKey_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional bool isKey = 4;
*
@@ -5501,15 +5407,15 @@ public final class CanalEntry {
* *是否是主键*
*
*/
- public Builder clearIsKey() {
- bitField0_ = (bitField0_ & ~0x00000008);
- isKey_ = false;
- onChanged();
- return this;
- }
+ public Builder clearIsKey() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ isKey_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean updated_;
- private boolean updated_ ;
-
/**
* optional bool updated = 5;
*
@@ -5517,10 +5423,10 @@ public final class CanalEntry {
* *如果EventType=UPDATE,用于标识这个字段值是否有修改*
*
*/
- public boolean hasUpdated() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
-
+ public boolean hasUpdated() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+
/**
* optional bool updated = 5;
*
@@ -5528,10 +5434,10 @@ public final class CanalEntry {
* *如果EventType=UPDATE,用于标识这个字段值是否有修改*
*
*/
- public boolean getUpdated() {
- return updated_;
- }
-
+ public boolean getUpdated() {
+ return updated_;
+ }
+
/**
* optional bool updated = 5;
*
@@ -5539,13 +5445,13 @@ public final class CanalEntry {
* *如果EventType=UPDATE,用于标识这个字段值是否有修改*
*
*/
- public Builder setUpdated(boolean value) {
- bitField0_ |= 0x00000010;
- updated_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setUpdated(boolean value) {
+ bitField0_ |= 0x00000010;
+ updated_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional bool updated = 5;
*
@@ -5553,15 +5459,15 @@ public final class CanalEntry {
* *如果EventType=UPDATE,用于标识这个字段值是否有修改*
*
*/
- public Builder clearUpdated() {
- bitField0_ = (bitField0_ & ~0x00000010);
- updated_ = false;
- onChanged();
- return this;
- }
+ public Builder clearUpdated() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ updated_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean isNull_;
- private boolean isNull_ ;
-
/**
* optional bool isNull = 6 [default = false];
*
@@ -5569,10 +5475,10 @@ public final class CanalEntry {
* * 标识是否为空 *
*
*/
- public boolean hasIsNull() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
-
+ public boolean hasIsNull() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+
/**
* optional bool isNull = 6 [default = false];
*
@@ -5580,10 +5486,10 @@ public final class CanalEntry {
* * 标识是否为空 *
*
*/
- public boolean getIsNull() {
- return isNull_;
- }
-
+ public boolean getIsNull() {
+ return isNull_;
+ }
+
/**
* optional bool isNull = 6 [default = false];
*
@@ -5591,13 +5497,13 @@ public final class CanalEntry {
* * 标识是否为空 *
*
*/
- public Builder setIsNull(boolean value) {
- bitField0_ |= 0x00000020;
- isNull_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setIsNull(boolean value) {
+ bitField0_ |= 0x00000020;
+ isNull_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional bool isNull = 6 [default = false];
*
@@ -5605,24 +5511,23 @@ public final class CanalEntry {
* * 标识是否为空 *
*
*/
- public Builder clearIsNull() {
- bitField0_ = (bitField0_ & ~0x00000020);
- isNull_ = false;
- onChanged();
- return this;
- }
+ public Builder clearIsNull() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ isNull_ = false;
+ onChanged();
+ return this;
+ }
- private java.util.Listrepeated .com.alibaba.otter.canal.protocol.Pair props = 7;
@@ -5631,351 +5536,335 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- public java.util.Listrepeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public int getPropsCount() { - if (propsBuilder_ == null) { - return props_.size(); - } else { - return propsBuilder_.getCount(); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { - if (propsBuilder_ == null) { - return props_.get(index); - } else { - return propsBuilder_.getMessage(index); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public Builder setProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { - if (propsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropsIsMutable(); - props_.set(index, value); - onChanged(); - } else { - propsBuilder_.setMessage(index, value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public Builder setProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.set(index, builderForValue.build()); - onChanged(); - } else { - propsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { - if (propsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropsIsMutable(); - props_.add(value); - onChanged(); - } else { - propsBuilder_.addMessage(value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public Builder addProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { - if (propsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropsIsMutable(); - props_.add(index, value); - onChanged(); - } else { - propsBuilder_.addMessage(index, value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public Builder addProps( - com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.add(builderForValue.build()); - onChanged(); - } else { - propsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public Builder addProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.add(index, builderForValue.build()); - onChanged(); - } else { - propsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public Builder addAllProps( - java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, props_); - onChanged(); - } else { - propsBuilder_.addAllMessages(values); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public Builder clearProps() { - if (propsBuilder_ == null) { - props_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - propsBuilder_.clear(); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public Builder removeProps(int index) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.remove(index); - onChanged(); - } else { - propsBuilder_.remove(index); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder getPropsBuilder( - int index) { - return getPropsFieldBuilder().getBuilder(index); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder( - int index) { - if (propsBuilder_ == null) { - return props_.get(index); } else { - return propsBuilder_.getMessageOrBuilder(index); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> - getPropsOrBuilderList() { - if (propsBuilder_ != null) { - return propsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(props_); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() { - return getPropsFieldBuilder().addBuilder( - com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder( - int index) { - return getPropsFieldBuilder().addBuilder( - index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
- *
- * - * *预留扩展* - *- */ - public java.util.List
optional string value = 8;
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
*
*
- * * 字段值,timestamp,Datetime是一个时间格式的文本 *
+ * *预留扩展*
*
*/
- public boolean hasValue() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
- }
-
+ public int getPropsCount() {
+ if (propsBuilder_ == null) {
+ return props_.size();
+ } else {
+ return propsBuilder_.getCount();
+ }
+ }
+
/**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { + if (propsBuilder_ == null) { + return props_.get(index); + } else { + return propsBuilder_.getMessage(index); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { + if (propsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropsIsMutable(); + props_.set(index, value); + onChanged(); + } else { + propsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.set(index, builderForValue.build()); + onChanged(); + } else { + propsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { + if (propsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropsIsMutable(); + props_.add(value); + onChanged(); + } else { + propsBuilder_.addMessage(value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { + if (propsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropsIsMutable(); + props_.add(index, value); + onChanged(); + } else { + propsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.add(builderForValue.build()); + onChanged(); + } else { + propsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.add(index, builderForValue.build()); + onChanged(); + } else { + propsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addAllProps(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, props_); + onChanged(); + } else { + propsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public Builder clearProps() { + if (propsBuilder_ == null) { + props_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + propsBuilder_.clear(); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public Builder removeProps(int index) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.remove(index); + onChanged(); + } else { + propsBuilder_.remove(index); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder getPropsBuilder(int index) { + return getPropsFieldBuilder().getBuilder(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) { + if (propsBuilder_ == null) { + return props_.get(index); + } else { + return propsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() { + if (propsBuilder_ != null) { + return propsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(props_); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() { + return getPropsFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder(int index) { + return getPropsFieldBuilder().addBuilder(index, + com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 7;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List
optional string value = 8;
+ *
+ * + * * 字段值,timestamp,Datetime是一个时间格式的文本 * + *+ */ + public boolean hasValue() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + + /** *
optional string value = 8;
*
*
* * 字段值,timestamp,Datetime是一个时间格式的文本 *
*
*/
- public java.lang.String getValue() {
- java.lang.Object ref = value_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- value_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ value_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
/**
* optional string value = 8;
*
@@ -5983,20 +5872,17 @@ public final class CanalEntry {
* * 字段值,timestamp,Datetime是一个时间格式的文本 *
*
*/
- public com.google.protobuf.ByteString
- getValueBytes() {
- java.lang.Object ref = value_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- value_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
/**
* optional string value = 8;
*
@@ -6004,17 +5890,16 @@ public final class CanalEntry {
* * 字段值,timestamp,Datetime是一个时间格式的文本 *
*
*/
- public Builder setValue(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000080;
- value_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setValue(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000080;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional string value = 8;
*
@@ -6022,13 +5907,13 @@ public final class CanalEntry {
* * 字段值,timestamp,Datetime是一个时间格式的文本 *
*
*/
- public Builder clearValue() {
- bitField0_ = (bitField0_ & ~0x00000080);
- value_ = getDefaultInstance().getValue();
- onChanged();
- return this;
- }
-
+ public Builder clearValue() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+
/**
* optional string value = 8;
*
@@ -6036,19 +5921,18 @@ public final class CanalEntry {
* * 字段值,timestamp,Datetime是一个时间格式的文本 *
*
*/
- public Builder setValueBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000080;
- value_ = value;
- onChanged();
- return this;
- }
+ public Builder setValueBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000080;
+ value_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int length_;
- private int length_ ;
-
/**
* optional int32 length = 9;
*
@@ -6056,10 +5940,10 @@ public final class CanalEntry {
* * 对应数据对象原始长度 *
*
*/
- public boolean hasLength() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
- }
-
+ public boolean hasLength() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
+ }
+
/**
* optional int32 length = 9;
*
@@ -6067,10 +5951,10 @@ public final class CanalEntry {
* * 对应数据对象原始长度 *
*
*/
- public int getLength() {
- return length_;
- }
-
+ public int getLength() {
+ return length_;
+ }
+
/**
* optional int32 length = 9;
*
@@ -6078,13 +5962,13 @@ public final class CanalEntry {
* * 对应数据对象原始长度 *
*
*/
- public Builder setLength(int value) {
- bitField0_ |= 0x00000100;
- length_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setLength(int value) {
+ bitField0_ |= 0x00000100;
+ length_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional int32 length = 9;
*
@@ -6092,405 +5976,128 @@ public final class CanalEntry {
* * 对应数据对象原始长度 *
*
*/
- public Builder clearLength() {
- bitField0_ = (bitField0_ & ~0x00000100);
- length_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object mysqlType_ = "";
-
- /**
- * optional string mysqlType = 10;
- *
- * - * *字段mysql类型* - *- */ - public boolean hasMysqlType() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - - /** - *
optional string mysqlType = 10;
- *
- * - * *字段mysql类型* - *- */ - 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; - } - } - - /** - *
optional string mysqlType = 10;
- *
- * - * *字段mysql类型* - *- */ - 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; - } - } - - /** - *
optional string mysqlType = 10;
- *
- * - * *字段mysql类型* - *- */ - public Builder setMysqlType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - mysqlType_ = value; - onChanged(); - return this; - } - - /** - *
optional string mysqlType = 10;
- *
- * - * *字段mysql类型* - *- */ - public Builder clearMysqlType() { - bitField0_ = (bitField0_ & ~0x00000200); - mysqlType_ = getDefaultInstance().getMysqlType(); - onChanged(); - return this; - } - - /** - *
optional string mysqlType = 10;
- *
- * - * *字段mysql类型* - *- */ - public Builder setMysqlTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - mysqlType_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.Column) - } - - static { - defaultInstance = new Column(true); - defaultInstance.initFields(); - } - - // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.Column) - } - - public interface RowDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.RowData) - com.google.protobuf.MessageOrBuilder { - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - java.util.List
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - com.alibaba.otter.canal.protocol.CanalEntry.Column getBeforeColumns(int index); - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - int getBeforeColumnsCount(); - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> - getBeforeColumnsOrBuilderList(); - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getBeforeColumnsOrBuilder( - int index); - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - java.util.List
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - com.alibaba.otter.canal.protocol.CanalEntry.Column getAfterColumns(int index); - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - int getAfterColumnsCount(); - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> - getAfterColumnsOrBuilderList(); - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getAfterColumnsOrBuilder( - int index); - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index); - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - int getPropsCount(); - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> - getPropsOrBuilderList(); - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder( - int index); - } - /** - * Protobuf type {@code com.alibaba.otter.canal.protocol.RowData} - */ - public static final class RowData extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.RowData) - RowDataOrBuilder { - // Use RowData.newBuilder() to construct. - private RowData(com.google.protobuf.GeneratedMessage.Builder> builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private RowData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final RowData defaultInstance; - public static RowData getDefaultInstance() { - return defaultInstance; - } - - public RowData getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.UnknownFieldSet unknownFields; - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RowData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - 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; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; + public Builder clearLength() { + bitField0_ = (bitField0_ & ~0x00000100); + length_ = 0; + onChanged(); + return this; } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - beforeColumns_ = new java.util.ArrayList
optional string mysqlType = 10;
+ *
+ * + * *字段mysql类型* + *+ */ + public boolean hasMysqlType() { + return ((bitField0_ & 0x00000200) == 0x00000200); } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - afterColumns_ = new java.util.ArrayList
optional string mysqlType = 10;
+ *
+ * + * *字段mysql类型* + *+ */ + 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; + } } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - props_ = new java.util.ArrayList
optional string mysqlType = 10;
+ *
+ * + * *字段mysql类型* + *+ */ + 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; + } } - } + + /** + *
optional string mysqlType = 10;
+ *
+ * + * *字段mysql类型* + *+ */ + public Builder setMysqlType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + mysqlType_ = value; + onChanged(); + return this; + } + + /** + *
optional string mysqlType = 10;
+ *
+ * + * *字段mysql类型* + *+ */ + public Builder clearMysqlType() { + bitField0_ = (bitField0_ & ~0x00000200); + mysqlType_ = getDefaultInstance().getMysqlType(); + onChanged(); + return this; + } + + /** + *
optional string mysqlType = 10;
+ *
+ * + * *字段mysql类型* + *+ */ + public Builder setMysqlTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + mysqlType_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.Column) } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - beforeColumns_ = java.util.Collections.unmodifiableList(beforeColumns_); + + static { + defaultInstance = new Column(true); + defaultInstance.initFields(); } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - afterColumns_ = java.util.Collections.unmodifiableList(afterColumns_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - props_ = java.util.Collections.unmodifiableList(props_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowData_descriptor; + + // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.Column) } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.alibaba.otter.canal.protocol.CanalEntry.RowData.class, com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder.class); - } + public interface RowDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.RowData) + com.google.protobuf.MessageOrBuilder { - public static com.google.protobuf.Parser
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*
@@ -6498,10 +6105,8 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改前,删除前) *
*
*/
- public java.util.Listrepeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*
@@ -6509,11 +6114,8 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改前,删除前) *
*
*/
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder>
- getBeforeColumnsOrBuilderList() {
- return beforeColumns_;
- }
-
+ com.alibaba.otter.canal.protocol.CanalEntry.Column getBeforeColumns(int index);
+
/**
* repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*
@@ -6521,10 +6123,8 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改前,删除前) *
*
*/
- public int getBeforeColumnsCount() {
- return beforeColumns_.size();
- }
-
+ int getBeforeColumnsCount();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*
@@ -6532,10 +6132,8 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改前,删除前) *
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.Column getBeforeColumns(int index) {
- return beforeColumns_.get(index);
- }
-
+ java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> getBeforeColumnsOrBuilderList();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*
@@ -6543,14 +6141,8 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改前,删除前) *
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getBeforeColumnsOrBuilder(
- int index) {
- return beforeColumns_.get(index);
- }
+ com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getBeforeColumnsOrBuilder(int index);
- public static final int AFTERCOLUMNS_FIELD_NUMBER = 2;
- private java.util.Listrepeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*
@@ -6558,10 +6150,8 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改后,新增后) *
*
*/
- public java.util.Listrepeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*
@@ -6569,11 +6159,8 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改后,新增后) *
*
*/
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder>
- getAfterColumnsOrBuilderList() {
- return afterColumns_;
- }
-
+ com.alibaba.otter.canal.protocol.CanalEntry.Column getAfterColumns(int index);
+
/**
* repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*
@@ -6581,10 +6168,8 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改后,新增后) *
*
*/
- public int getAfterColumnsCount() {
- return afterColumns_.size();
- }
-
+ int getAfterColumnsCount();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*
@@ -6592,10 +6177,8 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改后,新增后) *
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.Column getAfterColumns(int index) {
- return afterColumns_.get(index);
- }
-
+ java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> getAfterColumnsOrBuilderList();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*
@@ -6603,14 +6186,8 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改后,新增后) *
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getAfterColumnsOrBuilder(
- int index) {
- return afterColumns_.get(index);
- }
+ com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getAfterColumnsOrBuilder(int index);
- public static final int PROPS_FIELD_NUMBER = 3;
- private java.util.Listrepeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*
@@ -6618,10 +6195,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- public java.util.Listrepeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*
@@ -6629,11 +6204,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
- getPropsOrBuilderList() {
- return props_;
- }
-
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*
@@ -6641,10 +6213,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- public int getPropsCount() {
- return props_.size();
- }
-
+ int getPropsCount();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*
@@ -6652,10 +6222,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
- return props_.get(index);
- }
-
+ java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*
@@ -6663,382 +6231,680 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
- int index) {
- return props_.get(index);
+ com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index);
}
- private void initFields() {
- beforeColumns_ = java.util.Collections.emptyList();
- afterColumns_ = java.util.Collections.emptyList();
- props_ = java.util.Collections.emptyList();
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- getSerializedSize();
- for (int i = 0; i < beforeColumns_.size(); i++) {
- output.writeMessage(1, beforeColumns_.get(i));
- }
- for (int i = 0; i < afterColumns_.size(); i++) {
- output.writeMessage(2, afterColumns_.get(i));
- }
- for (int i = 0; i < props_.size(); i++) {
- output.writeMessage(3, props_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- for (int i = 0; i < beforeColumns_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, beforeColumns_.get(i));
- }
- for (int i = 0; i < afterColumns_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, afterColumns_.get(i));
- }
- for (int i = 0; i < props_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, props_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- @java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static Builder newBuilder() { return Builder.create(); }
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.RowData prototype) {
- return newBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() { return newBuilder(this); }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
/**
* Protobuf type {@code com.alibaba.otter.canal.protocol.RowData}
*/
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builderrepeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public java.util.List
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> getBeforeColumnsOrBuilderList() { + return beforeColumns_; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public int getBeforeColumnsCount() { + return beforeColumns_.size(); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Column getBeforeColumns(int index) { + return beforeColumns_.get(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getBeforeColumnsOrBuilder(int index) { + return beforeColumns_.get(index); + } + + public static final int AFTERCOLUMNS_FIELD_NUMBER = 2; + private java.util.List
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public java.util.List
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> getAfterColumnsOrBuilderList() { + return afterColumns_; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public int getAfterColumnsCount() { + return afterColumns_.size(); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Column getAfterColumns(int index) { + return afterColumns_.get(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getAfterColumnsOrBuilder(int index) { + return afterColumns_.get(index); + } + + public static final int PROPS_FIELD_NUMBER = 3; + private java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() { + return props_; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public int getPropsCount() { + return props_.size(); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { + return props_.get(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) { + return props_.get(index); + } + + private void initFields() { + beforeColumns_ = java.util.Collections.emptyList(); + afterColumns_ = java.util.Collections.emptyList(); + props_ = java.util.Collections.emptyList(); + } + + private byte memoizedIsInitialized = -1; + + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < beforeColumns_.size(); i++) { + output.writeMessage(1, beforeColumns_.get(i)); + } + for (int i = 0; i < afterColumns_.size(); i++) { + output.writeMessage(2, afterColumns_.get(i)); + } + for (int i = 0; i < props_.size(); i++) { + output.writeMessage(3, props_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < beforeColumns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, beforeColumns_.get(i)); + } + for (int i = 0; i < afterColumns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, afterColumns_.get(i)); + } + for (int i = 0; i < props_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, props_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowData parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.RowData prototype) { + return newBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return newBuilder(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * Protobuf type {@code com.alibaba.otter.canal.protocol.RowData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
@@ -7047,327 +6913,313 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改前,删除前) *
*
*/
- public java.util.Listrepeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public int getBeforeColumnsCount() { - if (beforeColumnsBuilder_ == null) { - return beforeColumns_.size(); - } else { - return beforeColumnsBuilder_.getCount(); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Column getBeforeColumns(int index) { - if (beforeColumnsBuilder_ == null) { - return beforeColumns_.get(index); - } else { - return beforeColumnsBuilder_.getMessage(index); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public Builder setBeforeColumns( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) { - if (beforeColumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBeforeColumnsIsMutable(); - beforeColumns_.set(index, value); - onChanged(); - } else { - beforeColumnsBuilder_.setMessage(index, value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public Builder setBeforeColumns( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { - if (beforeColumnsBuilder_ == null) { - ensureBeforeColumnsIsMutable(); - beforeColumns_.set(index, builderForValue.build()); - onChanged(); - } else { - beforeColumnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public Builder addBeforeColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column value) { - if (beforeColumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBeforeColumnsIsMutable(); - beforeColumns_.add(value); - onChanged(); - } else { - beforeColumnsBuilder_.addMessage(value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public Builder addBeforeColumns( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) { - if (beforeColumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBeforeColumnsIsMutable(); - beforeColumns_.add(index, value); - onChanged(); - } else { - beforeColumnsBuilder_.addMessage(index, value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public Builder addBeforeColumns( - com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { - if (beforeColumnsBuilder_ == null) { - ensureBeforeColumnsIsMutable(); - beforeColumns_.add(builderForValue.build()); - onChanged(); - } else { - beforeColumnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public Builder addBeforeColumns( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { - if (beforeColumnsBuilder_ == null) { - ensureBeforeColumnsIsMutable(); - beforeColumns_.add(index, builderForValue.build()); - onChanged(); - } else { - beforeColumnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public Builder addAllBeforeColumns( - java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Column> values) { - if (beforeColumnsBuilder_ == null) { - ensureBeforeColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, beforeColumns_); - onChanged(); - } else { - beforeColumnsBuilder_.addAllMessages(values); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public Builder clearBeforeColumns() { - if (beforeColumnsBuilder_ == null) { - beforeColumns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - beforeColumnsBuilder_.clear(); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public Builder removeBeforeColumns(int index) { - if (beforeColumnsBuilder_ == null) { - ensureBeforeColumnsIsMutable(); - beforeColumns_.remove(index); - onChanged(); - } else { - beforeColumnsBuilder_.remove(index); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder getBeforeColumnsBuilder( - int index) { - return getBeforeColumnsFieldBuilder().getBuilder(index); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getBeforeColumnsOrBuilder( - int index) { - if (beforeColumnsBuilder_ == null) { - return beforeColumns_.get(index); } else { - return beforeColumnsBuilder_.getMessageOrBuilder(index); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> - getBeforeColumnsOrBuilderList() { - if (beforeColumnsBuilder_ != null) { - return beforeColumnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(beforeColumns_); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addBeforeColumnsBuilder() { - return getBeforeColumnsFieldBuilder().addBuilder( - com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance()); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addBeforeColumnsBuilder( - int index) { - return getBeforeColumnsFieldBuilder().addBuilder( - index, com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance()); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- * - * * 字段信息,增量数据(修改前,删除前) * - *- */ - public java.util.List
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public int getBeforeColumnsCount() { + if (beforeColumnsBuilder_ == null) { + return beforeColumns_.size(); + } else { + return beforeColumnsBuilder_.getCount(); + } + } - private com.google.protobuf.RepeatedFieldBuilder< - com.alibaba.otter.canal.protocol.CanalEntry.Column, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder, com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> afterColumnsBuilder_; + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Column getBeforeColumns(int index) { + if (beforeColumnsBuilder_ == null) { + return beforeColumns_.get(index); + } else { + return beforeColumnsBuilder_.getMessage(index); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public Builder setBeforeColumns(int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) { + if (beforeColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeColumnsIsMutable(); + beforeColumns_.set(index, value); + onChanged(); + } else { + beforeColumnsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public Builder setBeforeColumns(int index, + com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { + if (beforeColumnsBuilder_ == null) { + ensureBeforeColumnsIsMutable(); + beforeColumns_.set(index, builderForValue.build()); + onChanged(); + } else { + beforeColumnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public Builder addBeforeColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column value) { + if (beforeColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeColumnsIsMutable(); + beforeColumns_.add(value); + onChanged(); + } else { + beforeColumnsBuilder_.addMessage(value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public Builder addBeforeColumns(int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) { + if (beforeColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBeforeColumnsIsMutable(); + beforeColumns_.add(index, value); + onChanged(); + } else { + beforeColumnsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public Builder addBeforeColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { + if (beforeColumnsBuilder_ == null) { + ensureBeforeColumnsIsMutable(); + beforeColumns_.add(builderForValue.build()); + onChanged(); + } else { + beforeColumnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public Builder addBeforeColumns(int index, + com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { + if (beforeColumnsBuilder_ == null) { + ensureBeforeColumnsIsMutable(); + beforeColumns_.add(index, builderForValue.build()); + onChanged(); + } else { + beforeColumnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public Builder addAllBeforeColumns(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Column> values) { + if (beforeColumnsBuilder_ == null) { + ensureBeforeColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, beforeColumns_); + onChanged(); + } else { + beforeColumnsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public Builder clearBeforeColumns() { + if (beforeColumnsBuilder_ == null) { + beforeColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + beforeColumnsBuilder_.clear(); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public Builder removeBeforeColumns(int index) { + if (beforeColumnsBuilder_ == null) { + ensureBeforeColumnsIsMutable(); + beforeColumns_.remove(index); + onChanged(); + } else { + beforeColumnsBuilder_.remove(index); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder getBeforeColumnsBuilder(int index) { + return getBeforeColumnsFieldBuilder().getBuilder(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getBeforeColumnsOrBuilder(int index) { + if (beforeColumnsBuilder_ == null) { + return beforeColumns_.get(index); + } else { + return beforeColumnsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> getBeforeColumnsOrBuilderList() { + if (beforeColumnsBuilder_ != null) { + return beforeColumnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(beforeColumns_); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addBeforeColumnsBuilder() { + return getBeforeColumnsFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance()); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addBeforeColumnsBuilder(int index) { + return getBeforeColumnsFieldBuilder().addBuilder(index, + com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance()); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ * + * * 字段信息,增量数据(修改前,删除前) * + *+ */ + public java.util.List
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
@@ -7376,327 +7228,313 @@ public final class CanalEntry {
* * 字段信息,增量数据(修改后,新增后) *
*
*/
- public java.util.Listrepeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public int getAfterColumnsCount() { - if (afterColumnsBuilder_ == null) { - return afterColumns_.size(); - } else { - return afterColumnsBuilder_.getCount(); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Column getAfterColumns(int index) { - if (afterColumnsBuilder_ == null) { - return afterColumns_.get(index); - } else { - return afterColumnsBuilder_.getMessage(index); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public Builder setAfterColumns( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) { - if (afterColumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAfterColumnsIsMutable(); - afterColumns_.set(index, value); - onChanged(); - } else { - afterColumnsBuilder_.setMessage(index, value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public Builder setAfterColumns( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { - if (afterColumnsBuilder_ == null) { - ensureAfterColumnsIsMutable(); - afterColumns_.set(index, builderForValue.build()); - onChanged(); - } else { - afterColumnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public Builder addAfterColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column value) { - if (afterColumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAfterColumnsIsMutable(); - afterColumns_.add(value); - onChanged(); - } else { - afterColumnsBuilder_.addMessage(value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public Builder addAfterColumns( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) { - if (afterColumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAfterColumnsIsMutable(); - afterColumns_.add(index, value); - onChanged(); - } else { - afterColumnsBuilder_.addMessage(index, value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public Builder addAfterColumns( - com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { - if (afterColumnsBuilder_ == null) { - ensureAfterColumnsIsMutable(); - afterColumns_.add(builderForValue.build()); - onChanged(); - } else { - afterColumnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public Builder addAfterColumns( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { - if (afterColumnsBuilder_ == null) { - ensureAfterColumnsIsMutable(); - afterColumns_.add(index, builderForValue.build()); - onChanged(); - } else { - afterColumnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public Builder addAllAfterColumns( - java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Column> values) { - if (afterColumnsBuilder_ == null) { - ensureAfterColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, afterColumns_); - onChanged(); - } else { - afterColumnsBuilder_.addAllMessages(values); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public Builder clearAfterColumns() { - if (afterColumnsBuilder_ == null) { - afterColumns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - afterColumnsBuilder_.clear(); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public Builder removeAfterColumns(int index) { - if (afterColumnsBuilder_ == null) { - ensureAfterColumnsIsMutable(); - afterColumns_.remove(index); - onChanged(); - } else { - afterColumnsBuilder_.remove(index); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder getAfterColumnsBuilder( - int index) { - return getAfterColumnsFieldBuilder().getBuilder(index); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getAfterColumnsOrBuilder( - int index) { - if (afterColumnsBuilder_ == null) { - return afterColumns_.get(index); } else { - return afterColumnsBuilder_.getMessageOrBuilder(index); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> - getAfterColumnsOrBuilderList() { - if (afterColumnsBuilder_ != null) { - return afterColumnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(afterColumns_); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addAfterColumnsBuilder() { - return getAfterColumnsFieldBuilder().addBuilder( - com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance()); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addAfterColumnsBuilder( - int index) { - return getAfterColumnsFieldBuilder().addBuilder( - index, com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance()); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- * - * * 字段信息,增量数据(修改后,新增后) * - *- */ - public java.util.List
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public int getAfterColumnsCount() { + if (afterColumnsBuilder_ == null) { + return afterColumns_.size(); + } else { + return afterColumnsBuilder_.getCount(); + } + } - private com.google.protobuf.RepeatedFieldBuilder< - com.alibaba.otter.canal.protocol.CanalEntry.Pair, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder, com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> propsBuilder_; + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Column getAfterColumns(int index) { + if (afterColumnsBuilder_ == null) { + return afterColumns_.get(index); + } else { + return afterColumnsBuilder_.getMessage(index); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public Builder setAfterColumns(int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) { + if (afterColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterColumnsIsMutable(); + afterColumns_.set(index, value); + onChanged(); + } else { + afterColumnsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public Builder setAfterColumns(int index, + com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { + if (afterColumnsBuilder_ == null) { + ensureAfterColumnsIsMutable(); + afterColumns_.set(index, builderForValue.build()); + onChanged(); + } else { + afterColumnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public Builder addAfterColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column value) { + if (afterColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterColumnsIsMutable(); + afterColumns_.add(value); + onChanged(); + } else { + afterColumnsBuilder_.addMessage(value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public Builder addAfterColumns(int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) { + if (afterColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAfterColumnsIsMutable(); + afterColumns_.add(index, value); + onChanged(); + } else { + afterColumnsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public Builder addAfterColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { + if (afterColumnsBuilder_ == null) { + ensureAfterColumnsIsMutable(); + afterColumns_.add(builderForValue.build()); + onChanged(); + } else { + afterColumnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public Builder addAfterColumns(int index, + com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) { + if (afterColumnsBuilder_ == null) { + ensureAfterColumnsIsMutable(); + afterColumns_.add(index, builderForValue.build()); + onChanged(); + } else { + afterColumnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public Builder addAllAfterColumns(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Column> values) { + if (afterColumnsBuilder_ == null) { + ensureAfterColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, afterColumns_); + onChanged(); + } else { + afterColumnsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public Builder clearAfterColumns() { + if (afterColumnsBuilder_ == null) { + afterColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + afterColumnsBuilder_.clear(); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public Builder removeAfterColumns(int index) { + if (afterColumnsBuilder_ == null) { + ensureAfterColumnsIsMutable(); + afterColumns_.remove(index); + onChanged(); + } else { + afterColumnsBuilder_.remove(index); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder getAfterColumnsBuilder(int index) { + return getAfterColumnsFieldBuilder().getBuilder(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getAfterColumnsOrBuilder(int index) { + if (afterColumnsBuilder_ == null) { + return afterColumns_.get(index); + } else { + return afterColumnsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> getAfterColumnsOrBuilderList() { + if (afterColumnsBuilder_ != null) { + return afterColumnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(afterColumns_); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addAfterColumnsBuilder() { + return getAfterColumnsFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance()); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addAfterColumnsBuilder(int index) { + return getAfterColumnsFieldBuilder().addBuilder(index, + com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance()); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ * + * * 字段信息,增量数据(修改后,新增后) * + *+ */ + public java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
@@ -7705,330 +7543,315 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- public java.util.Listrepeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public int getPropsCount() { - if (propsBuilder_ == null) { - return props_.size(); - } else { - return propsBuilder_.getCount(); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { - if (propsBuilder_ == null) { - return props_.get(index); - } else { - return propsBuilder_.getMessage(index); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public Builder setProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { - if (propsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropsIsMutable(); - props_.set(index, value); - onChanged(); - } else { - propsBuilder_.setMessage(index, value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public Builder setProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.set(index, builderForValue.build()); - onChanged(); - } else { - propsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { - if (propsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropsIsMutable(); - props_.add(value); - onChanged(); - } else { - propsBuilder_.addMessage(value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public Builder addProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { - if (propsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropsIsMutable(); - props_.add(index, value); - onChanged(); - } else { - propsBuilder_.addMessage(index, value); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public Builder addProps( - com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.add(builderForValue.build()); - onChanged(); - } else { - propsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public Builder addProps( - int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.add(index, builderForValue.build()); - onChanged(); - } else { - propsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public Builder addAllProps( - java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, props_); - onChanged(); - } else { - propsBuilder_.addAllMessages(values); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public Builder clearProps() { - if (propsBuilder_ == null) { - props_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - propsBuilder_.clear(); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public Builder removeProps(int index) { - if (propsBuilder_ == null) { - ensurePropsIsMutable(); - props_.remove(index); - onChanged(); - } else { - propsBuilder_.remove(index); - } - return this; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder getPropsBuilder( - int index) { - return getPropsFieldBuilder().getBuilder(index); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder( - int index) { - if (propsBuilder_ == null) { - return props_.get(index); } else { - return propsBuilder_.getMessageOrBuilder(index); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> - getPropsOrBuilderList() { - if (propsBuilder_ != null) { - return propsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(props_); - } - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() { - return getPropsFieldBuilder().addBuilder( - com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder( - int index) { - return getPropsFieldBuilder().addBuilder( - index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- * - * *预留扩展* - *- */ - public java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public int getPropsCount() { + if (propsBuilder_ == null) { + return props_.size(); + } else { + return propsBuilder_.getCount(); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { + if (propsBuilder_ == null) { + return props_.get(index); + } else { + return propsBuilder_.getMessage(index); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { + if (propsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropsIsMutable(); + props_.set(index, value); + onChanged(); + } else { + propsBuilder_.setMessage(index, value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.set(index, builderForValue.build()); + onChanged(); + } else { + propsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { + if (propsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropsIsMutable(); + props_.add(value); + onChanged(); + } else { + propsBuilder_.addMessage(value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) { + if (propsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropsIsMutable(); + props_.add(index, value); + onChanged(); + } else { + propsBuilder_.addMessage(index, value); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.add(builderForValue.build()); + onChanged(); + } else { + propsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.add(index, builderForValue.build()); + onChanged(); + } else { + propsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public Builder addAllProps(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, props_); + onChanged(); + } else { + propsBuilder_.addAllMessages(values); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public Builder clearProps() { + if (propsBuilder_ == null) { + props_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + propsBuilder_.clear(); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public Builder removeProps(int index) { + if (propsBuilder_ == null) { + ensurePropsIsMutable(); + props_.remove(index); + onChanged(); + } else { + propsBuilder_.remove(index); + } + return this; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder getPropsBuilder(int index) { + return getPropsFieldBuilder().getBuilder(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) { + if (propsBuilder_ == null) { + return props_.get(index); + } else { + return propsBuilder_.getMessageOrBuilder(index); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() { + if (propsBuilder_ != null) { + return propsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(props_); + } + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() { + return getPropsFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder(int index) { + return getPropsFieldBuilder().addBuilder(index, + com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List
optional int64 tableId = 1;
@@ -8037,8 +7860,8 @@ public final class CanalEntry {
* *tableId,由数据库产生*
*
*/
- boolean hasTableId();
-
+ boolean hasTableId();
+
/**
* optional int64 tableId = 1;
*
@@ -8046,7 +7869,7 @@ public final class CanalEntry {
* *tableId,由数据库产生*
*
*/
- long getTableId();
+ long getTableId();
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
@@ -8055,8 +7878,8 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- boolean hasEventType();
-
+ boolean hasEventType();
+
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
*
@@ -8064,7 +7887,7 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType();
+ com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType();
/**
* optional bool isDdl = 10 [default = false];
@@ -8073,8 +7896,8 @@ public final class CanalEntry {
* * 标识是否是ddl语句 *
*
*/
- boolean hasIsDdl();
-
+ boolean hasIsDdl();
+
/**
* optional bool isDdl = 10 [default = false];
*
@@ -8082,7 +7905,7 @@ public final class CanalEntry {
* * 标识是否是ddl语句 *
*
*/
- boolean getIsDdl();
+ boolean getIsDdl();
/**
* optional string sql = 11;
@@ -8091,8 +7914,8 @@ public final class CanalEntry {
* * ddl/query的sql语句 *
*
*/
- boolean hasSql();
-
+ boolean hasSql();
+
/**
* optional string sql = 11;
*
@@ -8100,8 +7923,8 @@ public final class CanalEntry {
* * ddl/query的sql语句 *
*
*/
- java.lang.String getSql();
-
+ java.lang.String getSql();
+
/**
* optional string sql = 11;
*
@@ -8109,8 +7932,7 @@ public final class CanalEntry {
* * ddl/query的sql语句 *
*
*/
- com.google.protobuf.ByteString
- getSqlBytes();
+ com.google.protobuf.ByteString getSqlBytes();
/**
* repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
@@ -8119,9 +7941,8 @@ public final class CanalEntry {
* * 一次数据库变更可能存在多行 *
*
*/
- java.util.Listrepeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*
@@ -8129,8 +7950,8 @@ public final class CanalEntry {
* * 一次数据库变更可能存在多行 *
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.RowData getRowDatas(int index);
-
+ com.alibaba.otter.canal.protocol.CanalEntry.RowData getRowDatas(int index);
+
/**
* repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*
@@ -8138,8 +7959,8 @@ public final class CanalEntry {
* * 一次数据库变更可能存在多行 *
*
*/
- int getRowDatasCount();
-
+ int getRowDatasCount();
+
/**
* repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*
@@ -8147,9 +7968,8 @@ public final class CanalEntry {
* * 一次数据库变更可能存在多行 *
*
*/
- java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder>
- getRowDatasOrBuilderList();
-
+ java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder> getRowDatasOrBuilderList();
+
/**
* repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*
@@ -8157,8 +7977,7 @@ public final class CanalEntry {
* * 一次数据库变更可能存在多行 *
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder getRowDatasOrBuilder(
- int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder getRowDatasOrBuilder(int index);
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
@@ -8167,9 +7986,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- java.util.Listrepeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*
@@ -8177,8 +7995,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
-
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*
@@ -8186,8 +8004,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- int getPropsCount();
-
+ int getPropsCount();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*
@@ -8195,9 +8013,8 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
- getPropsOrBuilderList();
-
+ java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList();
+
/**
* repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*
@@ -8205,8 +8022,7 @@ public final class CanalEntry {
* *预留扩展*
*
*/
- com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
- int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index);
/**
* optional string ddlSchemaName = 14;
@@ -8215,8 +8031,8 @@ public final class CanalEntry {
* * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
*/
- boolean hasDdlSchemaName();
-
+ boolean hasDdlSchemaName();
+
/**
* optional string ddlSchemaName = 14;
*
@@ -8224,8 +8040,8 @@ public final class CanalEntry {
* * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
*/
- java.lang.String getDdlSchemaName();
-
+ java.lang.String getDdlSchemaName();
+
/**
* optional string ddlSchemaName = 14;
*
@@ -8233,10 +8049,9 @@ public final class CanalEntry {
* * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
*/
- com.google.protobuf.ByteString
- getDdlSchemaNameBytes();
- }
-
+ com.google.protobuf.ByteString getDdlSchemaNameBytes();
+ }
+
/**
* Protobuf type {@code com.alibaba.otter.canal.protocol.RowChange}
*
@@ -8244,153 +8059,154 @@ public final class CanalEntry {
* *message row 每行变更数据的数据结构*
*
*/
- public static final class RowChange extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.RowChange)
- RowChangeOrBuilder {
- // Use RowChange.newBuilder() to construct.
- private RowChange(com.google.protobuf.GeneratedMessage.Builder> builder) {
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private RowChange(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+ public static final class RowChange extends com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.RowChange)
+ RowChangeOrBuilder {
- private static final RowChange defaultInstance;
- public static RowChange getDefaultInstance() {
- return defaultInstance;
- }
-
- public RowChange getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private RowChange(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- 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;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 8: {
- bitField0_ |= 0x00000001;
- tableId_ = input.readInt64();
- break;
- }
- case 16: {
- int rawValue = input.readEnum();
- com.alibaba.otter.canal.protocol.CanalEntry.EventType value = com.alibaba.otter.canal.protocol.CanalEntry.EventType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(2, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- eventType_ = value;
- }
- break;
- }
- case 80: {
- bitField0_ |= 0x00000004;
- isDdl_ = input.readBool();
- break;
- }
- case 90: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000008;
- sql_ = bs;
- break;
- }
- case 98: {
- if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- rowDatas_ = new java.util.ArrayListoptional int64 tableId = 1;
*
@@ -8398,10 +8214,10 @@ public final class CanalEntry {
* *tableId,由数据库产生*
*
*/
- public boolean hasTableId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
+ public boolean hasTableId() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+
/**
* optional int64 tableId = 1;
*
@@ -8409,13 +8225,13 @@ public final class CanalEntry {
* *tableId,由数据库产生*
*
*/
- public long getTableId() {
- return tableId_;
- }
+ public long getTableId() {
+ return tableId_;
+ }
+
+ public static final int EVENTTYPE_FIELD_NUMBER = 2;
+ private com.alibaba.otter.canal.protocol.CanalEntry.EventType eventType_;
- public static final int EVENTTYPE_FIELD_NUMBER = 2;
- private com.alibaba.otter.canal.protocol.CanalEntry.EventType eventType_;
-
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
*
@@ -8423,10 +8239,10 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- public boolean hasEventType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
+ public boolean hasEventType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
*
@@ -8434,13 +8250,13 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() {
- return eventType_;
- }
+ public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() {
+ return eventType_;
+ }
+
+ public static final int ISDDL_FIELD_NUMBER = 10;
+ private boolean isDdl_;
- public static final int ISDDL_FIELD_NUMBER = 10;
- private boolean isDdl_;
-
/**
* optional bool isDdl = 10 [default = false];
*
@@ -8448,10 +8264,10 @@ public final class CanalEntry {
* * 标识是否是ddl语句 *
*
*/
- public boolean hasIsDdl() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
-
+ public boolean hasIsDdl() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+
/**
* optional bool isDdl = 10 [default = false];
*
@@ -8459,46 +8275,13 @@ public final class CanalEntry {
* * 标识是否是ddl语句 *
*
*/
- public boolean getIsDdl() {
- return isDdl_;
- }
-
- public static final int SQL_FIELD_NUMBER = 11;
- private java.lang.Object sql_;
-
- /**
- * optional string sql = 11;
- *
- * - * * ddl/query的sql语句 * - *- */ - public boolean hasSql() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - - /** - *
optional string sql = 11;
- *
- * - * * ddl/query的sql语句 * - *- */ - public java.lang.String getSql() { - java.lang.Object ref = sql_; - 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()) { - sql_ = s; + public boolean getIsDdl() { + return isDdl_; } - return s; - } - } - + + public static final int SQL_FIELD_NUMBER = 11; + private java.lang.Object sql_; + /** *
optional string sql = 11;
*
@@ -8506,176 +8289,168 @@ public final class CanalEntry {
* * ddl/query的sql语句 *
*
*/
- public com.google.protobuf.ByteString
- getSqlBytes() {
- java.lang.Object ref = sql_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- sql_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int ROWDATAS_FIELD_NUMBER = 12;
- private java.util.Listrepeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- * - * * 一次数据库变更可能存在多行 * - *- */ - public java.util.List
repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- * - * * 一次数据库变更可能存在多行 * - *- */ - public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder> - getRowDatasOrBuilderList() { - return rowDatas_; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- * - * * 一次数据库变更可能存在多行 * - *- */ - public int getRowDatasCount() { - return rowDatas_.size(); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- * - * * 一次数据库变更可能存在多行 * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.RowData getRowDatas(int index) { - return rowDatas_.get(index); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- * - * * 一次数据库变更可能存在多行 * - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder getRowDatasOrBuilder( - int index) { - return rowDatas_.get(index); - } - - public static final int PROPS_FIELD_NUMBER = 13; - private java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- * - * *预留扩展* - *- */ - public java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- * - * *预留扩展* - *- */ - public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> - getPropsOrBuilderList() { - return props_; - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- * - * *预留扩展* - *- */ - public int getPropsCount() { - return props_.size(); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { - return props_.get(index); - } - - /** - *
repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- * - * *预留扩展* - *- */ - public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder( - int index) { - return props_.get(index); - } - - public static final int DDLSCHEMANAME_FIELD_NUMBER = 14; - private java.lang.Object ddlSchemaName_; - - /** - *
optional string ddlSchemaName = 14;
- *
- * - * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName * - *- */ - public boolean hasDdlSchemaName() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - - /** - *
optional string ddlSchemaName = 14;
- *
- * - * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName * - *- */ - public java.lang.String getDdlSchemaName() { - java.lang.Object ref = ddlSchemaName_; - 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()) { - ddlSchemaName_ = s; + public boolean hasSql() { + return ((bitField0_ & 0x00000008) == 0x00000008); } - return s; - } - } - + + /** + *
optional string sql = 11;
+ *
+ * + * * ddl/query的sql语句 * + *+ */ + public java.lang.String getSql() { + java.lang.Object ref = sql_; + 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()) { + sql_ = s; + } + return s; + } + } + + /** + *
optional string sql = 11;
+ *
+ * + * * ddl/query的sql语句 * + *+ */ + public com.google.protobuf.ByteString getSqlBytes() { + java.lang.Object ref = sql_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sql_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROWDATAS_FIELD_NUMBER = 12; + private java.util.List
repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ * + * * 一次数据库变更可能存在多行 * + *+ */ + public java.util.List
repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ * + * * 一次数据库变更可能存在多行 * + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder> getRowDatasOrBuilderList() { + return rowDatas_; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ * + * * 一次数据库变更可能存在多行 * + *+ */ + public int getRowDatasCount() { + return rowDatas_.size(); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ * + * * 一次数据库变更可能存在多行 * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.RowData getRowDatas(int index) { + return rowDatas_.get(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ * + * * 一次数据库变更可能存在多行 * + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder getRowDatasOrBuilder(int index) { + return rowDatas_.get(index); + } + + public static final int PROPS_FIELD_NUMBER = 13; + private java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List
repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ * + * *预留扩展* + *+ */ + public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() { + return props_; + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ * + * *预留扩展* + *+ */ + public int getPropsCount() { + return props_.size(); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) { + return props_.get(index); + } + + /** + *
repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ * + * *预留扩展* + *+ */ + public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) { + return props_.get(index); + } + + public static final int DDLSCHEMANAME_FIELD_NUMBER = 14; + private java.lang.Object ddlSchemaName_; + /** *
optional string ddlSchemaName = 14;
*
@@ -8683,179 +8458,213 @@ public final class CanalEntry {
* * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
*/
- public com.google.protobuf.ByteString
- getDdlSchemaNameBytes() {
- java.lang.Object ref = ddlSchemaName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- ddlSchemaName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
+ public boolean hasDdlSchemaName() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
- private void initFields() {
- tableId_ = 0L;
- eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
- isDdl_ = false;
- sql_ = "";
- rowDatas_ = java.util.Collections.emptyList();
- props_ = java.util.Collections.emptyList();
- ddlSchemaName_ = "";
- }
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ /**
+ * optional string ddlSchemaName = 14;
+ *
+ * + * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName * + *+ */ + public java.lang.String getDdlSchemaName() { + java.lang.Object ref = ddlSchemaName_; + 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()) { + ddlSchemaName_ = s; + } + return s; + } + } - memoizedIsInitialized = 1; - return true; - } + /** + *
optional string ddlSchemaName = 14;
+ *
+ * + * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName * + *+ */ + public com.google.protobuf.ByteString getDdlSchemaNameBytes() { + java.lang.Object ref = ddlSchemaName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ddlSchemaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, tableId_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, eventType_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(10, isDdl_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(11, getSqlBytes()); - } - for (int i = 0; i < rowDatas_.size(); i++) { - output.writeMessage(12, rowDatas_.get(i)); - } - for (int i = 0; i < props_.size(); i++) { - output.writeMessage(13, props_.get(i)); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(14, getDdlSchemaNameBytes()); - } - getUnknownFields().writeTo(output); - } + private void initFields() { + tableId_ = 0L; + eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE; + isDdl_ = false; + sql_ = ""; + rowDatas_ = java.util.Collections.emptyList(); + props_ = java.util.Collections.emptyList(); + ddlSchemaName_ = ""; + } - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; + private byte memoizedIsInitialized = -1; - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, tableId_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, eventType_.getNumber()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, isDdl_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getSqlBytes()); - } - for (int i = 0; i < rowDatas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, rowDatas_.get(i)); - } - for (int i = 0; i < props_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, props_.get(i)); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, getDdlSchemaNameBytes()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSerializedSize = size; - return size; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } + memoizedIsInitialized = 1; + return true; + } - public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt64(1, tableId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeEnum(2, eventType_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(10, isDdl_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBytes(11, getSqlBytes()); + } + for (int i = 0; i < rowDatas_.size(); i++) { + output.writeMessage(12, rowDatas_.get(i)); + } + for (int i = 0; i < props_.size(); i++) { + output.writeMessage(13, props_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBytes(14, getDdlSchemaNameBytes()); + } + getUnknownFields().writeTo(output); + } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.RowChange prototype) { - return newBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { return newBuilder(this); } + private int memoizedSerializedSize = -1; + + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, tableId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, eventType_.getNumber()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, isDdl_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, getSqlBytes()); + } + for (int i = 0; i < rowDatas_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, rowDatas_.get(i)); + } + for (int i = 0; i < props_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, props_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(14, getDdlSchemaNameBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + + @java.lang.Override + protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseDelimitedFrom(java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + + public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { + return Builder.create(); + } + + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.RowChange prototype) { + return newBuilder().mergeFrom(prototype); + } + + public Builder toBuilder() { + return newBuilder(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** * Protobuf type {@code com.alibaba.otter.canal.protocol.RowChange} * @@ -8863,248 +8672,242 @@ public final class CanalEntry { * *message row 每行变更数据的数据结构* * */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder
optional int64 tableId = 1;
*
@@ -9112,10 +8915,10 @@ public final class CanalEntry {
* *tableId,由数据库产生*
*
*/
- public boolean hasTableId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
+ public boolean hasTableId() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+
/**
* optional int64 tableId = 1;
*
@@ -9123,10 +8926,10 @@ public final class CanalEntry {
* *tableId,由数据库产生*
*
*/
- public long getTableId() {
- return tableId_;
- }
-
+ public long getTableId() {
+ return tableId_;
+ }
+
/**
* optional int64 tableId = 1;
*
@@ -9134,13 +8937,13 @@ public final class CanalEntry {
* *tableId,由数据库产生*
*
*/
- public Builder setTableId(long value) {
- bitField0_ |= 0x00000001;
- tableId_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setTableId(long value) {
+ bitField0_ |= 0x00000001;
+ tableId_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional int64 tableId = 1;
*
@@ -9148,15 +8951,15 @@ public final class CanalEntry {
* *tableId,由数据库产生*
*
*/
- public Builder clearTableId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- tableId_ = 0L;
- onChanged();
- return this;
- }
+ public Builder clearTableId() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ tableId_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private com.alibaba.otter.canal.protocol.CanalEntry.EventType eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
- private com.alibaba.otter.canal.protocol.CanalEntry.EventType eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
-
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
*
@@ -9164,10 +8967,10 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- public boolean hasEventType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
+ public boolean hasEventType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
*
@@ -9175,10 +8978,10 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() {
- return eventType_;
- }
-
+ public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() {
+ return eventType_;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
*
@@ -9186,16 +8989,16 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- public Builder setEventType(com.alibaba.otter.canal.protocol.CanalEntry.EventType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- eventType_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setEventType(com.alibaba.otter.canal.protocol.CanalEntry.EventType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ eventType_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
*
@@ -9203,15 +9006,15 @@ public final class CanalEntry {
* *数据变更类型*
*
*/
- public Builder clearEventType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
- onChanged();
- return this;
- }
+ public Builder clearEventType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
+ onChanged();
+ return this;
+ }
+
+ private boolean isDdl_;
- private boolean isDdl_ ;
-
/**
* optional bool isDdl = 10 [default = false];
*
@@ -9219,10 +9022,10 @@ public final class CanalEntry {
* * 标识是否是ddl语句 *
*
*/
- public boolean hasIsDdl() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
-
+ public boolean hasIsDdl() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+
/**
* optional bool isDdl = 10 [default = false];
*
@@ -9230,10 +9033,10 @@ public final class CanalEntry {
* * 标识是否是ddl语句 *
*
*/
- public boolean getIsDdl() {
- return isDdl_;
- }
-
+ public boolean getIsDdl() {
+ return isDdl_;
+ }
+
/**
* optional bool isDdl = 10 [default = false];
*
@@ -9241,13 +9044,13 @@ public final class CanalEntry {
* * 标识是否是ddl语句 *
*
*/
- public Builder setIsDdl(boolean value) {
- bitField0_ |= 0x00000004;
- isDdl_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setIsDdl(boolean value) {
+ bitField0_ |= 0x00000004;
+ isDdl_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional bool isDdl = 10 [default = false];
*
@@ -9255,15 +9058,15 @@ public final class CanalEntry {
* * 标识是否是ddl语句 *
*
*/
- public Builder clearIsDdl() {
- bitField0_ = (bitField0_ & ~0x00000004);
- isDdl_ = false;
- onChanged();
- return this;
- }
+ public Builder clearIsDdl() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ isDdl_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sql_ = "";
- private java.lang.Object sql_ = "";
-
/**
* optional string sql = 11;
*
@@ -9271,10 +9074,10 @@ public final class CanalEntry {
* * ddl/query的sql语句 *
*
*/
- public boolean hasSql() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
-
+ public boolean hasSql() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+
/**
* optional string sql = 11;
*
@@ -9282,21 +9085,20 @@ public final class CanalEntry {
* * ddl/query的sql语句 *
*
*/
- public java.lang.String getSql() {
- java.lang.Object ref = sql_;
- 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()) {
- sql_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
+ public java.lang.String getSql() {
+ java.lang.Object ref = sql_;
+ 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()) {
+ sql_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+
/**
* optional string sql = 11;
*
@@ -9304,20 +9106,17 @@ public final class CanalEntry {
* * ddl/query的sql语句 *
*
*/
- public com.google.protobuf.ByteString
- getSqlBytes() {
- java.lang.Object ref = sql_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- sql_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
+ public com.google.protobuf.ByteString getSqlBytes() {
+ java.lang.Object ref = sql_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sql_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
/**
* optional string sql = 11;
*
@@ -9325,17 +9124,16 @@ public final class CanalEntry {
* * ddl/query的sql语句 *
*
*/
- public Builder setSql(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- sql_ = value;
- onChanged();
- return this;
- }
-
+ public Builder setSql(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ sql_ = value;
+ onChanged();
+ return this;
+ }
+
/**
* optional string sql = 11;
*
@@ -9343,13 +9141,13 @@ public final class CanalEntry {
* * ddl/query的sql语句 *
*
*/
- public Builder clearSql() {
- bitField0_ = (bitField0_ & ~0x00000008);
- sql_ = getDefaultInstance().getSql();
- onChanged();
- return this;
- }
-
+ public Builder clearSql() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ sql_ = getDefaultInstance().getSql();
+ onChanged();
+ return this;
+ }
+
/**
* optional string sql = 11;
*
@@ -9357,28 +9155,26 @@ public final class CanalEntry {
* * ddl/query的sql语句 *
*
*/
- public Builder setSqlBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- sql_ = value;
- onChanged();
- return this;
- }
+ public Builder setSqlBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ sql_ = value;
+ onChanged();
+ return this;
+ }
- private java.util.List