getBeforeColumnsList() {
if (beforeColumnsBuilder_ == null) {
return java.util.Collections.unmodifiableList(beforeColumns_);
} else {
@@ -6758,11 +6990,11 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
public int getBeforeColumnsCount() {
if (beforeColumnsBuilder_ == null) {
@@ -6772,13 +7004,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
- public Column getBeforeColumns(int index) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Column getBeforeColumns(int index) {
if (beforeColumnsBuilder_ == null) {
return beforeColumns_.get(index);
} else {
@@ -6786,14 +7018,14 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
public Builder setBeforeColumns(
- int index, Column value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
if (beforeColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -6807,14 +7039,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
public Builder setBeforeColumns(
- int index, Column.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
if (beforeColumnsBuilder_ == null) {
ensureBeforeColumnsIsMutable();
beforeColumns_.set(index, builderForValue.build());
@@ -6825,13 +7057,13 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
- public Builder addBeforeColumns(Column value) {
+ public Builder addBeforeColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
if (beforeColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -6845,14 +7077,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
public Builder addBeforeColumns(
- int index, Column value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
if (beforeColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -6866,14 +7098,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
public Builder addBeforeColumns(
- Column.Builder builderForValue) {
+ com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
if (beforeColumnsBuilder_ == null) {
ensureBeforeColumnsIsMutable();
beforeColumns_.add(builderForValue.build());
@@ -6884,14 +7116,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
public Builder addBeforeColumns(
- int index, Column.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
if (beforeColumnsBuilder_ == null) {
ensureBeforeColumnsIsMutable();
beforeColumns_.add(index, builderForValue.build());
@@ -6902,14 +7134,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
public Builder addAllBeforeColumns(
- Iterable extends Column> values) {
+ java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Column> values) {
if (beforeColumnsBuilder_ == null) {
ensureBeforeColumnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -6921,11 +7153,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
public Builder clearBeforeColumns() {
if (beforeColumnsBuilder_ == null) {
@@ -6938,11 +7170,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
public Builder removeBeforeColumns(int index) {
if (beforeColumnsBuilder_ == null) {
@@ -6955,24 +7187,24 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
- public Column.Builder getBeforeColumnsBuilder(
+ 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;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
- public ColumnOrBuilder getBeforeColumnsOrBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getBeforeColumnsOrBuilder(
int index) {
if (beforeColumnsBuilder_ == null) {
return beforeColumns_.get(index); } else {
@@ -6980,13 +7212,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
- public java.util.List extends ColumnOrBuilder>
+ public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder>
getBeforeColumnsOrBuilderList() {
if (beforeColumnsBuilder_ != null) {
return beforeColumnsBuilder_.getMessageOrBuilderList();
@@ -6995,45 +7227,45 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
- public Column.Builder addBeforeColumnsBuilder() {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addBeforeColumnsBuilder() {
return getBeforeColumnsFieldBuilder().addBuilder(
- Column.getDefaultInstance());
+ com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
- public Column.Builder addBeforeColumnsBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addBeforeColumnsBuilder(
int index) {
return getBeforeColumnsFieldBuilder().addBuilder(
- index, Column.getDefaultInstance());
+ index, com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
*
** 字段信息,增量数据(修改前,删除前) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
*/
- public java.util.List
+ public java.util.List
getBeforeColumnsBuilderList() {
return getBeforeColumnsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
- Column, Column.Builder, ColumnOrBuilder>
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Column, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder, com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder>
getBeforeColumnsFieldBuilder() {
if (beforeColumnsBuilder_ == null) {
- beforeColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- Column, Column.Builder, ColumnOrBuilder>(
+ beforeColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Column, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder, com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder>(
beforeColumns_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
@@ -7043,26 +7275,26 @@ public final class CanalEntry {
return beforeColumnsBuilder_;
}
- private java.util.List afterColumns_ =
+ private java.util.List afterColumns_ =
java.util.Collections.emptyList();
private void ensureAfterColumnsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- afterColumns_ = new java.util.ArrayList(afterColumns_);
+ afterColumns_ = new java.util.ArrayList(afterColumns_);
bitField0_ |= 0x00000002;
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
- Column, Column.Builder, ColumnOrBuilder> afterColumnsBuilder_;
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ 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 afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
- public java.util.List getAfterColumnsList() {
+ public java.util.List getAfterColumnsList() {
if (afterColumnsBuilder_ == null) {
return java.util.Collections.unmodifiableList(afterColumns_);
} else {
@@ -7070,11 +7302,11 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
public int getAfterColumnsCount() {
if (afterColumnsBuilder_ == null) {
@@ -7084,13 +7316,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
- public Column getAfterColumns(int index) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Column getAfterColumns(int index) {
if (afterColumnsBuilder_ == null) {
return afterColumns_.get(index);
} else {
@@ -7098,14 +7330,14 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
public Builder setAfterColumns(
- int index, Column value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
if (afterColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -7119,14 +7351,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
public Builder setAfterColumns(
- int index, Column.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
if (afterColumnsBuilder_ == null) {
ensureAfterColumnsIsMutable();
afterColumns_.set(index, builderForValue.build());
@@ -7137,13 +7369,13 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
- public Builder addAfterColumns(Column value) {
+ public Builder addAfterColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
if (afterColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -7157,14 +7389,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
public Builder addAfterColumns(
- int index, Column value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
if (afterColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -7178,14 +7410,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
public Builder addAfterColumns(
- Column.Builder builderForValue) {
+ com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
if (afterColumnsBuilder_ == null) {
ensureAfterColumnsIsMutable();
afterColumns_.add(builderForValue.build());
@@ -7196,14 +7428,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
public Builder addAfterColumns(
- int index, Column.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
if (afterColumnsBuilder_ == null) {
ensureAfterColumnsIsMutable();
afterColumns_.add(index, builderForValue.build());
@@ -7214,14 +7446,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
public Builder addAllAfterColumns(
- Iterable extends Column> values) {
+ java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Column> values) {
if (afterColumnsBuilder_ == null) {
ensureAfterColumnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -7233,11 +7465,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
public Builder clearAfterColumns() {
if (afterColumnsBuilder_ == null) {
@@ -7250,11 +7482,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
public Builder removeAfterColumns(int index) {
if (afterColumnsBuilder_ == null) {
@@ -7267,24 +7499,24 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
- public Column.Builder getAfterColumnsBuilder(
+ 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;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
- public ColumnOrBuilder getAfterColumnsOrBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getAfterColumnsOrBuilder(
int index) {
if (afterColumnsBuilder_ == null) {
return afterColumns_.get(index); } else {
@@ -7292,13 +7524,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
- public java.util.List extends ColumnOrBuilder>
+ public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder>
getAfterColumnsOrBuilderList() {
if (afterColumnsBuilder_ != null) {
return afterColumnsBuilder_.getMessageOrBuilderList();
@@ -7307,45 +7539,45 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
- public Column.Builder addAfterColumnsBuilder() {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addAfterColumnsBuilder() {
return getAfterColumnsFieldBuilder().addBuilder(
- Column.getDefaultInstance());
+ com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
- public Column.Builder addAfterColumnsBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addAfterColumnsBuilder(
int index) {
return getAfterColumnsFieldBuilder().addBuilder(
- index, Column.getDefaultInstance());
+ index, com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
*
** 字段信息,增量数据(修改后,新增后) *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
*/
- public java.util.List
+ public java.util.List
getAfterColumnsBuilderList() {
return getAfterColumnsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
- Column, Column.Builder, ColumnOrBuilder>
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Column, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder, com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder>
getAfterColumnsFieldBuilder() {
if (afterColumnsBuilder_ == null) {
- afterColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- Column, Column.Builder, ColumnOrBuilder>(
+ afterColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Column, com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder, com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder>(
afterColumns_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
@@ -7355,26 +7587,26 @@ public final class CanalEntry {
return afterColumnsBuilder_;
}
- private java.util.List props_ =
+ private java.util.List props_ =
java.util.Collections.emptyList();
private void ensurePropsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = new java.util.ArrayList(props_);
+ props_ = new java.util.ArrayList(props_);
bitField0_ |= 0x00000004;
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder> propsBuilder_;
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ 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.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List getPropsList() {
+ public java.util.List getPropsList() {
if (propsBuilder_ == null) {
return java.util.Collections.unmodifiableList(props_);
} else {
@@ -7382,11 +7614,11 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public int getPropsCount() {
if (propsBuilder_ == null) {
@@ -7396,13 +7628,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair getProps(int index) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
if (propsBuilder_ == null) {
return props_.get(index);
} else {
@@ -7410,14 +7642,14 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder setProps(
- int index, Pair value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -7431,14 +7663,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder setProps(
- int index, Pair.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.set(index, builderForValue.build());
@@ -7449,13 +7681,13 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Builder addProps(Pair value) {
+ public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -7469,14 +7701,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addProps(
- int index, Pair value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -7490,14 +7722,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addProps(
- Pair.Builder builderForValue) {
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.add(builderForValue.build());
@@ -7508,14 +7740,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addProps(
- int index, Pair.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.add(index, builderForValue.build());
@@ -7526,14 +7758,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addAllProps(
- Iterable extends Pair> values) {
+ java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -7545,11 +7777,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder clearProps() {
if (propsBuilder_ == null) {
@@ -7562,11 +7794,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder removeProps(int index) {
if (propsBuilder_ == null) {
@@ -7579,24 +7811,24 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair.Builder getPropsBuilder(
+ 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;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public PairOrBuilder getPropsOrBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
int index) {
if (propsBuilder_ == null) {
return props_.get(index); } else {
@@ -7604,13 +7836,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List extends PairOrBuilder>
+ public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsOrBuilderList() {
if (propsBuilder_ != null) {
return propsBuilder_.getMessageOrBuilderList();
@@ -7619,45 +7851,45 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair.Builder addPropsBuilder() {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() {
return getPropsFieldBuilder().addBuilder(
- Pair.getDefaultInstance());
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair.Builder addPropsBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder(
int index) {
return getPropsFieldBuilder().addBuilder(
- index, Pair.getDefaultInstance());
+ index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List
+ public java.util.List
getPropsBuilderList() {
return getPropsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder>
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder, com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsFieldBuilder() {
if (propsBuilder_ == null) {
- propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder>(
+ propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder, com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>(
props_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
@@ -7666,16 +7898,57 @@ public final class CanalEntry {
}
return propsBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.RowData)
}
+ // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.RowData)
+ private static final com.alibaba.otter.canal.protocol.CanalEntry.RowData DEFAULT_INSTANCE;
static {
- defaultInstance = new RowData(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new com.alibaba.otter.canal.protocol.CanalEntry.RowData();
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.RowData getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public RowData parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new RowData(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowData getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.RowData)
}
public interface RowChangeOrBuilder extends
@@ -7683,232 +7956,193 @@ public final class CanalEntry {
com.google.protobuf.MessageOrBuilder {
/**
- * optional int64 tableId = 1;
- *
*
**tableId,由数据库产生*
*
- */
- boolean hasTableId();
- /**
- * optional int64 tableId = 1;
*
- *
- **tableId,由数据库产生*
- *
+ * int64 tableId = 1;
*/
long getTableId();
/**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- **数据变更类型*
- *
+ * .com.alibaba.otter.canal.protocol.EventType eventType = 2;
*/
- boolean hasEventType();
+ int getEventTypeValue();
/**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- **数据变更类型*
- *
+ * .com.alibaba.otter.canal.protocol.EventType eventType = 2;
*/
- EventType getEventType();
+ com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType();
/**
- * optional bool isDdl = 10 [default = false];
- *
- *
- ** 标识是否是ddl语句 *
- *
- */
- boolean hasIsDdl();
- /**
- * optional bool isDdl = 10 [default = false];
- *
- *
- ** 标识是否是ddl语句 *
- *
+ * bool isDdl = 10;
*/
boolean getIsDdl();
/**
- * optional string sql = 11;
- *
*
** ddl/query的sql语句 *
*
+ *
+ * string sql = 11;
*/
- boolean hasSql();
+ java.lang.String getSql();
/**
- * optional string sql = 11;
- *
*
** ddl/query的sql语句 *
*
- */
- String getSql();
- /**
- * optional string sql = 11;
*
- *
- ** ddl/query的sql语句 *
- *
+ * string sql = 11;
*/
com.google.protobuf.ByteString
getSqlBytes();
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- java.util.List
+ java.util.List
getRowDatasList();
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- RowData getRowDatas(int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.RowData getRowDatas(int index);
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
int getRowDatasCount();
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- java.util.List extends RowDataOrBuilder>
+ java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder>
getRowDatasOrBuilderList();
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- RowDataOrBuilder getRowDatasOrBuilder(int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder getRowDatasOrBuilder(
+ int index);
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- java.util.List
+ java.util.List
getPropsList();
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- Pair getProps(int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
int getPropsCount();
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- java.util.List extends PairOrBuilder>
+ java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsOrBuilderList();
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- PairOrBuilder getPropsOrBuilder(int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
+ int index);
/**
- * optional string ddlSchemaName = 14;
- *
*
** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
+ *
+ * string ddlSchemaName = 14;
*/
- boolean hasDdlSchemaName();
+ java.lang.String getDdlSchemaName();
/**
- * optional string ddlSchemaName = 14;
- *
*
** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
- */
- String getDdlSchemaName();
- /**
- * optional string ddlSchemaName = 14;
*
- *
- ** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
- *
+ * string ddlSchemaName = 14;
*/
com.google.protobuf.ByteString
getDdlSchemaNameBytes();
+
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowChange.EventTypePresentCase getEventTypePresentCase();
+
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowChange.IsDdlPresentCase getIsDdlPresentCase();
}
/**
- * Protobuf type {@code com.alibaba.otter.canal.protocol.RowChange}
- *
*
**message row 每行变更数据的数据结构*
*
+ *
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.RowChange}
*/
- public static final class RowChange extends
- com.google.protobuf.GeneratedMessage implements
+ public static final class RowChange extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.RowChange)
RowChangeOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use RowChange.newBuilder() to construct.
- private RowChange(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private RowChange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private RowChange(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final RowChange defaultInstance;
- public static RowChange getDefaultInstance() {
- return defaultInstance;
+ private RowChange() {
+ tableId_ = 0L;
+ sql_ = "";
+ rowDatas_ = java.util.Collections.emptyList();
+ props_ = java.util.Collections.emptyList();
+ ddlSchemaName_ = "";
}
- public RowChange getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @Override
+ @java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private RowChange(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -7920,60 +8154,57 @@ public final class CanalEntry {
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();
- EventType value = EventType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(2, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- eventType_ = value;
- }
+ eventTypePresentCase_ = 2;
+ eventTypePresent_ = rawValue;
break;
}
case 80: {
- bitField0_ |= 0x00000004;
- isDdl_ = input.readBool();
+ isDdlPresentCase_ = 10;
+ isDdlPresent_ = input.readBool();
break;
}
case 90: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000008;
- sql_ = bs;
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sql_ = s;
break;
}
case 98: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- rowDatas_ = new java.util.ArrayList();
+ rowDatas_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
- rowDatas_.add(input.readMessage(RowData.PARSER, extensionRegistry));
+ rowDatas_.add(
+ input.readMessage(com.alibaba.otter.canal.protocol.CanalEntry.RowData.parser(), extensionRegistry));
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- props_ = new java.util.ArrayList();
+ props_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
- props_.add(input.readMessage(Pair.PARSER, extensionRegistry));
+ props_.add(
+ input.readMessage(com.alibaba.otter.canal.protocol.CanalEntry.Pair.parser(), extensionRegistry));
break;
}
case 114: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000010;
- ddlSchemaName_ = bs;
+ java.lang.String s = input.readStringRequireUtf8();
+
+ ddlSchemaName_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -7982,7 +8213,7 @@ public final class CanalEntry {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
rowDatas_ = java.util.Collections.unmodifiableList(rowDatas_);
@@ -7996,148 +8227,172 @@ public final class CanalEntry {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
}
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_fieldAccessorTable
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- RowChange.class, Builder.class);
- }
-
- public static com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- public RowChange parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new RowChange(input, extensionRegistry);
- }
- };
-
- @Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
+ com.alibaba.otter.canal.protocol.CanalEntry.RowChange.class, com.alibaba.otter.canal.protocol.CanalEntry.RowChange.Builder.class);
}
private int bitField0_;
+ private int eventTypePresentCase_ = 0;
+ private java.lang.Object eventTypePresent_;
+ public enum EventTypePresentCase
+ implements com.google.protobuf.Internal.EnumLite {
+ EVENTTYPE(2),
+ EVENTTYPEPRESENT_NOT_SET(0);
+ private final int value;
+ private EventTypePresentCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EventTypePresentCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static EventTypePresentCase forNumber(int value) {
+ switch (value) {
+ case 2: return EVENTTYPE;
+ case 0: return EVENTTYPEPRESENT_NOT_SET;
+ default: return null;
+ }
+ }
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public EventTypePresentCase
+ getEventTypePresentCase() {
+ return EventTypePresentCase.forNumber(
+ eventTypePresentCase_);
+ }
+
+ private int isDdlPresentCase_ = 0;
+ private java.lang.Object isDdlPresent_;
+ public enum IsDdlPresentCase
+ implements com.google.protobuf.Internal.EnumLite {
+ ISDDL(10),
+ ISDDLPRESENT_NOT_SET(0);
+ private final int value;
+ private IsDdlPresentCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static IsDdlPresentCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static IsDdlPresentCase forNumber(int value) {
+ switch (value) {
+ case 10: return ISDDL;
+ case 0: return ISDDLPRESENT_NOT_SET;
+ default: return null;
+ }
+ }
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public IsDdlPresentCase
+ getIsDdlPresentCase() {
+ return IsDdlPresentCase.forNumber(
+ isDdlPresentCase_);
+ }
+
public static final int TABLEID_FIELD_NUMBER = 1;
private long tableId_;
/**
- * optional int64 tableId = 1;
- *
*
**tableId,由数据库产生*
*
- */
- public boolean hasTableId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional int64 tableId = 1;
*
- *
- **tableId,由数据库产生*
- *
+ * int64 tableId = 1;
*/
public long getTableId() {
return tableId_;
}
public static final int EVENTTYPE_FIELD_NUMBER = 2;
- private EventType eventType_;
/**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- **数据变更类型*
- *
+ * .com.alibaba.otter.canal.protocol.EventType eventType = 2;
*/
- public boolean hasEventType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ public int getEventTypeValue() {
+ if (eventTypePresentCase_ == 2) {
+ return (java.lang.Integer) eventTypePresent_;
+ }
+ return 0;
}
/**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- **数据变更类型*
- *
+ * .com.alibaba.otter.canal.protocol.EventType eventType = 2;
*/
- public EventType getEventType() {
- return eventType_;
+ public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() {
+ if (eventTypePresentCase_ == 2) {
+ @SuppressWarnings("deprecation")
+ com.alibaba.otter.canal.protocol.CanalEntry.EventType result = com.alibaba.otter.canal.protocol.CanalEntry.EventType.valueOf(
+ (java.lang.Integer) eventTypePresent_);
+ return result == null ? com.alibaba.otter.canal.protocol.CanalEntry.EventType.UNRECOGNIZED : result;
+ }
+ return EventType.UPDATE;
}
public static final int ISDDL_FIELD_NUMBER = 10;
- private boolean isDdl_;
/**
- * optional bool isDdl = 10 [default = false];
- *
- *
- ** 标识是否是ddl语句 *
- *
- */
- public boolean hasIsDdl() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional bool isDdl = 10 [default = false];
- *
- *
- ** 标识是否是ddl语句 *
- *
+ * bool isDdl = 10;
*/
public boolean getIsDdl() {
- return isDdl_;
+ if (isDdlPresentCase_ == 10) {
+ return (java.lang.Boolean) isDdlPresent_;
+ }
+ return false;
}
public static final int SQL_FIELD_NUMBER = 11;
- private Object sql_;
+ private volatile 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语句 *
- *
+ * string sql = 11;
*/
- public String getSql() {
- Object ref = sql_;
- if (ref instanceof String) {
- return (String) ref;
+ 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;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- sql_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ sql_ = s;
return s;
}
}
/**
- * optional string sql = 11;
- *
*
** ddl/query的sql语句 *
*
+ *
+ * string sql = 11;
*/
public com.google.protobuf.ByteString
getSqlBytes() {
- Object ref = sql_;
- if (ref instanceof String) {
+ java.lang.Object ref = sql_;
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
sql_ = b;
return b;
} else {
@@ -8146,162 +8401,150 @@ public final class CanalEntry {
}
public static final int ROWDATAS_FIELD_NUMBER = 12;
- private java.util.List rowDatas_;
+ private java.util.List rowDatas_;
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public java.util.List getRowDatasList() {
+ public java.util.List getRowDatasList() {
return rowDatas_;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public java.util.List extends RowDataOrBuilder>
+ public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder>
getRowDatasOrBuilderList() {
return rowDatas_;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
public int getRowDatasCount() {
return rowDatas_.size();
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public RowData getRowDatas(int index) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowData getRowDatas(int index) {
return rowDatas_.get(index);
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public RowDataOrBuilder getRowDatasOrBuilder(
+ 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 props_;
+ private java.util.List props_;
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public java.util.List getPropsList() {
+ public java.util.List getPropsList() {
return props_;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public java.util.List extends PairOrBuilder>
+ public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsOrBuilderList() {
return props_;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
public int getPropsCount() {
return props_.size();
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public Pair getProps(int index) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
return props_.get(index);
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public PairOrBuilder getPropsOrBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
int index) {
return props_.get(index);
}
public static final int DDLSCHEMANAME_FIELD_NUMBER = 14;
- private Object ddlSchemaName_;
+ private volatile 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 *
- *
+ * string ddlSchemaName = 14;
*/
- public String getDdlSchemaName() {
- Object ref = ddlSchemaName_;
- if (ref instanceof String) {
- return (String) ref;
+ 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;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- ddlSchemaName_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ ddlSchemaName_ = s;
return s;
}
}
/**
- * optional string ddlSchemaName = 14;
- *
*
** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
+ *
+ * string ddlSchemaName = 14;
*/
public com.google.protobuf.ByteString
getDdlSchemaNameBytes() {
- Object ref = ddlSchemaName_;
- if (ref instanceof String) {
+ java.lang.Object ref = ddlSchemaName_;
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
ddlSchemaName_ = b;
return b;
} else {
@@ -8309,16 +8552,8 @@ public final class CanalEntry {
}
}
- private void initFields() {
- tableId_ = 0L;
- eventType_ = EventType.UPDATE;
- isDdl_ = false;
- sql_ = "";
- rowDatas_ = java.util.Collections.emptyList();
- props_ = java.util.Collections.emptyList();
- ddlSchemaName_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -8328,20 +8563,21 @@ public final class CanalEntry {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (tableId_ != 0L) {
output.writeInt64(1, tableId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, eventType_.getNumber());
+ if (eventTypePresentCase_ == 2) {
+ output.writeEnum(2, ((java.lang.Integer) eventTypePresent_));
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBool(10, isDdl_);
+ if (isDdlPresentCase_ == 10) {
+ output.writeBool(
+ 10, (boolean)((java.lang.Boolean) isDdlPresent_));
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(11, getSqlBytes());
+ if (!getSqlBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 11, sql_);
}
for (int i = 0; i < rowDatas_.size(); i++) {
output.writeMessage(12, rowDatas_.get(i));
@@ -8349,33 +8585,33 @@ public final class CanalEntry {
for (int i = 0; i < props_.size(); i++) {
output.writeMessage(13, props_.get(i));
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(14, getDdlSchemaNameBytes());
+ if (!getDdlSchemaNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 14, ddlSchemaName_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (tableId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, tableId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (eventTypePresentCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, eventType_.getNumber());
+ .computeEnumSize(2, ((java.lang.Integer) eventTypePresent_));
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (isDdlPresentCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(10, isDdl_);
+ .computeBoolSize(
+ 10, (boolean)((java.lang.Boolean) isDdlPresent_));
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(11, getSqlBytes());
+ if (!getSqlBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, sql_);
}
for (int i = 0; i < rowDatas_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -8385,109 +8621,217 @@ public final class CanalEntry {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, props_.get(i));
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(14, getDdlSchemaNameBytes());
+ if (!getDdlSchemaNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, ddlSchemaName_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- protected Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alibaba.otter.canal.protocol.CanalEntry.RowChange)) {
+ return super.equals(obj);
+ }
+ com.alibaba.otter.canal.protocol.CanalEntry.RowChange other = (com.alibaba.otter.canal.protocol.CanalEntry.RowChange) obj;
+
+ boolean result = true;
+ result = result && (getTableId()
+ == other.getTableId());
+ result = result && getSql()
+ .equals(other.getSql());
+ result = result && getRowDatasList()
+ .equals(other.getRowDatasList());
+ result = result && getPropsList()
+ .equals(other.getPropsList());
+ result = result && getDdlSchemaName()
+ .equals(other.getDdlSchemaName());
+ result = result && getEventTypePresentCase().equals(
+ other.getEventTypePresentCase());
+ if (!result) return false;
+ switch (eventTypePresentCase_) {
+ case 2:
+ result = result && getEventTypeValue()
+ == other.getEventTypeValue();
+ break;
+ case 0:
+ default:
+ }
+ result = result && getIsDdlPresentCase().equals(
+ other.getIsDdlPresentCase());
+ if (!result) return false;
+ switch (isDdlPresentCase_) {
+ case 10:
+ result = result && (getIsDdl()
+ == other.getIsDdl());
+ break;
+ case 0:
+ default:
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
- public static RowChange parseFrom(
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TABLEID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getTableId());
+ hash = (37 * hash) + SQL_FIELD_NUMBER;
+ hash = (53 * hash) + getSql().hashCode();
+ if (getRowDatasCount() > 0) {
+ hash = (37 * hash) + ROWDATAS_FIELD_NUMBER;
+ hash = (53 * hash) + getRowDatasList().hashCode();
+ }
+ if (getPropsCount() > 0) {
+ hash = (37 * hash) + PROPS_FIELD_NUMBER;
+ hash = (53 * hash) + getPropsList().hashCode();
+ }
+ hash = (37 * hash) + DDLSCHEMANAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDdlSchemaName().hashCode();
+ switch (eventTypePresentCase_) {
+ case 2:
+ hash = (37 * hash) + EVENTTYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getEventTypeValue();
+ break;
+ case 0:
+ default:
+ }
+ switch (isDdlPresentCase_) {
+ case 10:
+ hash = (37 * hash) + ISDDL_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsDdl());
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(
+ java.nio.ByteBuffer 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(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static RowChange parseFrom(
+ 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 RowChange parseFrom(byte[] data)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static RowChange parseFrom(
+ 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 RowChange parseFrom(java.io.InputStream input)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
- public static RowChange parseFrom(
+ 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);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static RowChange parseDelimitedFrom(java.io.InputStream input)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
- public static RowChange parseDelimitedFrom(
+ 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);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static RowChange parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
- public static RowChange parseFrom(
+ 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);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(RowChange prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.RowChange prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
- BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code com.alibaba.otter.canal.protocol.RowChange}
- *
*
**message row 每行变更数据的数据结构*
*
+ *
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.RowChange}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.otter.canal.protocol.RowChange)
- RowChangeOrBuilder {
+ com.alibaba.otter.canal.protocol.CanalEntry.RowChangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
}
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_fieldAccessorTable
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- RowChange.class, Builder.class);
+ com.alibaba.otter.canal.protocol.CanalEntry.RowChange.class, com.alibaba.otter.canal.protocol.CanalEntry.RowChange.Builder.class);
}
// Construct using com.alibaba.otter.canal.protocol.CanalEntry.RowChange.newBuilder()
@@ -8496,30 +8840,24 @@ public final class CanalEntry {
}
private Builder(
- BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getRowDatasFieldBuilder();
getPropsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
tableId_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- eventType_ = EventType.UPDATE;
- bitField0_ = (bitField0_ & ~0x00000002);
- isDdl_ = false;
- bitField0_ = (bitField0_ & ~0x00000004);
+
sql_ = "";
- bitField0_ = (bitField0_ & ~0x00000008);
+
if (rowDatasBuilder_ == null) {
rowDatas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
@@ -8533,49 +8871,45 @@ public final class CanalEntry {
propsBuilder_.clear();
}
ddlSchemaName_ = "";
- bitField0_ = (bitField0_ & ~0x00000040);
+
+ eventTypePresentCase_ = 0;
+ eventTypePresent_ = null;
+ isDdlPresentCase_ = 0;
+ isDdlPresent_ = null;
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
}
- public RowChange getDefaultInstanceForType() {
- return RowChange.getDefaultInstance();
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowChange getDefaultInstanceForType() {
+ return com.alibaba.otter.canal.protocol.CanalEntry.RowChange.getDefaultInstance();
}
- public RowChange build() {
- RowChange result = buildPartial();
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowChange build() {
+ com.alibaba.otter.canal.protocol.CanalEntry.RowChange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public RowChange buildPartial() {
- RowChange result = new RowChange(this);
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowChange buildPartial() {
+ com.alibaba.otter.canal.protocol.CanalEntry.RowChange result = new com.alibaba.otter.canal.protocol.CanalEntry.RowChange(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
result.tableId_ = tableId_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
+ if (eventTypePresentCase_ == 2) {
+ result.eventTypePresent_ = eventTypePresent_;
}
- result.eventType_ = eventType_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.isDdl_ = isDdl_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
+ if (isDdlPresentCase_ == 10) {
+ result.isDdlPresent_ = isDdlPresent_;
}
result.sql_ = sql_;
if (rowDatasBuilder_ == null) {
@@ -8596,37 +8930,62 @@ public final class CanalEntry {
} else {
result.props_ = propsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
- to_bitField0_ |= 0x00000010;
- }
result.ddlSchemaName_ = ddlSchemaName_;
result.bitField0_ = to_bitField0_;
+ result.eventTypePresentCase_ = eventTypePresentCase_;
+ result.isDdlPresentCase_ = isDdlPresentCase_;
onBuilt();
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof RowChange) {
- return mergeFrom((RowChange)other);
+ if (other instanceof com.alibaba.otter.canal.protocol.CanalEntry.RowChange) {
+ return mergeFrom((com.alibaba.otter.canal.protocol.CanalEntry.RowChange)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(RowChange other) {
- if (other == RowChange.getDefaultInstance()) return this;
- if (other.hasTableId()) {
+ public Builder mergeFrom(com.alibaba.otter.canal.protocol.CanalEntry.RowChange other) {
+ if (other == com.alibaba.otter.canal.protocol.CanalEntry.RowChange.getDefaultInstance()) return this;
+ if (other.getTableId() != 0L) {
setTableId(other.getTableId());
}
- if (other.hasEventType()) {
- setEventType(other.getEventType());
- }
- if (other.hasIsDdl()) {
- setIsDdl(other.getIsDdl());
- }
- if (other.hasSql()) {
- bitField0_ |= 0x00000008;
+ if (!other.getSql().isEmpty()) {
sql_ = other.sql_;
onChanged();
}
@@ -8649,7 +9008,7 @@ public final class CanalEntry {
rowDatas_ = other.rowDatas_;
bitField0_ = (bitField0_ & ~0x00000010);
rowDatasBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRowDatasFieldBuilder() : null;
} else {
rowDatasBuilder_.addAllMessages(other.rowDatas_);
@@ -8675,36 +9034,56 @@ public final class CanalEntry {
props_ = other.props_;
bitField0_ = (bitField0_ & ~0x00000020);
propsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropsFieldBuilder() : null;
} else {
propsBuilder_.addAllMessages(other.props_);
}
}
}
- if (other.hasDdlSchemaName()) {
- bitField0_ |= 0x00000040;
+ if (!other.getDdlSchemaName().isEmpty()) {
ddlSchemaName_ = other.ddlSchemaName_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ switch (other.getEventTypePresentCase()) {
+ case EVENTTYPE: {
+ setEventTypeValue(other.getEventTypeValue());
+ break;
+ }
+ case EVENTTYPEPRESENT_NOT_SET: {
+ break;
+ }
+ }
+ switch (other.getIsDdlPresentCase()) {
+ case ISDDL: {
+ setIsDdl(other.getIsDdl());
+ break;
+ }
+ case ISDDLPRESENT_NOT_SET: {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- RowChange parsedMessage = null;
+ com.alibaba.otter.canal.protocol.CanalEntry.RowChange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (RowChange) e.getUnfinishedMessage();
- throw e;
+ parsedMessage = (com.alibaba.otter.canal.protocol.CanalEntry.RowChange) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -8712,201 +9091,194 @@ public final class CanalEntry {
}
return this;
}
+ private int eventTypePresentCase_ = 0;
+ private java.lang.Object eventTypePresent_;
+ public EventTypePresentCase
+ getEventTypePresentCase() {
+ return EventTypePresentCase.forNumber(
+ eventTypePresentCase_);
+ }
+
+ public Builder clearEventTypePresent() {
+ eventTypePresentCase_ = 0;
+ eventTypePresent_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int isDdlPresentCase_ = 0;
+ private java.lang.Object isDdlPresent_;
+ public IsDdlPresentCase
+ getIsDdlPresentCase() {
+ return IsDdlPresentCase.forNumber(
+ isDdlPresentCase_);
+ }
+
+ public Builder clearIsDdlPresent() {
+ isDdlPresentCase_ = 0;
+ isDdlPresent_ = null;
+ onChanged();
+ return this;
+ }
+
private int bitField0_;
private long tableId_ ;
/**
- * optional int64 tableId = 1;
- *
*
**tableId,由数据库产生*
*
- */
- public boolean hasTableId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional int64 tableId = 1;
*
- *
- **tableId,由数据库产生*
- *
+ * int64 tableId = 1;
*/
public long getTableId() {
return tableId_;
}
/**
- * optional int64 tableId = 1;
- *
*
**tableId,由数据库产生*
*
+ *
+ * int64 tableId = 1;
*/
public Builder setTableId(long value) {
- bitField0_ |= 0x00000001;
+
tableId_ = value;
onChanged();
return this;
}
/**
- * optional int64 tableId = 1;
- *
*
**tableId,由数据库产生*
*
+ *
+ * int64 tableId = 1;
*/
public Builder clearTableId() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
tableId_ = 0L;
onChanged();
return this;
}
- private EventType eventType_ = EventType.UPDATE;
/**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- **数据变更类型*
- *
+ * .com.alibaba.otter.canal.protocol.EventType eventType = 2;
*/
- public boolean hasEventType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ public int getEventTypeValue() {
+ if (eventTypePresentCase_ == 2) {
+ return ((java.lang.Integer) eventTypePresent_).intValue();
+ }
+ return 0;
}
/**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- **数据变更类型*
- *
+ * .com.alibaba.otter.canal.protocol.EventType eventType = 2;
*/
- public EventType getEventType() {
- return eventType_;
+ public Builder setEventTypeValue(int value) {
+ eventTypePresentCase_ = 2;
+ eventTypePresent_ = value;
+ onChanged();
+ return this;
}
/**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- **数据变更类型*
- *
+ * .com.alibaba.otter.canal.protocol.EventType eventType = 2;
*/
- public Builder setEventType(EventType value) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() {
+ if (eventTypePresentCase_ == 2) {
+ @SuppressWarnings("deprecation")
+ com.alibaba.otter.canal.protocol.CanalEntry.EventType result = com.alibaba.otter.canal.protocol.CanalEntry.EventType.valueOf(
+ (java.lang.Integer) eventTypePresent_);
+ return result == null ? com.alibaba.otter.canal.protocol.CanalEntry.EventType.UNRECOGNIZED : result;
+ }
+ return com.alibaba.otter.canal.protocol.CanalEntry.EventType.EVENTTYPECOMPATIBLEPROTO2;
+ }
+ /**
+ * .com.alibaba.otter.canal.protocol.EventType eventType = 2;
+ */
+ public Builder setEventType(com.alibaba.otter.canal.protocol.CanalEntry.EventType value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
- eventType_ = value;
+ eventTypePresentCase_ = 2;
+ eventTypePresent_ = value.getNumber();
onChanged();
return this;
}
/**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- **数据变更类型*
- *
+ * .com.alibaba.otter.canal.protocol.EventType eventType = 2;
*/
public Builder clearEventType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- eventType_ = EventType.UPDATE;
- onChanged();
+ if (eventTypePresentCase_ == 2) {
+ eventTypePresentCase_ = 0;
+ eventTypePresent_ = null;
+ onChanged();
+ }
return this;
}
- private boolean isDdl_ ;
/**
- * optional bool isDdl = 10 [default = false];
- *
- *
- ** 标识是否是ddl语句 *
- *
- */
- public boolean hasIsDdl() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional bool isDdl = 10 [default = false];
- *
- *
- ** 标识是否是ddl语句 *
- *
+ * bool isDdl = 10;
*/
public boolean getIsDdl() {
- return isDdl_;
+ if (isDdlPresentCase_ == 10) {
+ return (java.lang.Boolean) isDdlPresent_;
+ }
+ return false;
}
/**
- * optional bool isDdl = 10 [default = false];
- *
- *
- ** 标识是否是ddl语句 *
- *
+ * bool isDdl = 10;
*/
public Builder setIsDdl(boolean value) {
- bitField0_ |= 0x00000004;
- isDdl_ = value;
+ isDdlPresentCase_ = 10;
+ isDdlPresent_ = value;
onChanged();
return this;
}
/**
- * optional bool isDdl = 10 [default = false];
- *
- *
- ** 标识是否是ddl语句 *
- *
+ * bool isDdl = 10;
*/
public Builder clearIsDdl() {
- bitField0_ = (bitField0_ & ~0x00000004);
- isDdl_ = false;
- onChanged();
+ if (isDdlPresentCase_ == 10) {
+ isDdlPresentCase_ = 0;
+ isDdlPresent_ = null;
+ onChanged();
+ }
return this;
}
- private Object sql_ = "";
+ 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语句 *
- *
+ * string sql = 11;
*/
- public String getSql() {
- Object ref = sql_;
- if (!(ref instanceof String)) {
+ 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;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- sql_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ sql_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
- * optional string sql = 11;
- *
*
** ddl/query的sql语句 *
*
+ *
+ * string sql = 11;
*/
public com.google.protobuf.ByteString
getSqlBytes() {
- Object ref = sql_;
+ java.lang.Object ref = sql_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
sql_ = b;
return b;
} else {
@@ -8914,73 +9286,74 @@ public final class CanalEntry {
}
}
/**
- * optional string sql = 11;
- *
*
** ddl/query的sql语句 *
*
+ *
+ * string sql = 11;
*/
public Builder setSql(
- String value) {
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000008;
+
sql_ = value;
onChanged();
return this;
}
/**
- * optional string sql = 11;
- *
*
** ddl/query的sql语句 *
*
+ *
+ * string sql = 11;
*/
public Builder clearSql() {
- bitField0_ = (bitField0_ & ~0x00000008);
+
sql_ = getDefaultInstance().getSql();
onChanged();
return this;
}
/**
- * optional string sql = 11;
- *
*
** ddl/query的sql语句 *
*
+ *
+ * string sql = 11;
*/
public Builder setSqlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000008;
+ checkByteStringIsUtf8(value);
+
sql_ = value;
onChanged();
return this;
}
- private java.util.List rowDatas_ =
+ private java.util.List rowDatas_ =
java.util.Collections.emptyList();
private void ensureRowDatasIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
- rowDatas_ = new java.util.ArrayList(rowDatas_);
+ rowDatas_ = new java.util.ArrayList(rowDatas_);
bitField0_ |= 0x00000010;
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
- RowData, RowData.Builder, RowDataOrBuilder> rowDatasBuilder_;
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.RowData, com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder, com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder> rowDatasBuilder_;
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public java.util.List getRowDatasList() {
+ public java.util.List getRowDatasList() {
if (rowDatasBuilder_ == null) {
return java.util.Collections.unmodifiableList(rowDatas_);
} else {
@@ -8988,11 +9361,11 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
public int getRowDatasCount() {
if (rowDatasBuilder_ == null) {
@@ -9002,13 +9375,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public RowData getRowDatas(int index) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowData getRowDatas(int index) {
if (rowDatasBuilder_ == null) {
return rowDatas_.get(index);
} else {
@@ -9016,14 +9389,14 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
public Builder setRowDatas(
- int index, RowData value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.RowData value) {
if (rowDatasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -9037,14 +9410,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
public Builder setRowDatas(
- int index, RowData.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder builderForValue) {
if (rowDatasBuilder_ == null) {
ensureRowDatasIsMutable();
rowDatas_.set(index, builderForValue.build());
@@ -9055,13 +9428,13 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public Builder addRowDatas(RowData value) {
+ public Builder addRowDatas(com.alibaba.otter.canal.protocol.CanalEntry.RowData value) {
if (rowDatasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -9075,14 +9448,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
public Builder addRowDatas(
- int index, RowData value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.RowData value) {
if (rowDatasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -9096,14 +9469,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
public Builder addRowDatas(
- RowData.Builder builderForValue) {
+ com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder builderForValue) {
if (rowDatasBuilder_ == null) {
ensureRowDatasIsMutable();
rowDatas_.add(builderForValue.build());
@@ -9114,14 +9487,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
public Builder addRowDatas(
- int index, RowData.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder builderForValue) {
if (rowDatasBuilder_ == null) {
ensureRowDatasIsMutable();
rowDatas_.add(index, builderForValue.build());
@@ -9132,14 +9505,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
public Builder addAllRowDatas(
- Iterable extends RowData> values) {
+ java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.RowData> values) {
if (rowDatasBuilder_ == null) {
ensureRowDatasIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -9151,11 +9524,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
public Builder clearRowDatas() {
if (rowDatasBuilder_ == null) {
@@ -9168,11 +9541,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
public Builder removeRowDatas(int index) {
if (rowDatasBuilder_ == null) {
@@ -9185,24 +9558,24 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public RowData.Builder getRowDatasBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder getRowDatasBuilder(
int index) {
return getRowDatasFieldBuilder().getBuilder(index);
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public RowDataOrBuilder getRowDatasOrBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder getRowDatasOrBuilder(
int index) {
if (rowDatasBuilder_ == null) {
return rowDatas_.get(index); } else {
@@ -9210,13 +9583,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public java.util.List extends RowDataOrBuilder>
+ public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder>
getRowDatasOrBuilderList() {
if (rowDatasBuilder_ != null) {
return rowDatasBuilder_.getMessageOrBuilderList();
@@ -9225,45 +9598,45 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public RowData.Builder addRowDatasBuilder() {
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder addRowDatasBuilder() {
return getRowDatasFieldBuilder().addBuilder(
- RowData.getDefaultInstance());
+ com.alibaba.otter.canal.protocol.CanalEntry.RowData.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public RowData.Builder addRowDatasBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder addRowDatasBuilder(
int index) {
return getRowDatasFieldBuilder().addBuilder(
- index, RowData.getDefaultInstance());
+ index, com.alibaba.otter.canal.protocol.CanalEntry.RowData.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
*
** 一次数据库变更可能存在多行 *
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
*/
- public java.util.List
+ public java.util.List
getRowDatasBuilderList() {
return getRowDatasFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
- RowData, RowData.Builder, RowDataOrBuilder>
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.RowData, com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder, com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder>
getRowDatasFieldBuilder() {
if (rowDatasBuilder_ == null) {
- rowDatasBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- RowData, RowData.Builder, RowDataOrBuilder>(
+ rowDatasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.RowData, com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder, com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder>(
rowDatas_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
@@ -9273,26 +9646,26 @@ public final class CanalEntry {
return rowDatasBuilder_;
}
- private java.util.List props_ =
+ private java.util.List props_ =
java.util.Collections.emptyList();
private void ensurePropsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
- props_ = new java.util.ArrayList(props_);
+ props_ = new java.util.ArrayList(props_);
bitField0_ |= 0x00000020;
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder> propsBuilder_;
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ 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.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public java.util.List getPropsList() {
+ public java.util.List getPropsList() {
if (propsBuilder_ == null) {
return java.util.Collections.unmodifiableList(props_);
} else {
@@ -9300,11 +9673,11 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
public int getPropsCount() {
if (propsBuilder_ == null) {
@@ -9314,13 +9687,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public Pair getProps(int index) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
if (propsBuilder_ == null) {
return props_.get(index);
} else {
@@ -9328,14 +9701,14 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
public Builder setProps(
- int index, Pair value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -9349,14 +9722,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
public Builder setProps(
- int index, Pair.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.set(index, builderForValue.build());
@@ -9367,13 +9740,13 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public Builder addProps(Pair value) {
+ public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -9387,14 +9760,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
public Builder addProps(
- int index, Pair value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -9408,14 +9781,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
public Builder addProps(
- Pair.Builder builderForValue) {
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.add(builderForValue.build());
@@ -9426,14 +9799,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
public Builder addProps(
- int index, Pair.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.add(index, builderForValue.build());
@@ -9444,14 +9817,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
public Builder addAllProps(
- Iterable extends Pair> values) {
+ java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -9463,11 +9836,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
public Builder clearProps() {
if (propsBuilder_ == null) {
@@ -9480,11 +9853,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
public Builder removeProps(int index) {
if (propsBuilder_ == null) {
@@ -9497,24 +9870,24 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public Pair.Builder getPropsBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder getPropsBuilder(
int index) {
return getPropsFieldBuilder().getBuilder(index);
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public PairOrBuilder getPropsOrBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
int index) {
if (propsBuilder_ == null) {
return props_.get(index); } else {
@@ -9522,13 +9895,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public java.util.List extends PairOrBuilder>
+ public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsOrBuilderList() {
if (propsBuilder_ != null) {
return propsBuilder_.getMessageOrBuilderList();
@@ -9537,45 +9910,45 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public Pair.Builder addPropsBuilder() {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() {
return getPropsFieldBuilder().addBuilder(
- Pair.getDefaultInstance());
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public Pair.Builder addPropsBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder(
int index) {
return getPropsFieldBuilder().addBuilder(
- index, Pair.getDefaultInstance());
+ index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
*/
- public java.util.List
+ public java.util.List
getPropsBuilderList() {
return getPropsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder>
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder, com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsFieldBuilder() {
if (propsBuilder_ == null) {
- propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder>(
+ propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder, com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>(
props_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
@@ -9585,52 +9958,40 @@ public final class CanalEntry {
return propsBuilder_;
}
- private Object ddlSchemaName_ = "";
+ private java.lang.Object ddlSchemaName_ = "";
/**
- * optional string ddlSchemaName = 14;
- *
*
** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
- */
- public boolean hasDdlSchemaName() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
- }
- /**
- * optional string ddlSchemaName = 14;
*
- *
- ** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
- *
+ * string ddlSchemaName = 14;
*/
- public String getDdlSchemaName() {
- Object ref = ddlSchemaName_;
- if (!(ref instanceof String)) {
+ public java.lang.String getDdlSchemaName() {
+ java.lang.Object ref = ddlSchemaName_;
+ if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- ddlSchemaName_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ ddlSchemaName_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
- * optional string ddlSchemaName = 14;
- *
*
** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
+ *
+ * string ddlSchemaName = 14;
*/
public com.google.protobuf.ByteString
getDdlSchemaNameBytes() {
- Object ref = ddlSchemaName_;
+ java.lang.Object ref = ddlSchemaName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
ddlSchemaName_ = b;
return b;
} else {
@@ -9638,62 +9999,104 @@ public final class CanalEntry {
}
}
/**
- * optional string ddlSchemaName = 14;
- *
*
** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
+ *
+ * string ddlSchemaName = 14;
*/
public Builder setDdlSchemaName(
- String value) {
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000040;
+
ddlSchemaName_ = value;
onChanged();
return this;
}
/**
- * optional string ddlSchemaName = 14;
- *
*
** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
+ *
+ * string ddlSchemaName = 14;
*/
public Builder clearDdlSchemaName() {
- bitField0_ = (bitField0_ & ~0x00000040);
+
ddlSchemaName_ = getDefaultInstance().getDdlSchemaName();
onChanged();
return this;
}
/**
- * optional string ddlSchemaName = 14;
- *
*
** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
*
+ *
+ * string ddlSchemaName = 14;
*/
public Builder setDdlSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000040;
+ checkByteStringIsUtf8(value);
+
ddlSchemaName_ = value;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.RowChange)
}
+ // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.RowChange)
+ private static final com.alibaba.otter.canal.protocol.CanalEntry.RowChange DEFAULT_INSTANCE;
static {
- defaultInstance = new RowChange(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new com.alibaba.otter.canal.protocol.CanalEntry.RowChange();
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public RowChange parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new RowChange(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.RowChange getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.RowChange)
}
public interface TransactionBeginOrBuilder extends
@@ -9701,146 +10104,121 @@ public final class CanalEntry {
com.google.protobuf.MessageOrBuilder {
/**
- * optional int64 executeTime = 1;
- *
*
**已废弃,请使用header里的executeTime*
*
- */
- boolean hasExecuteTime();
- /**
- * optional int64 executeTime = 1;
*
- *
- **已废弃,请使用header里的executeTime*
- *
+ * int64 executeTime = 1;
*/
long getExecuteTime();
/**
- * optional string transactionId = 2;
- *
*
**已废弃,Begin里不提供事务id*
*
+ *
+ * string transactionId = 2;
*/
- boolean hasTransactionId();
+ java.lang.String getTransactionId();
/**
- * optional string transactionId = 2;
- *
*
**已废弃,Begin里不提供事务id*
*
- */
- String getTransactionId();
- /**
- * optional string transactionId = 2;
*
- *
- **已废弃,Begin里不提供事务id*
- *
+ * string transactionId = 2;
*/
com.google.protobuf.ByteString
getTransactionIdBytes();
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- java.util.List
+ java.util.List
getPropsList();
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- Pair getProps(int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
int getPropsCount();
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- java.util.List extends PairOrBuilder>
+ java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsOrBuilderList();
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- PairOrBuilder getPropsOrBuilder(int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
+ int index);
/**
- * optional int64 threadId = 4;
- *
*
**执行的thread Id*
*
- */
- boolean hasThreadId();
- /**
- * optional int64 threadId = 4;
*
- *
- **执行的thread Id*
- *
+ * int64 threadId = 4;
*/
long getThreadId();
}
/**
- * Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionBegin}
- *
*
**开始事务的一些信息*
*
+ *
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionBegin}
*/
- public static final class TransactionBegin extends
- com.google.protobuf.GeneratedMessage implements
+ public static final class TransactionBegin extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.TransactionBegin)
TransactionBeginOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use TransactionBegin.newBuilder() to construct.
- private TransactionBegin(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private TransactionBegin(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private TransactionBegin(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final TransactionBegin defaultInstance;
- public static TransactionBegin getDefaultInstance() {
- return defaultInstance;
+ private TransactionBegin() {
+ executeTime_ = 0L;
+ transactionId_ = "";
+ props_ = java.util.Collections.emptyList();
+ threadId_ = 0L;
}
- public TransactionBegin getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @Override
+ @java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private TransactionBegin(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -9852,44 +10230,45 @@ public final class CanalEntry {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
- bitField0_ |= 0x00000001;
+
executeTime_ = input.readInt64();
break;
}
case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- transactionId_ = bs;
+ java.lang.String s = input.readStringRequireUtf8();
+
+ transactionId_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = new java.util.ArrayList();
+ props_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
- props_.add(input.readMessage(Pair.PARSER, extensionRegistry));
+ props_.add(
+ input.readMessage(com.alibaba.otter.canal.protocol.CanalEntry.Pair.parser(), extensionRegistry));
break;
}
case 32: {
- bitField0_ |= 0x00000004;
+
threadId_ = input.readInt64();
break;
}
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
props_ = java.util.Collections.unmodifiableList(props_);
@@ -9900,102 +10279,66 @@ public final class CanalEntry {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
}
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_fieldAccessorTable
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- TransactionBegin.class, Builder.class);
- }
-
- public static com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- public TransactionBegin parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new TransactionBegin(input, extensionRegistry);
- }
- };
-
- @Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.class, com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.Builder.class);
}
private int bitField0_;
public static final int EXECUTETIME_FIELD_NUMBER = 1;
private long executeTime_;
/**
- * optional int64 executeTime = 1;
- *
*
**已废弃,请使用header里的executeTime*
*
- */
- public boolean hasExecuteTime() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional int64 executeTime = 1;
*
- *
- **已废弃,请使用header里的executeTime*
- *
+ * int64 executeTime = 1;
*/
public long getExecuteTime() {
return executeTime_;
}
public static final int TRANSACTIONID_FIELD_NUMBER = 2;
- private Object transactionId_;
+ private volatile java.lang.Object transactionId_;
/**
- * optional string transactionId = 2;
- *
*
**已废弃,Begin里不提供事务id*
*
- */
- public boolean hasTransactionId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional string transactionId = 2;
*
- *
- **已废弃,Begin里不提供事务id*
- *
+ * string transactionId = 2;
*/
- public String getTransactionId() {
- Object ref = transactionId_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getTransactionId() {
+ java.lang.Object ref = transactionId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- transactionId_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ transactionId_ = s;
return s;
}
}
/**
- * optional string transactionId = 2;
- *
*
**已废弃,Begin里不提供事务id*
*
+ *
+ * string transactionId = 2;
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
- Object ref = transactionId_;
- if (ref instanceof String) {
+ java.lang.Object ref = transactionId_;
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
transactionId_ = b;
return b;
} else {
@@ -10004,56 +10347,56 @@ public final class CanalEntry {
}
public static final int PROPS_FIELD_NUMBER = 3;
- private java.util.List props_;
+ private java.util.List props_;
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List getPropsList() {
+ public java.util.List getPropsList() {
return props_;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List extends PairOrBuilder>
+ public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsOrBuilderList() {
return props_;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public int getPropsCount() {
return props_.size();
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair getProps(int index) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
return props_.get(index);
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public PairOrBuilder getPropsOrBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
int index) {
return props_.get(index);
}
@@ -10061,33 +10404,18 @@ public final class CanalEntry {
public static final int THREADID_FIELD_NUMBER = 4;
private long threadId_;
/**
- * optional int64 threadId = 4;
- *
*
**执行的thread Id*
*
- */
- public boolean hasThreadId() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * optional int64 threadId = 4;
*
- *
- **执行的thread Id*
- *
+ * int64 threadId = 4;
*/
public long getThreadId() {
return threadId_;
}
- private void initFields() {
- executeTime_ = 0L;
- transactionId_ = "";
- props_ = java.util.Collections.emptyList();
- threadId_ = 0L;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -10097,145 +10425,209 @@ public final class CanalEntry {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (executeTime_ != 0L) {
output.writeInt64(1, executeTime_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getTransactionIdBytes());
+ if (!getTransactionIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, transactionId_);
}
for (int i = 0; i < props_.size(); i++) {
output.writeMessage(3, props_.get(i));
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (threadId_ != 0L) {
output.writeInt64(4, threadId_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (executeTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, executeTime_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getTransactionIdBytes());
+ if (!getTransactionIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, transactionId_);
}
for (int i = 0; i < props_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, props_.get(i));
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (threadId_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, threadId_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- protected Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin)) {
+ return super.equals(obj);
+ }
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin other = (com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin) obj;
+
+ boolean result = true;
+ result = result && (getExecuteTime()
+ == other.getExecuteTime());
+ result = result && getTransactionId()
+ .equals(other.getTransactionId());
+ result = result && getPropsList()
+ .equals(other.getPropsList());
+ result = result && (getThreadId()
+ == other.getThreadId());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
- public static TransactionBegin parseFrom(
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + EXECUTETIME_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getExecuteTime());
+ hash = (37 * hash) + TRANSACTIONID_FIELD_NUMBER;
+ hash = (53 * hash) + getTransactionId().hashCode();
+ if (getPropsCount() > 0) {
+ hash = (37 * hash) + PROPS_FIELD_NUMBER;
+ hash = (53 * hash) + getPropsList().hashCode();
+ }
+ hash = (37 * hash) + THREADID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getThreadId());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static TransactionBegin parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static TransactionBegin parseFrom(byte[] data)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static TransactionBegin parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static TransactionBegin parseFrom(java.io.InputStream input)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
- public static TransactionBegin parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static TransactionBegin parseDelimitedFrom(java.io.InputStream input)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
- public static TransactionBegin parseDelimitedFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static TransactionBegin parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
- public static TransactionBegin parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(TransactionBegin prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
- BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionBegin}
- *
*
**开始事务的一些信息*
*
+ *
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionBegin}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.otter.canal.protocol.TransactionBegin)
- TransactionBeginOrBuilder {
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionBeginOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
}
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_fieldAccessorTable
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- TransactionBegin.class, Builder.class);
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.class, com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.Builder.class);
}
// Construct using com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.newBuilder()
@@ -10244,25 +10636,23 @@ public final class CanalEntry {
}
private Builder(
- BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getPropsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
executeTime_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
+
transactionId_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
+
if (propsBuilder_ == null) {
props_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
@@ -10270,42 +10660,36 @@ public final class CanalEntry {
propsBuilder_.clear();
}
threadId_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
+
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
}
- public TransactionBegin getDefaultInstanceForType() {
- return TransactionBegin.getDefaultInstance();
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin getDefaultInstanceForType() {
+ return com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.getDefaultInstance();
}
- public TransactionBegin build() {
- TransactionBegin result = buildPartial();
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin build() {
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public TransactionBegin buildPartial() {
- TransactionBegin result = new TransactionBegin(this);
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin buildPartial() {
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin result = new com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
result.executeTime_ = executeTime_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
result.transactionId_ = transactionId_;
if (propsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
@@ -10316,31 +10700,60 @@ public final class CanalEntry {
} else {
result.props_ = propsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000004;
- }
result.threadId_ = threadId_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof TransactionBegin) {
- return mergeFrom((TransactionBegin)other);
+ if (other instanceof com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin) {
+ return mergeFrom((com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(TransactionBegin other) {
- if (other == TransactionBegin.getDefaultInstance()) return this;
- if (other.hasExecuteTime()) {
+ public Builder mergeFrom(com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin other) {
+ if (other == com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.getDefaultInstance()) return this;
+ if (other.getExecuteTime() != 0L) {
setExecuteTime(other.getExecuteTime());
}
- if (other.hasTransactionId()) {
- bitField0_ |= 0x00000002;
+ if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
onChanged();
}
@@ -10363,34 +10776,37 @@ public final class CanalEntry {
props_ = other.props_;
bitField0_ = (bitField0_ & ~0x00000004);
propsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropsFieldBuilder() : null;
} else {
propsBuilder_.addAllMessages(other.props_);
}
}
}
- if (other.hasThreadId()) {
+ if (other.getThreadId() != 0L) {
setThreadId(other.getThreadId());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- TransactionBegin parsedMessage = null;
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (TransactionBegin) e.getUnfinishedMessage();
- throw e;
+ parsedMessage = (com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -10402,98 +10818,76 @@ public final class CanalEntry {
private long executeTime_ ;
/**
- * optional int64 executeTime = 1;
- *
*
**已废弃,请使用header里的executeTime*
*
- */
- public boolean hasExecuteTime() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional int64 executeTime = 1;
*
- *
- **已废弃,请使用header里的executeTime*
- *
+ * int64 executeTime = 1;
*/
public long getExecuteTime() {
return executeTime_;
}
/**
- * optional int64 executeTime = 1;
- *
*
**已废弃,请使用header里的executeTime*
*
+ *
+ * int64 executeTime = 1;
*/
public Builder setExecuteTime(long value) {
- bitField0_ |= 0x00000001;
+
executeTime_ = value;
onChanged();
return this;
}
/**
- * optional int64 executeTime = 1;
- *
*
**已废弃,请使用header里的executeTime*
*
+ *
+ * int64 executeTime = 1;
*/
public Builder clearExecuteTime() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
executeTime_ = 0L;
onChanged();
return this;
}
- private Object transactionId_ = "";
+ private java.lang.Object transactionId_ = "";
/**
- * optional string transactionId = 2;
- *
*
**已废弃,Begin里不提供事务id*
*
- */
- public boolean hasTransactionId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional string transactionId = 2;
*
- *
- **已废弃,Begin里不提供事务id*
- *
+ * string transactionId = 2;
*/
- public String getTransactionId() {
- Object ref = transactionId_;
- if (!(ref instanceof String)) {
+ public java.lang.String getTransactionId() {
+ java.lang.Object ref = transactionId_;
+ if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- transactionId_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ transactionId_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
- * optional string transactionId = 2;
- *
*
**已废弃,Begin里不提供事务id*
*
+ *
+ * string transactionId = 2;
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
- Object ref = transactionId_;
+ java.lang.Object ref = transactionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
transactionId_ = b;
return b;
} else {
@@ -10501,73 +10895,74 @@ public final class CanalEntry {
}
}
/**
- * optional string transactionId = 2;
- *
*
**已废弃,Begin里不提供事务id*
*
+ *
+ * string transactionId = 2;
*/
public Builder setTransactionId(
- String value) {
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+
transactionId_ = value;
onChanged();
return this;
}
/**
- * optional string transactionId = 2;
- *
*
**已废弃,Begin里不提供事务id*
*
+ *
+ * string transactionId = 2;
*/
public Builder clearTransactionId() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
transactionId_ = getDefaultInstance().getTransactionId();
onChanged();
return this;
}
/**
- * optional string transactionId = 2;
- *
*
**已废弃,Begin里不提供事务id*
*
+ *
+ * string transactionId = 2;
*/
public Builder setTransactionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+ checkByteStringIsUtf8(value);
+
transactionId_ = value;
onChanged();
return this;
}
- private java.util.List props_ =
+ private java.util.List props_ =
java.util.Collections.emptyList();
private void ensurePropsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = new java.util.ArrayList(props_);
+ props_ = new java.util.ArrayList(props_);
bitField0_ |= 0x00000004;
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder> propsBuilder_;
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ 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.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List getPropsList() {
+ public java.util.List getPropsList() {
if (propsBuilder_ == null) {
return java.util.Collections.unmodifiableList(props_);
} else {
@@ -10575,11 +10970,11 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public int getPropsCount() {
if (propsBuilder_ == null) {
@@ -10589,13 +10984,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair getProps(int index) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
if (propsBuilder_ == null) {
return props_.get(index);
} else {
@@ -10603,14 +10998,14 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder setProps(
- int index, Pair value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -10624,14 +11019,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder setProps(
- int index, Pair.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.set(index, builderForValue.build());
@@ -10642,13 +11037,13 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Builder addProps(Pair value) {
+ public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -10662,14 +11057,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addProps(
- int index, Pair value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -10683,14 +11078,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addProps(
- Pair.Builder builderForValue) {
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.add(builderForValue.build());
@@ -10701,14 +11096,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addProps(
- int index, Pair.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.add(index, builderForValue.build());
@@ -10719,14 +11114,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addAllProps(
- Iterable extends Pair> values) {
+ java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -10738,11 +11133,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder clearProps() {
if (propsBuilder_ == null) {
@@ -10755,11 +11150,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder removeProps(int index) {
if (propsBuilder_ == null) {
@@ -10772,24 +11167,24 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair.Builder getPropsBuilder(
+ 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;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public PairOrBuilder getPropsOrBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
int index) {
if (propsBuilder_ == null) {
return props_.get(index); } else {
@@ -10797,13 +11192,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List extends PairOrBuilder>
+ public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsOrBuilderList() {
if (propsBuilder_ != null) {
return propsBuilder_.getMessageOrBuilderList();
@@ -10812,45 +11207,45 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair.Builder addPropsBuilder() {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() {
return getPropsFieldBuilder().addBuilder(
- Pair.getDefaultInstance());
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair.Builder addPropsBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder(
int index) {
return getPropsFieldBuilder().addBuilder(
- index, Pair.getDefaultInstance());
+ index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List
+ public java.util.List
getPropsBuilderList() {
return getPropsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder>
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder, com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsFieldBuilder() {
if (propsBuilder_ == null) {
- propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder>(
+ propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder, com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>(
props_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
@@ -10862,61 +11257,92 @@ public final class CanalEntry {
private long threadId_ ;
/**
- * optional int64 threadId = 4;
- *
*
**执行的thread Id*
*
- */
- public boolean hasThreadId() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * optional int64 threadId = 4;
*
- *
- **执行的thread Id*
- *
+ * int64 threadId = 4;
*/
public long getThreadId() {
return threadId_;
}
/**
- * optional int64 threadId = 4;
- *
*
**执行的thread Id*
*
+ *
+ * int64 threadId = 4;
*/
public Builder setThreadId(long value) {
- bitField0_ |= 0x00000008;
+
threadId_ = value;
onChanged();
return this;
}
/**
- * optional int64 threadId = 4;
- *
*
**执行的thread Id*
*
+ *
+ * int64 threadId = 4;
*/
public Builder clearThreadId() {
- bitField0_ = (bitField0_ & ~0x00000008);
+
threadId_ = 0L;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.TransactionBegin)
}
+ // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.TransactionBegin)
+ private static final com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin DEFAULT_INSTANCE;
static {
- defaultInstance = new TransactionBegin(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin();
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TransactionBegin parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TransactionBegin(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.TransactionBegin)
}
public interface TransactionEndOrBuilder extends
@@ -10924,129 +11350,111 @@ public final class CanalEntry {
com.google.protobuf.MessageOrBuilder {
/**
- * optional int64 executeTime = 1;
- *
*
**已废弃,请使用header里的executeTime*
*
- */
- boolean hasExecuteTime();
- /**
- * optional int64 executeTime = 1;
*
- *
- **已废弃,请使用header里的executeTime*
- *
+ * int64 executeTime = 1;
*/
long getExecuteTime();
/**
- * optional string transactionId = 2;
- *
*
**事务号*
*
+ *
+ * string transactionId = 2;
*/
- boolean hasTransactionId();
+ java.lang.String getTransactionId();
/**
- * optional string transactionId = 2;
- *
*
**事务号*
*
- */
- String getTransactionId();
- /**
- * optional string transactionId = 2;
*
- *
- **事务号*
- *
+ * string transactionId = 2;
*/
com.google.protobuf.ByteString
getTransactionIdBytes();
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- java.util.List
+ java.util.List
getPropsList();
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- Pair getProps(int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
int getPropsCount();
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- java.util.List extends PairOrBuilder>
+ java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsOrBuilderList();
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- PairOrBuilder getPropsOrBuilder(int index);
+ com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
+ int index);
}
/**
- * Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionEnd}
- *
*
**结束事务的一些信息*
*
+ *
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionEnd}
*/
- public static final class TransactionEnd extends
- com.google.protobuf.GeneratedMessage implements
+ public static final class TransactionEnd extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.TransactionEnd)
TransactionEndOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use TransactionEnd.newBuilder() to construct.
- private TransactionEnd(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private TransactionEnd(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private TransactionEnd(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final TransactionEnd defaultInstance;
- public static TransactionEnd getDefaultInstance() {
- return defaultInstance;
+ private TransactionEnd() {
+ executeTime_ = 0L;
+ transactionId_ = "";
+ props_ = java.util.Collections.emptyList();
}
- public TransactionEnd getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @Override
+ @java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private TransactionEnd(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -11058,30 +11466,31 @@ public final class CanalEntry {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 8: {
- bitField0_ |= 0x00000001;
+
executeTime_ = input.readInt64();
break;
}
case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- transactionId_ = bs;
+ java.lang.String s = input.readStringRequireUtf8();
+
+ transactionId_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = new java.util.ArrayList();
+ props_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
- props_.add(input.readMessage(Pair.PARSER, extensionRegistry));
+ props_.add(
+ input.readMessage(com.alibaba.otter.canal.protocol.CanalEntry.Pair.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -11090,7 +11499,7 @@ public final class CanalEntry {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
props_ = java.util.Collections.unmodifiableList(props_);
@@ -11101,102 +11510,66 @@ public final class CanalEntry {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
}
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_fieldAccessorTable
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- TransactionEnd.class, Builder.class);
- }
-
- public static com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- public TransactionEnd parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new TransactionEnd(input, extensionRegistry);
- }
- };
-
- @Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.class, com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.Builder.class);
}
private int bitField0_;
public static final int EXECUTETIME_FIELD_NUMBER = 1;
private long executeTime_;
/**
- * optional int64 executeTime = 1;
- *
*
**已废弃,请使用header里的executeTime*
*
- */
- public boolean hasExecuteTime() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional int64 executeTime = 1;
*
- *
- **已废弃,请使用header里的executeTime*
- *
+ * int64 executeTime = 1;
*/
public long getExecuteTime() {
return executeTime_;
}
public static final int TRANSACTIONID_FIELD_NUMBER = 2;
- private Object transactionId_;
+ private volatile java.lang.Object transactionId_;
/**
- * optional string transactionId = 2;
- *
*
**事务号*
*
- */
- public boolean hasTransactionId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional string transactionId = 2;
*
- *
- **事务号*
- *
+ * string transactionId = 2;
*/
- public String getTransactionId() {
- Object ref = transactionId_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getTransactionId() {
+ java.lang.Object ref = transactionId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- transactionId_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ transactionId_ = s;
return s;
}
}
/**
- * optional string transactionId = 2;
- *
*
**事务号*
*
+ *
+ * string transactionId = 2;
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
- Object ref = transactionId_;
- if (ref instanceof String) {
+ java.lang.Object ref = transactionId_;
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
transactionId_ = b;
return b;
} else {
@@ -11205,66 +11578,62 @@ public final class CanalEntry {
}
public static final int PROPS_FIELD_NUMBER = 3;
- private java.util.List props_;
+ private java.util.List props_;
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List getPropsList() {
+ public java.util.List getPropsList() {
return props_;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List extends PairOrBuilder>
+ public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsOrBuilderList() {
return props_;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public int getPropsCount() {
return props_.size();
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair getProps(int index) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
return props_.get(index);
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public PairOrBuilder getPropsOrBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
int index) {
return props_.get(index);
}
- private void initFields() {
- executeTime_ = 0L;
- transactionId_ = "";
- props_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -11274,138 +11643,197 @@ public final class CanalEntry {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (executeTime_ != 0L) {
output.writeInt64(1, executeTime_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getTransactionIdBytes());
+ if (!getTransactionIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, transactionId_);
}
for (int i = 0; i < props_.size(); i++) {
output.writeMessage(3, props_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (executeTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, executeTime_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getTransactionIdBytes());
+ if (!getTransactionIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, transactionId_);
}
for (int i = 0; i < props_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, props_.get(i));
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- protected Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd)) {
+ return super.equals(obj);
+ }
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd other = (com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd) obj;
+
+ boolean result = true;
+ result = result && (getExecuteTime()
+ == other.getExecuteTime());
+ result = result && getTransactionId()
+ .equals(other.getTransactionId());
+ result = result && getPropsList()
+ .equals(other.getPropsList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
- public static TransactionEnd parseFrom(
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + EXECUTETIME_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getExecuteTime());
+ hash = (37 * hash) + TRANSACTIONID_FIELD_NUMBER;
+ hash = (53 * hash) + getTransactionId().hashCode();
+ if (getPropsCount() > 0) {
+ hash = (37 * hash) + PROPS_FIELD_NUMBER;
+ hash = (53 * hash) + getPropsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static TransactionEnd parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static TransactionEnd parseFrom(byte[] data)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static TransactionEnd parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static TransactionEnd parseFrom(java.io.InputStream input)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
- public static TransactionEnd parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static TransactionEnd parseDelimitedFrom(java.io.InputStream input)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
- public static TransactionEnd parseDelimitedFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static TransactionEnd parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
- public static TransactionEnd parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(TransactionEnd prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
- BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionEnd}
- *
*
**结束事务的一些信息*
*
+ *
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionEnd}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.otter.canal.protocol.TransactionEnd)
- TransactionEndOrBuilder {
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionEndOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
}
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_fieldAccessorTable
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- TransactionEnd.class, Builder.class);
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.class, com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.Builder.class);
}
// Construct using com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.newBuilder()
@@ -11414,25 +11842,23 @@ public final class CanalEntry {
}
private Builder(
- BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
getPropsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
executeTime_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
+
transactionId_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
+
if (propsBuilder_ == null) {
props_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
@@ -11442,38 +11868,32 @@ public final class CanalEntry {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
}
- public TransactionEnd getDefaultInstanceForType() {
- return TransactionEnd.getDefaultInstance();
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd getDefaultInstanceForType() {
+ return com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.getDefaultInstance();
}
- public TransactionEnd build() {
- TransactionEnd result = buildPartial();
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd build() {
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public TransactionEnd buildPartial() {
- TransactionEnd result = new TransactionEnd(this);
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd buildPartial() {
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd result = new com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
result.executeTime_ = executeTime_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
result.transactionId_ = transactionId_;
if (propsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
@@ -11489,22 +11909,54 @@ public final class CanalEntry {
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof TransactionEnd) {
- return mergeFrom((TransactionEnd)other);
+ if (other instanceof com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd) {
+ return mergeFrom((com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(TransactionEnd other) {
- if (other == TransactionEnd.getDefaultInstance()) return this;
- if (other.hasExecuteTime()) {
+ public Builder mergeFrom(com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd other) {
+ if (other == com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.getDefaultInstance()) return this;
+ if (other.getExecuteTime() != 0L) {
setExecuteTime(other.getExecuteTime());
}
- if (other.hasTransactionId()) {
- bitField0_ |= 0x00000002;
+ if (!other.getTransactionId().isEmpty()) {
transactionId_ = other.transactionId_;
onChanged();
}
@@ -11527,31 +11979,34 @@ public final class CanalEntry {
props_ = other.props_;
bitField0_ = (bitField0_ & ~0x00000004);
propsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropsFieldBuilder() : null;
} else {
propsBuilder_.addAllMessages(other.props_);
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- TransactionEnd parsedMessage = null;
+ com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (TransactionEnd) e.getUnfinishedMessage();
- throw e;
+ parsedMessage = (com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -11563,98 +12018,76 @@ public final class CanalEntry {
private long executeTime_ ;
/**
- * optional int64 executeTime = 1;
- *
*
**已废弃,请使用header里的executeTime*
*
- */
- public boolean hasExecuteTime() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional int64 executeTime = 1;
*
- *
- **已废弃,请使用header里的executeTime*
- *
+ * int64 executeTime = 1;
*/
public long getExecuteTime() {
return executeTime_;
}
/**
- * optional int64 executeTime = 1;
- *
*
**已废弃,请使用header里的executeTime*
*
+ *
+ * int64 executeTime = 1;
*/
public Builder setExecuteTime(long value) {
- bitField0_ |= 0x00000001;
+
executeTime_ = value;
onChanged();
return this;
}
/**
- * optional int64 executeTime = 1;
- *
*
**已废弃,请使用header里的executeTime*
*
+ *
+ * int64 executeTime = 1;
*/
public Builder clearExecuteTime() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
executeTime_ = 0L;
onChanged();
return this;
}
- private Object transactionId_ = "";
+ private java.lang.Object transactionId_ = "";
/**
- * optional string transactionId = 2;
- *
*
**事务号*
*
- */
- public boolean hasTransactionId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional string transactionId = 2;
*
- *
- **事务号*
- *
+ * string transactionId = 2;
*/
- public String getTransactionId() {
- Object ref = transactionId_;
- if (!(ref instanceof String)) {
+ public java.lang.String getTransactionId() {
+ java.lang.Object ref = transactionId_;
+ if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- transactionId_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ transactionId_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
- * optional string transactionId = 2;
- *
*
**事务号*
*
+ *
+ * string transactionId = 2;
*/
public com.google.protobuf.ByteString
getTransactionIdBytes() {
- Object ref = transactionId_;
+ java.lang.Object ref = transactionId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
transactionId_ = b;
return b;
} else {
@@ -11662,73 +12095,74 @@ public final class CanalEntry {
}
}
/**
- * optional string transactionId = 2;
- *
*
**事务号*
*
+ *
+ * string transactionId = 2;
*/
public Builder setTransactionId(
- String value) {
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+
transactionId_ = value;
onChanged();
return this;
}
/**
- * optional string transactionId = 2;
- *
*
**事务号*
*
+ *
+ * string transactionId = 2;
*/
public Builder clearTransactionId() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
transactionId_ = getDefaultInstance().getTransactionId();
onChanged();
return this;
}
/**
- * optional string transactionId = 2;
- *
*
**事务号*
*
+ *
+ * string transactionId = 2;
*/
public Builder setTransactionIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+ checkByteStringIsUtf8(value);
+
transactionId_ = value;
onChanged();
return this;
}
- private java.util.List props_ =
+ private java.util.List props_ =
java.util.Collections.emptyList();
private void ensurePropsIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = new java.util.ArrayList(props_);
+ props_ = new java.util.ArrayList(props_);
bitField0_ |= 0x00000004;
}
}
- private com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder> propsBuilder_;
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ 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.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List getPropsList() {
+ public java.util.List getPropsList() {
if (propsBuilder_ == null) {
return java.util.Collections.unmodifiableList(props_);
} else {
@@ -11736,11 +12170,11 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public int getPropsCount() {
if (propsBuilder_ == null) {
@@ -11750,13 +12184,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair getProps(int index) {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
if (propsBuilder_ == null) {
return props_.get(index);
} else {
@@ -11764,14 +12198,14 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder setProps(
- int index, Pair value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -11785,14 +12219,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder setProps(
- int index, Pair.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.set(index, builderForValue.build());
@@ -11803,13 +12237,13 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Builder addProps(Pair value) {
+ public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -11823,14 +12257,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addProps(
- int index, Pair value) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
if (propsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
@@ -11844,14 +12278,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addProps(
- Pair.Builder builderForValue) {
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.add(builderForValue.build());
@@ -11862,14 +12296,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addProps(
- int index, Pair.Builder builderForValue) {
+ int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
props_.add(index, builderForValue.build());
@@ -11880,14 +12314,14 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder addAllProps(
- Iterable extends Pair> values) {
+ java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) {
if (propsBuilder_ == null) {
ensurePropsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
@@ -11899,11 +12333,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder clearProps() {
if (propsBuilder_ == null) {
@@ -11916,11 +12350,11 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
public Builder removeProps(int index) {
if (propsBuilder_ == null) {
@@ -11933,24 +12367,24 @@ public final class CanalEntry {
return this;
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair.Builder getPropsBuilder(
+ 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;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public PairOrBuilder getPropsOrBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(
int index) {
if (propsBuilder_ == null) {
return props_.get(index); } else {
@@ -11958,13 +12392,13 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List extends PairOrBuilder>
+ public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsOrBuilderList() {
if (propsBuilder_ != null) {
return propsBuilder_.getMessageOrBuilderList();
@@ -11973,45 +12407,45 @@ public final class CanalEntry {
}
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair.Builder addPropsBuilder() {
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() {
return getPropsFieldBuilder().addBuilder(
- Pair.getDefaultInstance());
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public Pair.Builder addPropsBuilder(
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder(
int index) {
return getPropsFieldBuilder().addBuilder(
- index, Pair.getDefaultInstance());
+ index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
}
/**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
*
**预留扩展*
*
+ *
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
*/
- public java.util.List
+ public java.util.List
getPropsBuilderList() {
return getPropsFieldBuilder().getBuilderList();
}
- private com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder>
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder, com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>
getPropsFieldBuilder() {
if (propsBuilder_ == null) {
- propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- Pair, Pair.Builder, PairOrBuilder>(
+ propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder, com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder>(
props_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
@@ -12020,16 +12454,57 @@ public final class CanalEntry {
}
return propsBuilder_;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.TransactionEnd)
}
+ // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.TransactionEnd)
+ private static final com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd DEFAULT_INSTANCE;
static {
- defaultInstance = new TransactionEnd(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd();
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TransactionEnd parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new TransactionEnd(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.TransactionEnd)
}
public interface PairOrBuilder extends
@@ -12037,71 +12512,59 @@ public final class CanalEntry {
com.google.protobuf.MessageOrBuilder {
/**
- * optional string key = 1;
+ * string key = 1;
*/
- boolean hasKey();
+ java.lang.String getKey();
/**
- * optional string key = 1;
- */
- String getKey();
- /**
- * optional string key = 1;
+ * string key = 1;
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
- * optional string value = 2;
+ * string value = 2;
*/
- boolean hasValue();
+ java.lang.String getValue();
/**
- * optional string value = 2;
- */
- String getValue();
- /**
- * optional string value = 2;
+ * string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
- * Protobuf type {@code com.alibaba.otter.canal.protocol.Pair}
- *
*
**预留扩展*
*
+ *
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.Pair}
*/
- public static final class Pair extends
- com.google.protobuf.GeneratedMessage implements
+ public static final class Pair extends
+ com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.Pair)
PairOrBuilder {
+ private static final long serialVersionUID = 0L;
// Use Pair.newBuilder() to construct.
- private Pair(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ private Pair(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Pair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Pair defaultInstance;
- public static Pair getDefaultInstance() {
- return defaultInstance;
+ private Pair() {
+ key_ = "";
+ value_ = "";
}
- public Pair getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @Override
+ @java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Pair(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
@@ -12113,23 +12576,23 @@ public final class CanalEntry {
case 0:
done = true;
break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- key_ = bs;
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
break;
}
case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- value_ = bs;
+ java.lang.String s = input.readStringRequireUtf8();
+
+ value_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
break;
}
}
@@ -12138,7 +12601,7 @@ public final class CanalEntry {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
+ e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -12146,67 +12609,44 @@ public final class CanalEntry {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_descriptor;
}
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_fieldAccessorTable
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- Pair.class, Builder.class);
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair.class, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder.class);
}
- public static com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- public Pair parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Pair(input, extensionRegistry);
- }
- };
-
- @Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
- private Object key_;
+ private volatile java.lang.Object key_;
/**
- * optional string key = 1;
+ * string key = 1;
*/
- public boolean hasKey() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional string key = 1;
- */
- public String getKey() {
- Object ref = key_;
- if (ref instanceof String) {
- return (String) ref;
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- key_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
return s;
}
}
/**
- * optional string key = 1;
+ * string key = 1;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
- Object ref = key_;
- if (ref instanceof String) {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
key_ = b;
return b;
} else {
@@ -12215,40 +12655,32 @@ public final class CanalEntry {
}
public static final int VALUE_FIELD_NUMBER = 2;
- private Object value_;
+ private volatile java.lang.Object value_;
/**
- * optional string value = 2;
+ * string value = 2;
*/
- public boolean hasValue() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional string value = 2;
- */
- public String getValue() {
- Object ref = value_;
- if (ref instanceof String) {
- return (String) ref;
+ 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;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- value_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
return s;
}
}
/**
- * optional string value = 2;
+ * string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
- Object ref = value_;
- if (ref instanceof String) {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
value_ = b;
return b;
} else {
@@ -12256,11 +12688,8 @@ public final class CanalEntry {
}
}
- private void initFields() {
- key_ = "";
- value_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -12270,131 +12699,182 @@ public final class CanalEntry {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getKeyBytes());
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getValueBytes());
+ if (!getValueBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getKeyBytes());
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getValueBytes());
+ if (!getValueBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
- @Override
- protected Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alibaba.otter.canal.protocol.CanalEntry.Pair)) {
+ return super.equals(obj);
+ }
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair other = (com.alibaba.otter.canal.protocol.CanalEntry.Pair) obj;
+
+ boolean result = true;
+ result = result && getKey()
+ .equals(other.getKey());
+ result = result && getValue()
+ .equals(other.getValue());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
}
- public static Pair parseFrom(
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Pair parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Pair parseFrom(byte[] data)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
- public static Pair parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
- public static Pair parseFrom(java.io.InputStream input)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
- public static Pair parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Pair parseDelimitedFrom(java.io.InputStream input)
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
}
- public static Pair parseDelimitedFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
- public static Pair parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
}
- public static Pair parseFrom(
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder(Pair prototype) {
- return newBuilder().mergeFrom(prototype);
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Pair prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
- @Override
+ @java.lang.Override
protected Builder newBuilderForType(
- BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
- * Protobuf type {@code com.alibaba.otter.canal.protocol.Pair}
- *
*
**预留扩展*
*
+ *
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.Pair}
*/
public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder implements
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.otter.canal.protocol.Pair)
- PairOrBuilder {
+ com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_descriptor;
}
- protected FieldAccessorTable
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_fieldAccessorTable
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- Pair.class, Builder.class);
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair.class, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder.class);
}
// Construct using com.alibaba.otter.canal.protocol.CanalEntry.Pair.newBuilder()
@@ -12403,104 +12883,127 @@ public final class CanalEntry {
}
private Builder(
- BuilderParent parent) {
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
+
value_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
+
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
- return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_descriptor;
+ return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_descriptor;
}
- public Pair getDefaultInstanceForType() {
- return Pair.getDefaultInstance();
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair getDefaultInstanceForType() {
+ return com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance();
}
- public Pair build() {
- Pair result = buildPartial();
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair build() {
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
- public Pair buildPartial() {
- Pair result = new Pair(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair buildPartial() {
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair result = new com.alibaba.otter.canal.protocol.CanalEntry.Pair(this);
result.key_ = key_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
result.value_ = value_;
- result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof Pair) {
- return mergeFrom((Pair)other);
+ if (other instanceof com.alibaba.otter.canal.protocol.CanalEntry.Pair) {
+ return mergeFrom((com.alibaba.otter.canal.protocol.CanalEntry.Pair)other);
} else {
super.mergeFrom(other);
return this;
}
}
- public Builder mergeFrom(Pair other) {
- if (other == Pair.getDefaultInstance()) return this;
- if (other.hasKey()) {
- bitField0_ |= 0x00000001;
+ public Builder mergeFrom(com.alibaba.otter.canal.protocol.CanalEntry.Pair other) {
+ if (other == com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance()) return this;
+ if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
- if (other.hasValue()) {
- bitField0_ |= 0x00000002;
+ if (!other.getValue().isEmpty()) {
value_ = other.value_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Pair parsedMessage = null;
+ com.alibaba.otter.canal.protocol.CanalEntry.Pair parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Pair) e.getUnfinishedMessage();
- throw e;
+ parsedMessage = (com.alibaba.otter.canal.protocol.CanalEntry.Pair) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
@@ -12508,42 +13011,33 @@ public final class CanalEntry {
}
return this;
}
- private int bitField0_;
- private Object key_ = "";
+ private java.lang.Object key_ = "";
/**
- * optional string key = 1;
+ * string key = 1;
*/
- public boolean hasKey() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * optional string key = 1;
- */
- public String getKey() {
- Object ref = key_;
- if (!(ref instanceof String)) {
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- key_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
- * optional string key = 1;
+ * string key = 1;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
- Object ref = key_;
+ java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
key_ = b;
return b;
} else {
@@ -12551,75 +13045,68 @@ public final class CanalEntry {
}
}
/**
- * optional string key = 1;
+ * string key = 1;
*/
public Builder setKey(
- String value) {
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000001;
+
key_ = value;
onChanged();
return this;
}
/**
- * optional string key = 1;
+ * string key = 1;
*/
public Builder clearKey() {
- bitField0_ = (bitField0_ & ~0x00000001);
+
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
- * optional string key = 1;
+ * string key = 1;
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000001;
+ checkByteStringIsUtf8(value);
+
key_ = value;
onChanged();
return this;
}
- private Object value_ = "";
+ private java.lang.Object value_ = "";
/**
- * optional string value = 2;
+ * string value = 2;
*/
- public boolean hasValue() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * optional string value = 2;
- */
- public String getValue() {
- Object ref = value_;
- if (!(ref instanceof String)) {
+ 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;
- String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- value_ = s;
- }
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
return s;
} else {
- return (String) ref;
+ return (java.lang.String) ref;
}
}
/**
- * optional string value = 2;
+ * string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
- Object ref = value_;
+ java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
- (String) ref);
+ (java.lang.String) ref);
value_ = b;
return b;
} else {
@@ -12627,151 +13114,197 @@ public final class CanalEntry {
}
}
/**
- * optional string value = 2;
+ * string value = 2;
*/
public Builder setValue(
- String value) {
+ java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+
value_ = value;
onChanged();
return this;
}
/**
- * optional string value = 2;
+ * string value = 2;
*/
public Builder clearValue() {
- bitField0_ = (bitField0_ & ~0x00000002);
+
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
- * optional string value = 2;
+ * string value = 2;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x00000002;
+ checkByteStringIsUtf8(value);
+
value_ = value;
onChanged();
return this;
}
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
// @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.Pair)
}
+ // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.Pair)
+ private static final com.alibaba.otter.canal.protocol.CanalEntry.Pair DEFAULT_INSTANCE;
static {
- defaultInstance = new Pair(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new com.alibaba.otter.canal.protocol.CanalEntry.Pair();
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalEntry.Pair getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Pair parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Pair(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalEntry.Pair getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.Pair)
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_otter_canal_protocol_Entry_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_otter_canal_protocol_Entry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_otter_canal_protocol_Header_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_otter_canal_protocol_Header_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_otter_canal_protocol_Column_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_otter_canal_protocol_Column_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_otter_canal_protocol_RowData_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_otter_canal_protocol_RowData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_otter_canal_protocol_RowChange_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_com_alibaba_otter_canal_protocol_Pair_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_alibaba_otter_canal_protocol_Pair_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
- private static com.google.protobuf.Descriptors.FileDescriptor
+ private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
- String[] descriptorData = {
+ java.lang.String[] descriptorData = {
"\n\023EntryProtocol.proto\022 com.alibaba.otter" +
- ".canal.protocol\"\236\001\n\005Entry\0228\n\006header\030\001 \001(" +
+ ".canal.protocol\"\254\001\n\005Entry\0228\n\006header\030\001 \001(" +
"\0132(.com.alibaba.otter.canal.protocol.Hea" +
- "der\022G\n\tentryType\030\002 \001(\0162+.com.alibaba.ott" +
- "er.canal.protocol.EntryType:\007ROWDATA\022\022\n\n" +
- "storeValue\030\003 \001(\014\"\221\003\n\006Header\022\022\n\007version\030\001" +
- " \001(\005:\0011\022\023\n\013logfileName\030\002 \001(\t\022\025\n\rlogfileO" +
- "ffset\030\003 \001(\003\022\020\n\010serverId\030\004 \001(\003\022\024\n\014servere" +
- "nCode\030\005 \001(\t\022\023\n\013executeTime\030\006 \001(\003\022A\n\nsour" +
- "ceType\030\007 \001(\0162&.com.alibaba.otter.canal.p",
- "rotocol.Type:\005MYSQL\022\022\n\nschemaName\030\010 \001(\t\022" +
- "\021\n\ttableName\030\t \001(\t\022\023\n\013eventLength\030\n \001(\003\022" +
- "F\n\teventType\030\013 \001(\0162+.com.alibaba.otter.c" +
- "anal.protocol.EventType:\006UPDATE\0225\n\005props" +
- "\030\014 \003(\0132&.com.alibaba.otter.canal.protoco" +
- "l.Pair\022\014\n\004gtid\030\r \001(\t\"\326\001\n\006Column\022\r\n\005index" +
- "\030\001 \001(\005\022\017\n\007sqlType\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\022\r\n" +
- "\005isKey\030\004 \001(\010\022\017\n\007updated\030\005 \001(\010\022\025\n\006isNull\030" +
- "\006 \001(\010:\005false\0225\n\005props\030\007 \003(\0132&.com.alibab" +
- "a.otter.canal.protocol.Pair\022\r\n\005value\030\010 \001",
- "(\t\022\016\n\006length\030\t \001(\005\022\021\n\tmysqlType\030\n \001(\t\"\301\001" +
- "\n\007RowData\022?\n\rbeforeColumns\030\001 \003(\0132(.com.a" +
- "libaba.otter.canal.protocol.Column\022>\n\014af" +
- "terColumns\030\002 \003(\0132(.com.alibaba.otter.can" +
- "al.protocol.Column\0225\n\005props\030\003 \003(\0132&.com." +
- "alibaba.otter.canal.protocol.Pair\"\222\002\n\tRo" +
- "wChange\022\017\n\007tableId\030\001 \001(\003\022F\n\teventType\030\002 " +
- "\001(\0162+.com.alibaba.otter.canal.protocol.E" +
- "ventType:\006UPDATE\022\024\n\005isDdl\030\n \001(\010:\005false\022\013" +
- "\n\003sql\030\013 \001(\t\022;\n\010rowDatas\030\014 \003(\0132).com.alib",
- "aba.otter.canal.protocol.RowData\0225\n\005prop" +
- "s\030\r \003(\0132&.com.alibaba.otter.canal.protoc" +
- "ol.Pair\022\025\n\rddlSchemaName\030\016 \001(\t\"\207\001\n\020Trans" +
- "actionBegin\022\023\n\013executeTime\030\001 \001(\003\022\025\n\rtran" +
- "sactionId\030\002 \001(\t\0225\n\005props\030\003 \003(\0132&.com.ali" +
- "baba.otter.canal.protocol.Pair\022\020\n\010thread" +
- "Id\030\004 \001(\003\"s\n\016TransactionEnd\022\023\n\013executeTim" +
- "e\030\001 \001(\003\022\025\n\rtransactionId\030\002 \001(\t\0225\n\005props\030" +
- "\003 \003(\0132&.com.alibaba.otter.canal.protocol" +
- ".Pair\"\"\n\004Pair\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(",
- "\t*^\n\tEntryType\022\024\n\020TRANSACTIONBEGIN\020\001\022\013\n\007" +
- "ROWDATA\020\002\022\022\n\016TRANSACTIONEND\020\003\022\r\n\tHEARTBE" +
- "AT\020\004\022\013\n\007GTIDLOG\020\005*\306\001\n\tEventType\022\n\n\006INSER" +
- "T\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE\020\003\022\n\n\006CREATE\020\004\022" +
- "\t\n\005ALTER\020\005\022\t\n\005ERASE\020\006\022\t\n\005QUERY\020\007\022\014\n\010TRUN" +
- "CATE\020\010\022\n\n\006RENAME\020\t\022\n\n\006CINDEX\020\n\022\n\n\006DINDEX" +
- "\020\013\022\010\n\004GTID\020\014\022\014\n\010XACOMMIT\020\r\022\016\n\nXAROLLBACK" +
- "\020\016\022\016\n\nMHEARTBEAT\020\017*(\n\004Type\022\n\n\006ORACLE\020\001\022\t" +
- "\n\005MYSQL\020\002\022\t\n\005PGSQL\020\003B0\n com.alibaba.otte" +
- "r.canal.protocolB\nCanalEntryH\001"
+ "der\022@\n\tentryType\030\002 \001(\0162+.com.alibaba.ott" +
+ "er.canal.protocol.EntryTypeH\000\022\022\n\nstoreVa" +
+ "lue\030\003 \001(\014B\023\n\021entryType_present\"\303\003\n\006Heade" +
+ "r\022\021\n\007version\030\001 \001(\005H\000\022\023\n\013logfileName\030\002 \001(" +
+ "\t\022\025\n\rlogfileOffset\030\003 \001(\003\022\020\n\010serverId\030\004 \001" +
+ "(\003\022\024\n\014serverenCode\030\005 \001(\t\022\023\n\013executeTime\030" +
+ "\006 \001(\003\022<\n\nsourceType\030\007 \001(\0162&.com.alibaba." +
+ "otter.canal.protocol.TypeH\001\022\022\n\nschemaNam" +
+ "e\030\010 \001(\t\022\021\n\ttableName\030\t \001(\t\022\023\n\013eventLengt" +
+ "h\030\n \001(\003\022@\n\teventType\030\013 \001(\0162+.com.alibaba" +
+ ".otter.canal.protocol.EventTypeH\002\0225\n\005pro" +
+ "ps\030\014 \003(\0132&.com.alibaba.otter.canal.proto" +
+ "col.Pair\022\014\n\004gtid\030\r \001(\tB\021\n\017version_presen" +
+ "tB\024\n\022sourceType_presentB\023\n\021eventType_pre" +
+ "sent\"\343\001\n\006Column\022\r\n\005index\030\001 \001(\005\022\017\n\007sqlTyp" +
+ "e\030\002 \001(\005\022\014\n\004name\030\003 \001(\t\022\r\n\005isKey\030\004 \001(\010\022\017\n\007" +
+ "updated\030\005 \001(\010\022\020\n\006isNull\030\006 \001(\010H\000\0225\n\005props" +
+ "\030\007 \003(\0132&.com.alibaba.otter.canal.protoco" +
+ "l.Pair\022\r\n\005value\030\010 \001(\t\022\016\n\006length\030\t \001(\005\022\021\n" +
+ "\tmysqlType\030\n \001(\tB\020\n\016isNull_present\"\301\001\n\007R" +
+ "owData\022?\n\rbeforeColumns\030\001 \003(\0132(.com.alib" +
+ "aba.otter.canal.protocol.Column\022>\n\014after" +
+ "Columns\030\002 \003(\0132(.com.alibaba.otter.canal." +
+ "protocol.Column\0225\n\005props\030\003 \003(\0132&.com.ali" +
+ "baba.otter.canal.protocol.Pair\"\255\002\n\tRowCh" +
+ "ange\022\017\n\007tableId\030\001 \001(\003\022@\n\teventType\030\002 \001(\016" +
+ "2+.com.alibaba.otter.canal.protocol.Even" +
+ "tTypeH\000\022\017\n\005isDdl\030\n \001(\010H\001\022\013\n\003sql\030\013 \001(\t\022;\n" +
+ "\010rowDatas\030\014 \003(\0132).com.alibaba.otter.cana" +
+ "l.protocol.RowData\0225\n\005props\030\r \003(\0132&.com." +
+ "alibaba.otter.canal.protocol.Pair\022\025\n\rddl" +
+ "SchemaName\030\016 \001(\tB\023\n\021eventType_presentB\017\n" +
+ "\risDdl_present\"\207\001\n\020TransactionBegin\022\023\n\013e" +
+ "xecuteTime\030\001 \001(\003\022\025\n\rtransactionId\030\002 \001(\t\022" +
+ "5\n\005props\030\003 \003(\0132&.com.alibaba.otter.canal" +
+ ".protocol.Pair\022\020\n\010threadId\030\004 \001(\003\"s\n\016Tran" +
+ "sactionEnd\022\023\n\013executeTime\030\001 \001(\003\022\025\n\rtrans" +
+ "actionId\030\002 \001(\t\0225\n\005props\030\003 \003(\0132&.com.alib" +
+ "aba.otter.canal.protocol.Pair\"\"\n\004Pair\022\013\n" +
+ "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t*^\n\tEntryType\022\024" +
+ "\n\020TRANSACTIONBEGIN\020\000\022\013\n\007ROWDATA\020\001\022\022\n\016TRA" +
+ "NSACTIONEND\020\002\022\r\n\tHEARTBEAT\020\003\022\013\n\007GTIDLOG\020" +
+ "\004*\345\001\n\tEventType\022\035\n\031EVENTTYPECOMPATIBLEPR" +
+ "OTO2\020\000\022\n\n\006INSERT\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE" +
+ "\020\003\022\n\n\006CREATE\020\004\022\t\n\005ALTER\020\005\022\t\n\005ERASE\020\006\022\t\n\005" +
+ "QUERY\020\007\022\014\n\010TRUNCATE\020\010\022\n\n\006RENAME\020\t\022\n\n\006CIN" +
+ "DEX\020\n\022\n\n\006DINDEX\020\013\022\010\n\004GTID\020\014\022\014\n\010XACOMMIT\020" +
+ "\r\022\016\n\nXAROLLBACK\020\016\022\016\n\nMHEARTBEAT\020\017*B\n\004Typ" +
+ "e\022\030\n\024TYPECOMPATIBLEPROTO2\020\000\022\n\n\006ORACLE\020\001\022" +
+ "\t\n\005MYSQL\020\002\022\t\n\005PGSQL\020\003B0\n com.alibaba.ott" +
+ "er.canal.protocolB\nCanalEntryH\001b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
@@ -12788,51 +13321,51 @@ public final class CanalEntry {
internal_static_com_alibaba_otter_canal_protocol_Entry_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alibaba_otter_canal_protocol_Entry_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_otter_canal_protocol_Entry_descriptor,
- new String[] { "Header", "EntryType", "StoreValue", });
+ new java.lang.String[] { "Header", "EntryType", "StoreValue", "EntryTypePresent", });
internal_static_com_alibaba_otter_canal_protocol_Header_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_alibaba_otter_canal_protocol_Header_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_otter_canal_protocol_Header_descriptor,
- new String[] { "Version", "LogfileName", "LogfileOffset", "ServerId", "ServerenCode", "ExecuteTime", "SourceType", "SchemaName", "TableName", "EventLength", "EventType", "Props", "Gtid", });
+ new java.lang.String[] { "Version", "LogfileName", "LogfileOffset", "ServerId", "ServerenCode", "ExecuteTime", "SourceType", "SchemaName", "TableName", "EventLength", "EventType", "Props", "Gtid", "VersionPresent", "SourceTypePresent", "EventTypePresent", });
internal_static_com_alibaba_otter_canal_protocol_Column_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_alibaba_otter_canal_protocol_Column_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_otter_canal_protocol_Column_descriptor,
- new String[] { "Index", "SqlType", "Name", "IsKey", "Updated", "IsNull", "Props", "Value", "Length", "MysqlType", });
+ new java.lang.String[] { "Index", "SqlType", "Name", "IsKey", "Updated", "IsNull", "Props", "Value", "Length", "MysqlType", "IsNullPresent", });
internal_static_com_alibaba_otter_canal_protocol_RowData_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_alibaba_otter_canal_protocol_RowData_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_otter_canal_protocol_RowData_descriptor,
- new String[] { "BeforeColumns", "AfterColumns", "Props", });
+ new java.lang.String[] { "BeforeColumns", "AfterColumns", "Props", });
internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_com_alibaba_otter_canal_protocol_RowChange_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor,
- new String[] { "TableId", "EventType", "IsDdl", "Sql", "RowDatas", "Props", "DdlSchemaName", });
+ new java.lang.String[] { "TableId", "EventType", "IsDdl", "Sql", "RowDatas", "Props", "DdlSchemaName", "EventTypePresent", "IsDdlPresent", });
internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor,
- new String[] { "ExecuteTime", "TransactionId", "Props", "ThreadId", });
+ new java.lang.String[] { "ExecuteTime", "TransactionId", "Props", "ThreadId", });
internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor,
- new String[] { "ExecuteTime", "TransactionId", "Props", });
+ new java.lang.String[] { "ExecuteTime", "TransactionId", "Props", });
internal_static_com_alibaba_otter_canal_protocol_Pair_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_com_alibaba_otter_canal_protocol_Pair_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_alibaba_otter_canal_protocol_Pair_descriptor,
- new String[] { "Key", "Value", });
+ new java.lang.String[] { "Key", "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/protocol/src/main/java/com/alibaba/otter/canal/protocol/CanalPacket.java b/protocol/src/main/java/com/alibaba/otter/canal/protocol/CanalPacket.java
index 3909668a..1e7e4e53 100644
--- a/protocol/src/main/java/com/alibaba/otter/canal/protocol/CanalPacket.java
+++ b/protocol/src/main/java/com/alibaba/otter/canal/protocol/CanalPacket.java
@@ -4,9847 +4,10990 @@
package com.alibaba.otter.canal.protocol;
public final class CanalPacket {
+ private CanalPacket() {}
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
- private CanalPacket(){
- }
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ /**
+ * Protobuf enum {@code com.alibaba.otter.canal.protocol.Compression}
+ */
+ public enum Compression
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * COMPRESSIONCOMPATIBLEPROTO2 = 0;
+ */
+ COMPRESSIONCOMPATIBLEPROTO2(0),
+ /**
+ * NONE = 1;
+ */
+ NONE(1),
+ /**
+ * ZLIB = 2;
+ */
+ ZLIB(2),
+ /**
+ * GZIP = 3;
+ */
+ GZIP(3),
+ /**
+ * LZF = 4;
+ */
+ LZF(4),
+ UNRECOGNIZED(-1),
+ ;
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ /**
+ * COMPRESSIONCOMPATIBLEPROTO2 = 0;
+ */
+ public static final int COMPRESSIONCOMPATIBLEPROTO2_VALUE = 0;
+ /**
+ * NONE = 1;
+ */
+ public static final int NONE_VALUE = 1;
+ /**
+ * ZLIB = 2;
+ */
+ public static final int ZLIB_VALUE = 2;
+ /**
+ * GZIP = 3;
+ */
+ public static final int GZIP_VALUE = 3;
+ /**
+ * LZF = 4;
+ */
+ public static final int LZF_VALUE = 4;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
}
/**
- * Protobuf enum {@code com.alibaba.otter.canal.protocol.Compression}
+ * @deprecated Use {@link #forNumber(int)} instead.
*/
- public enum Compression implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * NONE = 1;
- */
- NONE(0, 1),
- /**
- * ZLIB = 2;
- */
- ZLIB(1, 2),
- /**
- * GZIP = 3;
- */
- GZIP(2, 3),
- /**
- * LZF = 4;
- */
- LZF(3, 4), ;
+ @java.lang.Deprecated
+ public static Compression valueOf(int value) {
+ return forNumber(value);
+ }
- /**
- * NONE = 1;
- */
- public static final int NONE_VALUE = 1;
- /**
- * ZLIB = 2;
- */
- public static final int ZLIB_VALUE = 2;
- /**
- * GZIP = 3;
- */
- public static final int GZIP_VALUE = 3;
- /**
- * LZF = 4;
- */
- public static final int LZF_VALUE = 4;
+ public static Compression forNumber(int value) {
+ switch (value) {
+ case 0: return COMPRESSIONCOMPATIBLEPROTO2;
+ case 1: return NONE;
+ case 2: return ZLIB;
+ case 3: return GZIP;
+ case 4: return LZF;
+ default: return null;
+ }
+ }
- public final int getNumber() {
- return value;
- }
-
- public static Compression valueOf(int value) {
- switch (value) {
- case 1:
- return NONE;
- case 2:
- return ZLIB;
- case 3:
- return GZIP;
- case 4:
- return LZF;
- default:
- return null;
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Compression> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public Compression findValueByNumber(int number) {
+ return Compression.forNumber(number);
}
- }
+ };
- public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
- return internalValueMap;
- }
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.getDescriptor().getEnumTypes().get(0);
+ }
- private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() {
+ private static final Compression[] VALUES = values();
- public Compression findValueByNumber(int number) {
- return Compression.valueOf(number);
- }
- };
+ public static Compression valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
- public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
+ private final int value;
- public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
- return getDescriptor();
- }
+ private Compression(int value) {
+ this.value = value;
+ }
- public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.alibaba.otter.canal.protocol.CanalPacket.getDescriptor().getEnumTypes().get(0);
- }
+ // @@protoc_insertion_point(enum_scope:com.alibaba.otter.canal.protocol.Compression)
+ }
- private static final Compression[] VALUES = values();
+ /**
+ * Protobuf enum {@code com.alibaba.otter.canal.protocol.PacketType}
+ */
+ public enum PacketType
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *compatible
+ *
+ *
+ * PACKAGETYPECOMPATIBLEPROTO2 = 0;
+ */
+ PACKAGETYPECOMPATIBLEPROTO2(0),
+ /**
+ * HANDSHAKE = 1;
+ */
+ HANDSHAKE(1),
+ /**
+ * CLIENTAUTHENTICATION = 2;
+ */
+ CLIENTAUTHENTICATION(2),
+ /**
+ * ACK = 3;
+ */
+ ACK(3),
+ /**
+ * SUBSCRIPTION = 4;
+ */
+ SUBSCRIPTION(4),
+ /**
+ * UNSUBSCRIPTION = 5;
+ */
+ UNSUBSCRIPTION(5),
+ /**
+ * GET = 6;
+ */
+ GET(6),
+ /**
+ * MESSAGES = 7;
+ */
+ MESSAGES(7),
+ /**
+ * CLIENTACK = 8;
+ */
+ CLIENTACK(8),
+ /**
+ *
+ * management part
+ *
+ *
+ * SHUTDOWN = 9;
+ */
+ SHUTDOWN(9),
+ /**
+ *
+ * integration
+ *
+ *
+ * DUMP = 10;
+ */
+ DUMP(10),
+ /**
+ * HEARTBEAT = 11;
+ */
+ HEARTBEAT(11),
+ /**
+ * CLIENTROLLBACK = 12;
+ */
+ CLIENTROLLBACK(12),
+ UNRECOGNIZED(-1),
+ ;
- public static Compression valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
+ /**
+ *
+ *compatible
+ *
+ *
+ * PACKAGETYPECOMPATIBLEPROTO2 = 0;
+ */
+ public static final int PACKAGETYPECOMPATIBLEPROTO2_VALUE = 0;
+ /**
+ * HANDSHAKE = 1;
+ */
+ public static final int HANDSHAKE_VALUE = 1;
+ /**
+ * CLIENTAUTHENTICATION = 2;
+ */
+ public static final int CLIENTAUTHENTICATION_VALUE = 2;
+ /**
+ * ACK = 3;
+ */
+ public static final int ACK_VALUE = 3;
+ /**
+ * SUBSCRIPTION = 4;
+ */
+ public static final int SUBSCRIPTION_VALUE = 4;
+ /**
+ * UNSUBSCRIPTION = 5;
+ */
+ public static final int UNSUBSCRIPTION_VALUE = 5;
+ /**
+ * GET = 6;
+ */
+ public static final int GET_VALUE = 6;
+ /**
+ * MESSAGES = 7;
+ */
+ public static final int MESSAGES_VALUE = 7;
+ /**
+ * CLIENTACK = 8;
+ */
+ public static final int CLIENTACK_VALUE = 8;
+ /**
+ *
+ * management part
+ *
+ *
+ * SHUTDOWN = 9;
+ */
+ public static final int SHUTDOWN_VALUE = 9;
+ /**
+ *
+ * integration
+ *
+ *
+ * DUMP = 10;
+ */
+ public static final int DUMP_VALUE = 10;
+ /**
+ * HEARTBEAT = 11;
+ */
+ public static final int HEARTBEAT_VALUE = 11;
+ /**
+ * CLIENTROLLBACK = 12;
+ */
+ public static final int CLIENTROLLBACK_VALUE = 12;
- private final int index;
- private final int value;
- private Compression(int index, int value){
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:com.alibaba.otter.canal.protocol.Compression)
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
}
/**
- * Protobuf enum {@code com.alibaba.otter.canal.protocol.PacketType}
+ * @deprecated Use {@link #forNumber(int)} instead.
*/
- public enum PacketType implements com.google.protobuf.ProtocolMessageEnum {
- /**
- * HANDSHAKE = 1;
- */
- HANDSHAKE(0, 1),
- /**
- * CLIENTAUTHENTICATION = 2;
- */
- CLIENTAUTHENTICATION(1, 2),
- /**
- * ACK = 3;
- */
- ACK(2, 3),
- /**
- * SUBSCRIPTION = 4;
- */
- SUBSCRIPTION(3, 4),
- /**
- * UNSUBSCRIPTION = 5;
- */
- UNSUBSCRIPTION(4, 5),
- /**
- * GET = 6;
- */
- GET(5, 6),
- /**
- * MESSAGES = 7;
- */
- MESSAGES(6, 7),
- /**
- * CLIENTACK = 8;
- */
- CLIENTACK(7, 8),
- /**
- * SHUTDOWN = 9;
- *
- *
- * management part
- *
- */
- SHUTDOWN(8, 9),
- /**
- * DUMP = 10;
- *
- *
- * integration
- *
- */
- DUMP(9, 10),
- /**
- * HEARTBEAT = 11;
- */
- HEARTBEAT(10, 11),
- /**
- * CLIENTROLLBACK = 12;
- */
- CLIENTROLLBACK(11, 12), ;
-
- /**
- * HANDSHAKE = 1;
- */
- public static final int HANDSHAKE_VALUE = 1;
- /**
- * CLIENTAUTHENTICATION = 2;
- */
- public static final int CLIENTAUTHENTICATION_VALUE = 2;
- /**
- * ACK = 3;
- */
- public static final int ACK_VALUE = 3;
- /**
- * SUBSCRIPTION = 4;
- */
- public static final int SUBSCRIPTION_VALUE = 4;
- /**
- * UNSUBSCRIPTION = 5;
- */
- public static final int UNSUBSCRIPTION_VALUE = 5;
- /**
- * GET = 6;
- */
- public static final int GET_VALUE = 6;
- /**
- * MESSAGES = 7;
- */
- public static final int MESSAGES_VALUE = 7;
- /**
- * CLIENTACK = 8;
- */
- public static final int CLIENTACK_VALUE = 8;
- /**
- * SHUTDOWN = 9;
- *
- *
- * management part
- *
- */
- public static final int SHUTDOWN_VALUE = 9;
- /**
- * DUMP = 10;
- *
- *
- * integration
- *
- */
- public static final int DUMP_VALUE = 10;
- /**
- * HEARTBEAT = 11;
- */
- public static final int HEARTBEAT_VALUE = 11;
- /**
- * CLIENTROLLBACK = 12;
- */
- public static final int CLIENTROLLBACK_VALUE = 12;
-
- public final int getNumber() {
- return value;
- }
-
- public static PacketType valueOf(int value) {
- switch (value) {
- case 1:
- return HANDSHAKE;
- case 2:
- return CLIENTAUTHENTICATION;
- case 3:
- return ACK;
- case 4:
- return SUBSCRIPTION;
- case 5:
- return UNSUBSCRIPTION;
- case 6:
- return GET;
- case 7:
- return MESSAGES;
- case 8:
- return CLIENTACK;
- case 9:
- return SHUTDOWN;
- case 10:
- return DUMP;
- case 11:
- return HEARTBEAT;
- case 12:
- return CLIENTROLLBACK;
- default:
- return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
- return internalValueMap;
- }
-
- private static com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() {
-
- public PacketType findValueByNumber(int number) {
- return PacketType.valueOf(number);
- }
- };
-
- public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
- return getDescriptor().getValues().get(index);
- }
-
- public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
- return getDescriptor();
- }
-
- public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.alibaba.otter.canal.protocol.CanalPacket.getDescriptor().getEnumTypes().get(1);
- }
-
- private static final PacketType[] VALUES = values();
-
- public static PacketType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
- if (desc.getType() != getDescriptor()) {
- throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
- }
- return VALUES[desc.getIndex()];
- }
-
- private final int index;
- private final int value;
-
- private PacketType(int index, int value){
- this.index = index;
- this.value = value;
- }
-
- // @@protoc_insertion_point(enum_scope:com.alibaba.otter.canal.protocol.PacketType)
+ @java.lang.Deprecated
+ public static PacketType valueOf(int value) {
+ return forNumber(value);
}
- public interface PacketOrBuilder extends
- // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Packet)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional int32 magic_number = 1 [default = 17];
- */
- boolean hasMagicNumber();
-
- /**
- * optional int32 magic_number = 1 [default = 17];
- */
- int getMagicNumber();
-
- /**
- * optional int32 version = 2 [default = 1];
- */
- boolean hasVersion();
-
- /**
- * optional int32 version = 2 [default = 1];
- */
- int getVersion();
-
- /**
- * optional .com.alibaba.otter.canal.protocol.PacketType type = 3;
- */
- boolean hasType();
-
- /**
- * optional .com.alibaba.otter.canal.protocol.PacketType type = 3;
- */
- com.alibaba.otter.canal.protocol.CanalPacket.PacketType getType();
-
- /**
- * optional .com.alibaba.otter.canal.protocol.Compression compression = 4 [default = NONE];
- */
- boolean hasCompression();
-
- /**
- * optional .com.alibaba.otter.canal.protocol.Compression compression = 4 [default = NONE];
- */
- com.alibaba.otter.canal.protocol.CanalPacket.Compression getCompression();
-
- /**
- * optional bytes body = 5;
- */
- boolean hasBody();
-
- /**
- * optional bytes body = 5;
- */
- com.google.protobuf.ByteString getBody();
+ public static PacketType forNumber(int value) {
+ switch (value) {
+ case 0: return PACKAGETYPECOMPATIBLEPROTO2;
+ case 1: return HANDSHAKE;
+ case 2: return CLIENTAUTHENTICATION;
+ case 3: return ACK;
+ case 4: return SUBSCRIPTION;
+ case 5: return UNSUBSCRIPTION;
+ case 6: return GET;
+ case 7: return MESSAGES;
+ case 8: return CLIENTACK;
+ case 9: return SHUTDOWN;
+ case 10: return DUMP;
+ case 11: return HEARTBEAT;
+ case 12: return CLIENTROLLBACK;
+ default: return null;
+ }
}
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ PacketType> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public PacketType findValueByNumber(int number) {
+ return PacketType.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.getDescriptor().getEnumTypes().get(1);
+ }
+
+ private static final PacketType[] VALUES = values();
+
+ public static PacketType valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private PacketType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:com.alibaba.otter.canal.protocol.PacketType)
+ }
+
+ public interface PacketOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Packet)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 magic_number = 1;
+ */
+ int getMagicNumber();
+
+ /**
+ * int32 version = 2;
+ */
+ int getVersion();
+
+ /**
+ * .com.alibaba.otter.canal.protocol.PacketType type = 3;
+ */
+ int getTypeValue();
+ /**
+ * .com.alibaba.otter.canal.protocol.PacketType type = 3;
+ */
+ com.alibaba.otter.canal.protocol.CanalPacket.PacketType getType();
+
+ /**
+ * .com.alibaba.otter.canal.protocol.Compression compression = 4;
+ */
+ int getCompressionValue();
+ /**
+ * .com.alibaba.otter.canal.protocol.Compression compression = 4;
+ */
+ com.alibaba.otter.canal.protocol.CanalPacket.Compression getCompression();
+
+ /**
+ * bytes body = 5;
+ */
+ com.google.protobuf.ByteString getBody();
+
+ public com.alibaba.otter.canal.protocol.CanalPacket.Packet.MagicNumberPresentCase getMagicNumberPresentCase();
+
+ public com.alibaba.otter.canal.protocol.CanalPacket.Packet.VersionPresentCase getVersionPresentCase();
+
+ public com.alibaba.otter.canal.protocol.CanalPacket.Packet.CompressionPresentCase getCompressionPresentCase();
+ }
+ /**
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.Packet}
+ */
+ public static final class Packet extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.Packet)
+ PacketOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Packet.newBuilder() to construct.
+ private Packet(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private Packet() {
+ type_ = 0;
+ body_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Packet(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ magicNumberPresentCase_ = 1;
+ magicNumberPresent_ = input.readInt32();
+ break;
+ }
+ case 16: {
+ versionPresentCase_ = 2;
+ versionPresent_ = input.readInt32();
+ break;
+ }
+ case 24: {
+ int rawValue = input.readEnum();
+
+ type_ = rawValue;
+ break;
+ }
+ case 32: {
+ int rawValue = input.readEnum();
+ compressionPresentCase_ = 4;
+ compressionPresent_ = rawValue;
+ break;
+ }
+ case 42: {
+
+ body_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_Packet_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_Packet_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alibaba.otter.canal.protocol.CanalPacket.Packet.class, com.alibaba.otter.canal.protocol.CanalPacket.Packet.Builder.class);
+ }
+
+ private int magicNumberPresentCase_ = 0;
+ private java.lang.Object magicNumberPresent_;
+ public enum MagicNumberPresentCase
+ implements com.google.protobuf.Internal.EnumLite {
+ MAGIC_NUMBER(1),
+ MAGICNUMBERPRESENT_NOT_SET(0);
+ private final int value;
+ private MagicNumberPresentCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static MagicNumberPresentCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static MagicNumberPresentCase forNumber(int value) {
+ switch (value) {
+ case 1: return MAGIC_NUMBER;
+ case 0: return MAGICNUMBERPRESENT_NOT_SET;
+ default: return null;
+ }
+ }
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public MagicNumberPresentCase
+ getMagicNumberPresentCase() {
+ return MagicNumberPresentCase.forNumber(
+ magicNumberPresentCase_);
+ }
+
+ private int versionPresentCase_ = 0;
+ private java.lang.Object versionPresent_;
+ public enum VersionPresentCase
+ implements com.google.protobuf.Internal.EnumLite {
+ VERSION(2),
+ VERSIONPRESENT_NOT_SET(0);
+ private final int value;
+ private VersionPresentCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static VersionPresentCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static VersionPresentCase forNumber(int value) {
+ switch (value) {
+ case 2: return VERSION;
+ case 0: return VERSIONPRESENT_NOT_SET;
+ default: return null;
+ }
+ }
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public VersionPresentCase
+ getVersionPresentCase() {
+ return VersionPresentCase.forNumber(
+ versionPresentCase_);
+ }
+
+ private int compressionPresentCase_ = 0;
+ private java.lang.Object compressionPresent_;
+ public enum CompressionPresentCase
+ implements com.google.protobuf.Internal.EnumLite {
+ COMPRESSION(4),
+ COMPRESSIONPRESENT_NOT_SET(0);
+ private final int value;
+ private CompressionPresentCase(int value) {
+ this.value = value;
+ }
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static CompressionPresentCase valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static CompressionPresentCase forNumber(int value) {
+ switch (value) {
+ case 4: return COMPRESSION;
+ case 0: return COMPRESSIONPRESENT_NOT_SET;
+ default: return null;
+ }
+ }
+ public int getNumber() {
+ return this.value;
+ }
+ };
+
+ public CompressionPresentCase
+ getCompressionPresentCase() {
+ return CompressionPresentCase.forNumber(
+ compressionPresentCase_);
+ }
+
+ public static final int MAGIC_NUMBER_FIELD_NUMBER = 1;
+ /**
+ * int32 magic_number = 1;
+ */
+ public int getMagicNumber() {
+ if (magicNumberPresentCase_ == 1) {
+ return (java.lang.Integer) magicNumberPresent_;
+ }
+ return 0;
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 2;
+ /**
+ * int32 version = 2;
+ */
+ public int getVersion() {
+ if (versionPresentCase_ == 2) {
+ return (java.lang.Integer) versionPresent_;
+ }
+ return 1;
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 3;
+ private int type_;
+ /**
+ * .com.alibaba.otter.canal.protocol.PacketType type = 3;
+ */
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ * .com.alibaba.otter.canal.protocol.PacketType type = 3;
+ */
+ public com.alibaba.otter.canal.protocol.CanalPacket.PacketType getType() {
+ @SuppressWarnings("deprecation")
+ com.alibaba.otter.canal.protocol.CanalPacket.PacketType result = com.alibaba.otter.canal.protocol.CanalPacket.PacketType.valueOf(type_);
+ return result == null ? com.alibaba.otter.canal.protocol.CanalPacket.PacketType.UNRECOGNIZED : result;
+ }
+
+ public static final int COMPRESSION_FIELD_NUMBER = 4;
+ /**
+ * .com.alibaba.otter.canal.protocol.Compression compression = 4;
+ */
+ public int getCompressionValue() {
+ if (compressionPresentCase_ == 4) {
+ return (java.lang.Integer) compressionPresent_;
+ }
+ return Compression.NONE_VALUE;
+ }
+ /**
+ * .com.alibaba.otter.canal.protocol.Compression compression = 4;
+ */
+ public com.alibaba.otter.canal.protocol.CanalPacket.Compression getCompression() {
+ if (compressionPresentCase_ == 4) {
+ @SuppressWarnings("deprecation")
+ com.alibaba.otter.canal.protocol.CanalPacket.Compression result = com.alibaba.otter.canal.protocol.CanalPacket.Compression.valueOf(
+ (java.lang.Integer) compressionPresent_);
+ return result == null ? com.alibaba.otter.canal.protocol.CanalPacket.Compression.UNRECOGNIZED : result;
+ }
+ return com.alibaba.otter.canal.protocol.CanalPacket.Compression.COMPRESSIONCOMPATIBLEPROTO2;
+ }
+
+ public static final int BODY_FIELD_NUMBER = 5;
+ private com.google.protobuf.ByteString body_;
+ /**
+ * bytes body = 5;
+ */
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (magicNumberPresentCase_ == 1) {
+ output.writeInt32(
+ 1, (int)((java.lang.Integer) magicNumberPresent_));
+ }
+ if (versionPresentCase_ == 2) {
+ output.writeInt32(
+ 2, (int)((java.lang.Integer) versionPresent_));
+ }
+ if (type_ != com.alibaba.otter.canal.protocol.CanalPacket.PacketType.PACKAGETYPECOMPATIBLEPROTO2.getNumber()) {
+ output.writeEnum(3, type_);
+ }
+ if (compressionPresentCase_ == 4) {
+ output.writeEnum(4, ((java.lang.Integer) compressionPresent_));
+ }
+ if (!body_.isEmpty()) {
+ output.writeBytes(5, body_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (magicNumberPresentCase_ == 1) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(
+ 1, (int)((java.lang.Integer) magicNumberPresent_));
+ }
+ if (versionPresentCase_ == 2) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(
+ 2, (int)((java.lang.Integer) versionPresent_));
+ }
+ if (type_ != com.alibaba.otter.canal.protocol.CanalPacket.PacketType.PACKAGETYPECOMPATIBLEPROTO2.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(3, type_);
+ }
+ if (compressionPresentCase_ == 4) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(4, ((java.lang.Integer) compressionPresent_));
+ }
+ if (!body_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(5, body_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alibaba.otter.canal.protocol.CanalPacket.Packet)) {
+ return super.equals(obj);
+ }
+ com.alibaba.otter.canal.protocol.CanalPacket.Packet other = (com.alibaba.otter.canal.protocol.CanalPacket.Packet) obj;
+
+ boolean result = true;
+ result = result && type_ == other.type_;
+ result = result && getBody()
+ .equals(other.getBody());
+ result = result && getMagicNumberPresentCase().equals(
+ other.getMagicNumberPresentCase());
+ if (!result) return false;
+ switch (magicNumberPresentCase_) {
+ case 1:
+ result = result && (getMagicNumber()
+ == other.getMagicNumber());
+ break;
+ case 0:
+ default:
+ }
+ result = result && getVersionPresentCase().equals(
+ other.getVersionPresentCase());
+ if (!result) return false;
+ switch (versionPresentCase_) {
+ case 2:
+ result = result && (getVersion()
+ == other.getVersion());
+ break;
+ case 0:
+ default:
+ }
+ result = result && getCompressionPresentCase().equals(
+ other.getCompressionPresentCase());
+ if (!result) return false;
+ switch (compressionPresentCase_) {
+ case 4:
+ result = result && getCompressionValue()
+ == other.getCompressionValue();
+ break;
+ case 0:
+ default:
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ hash = (37 * hash) + BODY_FIELD_NUMBER;
+ hash = (53 * hash) + getBody().hashCode();
+ switch (magicNumberPresentCase_) {
+ case 1:
+ hash = (37 * hash) + MAGIC_NUMBER_FIELD_NUMBER;
+ hash = (53 * hash) + getMagicNumber();
+ break;
+ case 0:
+ default:
+ }
+ switch (versionPresentCase_) {
+ case 2:
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion();
+ break;
+ case 0:
+ default:
+ }
+ switch (compressionPresentCase_) {
+ case 4:
+ hash = (37 * hash) + COMPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + getCompressionValue();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalPacket.Packet parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.Packet parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.Packet parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.Packet 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.CanalPacket.Packet parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.Packet 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.CanalPacket.Packet parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.Packet parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.Packet parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.Packet parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.Packet parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.Packet parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalPacket.Packet prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
/**
* Protobuf type {@code com.alibaba.otter.canal.protocol.Packet}
*/
- public static final class Packet extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.Packet)
- PacketOrBuilder {
-
- // Use Packet.newBuilder() to construct.
- private Packet(com.google.protobuf.GeneratedMessage.Builder> builder){
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
-
- private Packet(boolean noInit){
- this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance();
- }
-
- private static final Packet defaultInstance;
-
- public static Packet getDefaultInstance() {
- return defaultInstance;
- }
-
- public Packet getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private Packet(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;
- magicNumber_ = input.readInt32();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- version_ = input.readInt32();
- break;
- }
- case 24: {
- int rawValue = input.readEnum();
- com.alibaba.otter.canal.protocol.CanalPacket.PacketType value = com.alibaba.otter.canal.protocol.CanalPacket.PacketType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(3, rawValue);
- } else {
- bitField0_ |= 0x00000004;
- type_ = value;
- }
- break;
- }
- case 32: {
- int rawValue = input.readEnum();
- com.alibaba.otter.canal.protocol.CanalPacket.Compression value = com.alibaba.otter.canal.protocol.CanalPacket.Compression.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(4, rawValue);
- } else {
- bitField0_ |= 0x00000008;
- compression_ = value;
- }
- break;
- }
- case 42: {
- bitField0_ |= 0x00000010;
- body_ = input.readBytes();
- break;
- }
- }
- }
- } 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.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_Packet_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_Packet_fieldAccessorTable.ensureFieldAccessorsInitialized(com.alibaba.otter.canal.protocol.CanalPacket.Packet.class,
- com.alibaba.otter.canal.protocol.CanalPacket.Packet.Builder.class);
- }
-
- public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
-
- public Packet parsePartialFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Packet(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- private int bitField0_;
- public static final int MAGIC_NUMBER_FIELD_NUMBER = 1;
- private int magicNumber_;
-
- /**
- * optional int32 magic_number = 1 [default = 17];
- */
- public boolean hasMagicNumber() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
- /**
- * optional int32 magic_number = 1 [default = 17];
- */
- public int getMagicNumber() {
- return magicNumber_;
- }
-
- public static final int VERSION_FIELD_NUMBER = 2;
- private int version_;
-
- /**
- * optional int32 version = 2 [default = 1];
- */
- public boolean hasVersion() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
- /**
- * optional int32 version = 2 [default = 1];
- */
- public int getVersion() {
- return version_;
- }
-
- public static final int TYPE_FIELD_NUMBER = 3;
- private com.alibaba.otter.canal.protocol.CanalPacket.PacketType type_;
-
- /**
- * optional .com.alibaba.otter.canal.protocol.PacketType type = 3;
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.PacketType type = 3;
- */
- public com.alibaba.otter.canal.protocol.CanalPacket.PacketType getType() {
- return type_;
- }
-
- public static final int COMPRESSION_FIELD_NUMBER = 4;
- private com.alibaba.otter.canal.protocol.CanalPacket.Compression compression_;
-
- /**
- * optional .com.alibaba.otter.canal.protocol.Compression compression = 4 [default = NONE];
- */
- public boolean hasCompression() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.Compression compression = 4 [default = NONE];
- */
- public com.alibaba.otter.canal.protocol.CanalPacket.Compression getCompression() {
- return compression_;
- }
-
- public static final int BODY_FIELD_NUMBER = 5;
- private com.google.protobuf.ByteString body_;
-
- /**
- * optional bytes body = 5;
- */
- public boolean hasBody() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
-
- /**
- * optional bytes body = 5;
- */
- public com.google.protobuf.ByteString getBody() {
- return body_;
- }
-
- private void initFields() {
- magicNumber_ = 17;
- version_ = 1;
- type_ = com.alibaba.otter.canal.protocol.CanalPacket.PacketType.HANDSHAKE;
- compression_ = com.alibaba.otter.canal.protocol.CanalPacket.Compression.NONE;
- body_ = 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;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt32(1, magicNumber_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeInt32(2, version_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeEnum(3, type_.getNumber());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeEnum(4, compression_.getNumber());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(5, body_);
- }
- 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, magicNumber_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, version_);
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_.getNumber());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, compression_.getNumber());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, body_);
- }
- 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.CanalPacket.Packet parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalPacket.Packet 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.CanalPacket.Packet parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalPacket.Packet 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.CanalPacket.Packet parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalPacket.Packet 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.CanalPacket.Packet parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalPacket.Packet 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.CanalPacket.Packet parseFrom(com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalPacket.Packet 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.CanalPacket.Packet 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.Packet}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.otter.canal.protocol.Packet)
com.alibaba.otter.canal.protocol.CanalPacket.PacketOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_Packet_descriptor;
+ }
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_Packet_descriptor;
- }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_Packet_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alibaba.otter.canal.protocol.CanalPacket.Packet.class, com.alibaba.otter.canal.protocol.CanalPacket.Packet.Builder.class);
+ }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_Packet_fieldAccessorTable.ensureFieldAccessorsInitialized(com.alibaba.otter.canal.protocol.CanalPacket.Packet.class,
- com.alibaba.otter.canal.protocol.CanalPacket.Packet.Builder.class);
- }
+ // Construct using com.alibaba.otter.canal.protocol.CanalPacket.Packet.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
- // Construct using
- // com.alibaba.otter.canal.protocol.CanalPacket.Packet.newBuilder()
- private Builder(){
- maybeForceBuilderInitialization();
- }
-
- private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent){
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
-
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- magicNumber_ = 17;
- bitField0_ = (bitField0_ & ~0x00000001);
- version_ = 1;
- bitField0_ = (bitField0_ & ~0x00000002);
- type_ = com.alibaba.otter.canal.protocol.CanalPacket.PacketType.HANDSHAKE;
- bitField0_ = (bitField0_ & ~0x00000004);
- compression_ = com.alibaba.otter.canal.protocol.CanalPacket.Compression.NONE;
- bitField0_ = (bitField0_ & ~0x00000008);
- body_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000010);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_Packet_descriptor;
- }
-
- public com.alibaba.otter.canal.protocol.CanalPacket.Packet getDefaultInstanceForType() {
- return com.alibaba.otter.canal.protocol.CanalPacket.Packet.getDefaultInstance();
- }
-
- public com.alibaba.otter.canal.protocol.CanalPacket.Packet build() {
- com.alibaba.otter.canal.protocol.CanalPacket.Packet result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.alibaba.otter.canal.protocol.CanalPacket.Packet buildPartial() {
- com.alibaba.otter.canal.protocol.CanalPacket.Packet result = new com.alibaba.otter.canal.protocol.CanalPacket.Packet(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.magicNumber_ = magicNumber_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.version_ = version_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.type_ = type_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.compression_ = compression_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
- }
- result.body_ = body_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.alibaba.otter.canal.protocol.CanalPacket.Packet) {
- return mergeFrom((com.alibaba.otter.canal.protocol.CanalPacket.Packet) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.alibaba.otter.canal.protocol.CanalPacket.Packet other) {
- if (other == com.alibaba.otter.canal.protocol.CanalPacket.Packet.getDefaultInstance()) return this;
- if (other.hasMagicNumber()) {
- setMagicNumber(other.getMagicNumber());
- }
- if (other.hasVersion()) {
- setVersion(other.getVersion());
- }
- if (other.hasType()) {
- setType(other.getType());
- }
- if (other.hasCompression()) {
- setCompression(other.getCompression());
- }
- if (other.hasBody()) {
- setBody(other.getBody());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.alibaba.otter.canal.protocol.CanalPacket.Packet parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.alibaba.otter.canal.protocol.CanalPacket.Packet) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private int magicNumber_ = 17;
-
- /**
- * optional int32 magic_number = 1 [default = 17];
- */
- public boolean hasMagicNumber() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
- /**
- * optional int32 magic_number = 1 [default = 17];
- */
- public int getMagicNumber() {
- return magicNumber_;
- }
-
- /**
- * optional int32 magic_number = 1 [default = 17];
- */
- public Builder setMagicNumber(int value) {
- bitField0_ |= 0x00000001;
- magicNumber_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int32 magic_number = 1 [default = 17];
- */
- public Builder clearMagicNumber() {
- bitField0_ = (bitField0_ & ~0x00000001);
- magicNumber_ = 17;
- onChanged();
- return this;
- }
-
- private int version_ = 1;
-
- /**
- * optional int32 version = 2 [default = 1];
- */
- public boolean hasVersion() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
- /**
- * optional int32 version = 2 [default = 1];
- */
- public int getVersion() {
- return version_;
- }
-
- /**
- * optional int32 version = 2 [default = 1];
- */
- public Builder setVersion(int value) {
- bitField0_ |= 0x00000002;
- version_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int32 version = 2 [default = 1];
- */
- public Builder clearVersion() {
- bitField0_ = (bitField0_ & ~0x00000002);
- version_ = 1;
- onChanged();
- return this;
- }
-
- private com.alibaba.otter.canal.protocol.CanalPacket.PacketType type_ = com.alibaba.otter.canal.protocol.CanalPacket.PacketType.HANDSHAKE;
-
- /**
- * optional .com.alibaba.otter.canal.protocol.PacketType type = 3;
- */
- public boolean hasType() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.PacketType type = 3;
- */
- public com.alibaba.otter.canal.protocol.CanalPacket.PacketType getType() {
- return type_;
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.PacketType type = 3;
- */
- public Builder setType(com.alibaba.otter.canal.protocol.CanalPacket.PacketType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- type_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.PacketType type = 3;
- */
- public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000004);
- type_ = com.alibaba.otter.canal.protocol.CanalPacket.PacketType.HANDSHAKE;
- onChanged();
- return this;
- }
-
- private com.alibaba.otter.canal.protocol.CanalPacket.Compression compression_ = com.alibaba.otter.canal.protocol.CanalPacket.Compression.NONE;
-
- /**
- * optional .com.alibaba.otter.canal.protocol.Compression compression = 4 [default = NONE];
- */
- public boolean hasCompression() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.Compression compression = 4 [default = NONE];
- */
- public com.alibaba.otter.canal.protocol.CanalPacket.Compression getCompression() {
- return compression_;
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.Compression compression = 4 [default = NONE];
- */
- public Builder setCompression(com.alibaba.otter.canal.protocol.CanalPacket.Compression value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- compression_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.Compression compression = 4 [default = NONE];
- */
- public Builder clearCompression() {
- bitField0_ = (bitField0_ & ~0x00000008);
- compression_ = com.alibaba.otter.canal.protocol.CanalPacket.Compression.NONE;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
-
- /**
- * optional bytes body = 5;
- */
- public boolean hasBody() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
-
- /**
- * optional bytes body = 5;
- */
- public com.google.protobuf.ByteString getBody() {
- return body_;
- }
-
- /**
- * optional bytes body = 5;
- */
- public Builder setBody(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- body_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional bytes body = 5;
- */
- public Builder clearBody() {
- bitField0_ = (bitField0_ & ~0x00000010);
- body_ = getDefaultInstance().getBody();
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.Packet)
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ type_ = 0;
- static {
- defaultInstance = new Packet(true);
- defaultInstance.initFields();
+ body_ = com.google.protobuf.ByteString.EMPTY;
+
+ magicNumberPresentCase_ = 0;
+ magicNumberPresent_ = null;
+ versionPresentCase_ = 0;
+ versionPresent_ = null;
+ compressionPresentCase_ = 0;
+ compressionPresent_ = null;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_Packet_descriptor;
+ }
+
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalPacket.Packet getDefaultInstanceForType() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.Packet.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalPacket.Packet build() {
+ com.alibaba.otter.canal.protocol.CanalPacket.Packet result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
}
+ return result;
+ }
- // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.Packet)
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalPacket.Packet buildPartial() {
+ com.alibaba.otter.canal.protocol.CanalPacket.Packet result = new com.alibaba.otter.canal.protocol.CanalPacket.Packet(this);
+ if (magicNumberPresentCase_ == 1) {
+ result.magicNumberPresent_ = magicNumberPresent_;
+ }
+ if (versionPresentCase_ == 2) {
+ result.versionPresent_ = versionPresent_;
+ }
+ result.type_ = type_;
+ if (compressionPresentCase_ == 4) {
+ result.compressionPresent_ = compressionPresent_;
+ }
+ result.body_ = body_;
+ result.magicNumberPresentCase_ = magicNumberPresentCase_;
+ result.versionPresentCase_ = versionPresentCase_;
+ result.compressionPresentCase_ = compressionPresentCase_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alibaba.otter.canal.protocol.CanalPacket.Packet) {
+ return mergeFrom((com.alibaba.otter.canal.protocol.CanalPacket.Packet)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alibaba.otter.canal.protocol.CanalPacket.Packet other) {
+ if (other == com.alibaba.otter.canal.protocol.CanalPacket.Packet.getDefaultInstance()) return this;
+ if (other.type_ != 0) {
+ setTypeValue(other.getTypeValue());
+ }
+ if (other.getBody() != com.google.protobuf.ByteString.EMPTY) {
+ setBody(other.getBody());
+ }
+ switch (other.getMagicNumberPresentCase()) {
+ case MAGIC_NUMBER: {
+ setMagicNumber(other.getMagicNumber());
+ break;
+ }
+ case MAGICNUMBERPRESENT_NOT_SET: {
+ break;
+ }
+ }
+ switch (other.getVersionPresentCase()) {
+ case VERSION: {
+ setVersion(other.getVersion());
+ break;
+ }
+ case VERSIONPRESENT_NOT_SET: {
+ break;
+ }
+ }
+ switch (other.getCompressionPresentCase()) {
+ case COMPRESSION: {
+ setCompressionValue(other.getCompressionValue());
+ break;
+ }
+ case COMPRESSIONPRESENT_NOT_SET: {
+ break;
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alibaba.otter.canal.protocol.CanalPacket.Packet parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alibaba.otter.canal.protocol.CanalPacket.Packet) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int magicNumberPresentCase_ = 0;
+ private java.lang.Object magicNumberPresent_;
+ public MagicNumberPresentCase
+ getMagicNumberPresentCase() {
+ return MagicNumberPresentCase.forNumber(
+ magicNumberPresentCase_);
+ }
+
+ public Builder clearMagicNumberPresent() {
+ magicNumberPresentCase_ = 0;
+ magicNumberPresent_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int versionPresentCase_ = 0;
+ private java.lang.Object versionPresent_;
+ public VersionPresentCase
+ getVersionPresentCase() {
+ return VersionPresentCase.forNumber(
+ versionPresentCase_);
+ }
+
+ public Builder clearVersionPresent() {
+ versionPresentCase_ = 0;
+ versionPresent_ = null;
+ onChanged();
+ return this;
+ }
+
+ private int compressionPresentCase_ = 0;
+ private java.lang.Object compressionPresent_;
+ public CompressionPresentCase
+ getCompressionPresentCase() {
+ return CompressionPresentCase.forNumber(
+ compressionPresentCase_);
+ }
+
+ public Builder clearCompressionPresent() {
+ compressionPresentCase_ = 0;
+ compressionPresent_ = null;
+ onChanged();
+ return this;
+ }
+
+
+ /**
+ * int32 magic_number = 1;
+ */
+ public int getMagicNumber() {
+ if (magicNumberPresentCase_ == 1) {
+ return (java.lang.Integer) magicNumberPresent_;
+ }
+ return 17;
+ }
+ /**
+ * int32 magic_number = 1;
+ */
+ public Builder setMagicNumber(int value) {
+ magicNumberPresentCase_ = 1;
+ magicNumberPresent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 magic_number = 1;
+ */
+ public Builder clearMagicNumber() {
+ if (magicNumberPresentCase_ == 1) {
+ magicNumberPresentCase_ = 0;
+ magicNumberPresent_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ * int32 version = 2;
+ */
+ public int getVersion() {
+ if (versionPresentCase_ == 2) {
+ return (java.lang.Integer) versionPresent_;
+ }
+ return 0;
+ }
+ /**
+ * int32 version = 2;
+ */
+ public Builder setVersion(int value) {
+ versionPresentCase_ = 2;
+ versionPresent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 version = 2;
+ */
+ public Builder clearVersion() {
+ if (versionPresentCase_ == 2) {
+ versionPresentCase_ = 0;
+ versionPresent_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ private int type_ = 0;
+ /**
+ * .com.alibaba.otter.canal.protocol.PacketType type = 3;
+ */
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ * .com.alibaba.otter.canal.protocol.PacketType type = 3;
+ */
+ public Builder setTypeValue(int value) {
+ type_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.alibaba.otter.canal.protocol.PacketType type = 3;
+ */
+ public com.alibaba.otter.canal.protocol.CanalPacket.PacketType getType() {
+ @SuppressWarnings("deprecation")
+ com.alibaba.otter.canal.protocol.CanalPacket.PacketType result = com.alibaba.otter.canal.protocol.CanalPacket.PacketType.valueOf(type_);
+ return result == null ? com.alibaba.otter.canal.protocol.CanalPacket.PacketType.UNRECOGNIZED : result;
+ }
+ /**
+ * .com.alibaba.otter.canal.protocol.PacketType type = 3;
+ */
+ public Builder setType(com.alibaba.otter.canal.protocol.CanalPacket.PacketType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.alibaba.otter.canal.protocol.PacketType type = 3;
+ */
+ public Builder clearType() {
+
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ /**
+ * .com.alibaba.otter.canal.protocol.Compression compression = 4;
+ */
+ public int getCompressionValue() {
+ if (compressionPresentCase_ == 4) {
+ return ((java.lang.Integer) compressionPresent_).intValue();
+ }
+ return 0;
+ }
+ /**
+ * .com.alibaba.otter.canal.protocol.Compression compression = 4;
+ */
+ public Builder setCompressionValue(int value) {
+ compressionPresentCase_ = 4;
+ compressionPresent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.alibaba.otter.canal.protocol.Compression compression = 4;
+ */
+ public com.alibaba.otter.canal.protocol.CanalPacket.Compression getCompression() {
+ if (compressionPresentCase_ == 4) {
+ @SuppressWarnings("deprecation")
+ com.alibaba.otter.canal.protocol.CanalPacket.Compression result = com.alibaba.otter.canal.protocol.CanalPacket.Compression.valueOf(
+ (java.lang.Integer) compressionPresent_);
+ return result == null ? com.alibaba.otter.canal.protocol.CanalPacket.Compression.UNRECOGNIZED : result;
+ }
+ return com.alibaba.otter.canal.protocol.CanalPacket.Compression.COMPRESSIONCOMPATIBLEPROTO2;
+ }
+ /**
+ * .com.alibaba.otter.canal.protocol.Compression compression = 4;
+ */
+ public Builder setCompression(com.alibaba.otter.canal.protocol.CanalPacket.Compression value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ compressionPresentCase_ = 4;
+ compressionPresent_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .com.alibaba.otter.canal.protocol.Compression compression = 4;
+ */
+ public Builder clearCompression() {
+ if (compressionPresentCase_ == 4) {
+ compressionPresentCase_ = 0;
+ compressionPresent_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * bytes body = 5;
+ */
+ public com.google.protobuf.ByteString getBody() {
+ return body_;
+ }
+ /**
+ * bytes body = 5;
+ */
+ public Builder setBody(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ body_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes body = 5;
+ */
+ public Builder clearBody() {
+
+ body_ = getDefaultInstance().getBody();
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.Packet)
}
- public interface HeartBeatOrBuilder extends
- // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.HeartBeat)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional int64 send_timestamp = 1;
- */
- boolean hasSendTimestamp();
-
- /**
- * optional int64 send_timestamp = 1;
- */
- long getSendTimestamp();
-
- /**
- * optional int64 start_timestamp = 2;
- */
- boolean hasStartTimestamp();
-
- /**
- * optional int64 start_timestamp = 2;
- */
- long getStartTimestamp();
+ // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.Packet)
+ private static final com.alibaba.otter.canal.protocol.CanalPacket.Packet DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alibaba.otter.canal.protocol.CanalPacket.Packet();
}
+ public static com.alibaba.otter.canal.protocol.CanalPacket.Packet getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Packet parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Packet(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalPacket.Packet getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HeartBeatOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.HeartBeat)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int64 send_timestamp = 1;
+ */
+ long getSendTimestamp();
+
+ /**
+ * int64 start_timestamp = 2;
+ */
+ long getStartTimestamp();
+ }
+ /**
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.HeartBeat}
+ */
+ public static final class HeartBeat extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.HeartBeat)
+ HeartBeatOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use HeartBeat.newBuilder() to construct.
+ private HeartBeat(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private HeartBeat() {
+ sendTimestamp_ = 0L;
+ startTimestamp_ = 0L;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private HeartBeat(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ sendTimestamp_ = input.readInt64();
+ break;
+ }
+ case 16: {
+
+ startTimestamp_ = input.readInt64();
+ break;
+ }
+ default: {
+ if (!parseUnknownFieldProto3(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_HeartBeat_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_HeartBeat_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.class, com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.Builder.class);
+ }
+
+ public static final int SEND_TIMESTAMP_FIELD_NUMBER = 1;
+ private long sendTimestamp_;
+ /**
+ * int64 send_timestamp = 1;
+ */
+ public long getSendTimestamp() {
+ return sendTimestamp_;
+ }
+
+ public static final int START_TIMESTAMP_FIELD_NUMBER = 2;
+ private long startTimestamp_;
+ /**
+ * int64 start_timestamp = 2;
+ */
+ public long getStartTimestamp() {
+ return startTimestamp_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (sendTimestamp_ != 0L) {
+ output.writeInt64(1, sendTimestamp_);
+ }
+ if (startTimestamp_ != 0L) {
+ output.writeInt64(2, startTimestamp_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (sendTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, sendTimestamp_);
+ }
+ if (startTimestamp_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(2, startTimestamp_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat)) {
+ return super.equals(obj);
+ }
+ com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat other = (com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat) obj;
+
+ boolean result = true;
+ result = result && (getSendTimestamp()
+ == other.getSendTimestamp());
+ result = result && (getStartTimestamp()
+ == other.getStartTimestamp());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SEND_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getSendTimestamp());
+ hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getStartTimestamp());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat 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.CanalPacket.HeartBeat parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat 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.CanalPacket.HeartBeat parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
/**
* Protobuf type {@code com.alibaba.otter.canal.protocol.HeartBeat}
*/
- public static final class HeartBeat extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.HeartBeat)
- HeartBeatOrBuilder {
-
- // Use HeartBeat.newBuilder() to construct.
- private HeartBeat(com.google.protobuf.GeneratedMessage.Builder> builder){
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
-
- private HeartBeat(boolean noInit){
- this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance();
- }
-
- private static final HeartBeat defaultInstance;
-
- public static HeartBeat getDefaultInstance() {
- return defaultInstance;
- }
-
- public HeartBeat getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private HeartBeat(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;
- sendTimestamp_ = input.readInt64();
- break;
- }
- case 16: {
- bitField0_ |= 0x00000002;
- startTimestamp_ = input.readInt64();
- break;
- }
- }
- }
- } 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.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_HeartBeat_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_HeartBeat_fieldAccessorTable.ensureFieldAccessorsInitialized(com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.class,
- com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.Builder.class);
- }
-
- public static com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() {
-
- public HeartBeat parsePartialFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new HeartBeat(input,
- extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- private int bitField0_;
- public static final int SEND_TIMESTAMP_FIELD_NUMBER = 1;
- private long sendTimestamp_;
-
- /**
- * optional int64 send_timestamp = 1;
- */
- public boolean hasSendTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
- /**
- * optional int64 send_timestamp = 1;
- */
- public long getSendTimestamp() {
- return sendTimestamp_;
- }
-
- public static final int START_TIMESTAMP_FIELD_NUMBER = 2;
- private long startTimestamp_;
-
- /**
- * optional int64 start_timestamp = 2;
- */
- public boolean hasStartTimestamp() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
- /**
- * optional int64 start_timestamp = 2;
- */
- public long getStartTimestamp() {
- return startTimestamp_;
- }
-
- private void initFields() {
- sendTimestamp_ = 0L;
- startTimestamp_ = 0L;
- }
-
- 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.writeInt64(1, sendTimestamp_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeInt64(2, startTimestamp_);
- }
- 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.computeInt64Size(1, sendTimestamp_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, startTimestamp_);
- }
- 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.CanalPacket.HeartBeat parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat 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.CanalPacket.HeartBeat parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat 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.CanalPacket.HeartBeat parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat 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.CanalPacket.HeartBeat parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat 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.CanalPacket.HeartBeat parseFrom(com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat 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.CanalPacket.HeartBeat 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.HeartBeat}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.otter.canal.protocol.HeartBeat)
com.alibaba.otter.canal.protocol.CanalPacket.HeartBeatOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_HeartBeat_descriptor;
+ }
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_HeartBeat_descriptor;
- }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_HeartBeat_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.class, com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.Builder.class);
+ }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_HeartBeat_fieldAccessorTable.ensureFieldAccessorsInitialized(com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.class,
- com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.Builder.class);
- }
+ // Construct using com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
- // Construct using
- // com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.newBuilder()
- private Builder(){
- maybeForceBuilderInitialization();
- }
-
- private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent){
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
-
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- sendTimestamp_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- startTimestamp_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_HeartBeat_descriptor;
- }
-
- public com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat getDefaultInstanceForType() {
- return com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.getDefaultInstance();
- }
-
- public com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat build() {
- com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat buildPartial() {
- com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat result = new com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.sendTimestamp_ = sendTimestamp_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.startTimestamp_ = startTimestamp_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat) {
- return mergeFrom((com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat) other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat other) {
- if (other == com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.getDefaultInstance()) return this;
- if (other.hasSendTimestamp()) {
- setSendTimestamp(other.getSendTimestamp());
- }
- if (other.hasStartTimestamp()) {
- setStartTimestamp(other.getStartTimestamp());
- }
- this.mergeUnknownFields(other.getUnknownFields());
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private long sendTimestamp_;
-
- /**
- * optional int64 send_timestamp = 1;
- */
- public boolean hasSendTimestamp() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
- /**
- * optional int64 send_timestamp = 1;
- */
- public long getSendTimestamp() {
- return sendTimestamp_;
- }
-
- /**
- * optional int64 send_timestamp = 1;
- */
- public Builder setSendTimestamp(long value) {
- bitField0_ |= 0x00000001;
- sendTimestamp_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int64 send_timestamp = 1;
- */
- public Builder clearSendTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000001);
- sendTimestamp_ = 0L;
- onChanged();
- return this;
- }
-
- private long startTimestamp_;
-
- /**
- * optional int64 start_timestamp = 2;
- */
- public boolean hasStartTimestamp() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
- /**
- * optional int64 start_timestamp = 2;
- */
- public long getStartTimestamp() {
- return startTimestamp_;
- }
-
- /**
- * optional int64 start_timestamp = 2;
- */
- public Builder setStartTimestamp(long value) {
- bitField0_ |= 0x00000002;
- startTimestamp_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int64 start_timestamp = 2;
- */
- public Builder clearStartTimestamp() {
- bitField0_ = (bitField0_ & ~0x00000002);
- startTimestamp_ = 0L;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.HeartBeat)
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
}
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ sendTimestamp_ = 0L;
- static {
- defaultInstance = new HeartBeat(true);
- defaultInstance.initFields();
+ startTimestamp_ = 0L;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.internal_static_com_alibaba_otter_canal_protocol_HeartBeat_descriptor;
+ }
+
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat getDefaultInstanceForType() {
+ return com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat build() {
+ com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
}
+ return result;
+ }
- // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.HeartBeat)
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat buildPartial() {
+ com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat result = new com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat(this);
+ result.sendTimestamp_ = sendTimestamp_;
+ result.startTimestamp_ = startTimestamp_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return (Builder) super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return (Builder) super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return (Builder) super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return (Builder) super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return (Builder) super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat) {
+ return mergeFrom((com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat other) {
+ if (other == com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat.getDefaultInstance()) return this;
+ if (other.getSendTimestamp() != 0L) {
+ setSendTimestamp(other.getSendTimestamp());
+ }
+ if (other.getStartTimestamp() != 0L) {
+ setStartTimestamp(other.getStartTimestamp());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private long sendTimestamp_ ;
+ /**
+ * int64 send_timestamp = 1;
+ */
+ public long getSendTimestamp() {
+ return sendTimestamp_;
+ }
+ /**
+ * int64 send_timestamp = 1;
+ */
+ public Builder setSendTimestamp(long value) {
+
+ sendTimestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 send_timestamp = 1;
+ */
+ public Builder clearSendTimestamp() {
+
+ sendTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long startTimestamp_ ;
+ /**
+ * int64 start_timestamp = 2;
+ */
+ public long getStartTimestamp() {
+ return startTimestamp_;
+ }
+ /**
+ * int64 start_timestamp = 2;
+ */
+ public Builder setStartTimestamp(long value) {
+
+ startTimestamp_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 start_timestamp = 2;
+ */
+ public Builder clearStartTimestamp() {
+
+ startTimestamp_ = 0L;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.HeartBeat)
}
- public interface HandshakeOrBuilder extends
- // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Handshake)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional string communication_encoding = 1 [default = "utf8"];
- */
- boolean hasCommunicationEncoding();
-
- /**
- * optional string communication_encoding = 1 [default = "utf8"];
- */
- java.lang.String getCommunicationEncoding();
-
- /**
- * optional string communication_encoding = 1 [default = "utf8"];
- */
- com.google.protobuf.ByteString getCommunicationEncodingBytes();
-
- /**
- * optional bytes seeds = 2;
- */
- boolean hasSeeds();
-
- /**
- * optional bytes seeds = 2;
- */
- com.google.protobuf.ByteString getSeeds();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Compression supported_compressions = 3;
- */
- java.util.List getSupportedCompressionsList();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Compression supported_compressions = 3;
- */
- int getSupportedCompressionsCount();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Compression supported_compressions = 3;
- */
- com.alibaba.otter.canal.protocol.CanalPacket.Compression getSupportedCompressions(int index);
+ // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.HeartBeat)
+ private static final com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat();
}
+ public static com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public HeartBeat parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new HeartBeat(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.alibaba.otter.canal.protocol.CanalPacket.HeartBeat getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface HandshakeOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Handshake)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *