getBeforeColumnsList() {
- if (beforeColumnsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(beforeColumns_);
- } else {
- return beforeColumnsBuilder_.getMessageList();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public int getBeforeColumnsCount() {
- if (beforeColumnsBuilder_ == null) {
- return beforeColumns_.size();
- } else {
- return beforeColumnsBuilder_.getCount();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Column getBeforeColumns(int index) {
- if (beforeColumnsBuilder_ == null) {
- return beforeColumns_.get(index);
- } else {
- return beforeColumnsBuilder_.getMessage(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public Builder setBeforeColumns(int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
- if (beforeColumnsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBeforeColumnsIsMutable();
- beforeColumns_.set(index, value);
- onChanged();
- } else {
- beforeColumnsBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public Builder setBeforeColumns(int index,
- com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
- if (beforeColumnsBuilder_ == null) {
- ensureBeforeColumnsIsMutable();
- beforeColumns_.set(index, builderForValue.build());
- onChanged();
- } else {
- beforeColumnsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public Builder addBeforeColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
- if (beforeColumnsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBeforeColumnsIsMutable();
- beforeColumns_.add(value);
- onChanged();
- } else {
- beforeColumnsBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public Builder addBeforeColumns(int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
- if (beforeColumnsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBeforeColumnsIsMutable();
- beforeColumns_.add(index, value);
- onChanged();
- } else {
- beforeColumnsBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public Builder addBeforeColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
- if (beforeColumnsBuilder_ == null) {
- ensureBeforeColumnsIsMutable();
- beforeColumns_.add(builderForValue.build());
- onChanged();
- } else {
- beforeColumnsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public Builder addBeforeColumns(int index,
- com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
- if (beforeColumnsBuilder_ == null) {
- ensureBeforeColumnsIsMutable();
- beforeColumns_.add(index, builderForValue.build());
- onChanged();
- } else {
- beforeColumnsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public Builder addAllBeforeColumns(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Column> values) {
- if (beforeColumnsBuilder_ == null) {
- ensureBeforeColumnsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, beforeColumns_);
- onChanged();
- } else {
- beforeColumnsBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public Builder clearBeforeColumns() {
- if (beforeColumnsBuilder_ == null) {
- beforeColumns_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- beforeColumnsBuilder_.clear();
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public Builder removeBeforeColumns(int index) {
- if (beforeColumnsBuilder_ == null) {
- ensureBeforeColumnsIsMutable();
- beforeColumns_.remove(index);
- onChanged();
- } else {
- beforeColumnsBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder getBeforeColumnsBuilder(int index) {
- return getBeforeColumnsFieldBuilder().getBuilder(index);
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getBeforeColumnsOrBuilder(int index) {
- if (beforeColumnsBuilder_ == null) {
- return beforeColumns_.get(index);
- } else {
- return beforeColumnsBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> getBeforeColumnsOrBuilderList() {
- if (beforeColumnsBuilder_ != null) {
- return beforeColumnsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(beforeColumns_);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addBeforeColumnsBuilder() {
- return getBeforeColumnsFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addBeforeColumnsBuilder(int index) {
- return getBeforeColumnsFieldBuilder().addBuilder(index,
- com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
- *
- *
- * * 字段信息,增量数据(修改前,删除前) *
- *
- */
- public java.util.List getBeforeColumnsBuilderList() {
- return getBeforeColumnsFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilder getBeforeColumnsFieldBuilder() {
- if (beforeColumnsBuilder_ == null) {
- beforeColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(beforeColumns_,
- ((bitField0_ & 0x00000001) == 0x00000001),
- getParentForChildren(),
- isClean());
- beforeColumns_ = null;
- }
- return beforeColumnsBuilder_;
- }
-
- private java.util.List afterColumns_ = java.util.Collections.emptyList();
-
- private void ensureAfterColumnsIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- afterColumns_ = new java.util.ArrayList(afterColumns_);
- bitField0_ |= 0x00000002;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder afterColumnsBuilder_;
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public java.util.List getAfterColumnsList() {
- if (afterColumnsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(afterColumns_);
- } else {
- return afterColumnsBuilder_.getMessageList();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public int getAfterColumnsCount() {
- if (afterColumnsBuilder_ == null) {
- return afterColumns_.size();
- } else {
- return afterColumnsBuilder_.getCount();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Column getAfterColumns(int index) {
- if (afterColumnsBuilder_ == null) {
- return afterColumns_.get(index);
- } else {
- return afterColumnsBuilder_.getMessage(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public Builder setAfterColumns(int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
- if (afterColumnsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAfterColumnsIsMutable();
- afterColumns_.set(index, value);
- onChanged();
- } else {
- afterColumnsBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public Builder setAfterColumns(int index,
- com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
- if (afterColumnsBuilder_ == null) {
- ensureAfterColumnsIsMutable();
- afterColumns_.set(index, builderForValue.build());
- onChanged();
- } else {
- afterColumnsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public Builder addAfterColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
- if (afterColumnsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAfterColumnsIsMutable();
- afterColumns_.add(value);
- onChanged();
- } else {
- afterColumnsBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public Builder addAfterColumns(int index, com.alibaba.otter.canal.protocol.CanalEntry.Column value) {
- if (afterColumnsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureAfterColumnsIsMutable();
- afterColumns_.add(index, value);
- onChanged();
- } else {
- afterColumnsBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public Builder addAfterColumns(com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
- if (afterColumnsBuilder_ == null) {
- ensureAfterColumnsIsMutable();
- afterColumns_.add(builderForValue.build());
- onChanged();
- } else {
- afterColumnsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public Builder addAfterColumns(int index,
- com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder builderForValue) {
- if (afterColumnsBuilder_ == null) {
- ensureAfterColumnsIsMutable();
- afterColumns_.add(index, builderForValue.build());
- onChanged();
- } else {
- afterColumnsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public Builder addAllAfterColumns(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Column> values) {
- if (afterColumnsBuilder_ == null) {
- ensureAfterColumnsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, afterColumns_);
- onChanged();
- } else {
- afterColumnsBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public Builder clearAfterColumns() {
- if (afterColumnsBuilder_ == null) {
- afterColumns_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- afterColumnsBuilder_.clear();
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public Builder removeAfterColumns(int index) {
- if (afterColumnsBuilder_ == null) {
- ensureAfterColumnsIsMutable();
- afterColumns_.remove(index);
- onChanged();
- } else {
- afterColumnsBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder getAfterColumnsBuilder(int index) {
- return getAfterColumnsFieldBuilder().getBuilder(index);
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder getAfterColumnsOrBuilder(int index) {
- if (afterColumnsBuilder_ == null) {
- return afterColumns_.get(index);
- } else {
- return afterColumnsBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.ColumnOrBuilder> getAfterColumnsOrBuilderList() {
- if (afterColumnsBuilder_ != null) {
- return afterColumnsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(afterColumns_);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addAfterColumnsBuilder() {
- return getAfterColumnsFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Column.Builder addAfterColumnsBuilder(int index) {
- return getAfterColumnsFieldBuilder().addBuilder(index,
- com.alibaba.otter.canal.protocol.CanalEntry.Column.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
- *
- *
- * * 字段信息,增量数据(修改后,新增后) *
- *
- */
- public java.util.List getAfterColumnsBuilderList() {
- return getAfterColumnsFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilder getAfterColumnsFieldBuilder() {
- if (afterColumnsBuilder_ == null) {
- afterColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(afterColumns_,
- ((bitField0_ & 0x00000002) == 0x00000002),
- getParentForChildren(),
- isClean());
- afterColumns_ = null;
- }
- return afterColumnsBuilder_;
- }
-
- private java.util.List props_ = java.util.Collections.emptyList();
-
- private void ensurePropsIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = new java.util.ArrayList(props_);
- bitField0_ |= 0x00000004;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder propsBuilder_;
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List getPropsList() {
- if (propsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(props_);
- } else {
- return propsBuilder_.getMessageList();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public int getPropsCount() {
- if (propsBuilder_ == null) {
- return props_.size();
- } else {
- return propsBuilder_.getCount();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
- if (propsBuilder_ == null) {
- return props_.get(index);
- } else {
- return propsBuilder_.getMessage(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.set(index, value);
- onChanged();
- } else {
- propsBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.set(index, builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.add(value);
- onChanged();
- } else {
- propsBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.add(index, value);
- onChanged();
- } else {
- propsBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.add(builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.add(index, builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addAllProps(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, props_);
- onChanged();
- } else {
- propsBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder clearProps() {
- if (propsBuilder_ == null) {
- props_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- propsBuilder_.clear();
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder removeProps(int index) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.remove(index);
- onChanged();
- } else {
- propsBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder getPropsBuilder(int index) {
- return getPropsFieldBuilder().getBuilder(index);
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) {
- if (propsBuilder_ == null) {
- return props_.get(index);
- } else {
- return propsBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() {
- if (propsBuilder_ != null) {
- return propsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(props_);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() {
- return getPropsFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder(int index) {
- return getPropsFieldBuilder().addBuilder(index,
- com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List getPropsBuilderList() {
- return getPropsFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilder getPropsFieldBuilder() {
- if (propsBuilder_ == null) {
- propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(props_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
- props_ = null;
- }
- return propsBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.RowData)
+ RowDataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowData_descriptor;
+ }
+
+ protected FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ RowData.class, Builder.class);
+ }
+
+ // Construct using com.alibaba.otter.canal.protocol.CanalEntry.RowData.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getBeforeColumnsFieldBuilder();
+ getAfterColumnsFieldBuilder();
+ getPropsFieldBuilder();
}
+ }
+ private static Builder create() {
+ return new Builder();
+ }
- static {
- defaultInstance = new RowData(true);
- defaultInstance.initFields();
+ public Builder clear() {
+ super.clear();
+ if (beforeColumnsBuilder_ == null) {
+ beforeColumns_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ beforeColumnsBuilder_.clear();
}
+ if (afterColumnsBuilder_ == null) {
+ afterColumns_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ afterColumnsBuilder_.clear();
+ }
+ if (propsBuilder_ == null) {
+ props_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ propsBuilder_.clear();
+ }
+ return this;
+ }
- // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.RowData)
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowData_descriptor;
+ }
+
+ public RowData getDefaultInstanceForType() {
+ return RowData.getDefaultInstance();
+ }
+
+ public RowData build() {
+ RowData result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public RowData buildPartial() {
+ RowData result = new RowData(this);
+ int from_bitField0_ = bitField0_;
+ if (beforeColumnsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ beforeColumns_ = java.util.Collections.unmodifiableList(beforeColumns_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.beforeColumns_ = beforeColumns_;
+ } else {
+ result.beforeColumns_ = beforeColumnsBuilder_.build();
+ }
+ if (afterColumnsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ afterColumns_ = java.util.Collections.unmodifiableList(afterColumns_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.afterColumns_ = afterColumns_;
+ } else {
+ result.afterColumns_ = afterColumnsBuilder_.build();
+ }
+ if (propsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ props_ = java.util.Collections.unmodifiableList(props_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.props_ = props_;
+ } else {
+ result.props_ = propsBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof RowData) {
+ return mergeFrom((RowData)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(RowData other) {
+ if (other == RowData.getDefaultInstance()) return this;
+ if (beforeColumnsBuilder_ == null) {
+ if (!other.beforeColumns_.isEmpty()) {
+ if (beforeColumns_.isEmpty()) {
+ beforeColumns_ = other.beforeColumns_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureBeforeColumnsIsMutable();
+ beforeColumns_.addAll(other.beforeColumns_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.beforeColumns_.isEmpty()) {
+ if (beforeColumnsBuilder_.isEmpty()) {
+ beforeColumnsBuilder_.dispose();
+ beforeColumnsBuilder_ = null;
+ beforeColumns_ = other.beforeColumns_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ beforeColumnsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getBeforeColumnsFieldBuilder() : null;
+ } else {
+ beforeColumnsBuilder_.addAllMessages(other.beforeColumns_);
+ }
+ }
+ }
+ if (afterColumnsBuilder_ == null) {
+ if (!other.afterColumns_.isEmpty()) {
+ if (afterColumns_.isEmpty()) {
+ afterColumns_ = other.afterColumns_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureAfterColumnsIsMutable();
+ afterColumns_.addAll(other.afterColumns_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.afterColumns_.isEmpty()) {
+ if (afterColumnsBuilder_.isEmpty()) {
+ afterColumnsBuilder_.dispose();
+ afterColumnsBuilder_ = null;
+ afterColumns_ = other.afterColumns_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ afterColumnsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getAfterColumnsFieldBuilder() : null;
+ } else {
+ afterColumnsBuilder_.addAllMessages(other.afterColumns_);
+ }
+ }
+ }
+ if (propsBuilder_ == null) {
+ if (!other.props_.isEmpty()) {
+ if (props_.isEmpty()) {
+ props_ = other.props_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensurePropsIsMutable();
+ props_.addAll(other.props_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.props_.isEmpty()) {
+ if (propsBuilder_.isEmpty()) {
+ propsBuilder_.dispose();
+ propsBuilder_ = null;
+ props_ = other.props_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ propsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPropsFieldBuilder() : null;
+ } else {
+ propsBuilder_.addAllMessages(other.props_);
+ }
+ }
+ }
+ 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 {
+ RowData parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (RowData) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List beforeColumns_ =
+ java.util.Collections.emptyList();
+ private void ensureBeforeColumnsIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ beforeColumns_ = new java.util.ArrayList(beforeColumns_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Column, Column.Builder, ColumnOrBuilder> beforeColumnsBuilder_;
+
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public java.util.List getBeforeColumnsList() {
+ if (beforeColumnsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(beforeColumns_);
+ } else {
+ return beforeColumnsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public int getBeforeColumnsCount() {
+ if (beforeColumnsBuilder_ == null) {
+ return beforeColumns_.size();
+ } else {
+ return beforeColumnsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Column getBeforeColumns(int index) {
+ if (beforeColumnsBuilder_ == null) {
+ return beforeColumns_.get(index);
+ } else {
+ return beforeColumnsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Builder setBeforeColumns(
+ int index, Column value) {
+ if (beforeColumnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBeforeColumnsIsMutable();
+ beforeColumns_.set(index, value);
+ onChanged();
+ } else {
+ beforeColumnsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Builder setBeforeColumns(
+ int index, Column.Builder builderForValue) {
+ if (beforeColumnsBuilder_ == null) {
+ ensureBeforeColumnsIsMutable();
+ beforeColumns_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ beforeColumnsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Builder addBeforeColumns(Column value) {
+ if (beforeColumnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBeforeColumnsIsMutable();
+ beforeColumns_.add(value);
+ onChanged();
+ } else {
+ beforeColumnsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Builder addBeforeColumns(
+ int index, Column value) {
+ if (beforeColumnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBeforeColumnsIsMutable();
+ beforeColumns_.add(index, value);
+ onChanged();
+ } else {
+ beforeColumnsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Builder addBeforeColumns(
+ Column.Builder builderForValue) {
+ if (beforeColumnsBuilder_ == null) {
+ ensureBeforeColumnsIsMutable();
+ beforeColumns_.add(builderForValue.build());
+ onChanged();
+ } else {
+ beforeColumnsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Builder addBeforeColumns(
+ int index, Column.Builder builderForValue) {
+ if (beforeColumnsBuilder_ == null) {
+ ensureBeforeColumnsIsMutable();
+ beforeColumns_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ beforeColumnsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Builder addAllBeforeColumns(
+ Iterable extends Column> values) {
+ if (beforeColumnsBuilder_ == null) {
+ ensureBeforeColumnsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, beforeColumns_);
+ onChanged();
+ } else {
+ beforeColumnsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Builder clearBeforeColumns() {
+ if (beforeColumnsBuilder_ == null) {
+ beforeColumns_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ beforeColumnsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Builder removeBeforeColumns(int index) {
+ if (beforeColumnsBuilder_ == null) {
+ ensureBeforeColumnsIsMutable();
+ beforeColumns_.remove(index);
+ onChanged();
+ } else {
+ beforeColumnsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Column.Builder getBeforeColumnsBuilder(
+ int index) {
+ return getBeforeColumnsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public ColumnOrBuilder getBeforeColumnsOrBuilder(
+ int index) {
+ if (beforeColumnsBuilder_ == null) {
+ return beforeColumns_.get(index); } else {
+ return beforeColumnsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public java.util.List extends ColumnOrBuilder>
+ getBeforeColumnsOrBuilderList() {
+ if (beforeColumnsBuilder_ != null) {
+ return beforeColumnsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(beforeColumns_);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Column.Builder addBeforeColumnsBuilder() {
+ return getBeforeColumnsFieldBuilder().addBuilder(
+ Column.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public Column.Builder addBeforeColumnsBuilder(
+ int index) {
+ return getBeforeColumnsFieldBuilder().addBuilder(
+ index, Column.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column beforeColumns = 1;
+ *
+ *
+ ** 字段信息,增量数据(修改前,删除前) *
+ *
+ */
+ public java.util.List
+ getBeforeColumnsBuilderList() {
+ return getBeforeColumnsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Column, Column.Builder, ColumnOrBuilder>
+ getBeforeColumnsFieldBuilder() {
+ if (beforeColumnsBuilder_ == null) {
+ beforeColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ Column, Column.Builder, ColumnOrBuilder>(
+ beforeColumns_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ beforeColumns_ = null;
+ }
+ return beforeColumnsBuilder_;
+ }
+
+ private java.util.List afterColumns_ =
+ java.util.Collections.emptyList();
+ private void ensureAfterColumnsIsMutable() {
+ if (!((bitField0_ & 0x00000002) == 0x00000002)) {
+ afterColumns_ = new java.util.ArrayList(afterColumns_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Column, Column.Builder, ColumnOrBuilder> afterColumnsBuilder_;
+
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public java.util.List getAfterColumnsList() {
+ if (afterColumnsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(afterColumns_);
+ } else {
+ return afterColumnsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public int getAfterColumnsCount() {
+ if (afterColumnsBuilder_ == null) {
+ return afterColumns_.size();
+ } else {
+ return afterColumnsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Column getAfterColumns(int index) {
+ if (afterColumnsBuilder_ == null) {
+ return afterColumns_.get(index);
+ } else {
+ return afterColumnsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Builder setAfterColumns(
+ int index, Column value) {
+ if (afterColumnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAfterColumnsIsMutable();
+ afterColumns_.set(index, value);
+ onChanged();
+ } else {
+ afterColumnsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Builder setAfterColumns(
+ int index, Column.Builder builderForValue) {
+ if (afterColumnsBuilder_ == null) {
+ ensureAfterColumnsIsMutable();
+ afterColumns_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ afterColumnsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Builder addAfterColumns(Column value) {
+ if (afterColumnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAfterColumnsIsMutable();
+ afterColumns_.add(value);
+ onChanged();
+ } else {
+ afterColumnsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Builder addAfterColumns(
+ int index, Column value) {
+ if (afterColumnsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAfterColumnsIsMutable();
+ afterColumns_.add(index, value);
+ onChanged();
+ } else {
+ afterColumnsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Builder addAfterColumns(
+ Column.Builder builderForValue) {
+ if (afterColumnsBuilder_ == null) {
+ ensureAfterColumnsIsMutable();
+ afterColumns_.add(builderForValue.build());
+ onChanged();
+ } else {
+ afterColumnsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Builder addAfterColumns(
+ int index, Column.Builder builderForValue) {
+ if (afterColumnsBuilder_ == null) {
+ ensureAfterColumnsIsMutable();
+ afterColumns_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ afterColumnsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Builder addAllAfterColumns(
+ Iterable extends Column> values) {
+ if (afterColumnsBuilder_ == null) {
+ ensureAfterColumnsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, afterColumns_);
+ onChanged();
+ } else {
+ afterColumnsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Builder clearAfterColumns() {
+ if (afterColumnsBuilder_ == null) {
+ afterColumns_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ afterColumnsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Builder removeAfterColumns(int index) {
+ if (afterColumnsBuilder_ == null) {
+ ensureAfterColumnsIsMutable();
+ afterColumns_.remove(index);
+ onChanged();
+ } else {
+ afterColumnsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Column.Builder getAfterColumnsBuilder(
+ int index) {
+ return getAfterColumnsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public ColumnOrBuilder getAfterColumnsOrBuilder(
+ int index) {
+ if (afterColumnsBuilder_ == null) {
+ return afterColumns_.get(index); } else {
+ return afterColumnsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public java.util.List extends ColumnOrBuilder>
+ getAfterColumnsOrBuilderList() {
+ if (afterColumnsBuilder_ != null) {
+ return afterColumnsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(afterColumns_);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Column.Builder addAfterColumnsBuilder() {
+ return getAfterColumnsFieldBuilder().addBuilder(
+ Column.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public Column.Builder addAfterColumnsBuilder(
+ int index) {
+ return getAfterColumnsFieldBuilder().addBuilder(
+ index, Column.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Column afterColumns = 2;
+ *
+ *
+ ** 字段信息,增量数据(修改后,新增后) *
+ *
+ */
+ public java.util.List
+ getAfterColumnsBuilderList() {
+ return getAfterColumnsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Column, Column.Builder, ColumnOrBuilder>
+ getAfterColumnsFieldBuilder() {
+ if (afterColumnsBuilder_ == null) {
+ afterColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ Column, Column.Builder, ColumnOrBuilder>(
+ afterColumns_,
+ ((bitField0_ & 0x00000002) == 0x00000002),
+ getParentForChildren(),
+ isClean());
+ afterColumns_ = null;
+ }
+ return afterColumnsBuilder_;
+ }
+
+ private java.util.List props_ =
+ java.util.Collections.emptyList();
+ private void ensurePropsIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ props_ = new java.util.ArrayList(props_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder> propsBuilder_;
+
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List getPropsList() {
+ if (propsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(props_);
+ } else {
+ return propsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public int getPropsCount() {
+ if (propsBuilder_ == null) {
+ return props_.size();
+ } else {
+ return propsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair getProps(int index) {
+ if (propsBuilder_ == null) {
+ return props_.get(index);
+ } else {
+ return propsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder setProps(
+ int index, Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.set(index, value);
+ onChanged();
+ } else {
+ propsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder setProps(
+ int index, Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.add(value);
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ int index, Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.add(index, value);
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.add(builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ int index, Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addAllProps(
+ Iterable extends Pair> values) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, props_);
+ onChanged();
+ } else {
+ propsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder clearProps() {
+ if (propsBuilder_ == null) {
+ props_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ propsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder removeProps(int index) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.remove(index);
+ onChanged();
+ } else {
+ propsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder getPropsBuilder(
+ int index) {
+ return getPropsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public PairOrBuilder getPropsOrBuilder(
+ int index) {
+ if (propsBuilder_ == null) {
+ return props_.get(index); } else {
+ return propsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List extends PairOrBuilder>
+ getPropsOrBuilderList() {
+ if (propsBuilder_ != null) {
+ return propsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(props_);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder addPropsBuilder() {
+ return getPropsFieldBuilder().addBuilder(
+ Pair.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder addPropsBuilder(
+ int index) {
+ return getPropsFieldBuilder().addBuilder(
+ index, Pair.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List
+ getPropsBuilderList() {
+ return getPropsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder>
+ getPropsFieldBuilder() {
+ if (propsBuilder_ == null) {
+ propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder>(
+ props_,
+ ((bitField0_ & 0x00000004) == 0x00000004),
+ getParentForChildren(),
+ isClean());
+ props_ = null;
+ }
+ return propsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.RowData)
}
- public interface RowChangeOrBuilder extends
- // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.RowChange)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional int64 tableId = 1;
- *
- *
- * *tableId,由数据库产生*
- *
- */
- boolean hasTableId();
-
- /**
- * optional int64 tableId = 1;
- *
- *
- * *tableId,由数据库产生*
- *
- */
- long getTableId();
-
- /**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- * *数据变更类型*
- *
- */
- boolean hasEventType();
-
- /**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- * *数据变更类型*
- *
- */
- com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType();
-
- /**
- * optional bool isDdl = 10 [default = false];
- *
- *
- * * 标识是否是ddl语句 *
- *
- */
- boolean hasIsDdl();
-
- /**
- * optional bool isDdl = 10 [default = false];
- *
- *
- * * 标识是否是ddl语句 *
- *
- */
- boolean getIsDdl();
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- boolean hasSql();
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- java.lang.String getSql();
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- com.google.protobuf.ByteString getSqlBytes();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- java.util.List getRowDatasList();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- com.alibaba.otter.canal.protocol.CanalEntry.RowData getRowDatas(int index);
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- int getRowDatasCount();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder> getRowDatasOrBuilderList();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder getRowDatasOrBuilder(int index);
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- java.util.List getPropsList();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- int getPropsCount();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index);
-
- /**
- * optional string ddlSchemaName = 14;
- *
- *
- * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
- *
- */
- boolean hasDdlSchemaName();
-
- /**
- * optional string ddlSchemaName = 14;
- *
- *
- * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
- *
- */
- java.lang.String getDdlSchemaName();
-
- /**
- * optional string ddlSchemaName = 14;
- *
- *
- * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
- *
- */
- com.google.protobuf.ByteString getDdlSchemaNameBytes();
+ static {
+ defaultInstance = new RowData(true);
+ defaultInstance.initFields();
}
+ // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.RowData)
+ }
+
+ public interface RowChangeOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.RowChange)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional int64 tableId = 1;
+ *
+ *
+ **tableId,由数据库产生*
+ *
+ */
+ boolean hasTableId();
+ /**
+ * optional int64 tableId = 1;
+ *
+ *
+ **tableId,由数据库产生*
+ *
+ */
+ long getTableId();
+
+ /**
+ * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
+ *
+ *
+ **数据变更类型*
+ *
+ */
+ boolean hasEventType();
+ /**
+ * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
+ *
+ *
+ **数据变更类型*
+ *
+ */
+ EventType getEventType();
+
+ /**
+ * optional bool isDdl = 10 [default = false];
+ *
+ *
+ ** 标识是否是ddl语句 *
+ *
+ */
+ boolean hasIsDdl();
+ /**
+ * optional bool isDdl = 10 [default = false];
+ *
+ *
+ ** 标识是否是ddl语句 *
+ *
+ */
+ boolean getIsDdl();
+
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ boolean hasSql();
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ String getSql();
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ com.google.protobuf.ByteString
+ getSqlBytes();
+
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ java.util.List
+ getRowDatasList();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ RowData getRowDatas(int index);
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ int getRowDatasCount();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ java.util.List extends RowDataOrBuilder>
+ getRowDatasOrBuilderList();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ RowDataOrBuilder getRowDatasOrBuilder(int index);
+
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ java.util.List
+ getPropsList();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ Pair getProps(int index);
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ int getPropsCount();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ java.util.List extends PairOrBuilder>
+ getPropsOrBuilderList();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ PairOrBuilder getPropsOrBuilder(int index);
+
+ /**
+ * optional string ddlSchemaName = 14;
+ *
+ *
+ ** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
+ *
+ */
+ boolean hasDdlSchemaName();
+ /**
+ * optional string ddlSchemaName = 14;
+ *
+ *
+ ** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
+ *
+ */
+ String getDdlSchemaName();
+ /**
+ * optional string ddlSchemaName = 14;
+ *
+ *
+ ** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
+ *
+ */
+ com.google.protobuf.ByteString
+ getDdlSchemaNameBytes();
+ }
+ /**
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.RowChange}
+ *
+ *
+ **message row 每行变更数据的数据结构*
+ *
+ */
+ public static final class RowChange extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.RowChange)
+ RowChangeOrBuilder {
+ // Use RowChange.newBuilder() to construct.
+ private RowChange(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private RowChange(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final RowChange defaultInstance;
+ public static RowChange getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public RowChange getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private RowChange(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 8: {
+ bitField0_ |= 0x00000001;
+ tableId_ = input.readInt64();
+ break;
+ }
+ case 16: {
+ int rawValue = input.readEnum();
+ EventType value = EventType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(2, rawValue);
+ } else {
+ bitField0_ |= 0x00000002;
+ eventType_ = value;
+ }
+ break;
+ }
+ case 80: {
+ bitField0_ |= 0x00000004;
+ isDdl_ = input.readBool();
+ break;
+ }
+ case 90: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000008;
+ sql_ = bs;
+ break;
+ }
+ case 98: {
+ if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
+ rowDatas_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000010;
+ }
+ rowDatas_.add(input.readMessage(RowData.PARSER, extensionRegistry));
+ break;
+ }
+ case 106: {
+ if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
+ props_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000020;
+ }
+ props_.add(input.readMessage(Pair.PARSER, extensionRegistry));
+ break;
+ }
+ case 114: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000010;
+ ddlSchemaName_ = bs;
+ 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 {
+ if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
+ rowDatas_ = java.util.Collections.unmodifiableList(rowDatas_);
+ }
+ if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
+ props_ = java.util.Collections.unmodifiableList(props_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
+ }
+
+ protected FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return 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;
+ }
+
+ private int bitField0_;
+ 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,由数据库产生*
+ *
+ */
+ 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];
+ *
+ *
+ **数据变更类型*
+ *
+ */
+ public boolean hasEventType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
+ *
+ *
+ **数据变更类型*
+ *
+ */
+ public EventType getEventType() {
+ return eventType_;
+ }
+
+ 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语句 *
+ *
+ */
+ public boolean getIsDdl() {
+ return isDdl_;
+ }
+
+ public static final int SQL_FIELD_NUMBER = 11;
+ private Object sql_;
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ public boolean hasSql() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ public String getSql() {
+ Object ref = sql_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ sql_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ public com.google.protobuf.ByteString
+ getSqlBytes() {
+ Object ref = sql_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ sql_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ROWDATAS_FIELD_NUMBER = 12;
+ private java.util.List rowDatas_;
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public java.util.List getRowDatasList() {
+ return rowDatas_;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public java.util.List extends RowDataOrBuilder>
+ getRowDatasOrBuilderList() {
+ return rowDatas_;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public int getRowDatasCount() {
+ return rowDatas_.size();
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public RowData getRowDatas(int index) {
+ return rowDatas_.get(index);
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public RowDataOrBuilder getRowDatasOrBuilder(
+ int index) {
+ return rowDatas_.get(index);
+ }
+
+ public static final int PROPS_FIELD_NUMBER = 13;
+ private java.util.List props_;
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List getPropsList() {
+ return props_;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List extends PairOrBuilder>
+ getPropsOrBuilderList() {
+ return props_;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public int getPropsCount() {
+ return props_.size();
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair getProps(int index) {
+ return props_.get(index);
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public PairOrBuilder getPropsOrBuilder(
+ int index) {
+ return props_.get(index);
+ }
+
+ public static final int DDLSCHEMANAME_FIELD_NUMBER = 14;
+ private Object ddlSchemaName_;
+ /**
+ * optional string ddlSchemaName = 14;
+ *
+ *
+ ** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
+ *
+ */
+ public boolean hasDdlSchemaName() {
+ return ((bitField0_ & 0x00000010) == 0x00000010);
+ }
+ /**
+ * optional string ddlSchemaName = 14;
+ *
+ *
+ ** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
+ *
+ */
+ public String getDdlSchemaName() {
+ Object ref = ddlSchemaName_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ ddlSchemaName_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string ddlSchemaName = 14;
+ *
+ *
+ ** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
+ *
+ */
+ public com.google.protobuf.ByteString
+ getDdlSchemaNameBytes() {
+ Object ref = ddlSchemaName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ ddlSchemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ 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;
+ 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, tableId_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeEnum(2, eventType_.getNumber());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeBool(10, isDdl_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeBytes(11, getSqlBytes());
+ }
+ for (int i = 0; i < rowDatas_.size(); i++) {
+ output.writeMessage(12, rowDatas_.get(i));
+ }
+ for (int i = 0; i < props_.size(); i++) {
+ output.writeMessage(13, props_.get(i));
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeBytes(14, getDdlSchemaNameBytes());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, tableId_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(2, eventType_.getNumber());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(10, isDdl_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(11, getSqlBytes());
+ }
+ for (int i = 0; i < rowDatas_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(12, rowDatas_.get(i));
+ }
+ for (int i = 0; i < props_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(13, props_.get(i));
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(14, getDdlSchemaNameBytes());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @Override
+ protected Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static RowChange parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static 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)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static 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)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static RowChange parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static RowChange parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static RowChange parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static RowChange parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static RowChange parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(RowChange prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @Override
+ protected Builder newBuilderForType(
+ BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
/**
* Protobuf type {@code com.alibaba.otter.canal.protocol.RowChange}
*
*
- * *message row 每行变更数据的数据结构*
+ **message row 每行变更数据的数据结构*
*
*/
- public static final class RowChange extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.RowChange)
- RowChangeOrBuilder {
-
- // Use RowChange.newBuilder() to construct.
- private RowChange(com.google.protobuf.GeneratedMessage.Builder> builder){
- super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
-
- private RowChange(boolean noInit){
- this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance();
- }
-
- private static final RowChange defaultInstance;
-
- public static RowChange getDefaultInstance() {
- return defaultInstance;
- }
-
- public RowChange getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private RowChange(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException{
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 8: {
- bitField0_ |= 0x00000001;
- tableId_ = input.readInt64();
- break;
- }
- case 16: {
- int rawValue = input.readEnum();
- com.alibaba.otter.canal.protocol.CanalEntry.EventType value = com.alibaba.otter.canal.protocol.CanalEntry.EventType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(2, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- eventType_ = value;
- }
- break;
- }
- case 80: {
- bitField0_ |= 0x00000004;
- isDdl_ = input.readBool();
- break;
- }
- case 90: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000008;
- sql_ = bs;
- break;
- }
- case 98: {
- if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- rowDatas_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000010;
- }
- 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();
- mutable_bitField0_ |= 0x00000020;
- }
- 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;
- 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 {
- if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- rowDatas_ = java.util.Collections.unmodifiableList(rowDatas_);
- }
- if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
- props_ = java.util.Collections.unmodifiableList(props_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_fieldAccessorTable.ensureFieldAccessorsInitialized(com.alibaba.otter.canal.protocol.CanalEntry.RowChange.class,
- com.alibaba.otter.canal.protocol.CanalEntry.RowChange.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);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- private int bitField0_;
- 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,由数据库产生*
- *
- */
- public long getTableId() {
- return tableId_;
- }
-
- public static final int EVENTTYPE_FIELD_NUMBER = 2;
- private com.alibaba.otter.canal.protocol.CanalEntry.EventType eventType_;
-
- /**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- * *数据变更类型*
- *
- */
- public boolean hasEventType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- * *数据变更类型*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() {
- return eventType_;
- }
-
- 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语句 *
- *
- */
- public boolean getIsDdl() {
- return isDdl_;
- }
-
- public static final int SQL_FIELD_NUMBER = 11;
- private java.lang.Object sql_;
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- public boolean hasSql() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- public java.lang.String getSql() {
- java.lang.Object ref = sql_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- sql_ = s;
- }
- return s;
- }
- }
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- public com.google.protobuf.ByteString getSqlBytes() {
- java.lang.Object ref = sql_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- sql_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int ROWDATAS_FIELD_NUMBER = 12;
- private java.util.List rowDatas_;
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public java.util.List getRowDatasList() {
- return rowDatas_;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder> getRowDatasOrBuilderList() {
- return rowDatas_;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public int getRowDatasCount() {
- return rowDatas_.size();
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.RowData getRowDatas(int index) {
- return rowDatas_.get(index);
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder getRowDatasOrBuilder(int index) {
- return rowDatas_.get(index);
- }
-
- public static final int PROPS_FIELD_NUMBER = 13;
- private java.util.List props_;
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List getPropsList() {
- return props_;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() {
- return props_;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public int getPropsCount() {
- return props_.size();
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
- return props_.get(index);
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) {
- return props_.get(index);
- }
-
- public static final int DDLSCHEMANAME_FIELD_NUMBER = 14;
- private java.lang.Object ddlSchemaName_;
-
- /**
- * optional string ddlSchemaName = 14;
- *
- *
- * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
- *
- */
- public boolean hasDdlSchemaName() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
-
- /**
- * optional string ddlSchemaName = 14;
- *
- *
- * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
- *
- */
- public java.lang.String getDdlSchemaName() {
- java.lang.Object ref = ddlSchemaName_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- ddlSchemaName_ = s;
- }
- return s;
- }
- }
-
- /**
- * optional string ddlSchemaName = 14;
- *
- *
- * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
- *
- */
- public com.google.protobuf.ByteString getDdlSchemaNameBytes() {
- java.lang.Object ref = ddlSchemaName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- ddlSchemaName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private void initFields() {
- tableId_ = 0L;
- eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
- isDdl_ = false;
- sql_ = "";
- rowDatas_ = java.util.Collections.emptyList();
- props_ = java.util.Collections.emptyList();
- ddlSchemaName_ = "";
- }
-
- private byte memoizedIsInitialized = -1;
-
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt64(1, tableId_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, eventType_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBool(10, isDdl_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(11, getSqlBytes());
- }
- for (int i = 0; i < rowDatas_.size(); i++) {
- output.writeMessage(12, rowDatas_.get(i));
- }
- for (int i = 0; i < props_.size(); i++) {
- output.writeMessage(13, props_.get(i));
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(14, getDdlSchemaNameBytes());
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
-
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, tableId_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, eventType_.getNumber());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, isDdl_);
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream.computeBytesSize(11, getSqlBytes());
- }
- for (int i = 0; i < rowDatas_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, rowDatas_.get(i));
- }
- for (int i = 0; i < props_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, props_.get(i));
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream.computeBytesSize(14, getDdlSchemaNameBytes());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
-
- @java.lang.Override
- protected java.lang.Object writeReplace() throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseDelimitedFrom(java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.RowChange parseFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return Builder.create();
- }
-
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.RowChange prototype) {
- return newBuilder().mergeFrom(prototype);
- }
-
- public Builder toBuilder() {
- return newBuilder(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
-
- /**
- * Protobuf type {@code com.alibaba.otter.canal.protocol.RowChange}
- *
- *
- * *message row 每行变更数据的数据结构*
- *
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.otter.canal.protocol.RowChange)
- com.alibaba.otter.canal.protocol.CanalEntry.RowChangeOrBuilder {
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_fieldAccessorTable.ensureFieldAccessorsInitialized(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()
- private Builder(){
- maybeForceBuilderInitialization();
- }
-
- private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent){
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getRowDatasFieldBuilder();
- getPropsFieldBuilder();
- }
- }
-
- private static Builder create() {
- return new Builder();
- }
-
- public Builder clear() {
- super.clear();
- tableId_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
- eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.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);
- } else {
- rowDatasBuilder_.clear();
- }
- if (propsBuilder_ == null) {
- props_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- } else {
- propsBuilder_.clear();
- }
- ddlSchemaName_ = "";
- bitField0_ = (bitField0_ & ~0x00000040);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
- }
-
- public com.alibaba.otter.canal.protocol.CanalEntry.RowChange getDefaultInstanceForType() {
- return com.alibaba.otter.canal.protocol.CanalEntry.RowChange.getDefaultInstance();
- }
-
- 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 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;
- }
- result.eventType_ = eventType_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.isDdl_ = isDdl_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.sql_ = sql_;
- if (rowDatasBuilder_ == null) {
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- rowDatas_ = java.util.Collections.unmodifiableList(rowDatas_);
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.rowDatas_ = rowDatas_;
- } else {
- result.rowDatas_ = rowDatasBuilder_.build();
- }
- if (propsBuilder_ == null) {
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- props_ = java.util.Collections.unmodifiableList(props_);
- bitField0_ = (bitField0_ & ~0x00000020);
- }
- result.props_ = props_;
- } else {
- result.props_ = propsBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
- to_bitField0_ |= 0x00000010;
- }
- result.ddlSchemaName_ = ddlSchemaName_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message 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(com.alibaba.otter.canal.protocol.CanalEntry.RowChange other) {
- if (other == com.alibaba.otter.canal.protocol.CanalEntry.RowChange.getDefaultInstance()) return this;
- if (other.hasTableId()) {
- setTableId(other.getTableId());
- }
- if (other.hasEventType()) {
- setEventType(other.getEventType());
- }
- if (other.hasIsDdl()) {
- setIsDdl(other.getIsDdl());
- }
- if (other.hasSql()) {
- bitField0_ |= 0x00000008;
- sql_ = other.sql_;
- onChanged();
- }
- if (rowDatasBuilder_ == null) {
- if (!other.rowDatas_.isEmpty()) {
- if (rowDatas_.isEmpty()) {
- rowDatas_ = other.rowDatas_;
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- ensureRowDatasIsMutable();
- rowDatas_.addAll(other.rowDatas_);
- }
- onChanged();
- }
- } else {
- if (!other.rowDatas_.isEmpty()) {
- if (rowDatasBuilder_.isEmpty()) {
- rowDatasBuilder_.dispose();
- rowDatasBuilder_ = null;
- rowDatas_ = other.rowDatas_;
- bitField0_ = (bitField0_ & ~0x00000010);
- rowDatasBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getRowDatasFieldBuilder() : null;
- } else {
- rowDatasBuilder_.addAllMessages(other.rowDatas_);
- }
- }
- }
- if (propsBuilder_ == null) {
- if (!other.props_.isEmpty()) {
- if (props_.isEmpty()) {
- props_ = other.props_;
- bitField0_ = (bitField0_ & ~0x00000020);
- } else {
- ensurePropsIsMutable();
- props_.addAll(other.props_);
- }
- onChanged();
- }
- } else {
- if (!other.props_.isEmpty()) {
- if (propsBuilder_.isEmpty()) {
- propsBuilder_.dispose();
- propsBuilder_ = null;
- props_ = other.props_;
- bitField0_ = (bitField0_ & ~0x00000020);
- propsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPropsFieldBuilder() : null;
- } else {
- propsBuilder_.addAllMessages(other.props_);
- }
- }
- }
- if (other.hasDdlSchemaName()) {
- bitField0_ |= 0x00000040;
- ddlSchemaName_ = other.ddlSchemaName_;
- onChanged();
- }
- 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.CanalEntry.RowChange parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.alibaba.otter.canal.protocol.CanalEntry.RowChange) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- 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,由数据库产生*
- *
- */
- public long getTableId() {
- return tableId_;
- }
-
- /**
- * optional int64 tableId = 1;
- *
- *
- * *tableId,由数据库产生*
- *
- */
- public Builder setTableId(long value) {
- bitField0_ |= 0x00000001;
- tableId_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int64 tableId = 1;
- *
- *
- * *tableId,由数据库产生*
- *
- */
- public Builder clearTableId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- tableId_ = 0L;
- onChanged();
- return this;
- }
-
- private com.alibaba.otter.canal.protocol.CanalEntry.EventType eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
-
- /**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- * *数据变更类型*
- *
- */
- public boolean hasEventType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- * *数据变更类型*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.EventType getEventType() {
- return eventType_;
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- * *数据变更类型*
- *
- */
- public Builder setEventType(com.alibaba.otter.canal.protocol.CanalEntry.EventType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- eventType_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
- *
- *
- * *数据变更类型*
- *
- */
- public Builder clearEventType() {
- bitField0_ = (bitField0_ & ~0x00000002);
- eventType_ = com.alibaba.otter.canal.protocol.CanalEntry.EventType.UPDATE;
- 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语句 *
- *
- */
- public boolean getIsDdl() {
- return isDdl_;
- }
-
- /**
- * optional bool isDdl = 10 [default = false];
- *
- *
- * * 标识是否是ddl语句 *
- *
- */
- public Builder setIsDdl(boolean value) {
- bitField0_ |= 0x00000004;
- isDdl_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional bool isDdl = 10 [default = false];
- *
- *
- * * 标识是否是ddl语句 *
- *
- */
- public Builder clearIsDdl() {
- bitField0_ = (bitField0_ & ~0x00000004);
- isDdl_ = false;
- onChanged();
- return this;
- }
-
- private java.lang.Object sql_ = "";
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- public boolean hasSql() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- public java.lang.String getSql() {
- java.lang.Object ref = sql_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- sql_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- public com.google.protobuf.ByteString getSqlBytes() {
- java.lang.Object ref = sql_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- sql_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- public Builder setSql(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- sql_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- public Builder clearSql() {
- bitField0_ = (bitField0_ & ~0x00000008);
- sql_ = getDefaultInstance().getSql();
- onChanged();
- return this;
- }
-
- /**
- * optional string sql = 11;
- *
- *
- * * ddl/query的sql语句 *
- *
- */
- public Builder setSqlBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- sql_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List rowDatas_ = java.util.Collections.emptyList();
-
- private void ensureRowDatasIsMutable() {
- if (!((bitField0_ & 0x00000010) == 0x00000010)) {
- rowDatas_ = new java.util.ArrayList(rowDatas_);
- bitField0_ |= 0x00000010;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder rowDatasBuilder_;
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public java.util.List getRowDatasList() {
- if (rowDatasBuilder_ == null) {
- return java.util.Collections.unmodifiableList(rowDatas_);
- } else {
- return rowDatasBuilder_.getMessageList();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public int getRowDatasCount() {
- if (rowDatasBuilder_ == null) {
- return rowDatas_.size();
- } else {
- return rowDatasBuilder_.getCount();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.RowData getRowDatas(int index) {
- if (rowDatasBuilder_ == null) {
- return rowDatas_.get(index);
- } else {
- return rowDatasBuilder_.getMessage(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public Builder setRowDatas(int index, com.alibaba.otter.canal.protocol.CanalEntry.RowData value) {
- if (rowDatasBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRowDatasIsMutable();
- rowDatas_.set(index, value);
- onChanged();
- } else {
- rowDatasBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public Builder setRowDatas(int index,
- com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder builderForValue) {
- if (rowDatasBuilder_ == null) {
- ensureRowDatasIsMutable();
- rowDatas_.set(index, builderForValue.build());
- onChanged();
- } else {
- rowDatasBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public Builder addRowDatas(com.alibaba.otter.canal.protocol.CanalEntry.RowData value) {
- if (rowDatasBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRowDatasIsMutable();
- rowDatas_.add(value);
- onChanged();
- } else {
- rowDatasBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public Builder addRowDatas(int index, com.alibaba.otter.canal.protocol.CanalEntry.RowData value) {
- if (rowDatasBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRowDatasIsMutable();
- rowDatas_.add(index, value);
- onChanged();
- } else {
- rowDatasBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public Builder addRowDatas(com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder builderForValue) {
- if (rowDatasBuilder_ == null) {
- ensureRowDatasIsMutable();
- rowDatas_.add(builderForValue.build());
- onChanged();
- } else {
- rowDatasBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public Builder addRowDatas(int index,
- com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder builderForValue) {
- if (rowDatasBuilder_ == null) {
- ensureRowDatasIsMutable();
- rowDatas_.add(index, builderForValue.build());
- onChanged();
- } else {
- rowDatasBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public Builder addAllRowDatas(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.RowData> values) {
- if (rowDatasBuilder_ == null) {
- ensureRowDatasIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rowDatas_);
- onChanged();
- } else {
- rowDatasBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public Builder clearRowDatas() {
- if (rowDatasBuilder_ == null) {
- rowDatas_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- } else {
- rowDatasBuilder_.clear();
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public Builder removeRowDatas(int index) {
- if (rowDatasBuilder_ == null) {
- ensureRowDatasIsMutable();
- rowDatas_.remove(index);
- onChanged();
- } else {
- rowDatasBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- 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;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder getRowDatasOrBuilder(int index) {
- if (rowDatasBuilder_ == null) {
- return rowDatas_.get(index);
- } else {
- return rowDatasBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.RowDataOrBuilder> getRowDatasOrBuilderList() {
- if (rowDatasBuilder_ != null) {
- return rowDatasBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(rowDatas_);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder addRowDatasBuilder() {
- return getRowDatasFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.RowData.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.RowData.Builder addRowDatasBuilder(int index) {
- return getRowDatasFieldBuilder().addBuilder(index,
- com.alibaba.otter.canal.protocol.CanalEntry.RowData.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
- *
- *
- * * 一次数据库变更可能存在多行 *
- *
- */
- public java.util.List getRowDatasBuilderList() {
- return getRowDatasFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilder getRowDatasFieldBuilder() {
- if (rowDatasBuilder_ == null) {
- rowDatasBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(rowDatas_,
- ((bitField0_ & 0x00000010) == 0x00000010),
- getParentForChildren(),
- isClean());
- rowDatas_ = null;
- }
- return rowDatasBuilder_;
- }
-
- private java.util.List props_ = java.util.Collections.emptyList();
-
- private void ensurePropsIsMutable() {
- if (!((bitField0_ & 0x00000020) == 0x00000020)) {
- props_ = new java.util.ArrayList(props_);
- bitField0_ |= 0x00000020;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder propsBuilder_;
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List getPropsList() {
- if (propsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(props_);
- } else {
- return propsBuilder_.getMessageList();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public int getPropsCount() {
- if (propsBuilder_ == null) {
- return props_.size();
- } else {
- return propsBuilder_.getCount();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
- if (propsBuilder_ == null) {
- return props_.get(index);
- } else {
- return propsBuilder_.getMessage(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.set(index, value);
- onChanged();
- } else {
- propsBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.set(index, builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.add(value);
- onChanged();
- } else {
- propsBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.add(index, value);
- onChanged();
- } else {
- propsBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.add(builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.add(index, builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addAllProps(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, props_);
- onChanged();
- } else {
- propsBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public Builder clearProps() {
- if (propsBuilder_ == null) {
- props_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- } else {
- propsBuilder_.clear();
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public Builder removeProps(int index) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.remove(index);
- onChanged();
- } else {
- propsBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- 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;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) {
- if (propsBuilder_ == null) {
- return props_.get(index);
- } else {
- return propsBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() {
- if (propsBuilder_ != null) {
- return propsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(props_);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() {
- return getPropsFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder(int index) {
- return getPropsFieldBuilder().addBuilder(index,
- com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List getPropsBuilderList() {
- return getPropsFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilder getPropsFieldBuilder() {
- if (propsBuilder_ == null) {
- propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(props_,
- ((bitField0_ & 0x00000020) == 0x00000020),
- getParentForChildren(),
- isClean());
- props_ = null;
- }
- return propsBuilder_;
- }
-
- 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 *
- *
- */
- 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;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- ddlSchemaName_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- * optional string ddlSchemaName = 14;
- *
- *
- * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
- *
- */
- public com.google.protobuf.ByteString getDdlSchemaNameBytes() {
- java.lang.Object ref = ddlSchemaName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- ddlSchemaName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- * optional string ddlSchemaName = 14;
- *
- *
- * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
- *
- */
- public Builder setDdlSchemaName(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 *
- *
- */
- public Builder clearDdlSchemaName() {
- bitField0_ = (bitField0_ & ~0x00000040);
- ddlSchemaName_ = getDefaultInstance().getDdlSchemaName();
- onChanged();
- return this;
- }
-
- /**
- * optional string ddlSchemaName = 14;
- *
- *
- * * ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
- *
- */
- public Builder setDdlSchemaNameBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
- ddlSchemaName_ = value;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.RowChange)
+ RowChangeOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
+ }
+
+ protected FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ RowChange.class, Builder.class);
+ }
+
+ // Construct using com.alibaba.otter.canal.protocol.CanalEntry.RowChange.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getRowDatasFieldBuilder();
+ getPropsFieldBuilder();
}
+ }
+ private static Builder create() {
+ return new Builder();
+ }
- static {
- defaultInstance = new RowChange(true);
- defaultInstance.initFields();
+ 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);
+ } else {
+ rowDatasBuilder_.clear();
}
+ if (propsBuilder_ == null) {
+ props_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ propsBuilder_.clear();
+ }
+ ddlSchemaName_ = "";
+ bitField0_ = (bitField0_ & ~0x00000040);
+ return this;
+ }
- // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.RowChange)
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_RowChange_descriptor;
+ }
+
+ public RowChange getDefaultInstanceForType() {
+ return RowChange.getDefaultInstance();
+ }
+
+ public RowChange build() {
+ RowChange result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public RowChange buildPartial() {
+ RowChange result = new 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;
+ }
+ result.eventType_ = eventType_;
+ if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.isDdl_ = isDdl_;
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000008;
+ }
+ result.sql_ = sql_;
+ if (rowDatasBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ rowDatas_ = java.util.Collections.unmodifiableList(rowDatas_);
+ bitField0_ = (bitField0_ & ~0x00000010);
+ }
+ result.rowDatas_ = rowDatas_;
+ } else {
+ result.rowDatas_ = rowDatasBuilder_.build();
+ }
+ if (propsBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ props_ = java.util.Collections.unmodifiableList(props_);
+ bitField0_ = (bitField0_ & ~0x00000020);
+ }
+ result.props_ = props_;
+ } else {
+ result.props_ = propsBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
+ to_bitField0_ |= 0x00000010;
+ }
+ result.ddlSchemaName_ = ddlSchemaName_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof RowChange) {
+ return mergeFrom((RowChange)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(RowChange other) {
+ if (other == RowChange.getDefaultInstance()) return this;
+ if (other.hasTableId()) {
+ setTableId(other.getTableId());
+ }
+ if (other.hasEventType()) {
+ setEventType(other.getEventType());
+ }
+ if (other.hasIsDdl()) {
+ setIsDdl(other.getIsDdl());
+ }
+ if (other.hasSql()) {
+ bitField0_ |= 0x00000008;
+ sql_ = other.sql_;
+ onChanged();
+ }
+ if (rowDatasBuilder_ == null) {
+ if (!other.rowDatas_.isEmpty()) {
+ if (rowDatas_.isEmpty()) {
+ rowDatas_ = other.rowDatas_;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ } else {
+ ensureRowDatasIsMutable();
+ rowDatas_.addAll(other.rowDatas_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.rowDatas_.isEmpty()) {
+ if (rowDatasBuilder_.isEmpty()) {
+ rowDatasBuilder_.dispose();
+ rowDatasBuilder_ = null;
+ rowDatas_ = other.rowDatas_;
+ bitField0_ = (bitField0_ & ~0x00000010);
+ rowDatasBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getRowDatasFieldBuilder() : null;
+ } else {
+ rowDatasBuilder_.addAllMessages(other.rowDatas_);
+ }
+ }
+ }
+ if (propsBuilder_ == null) {
+ if (!other.props_.isEmpty()) {
+ if (props_.isEmpty()) {
+ props_ = other.props_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ ensurePropsIsMutable();
+ props_.addAll(other.props_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.props_.isEmpty()) {
+ if (propsBuilder_.isEmpty()) {
+ propsBuilder_.dispose();
+ propsBuilder_ = null;
+ props_ = other.props_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ propsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPropsFieldBuilder() : null;
+ } else {
+ propsBuilder_.addAllMessages(other.props_);
+ }
+ }
+ }
+ if (other.hasDdlSchemaName()) {
+ bitField0_ |= 0x00000040;
+ ddlSchemaName_ = other.ddlSchemaName_;
+ onChanged();
+ }
+ 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 {
+ RowChange parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (RowChange) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ 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,由数据库产生*
+ *
+ */
+ public long getTableId() {
+ return tableId_;
+ }
+ /**
+ * optional int64 tableId = 1;
+ *
+ *
+ **tableId,由数据库产生*
+ *
+ */
+ public Builder setTableId(long value) {
+ bitField0_ |= 0x00000001;
+ tableId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 tableId = 1;
+ *
+ *
+ **tableId,由数据库产生*
+ *
+ */
+ 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];
+ *
+ *
+ **数据变更类型*
+ *
+ */
+ public boolean hasEventType() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
+ *
+ *
+ **数据变更类型*
+ *
+ */
+ public EventType getEventType() {
+ return eventType_;
+ }
+ /**
+ * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
+ *
+ *
+ **数据变更类型*
+ *
+ */
+ public Builder setEventType(EventType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ eventType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .com.alibaba.otter.canal.protocol.EventType eventType = 2 [default = UPDATE];
+ *
+ *
+ **数据变更类型*
+ *
+ */
+ public Builder clearEventType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ eventType_ = EventType.UPDATE;
+ 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语句 *
+ *
+ */
+ public boolean getIsDdl() {
+ return isDdl_;
+ }
+ /**
+ * optional bool isDdl = 10 [default = false];
+ *
+ *
+ ** 标识是否是ddl语句 *
+ *
+ */
+ public Builder setIsDdl(boolean value) {
+ bitField0_ |= 0x00000004;
+ isDdl_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional bool isDdl = 10 [default = false];
+ *
+ *
+ ** 标识是否是ddl语句 *
+ *
+ */
+ public Builder clearIsDdl() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ isDdl_ = false;
+ onChanged();
+ return this;
+ }
+
+ private Object sql_ = "";
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ public boolean hasSql() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ public String getSql() {
+ Object ref = sql_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ sql_ = s;
+ }
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ public com.google.protobuf.ByteString
+ getSqlBytes() {
+ Object ref = sql_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ sql_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ public Builder setSql(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ sql_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ public Builder clearSql() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ sql_ = getDefaultInstance().getSql();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string sql = 11;
+ *
+ *
+ ** ddl/query的sql语句 *
+ *
+ */
+ public Builder setSqlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ sql_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List rowDatas_ =
+ java.util.Collections.emptyList();
+ private void ensureRowDatasIsMutable() {
+ if (!((bitField0_ & 0x00000010) == 0x00000010)) {
+ rowDatas_ = new java.util.ArrayList(rowDatas_);
+ bitField0_ |= 0x00000010;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ RowData, RowData.Builder, RowDataOrBuilder> rowDatasBuilder_;
+
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public java.util.List getRowDatasList() {
+ if (rowDatasBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(rowDatas_);
+ } else {
+ return rowDatasBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public int getRowDatasCount() {
+ if (rowDatasBuilder_ == null) {
+ return rowDatas_.size();
+ } else {
+ return rowDatasBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public RowData getRowDatas(int index) {
+ if (rowDatasBuilder_ == null) {
+ return rowDatas_.get(index);
+ } else {
+ return rowDatasBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public Builder setRowDatas(
+ int index, RowData value) {
+ if (rowDatasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowDatasIsMutable();
+ rowDatas_.set(index, value);
+ onChanged();
+ } else {
+ rowDatasBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public Builder setRowDatas(
+ int index, RowData.Builder builderForValue) {
+ if (rowDatasBuilder_ == null) {
+ ensureRowDatasIsMutable();
+ rowDatas_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ rowDatasBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public Builder addRowDatas(RowData value) {
+ if (rowDatasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowDatasIsMutable();
+ rowDatas_.add(value);
+ onChanged();
+ } else {
+ rowDatasBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public Builder addRowDatas(
+ int index, RowData value) {
+ if (rowDatasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowDatasIsMutable();
+ rowDatas_.add(index, value);
+ onChanged();
+ } else {
+ rowDatasBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public Builder addRowDatas(
+ RowData.Builder builderForValue) {
+ if (rowDatasBuilder_ == null) {
+ ensureRowDatasIsMutable();
+ rowDatas_.add(builderForValue.build());
+ onChanged();
+ } else {
+ rowDatasBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public Builder addRowDatas(
+ int index, RowData.Builder builderForValue) {
+ if (rowDatasBuilder_ == null) {
+ ensureRowDatasIsMutable();
+ rowDatas_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ rowDatasBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public Builder addAllRowDatas(
+ Iterable extends RowData> values) {
+ if (rowDatasBuilder_ == null) {
+ ensureRowDatasIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, rowDatas_);
+ onChanged();
+ } else {
+ rowDatasBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public Builder clearRowDatas() {
+ if (rowDatasBuilder_ == null) {
+ rowDatas_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ } else {
+ rowDatasBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public Builder removeRowDatas(int index) {
+ if (rowDatasBuilder_ == null) {
+ ensureRowDatasIsMutable();
+ rowDatas_.remove(index);
+ onChanged();
+ } else {
+ rowDatasBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public RowData.Builder getRowDatasBuilder(
+ int index) {
+ return getRowDatasFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public RowDataOrBuilder getRowDatasOrBuilder(
+ int index) {
+ if (rowDatasBuilder_ == null) {
+ return rowDatas_.get(index); } else {
+ return rowDatasBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public java.util.List extends RowDataOrBuilder>
+ getRowDatasOrBuilderList() {
+ if (rowDatasBuilder_ != null) {
+ return rowDatasBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(rowDatas_);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public RowData.Builder addRowDatasBuilder() {
+ return getRowDatasFieldBuilder().addBuilder(
+ RowData.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public RowData.Builder addRowDatasBuilder(
+ int index) {
+ return getRowDatasFieldBuilder().addBuilder(
+ index, RowData.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.RowData rowDatas = 12;
+ *
+ *
+ ** 一次数据库变更可能存在多行 *
+ *
+ */
+ public java.util.List
+ getRowDatasBuilderList() {
+ return getRowDatasFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ RowData, RowData.Builder, RowDataOrBuilder>
+ getRowDatasFieldBuilder() {
+ if (rowDatasBuilder_ == null) {
+ rowDatasBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ RowData, RowData.Builder, RowDataOrBuilder>(
+ rowDatas_,
+ ((bitField0_ & 0x00000010) == 0x00000010),
+ getParentForChildren(),
+ isClean());
+ rowDatas_ = null;
+ }
+ return rowDatasBuilder_;
+ }
+
+ private java.util.List props_ =
+ java.util.Collections.emptyList();
+ private void ensurePropsIsMutable() {
+ if (!((bitField0_ & 0x00000020) == 0x00000020)) {
+ props_ = new java.util.ArrayList(props_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder> propsBuilder_;
+
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List getPropsList() {
+ if (propsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(props_);
+ } else {
+ return propsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public int getPropsCount() {
+ if (propsBuilder_ == null) {
+ return props_.size();
+ } else {
+ return propsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair getProps(int index) {
+ if (propsBuilder_ == null) {
+ return props_.get(index);
+ } else {
+ return propsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder setProps(
+ int index, Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.set(index, value);
+ onChanged();
+ } else {
+ propsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder setProps(
+ int index, Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.add(value);
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ int index, Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.add(index, value);
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.add(builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ int index, Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addAllProps(
+ Iterable extends Pair> values) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, props_);
+ onChanged();
+ } else {
+ propsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder clearProps() {
+ if (propsBuilder_ == null) {
+ props_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ propsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder removeProps(int index) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.remove(index);
+ onChanged();
+ } else {
+ propsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder getPropsBuilder(
+ int index) {
+ return getPropsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public PairOrBuilder getPropsOrBuilder(
+ int index) {
+ if (propsBuilder_ == null) {
+ return props_.get(index); } else {
+ return propsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List extends PairOrBuilder>
+ getPropsOrBuilderList() {
+ if (propsBuilder_ != null) {
+ return propsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(props_);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder addPropsBuilder() {
+ return getPropsFieldBuilder().addBuilder(
+ Pair.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder addPropsBuilder(
+ int index) {
+ return getPropsFieldBuilder().addBuilder(
+ index, Pair.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 13;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List
+ getPropsBuilderList() {
+ return getPropsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder>
+ getPropsFieldBuilder() {
+ if (propsBuilder_ == null) {
+ propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder>(
+ props_,
+ ((bitField0_ & 0x00000020) == 0x00000020),
+ getParentForChildren(),
+ isClean());
+ props_ = null;
+ }
+ return propsBuilder_;
+ }
+
+ private 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 *
+ *
+ */
+ public String getDdlSchemaName() {
+ Object ref = ddlSchemaName_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ ddlSchemaName_ = s;
+ }
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * optional string ddlSchemaName = 14;
+ *
+ *
+ ** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
+ *
+ */
+ public com.google.protobuf.ByteString
+ getDdlSchemaNameBytes() {
+ Object ref = ddlSchemaName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ ddlSchemaName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string ddlSchemaName = 14;
+ *
+ *
+ ** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
+ *
+ */
+ public Builder setDdlSchemaName(
+ 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 *
+ *
+ */
+ public Builder clearDdlSchemaName() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ ddlSchemaName_ = getDefaultInstance().getDdlSchemaName();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string ddlSchemaName = 14;
+ *
+ *
+ ** ddl/query的schemaName,会存在跨库ddl,需要保留执行ddl的当前schemaName *
+ *
+ */
+ public Builder setDdlSchemaNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000040;
+ ddlSchemaName_ = value;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.RowChange)
}
- public interface TransactionBeginOrBuilder extends
- // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.TransactionBegin)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- boolean hasExecuteTime();
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- long getExecuteTime();
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- boolean hasTransactionId();
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- java.lang.String getTransactionId();
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- com.google.protobuf.ByteString getTransactionIdBytes();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- java.util.List getPropsList();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- int getPropsCount();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index);
-
- /**
- * optional int64 threadId = 4;
- *
- *
- * *执行的thread Id*
- *
- */
- boolean hasThreadId();
-
- /**
- * optional int64 threadId = 4;
- *
- *
- * *执行的thread Id*
- *
- */
- long getThreadId();
+ static {
+ defaultInstance = new RowChange(true);
+ defaultInstance.initFields();
}
+ // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.RowChange)
+ }
+
+ public interface TransactionBeginOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.TransactionBegin)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ boolean hasExecuteTime();
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ long getExecuteTime();
+
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ boolean hasTransactionId();
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ String getTransactionId();
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ com.google.protobuf.ByteString
+ getTransactionIdBytes();
+
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ java.util.List
+ getPropsList();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ Pair getProps(int index);
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ int getPropsCount();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ java.util.List extends PairOrBuilder>
+ getPropsOrBuilderList();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ PairOrBuilder getPropsOrBuilder(int index);
+
+ /**
+ * optional int64 threadId = 4;
+ *
+ *
+ **执行的thread Id*
+ *
+ */
+ boolean hasThreadId();
+ /**
+ * optional int64 threadId = 4;
+ *
+ *
+ **执行的thread Id*
+ *
+ */
+ long getThreadId();
+ }
+ /**
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionBegin}
+ *
+ *
+ **开始事务的一些信息*
+ *
+ */
+ public static final class TransactionBegin extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.TransactionBegin)
+ TransactionBeginOrBuilder {
+ // Use TransactionBegin.newBuilder() to construct.
+ private TransactionBegin(com.google.protobuf.GeneratedMessage.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;
+ }
+
+ public TransactionBegin getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TransactionBegin(
+ 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;
+ executeTime_ = input.readInt64();
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ transactionId_ = bs;
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ props_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ props_.add(input.readMessage(Pair.PARSER, extensionRegistry));
+ break;
+ }
+ case 32: {
+ bitField0_ |= 0x00000004;
+ threadId_ = 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 {
+ if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ props_ = java.util.Collections.unmodifiableList(props_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
+ }
+
+ protected FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return 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;
+ }
+
+ 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*
+ *
+ */
+ public long getExecuteTime() {
+ return executeTime_;
+ }
+
+ public static final int TRANSACTIONID_FIELD_NUMBER = 2;
+ private Object transactionId_;
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ public boolean hasTransactionId() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ public String getTransactionId() {
+ Object ref = transactionId_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ transactionId_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ public com.google.protobuf.ByteString
+ getTransactionIdBytes() {
+ Object ref = transactionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ transactionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROPS_FIELD_NUMBER = 3;
+ private java.util.List props_;
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List getPropsList() {
+ return props_;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List extends PairOrBuilder>
+ getPropsOrBuilderList() {
+ return props_;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public int getPropsCount() {
+ return props_.size();
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair getProps(int index) {
+ return props_.get(index);
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public PairOrBuilder getPropsOrBuilder(
+ int index) {
+ return props_.get(index);
+ }
+
+ 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*
+ *
+ */
+ public long getThreadId() {
+ return threadId_;
+ }
+
+ private void initFields() {
+ executeTime_ = 0L;
+ transactionId_ = "";
+ props_ = java.util.Collections.emptyList();
+ threadId_ = 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, executeTime_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getTransactionIdBytes());
+ }
+ for (int i = 0; i < props_.size(); i++) {
+ output.writeMessage(3, props_.get(i));
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeInt64(4, threadId_);
+ }
+ 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, executeTime_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getTransactionIdBytes());
+ }
+ for (int i = 0; i < props_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, props_.get(i));
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(4, threadId_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @Override
+ protected Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static TransactionBegin parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static 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)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static 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)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static TransactionBegin parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static TransactionBegin parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static TransactionBegin parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static TransactionBegin parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static TransactionBegin 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(TransactionBegin prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @Override
+ protected Builder newBuilderForType(
+ BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
/**
* Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionBegin}
*
*
- * *开始事务的一些信息*
+ **开始事务的一些信息*
*
*/
- public static final class TransactionBegin extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.TransactionBegin)
- TransactionBeginOrBuilder {
-
- // Use TransactionBegin.newBuilder() to construct.
- private TransactionBegin(com.google.protobuf.GeneratedMessage.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;
- }
-
- public TransactionBegin getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private TransactionBegin(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;
- executeTime_ = input.readInt64();
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- transactionId_ = bs;
- break;
- }
- case 26: {
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- props_.add(input.readMessage(com.alibaba.otter.canal.protocol.CanalEntry.Pair.PARSER,
- extensionRegistry));
- break;
- }
- case 32: {
- bitField0_ |= 0x00000004;
- threadId_ = 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 {
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = java.util.Collections.unmodifiableList(props_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_fieldAccessorTable.ensureFieldAccessorsInitialized(com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.class,
- com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.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);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- 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*
- *
- */
- public long getExecuteTime() {
- return executeTime_;
- }
-
- public static final int TRANSACTIONID_FIELD_NUMBER = 2;
- private java.lang.Object transactionId_;
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- public boolean hasTransactionId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- 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;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- transactionId_ = s;
- }
- return s;
- }
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- public com.google.protobuf.ByteString getTransactionIdBytes() {
- java.lang.Object ref = transactionId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- transactionId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int PROPS_FIELD_NUMBER = 3;
- private java.util.List props_;
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List getPropsList() {
- return props_;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() {
- return props_;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public int getPropsCount() {
- return props_.size();
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
- return props_.get(index);
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) {
- return props_.get(index);
- }
-
- 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*
- *
- */
- public long getThreadId() {
- return threadId_;
- }
-
- private void initFields() {
- executeTime_ = 0L;
- transactionId_ = "";
- props_ = java.util.Collections.emptyList();
- threadId_ = 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, executeTime_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getTransactionIdBytes());
- }
- for (int i = 0; i < props_.size(); i++) {
- output.writeMessage(3, props_.get(i));
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeInt64(4, threadId_);
- }
- 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, executeTime_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, getTransactionIdBytes());
- }
- for (int i = 0; i < props_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, props_.get(i));
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, threadId_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
-
- @java.lang.Override
- protected java.lang.Object writeReplace() throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- 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 com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- 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 com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- 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);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
-
- 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);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin parseFrom(com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- 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);
- }
-
- public static Builder newBuilder() {
- return Builder.create();
- }
-
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin 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.TransactionBegin}
- *
- *
- * *开始事务的一些信息*
- *
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.otter.canal.protocol.TransactionBegin)
- com.alibaba.otter.canal.protocol.CanalEntry.TransactionBeginOrBuilder {
+ TransactionBeginOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
+ }
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
- }
+ protected FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ TransactionBegin.class, Builder.class);
+ }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_fieldAccessorTable.ensureFieldAccessorsInitialized(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()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
- // Construct using
- // com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.newBuilder()
- private Builder(){
- maybeForceBuilderInitialization();
- }
-
- private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent){
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPropsFieldBuilder();
- }
- }
-
- private static Builder create() {
- return new Builder();
- }
-
- 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);
- } else {
- propsBuilder_.clear();
- }
- threadId_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
- }
-
- public com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin getDefaultInstanceForType() {
- return com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.getDefaultInstance();
- }
-
- 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 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)) {
- props_ = java.util.Collections.unmodifiableList(props_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.props_ = props_;
- } else {
- result.props_ = propsBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000004;
- }
- result.threadId_ = threadId_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message 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(com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin other) {
- if (other == com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin.getDefaultInstance()) return this;
- if (other.hasExecuteTime()) {
- setExecuteTime(other.getExecuteTime());
- }
- if (other.hasTransactionId()) {
- bitField0_ |= 0x00000002;
- transactionId_ = other.transactionId_;
- onChanged();
- }
- if (propsBuilder_ == null) {
- if (!other.props_.isEmpty()) {
- if (props_.isEmpty()) {
- props_ = other.props_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensurePropsIsMutable();
- props_.addAll(other.props_);
- }
- onChanged();
- }
- } else {
- if (!other.props_.isEmpty()) {
- if (propsBuilder_.isEmpty()) {
- propsBuilder_.dispose();
- propsBuilder_ = null;
- props_ = other.props_;
- bitField0_ = (bitField0_ & ~0x00000004);
- propsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPropsFieldBuilder() : null;
- } else {
- propsBuilder_.addAllMessages(other.props_);
- }
- }
- }
- if (other.hasThreadId()) {
- setThreadId(other.getThreadId());
- }
- 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.CanalEntry.TransactionBegin parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.alibaba.otter.canal.protocol.CanalEntry.TransactionBegin) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private long executeTime_;
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- public boolean hasExecuteTime() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- public long getExecuteTime() {
- return executeTime_;
- }
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- public Builder setExecuteTime(long value) {
- bitField0_ |= 0x00000001;
- executeTime_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- public Builder clearExecuteTime() {
- bitField0_ = (bitField0_ & ~0x00000001);
- executeTime_ = 0L;
- onChanged();
- return this;
- }
-
- private java.lang.Object transactionId_ = "";
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- public boolean hasTransactionId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- 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;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- transactionId_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- public com.google.protobuf.ByteString getTransactionIdBytes() {
- java.lang.Object ref = transactionId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- transactionId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- public Builder setTransactionId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- transactionId_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- public Builder clearTransactionId() {
- bitField0_ = (bitField0_ & ~0x00000002);
- transactionId_ = getDefaultInstance().getTransactionId();
- onChanged();
- return this;
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *已废弃,Begin里不提供事务id*
- *
- */
- public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- transactionId_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List props_ = java.util.Collections.emptyList();
-
- private void ensurePropsIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = new java.util.ArrayList(props_);
- bitField0_ |= 0x00000004;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder propsBuilder_;
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List getPropsList() {
- if (propsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(props_);
- } else {
- return propsBuilder_.getMessageList();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public int getPropsCount() {
- if (propsBuilder_ == null) {
- return props_.size();
- } else {
- return propsBuilder_.getCount();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
- if (propsBuilder_ == null) {
- return props_.get(index);
- } else {
- return propsBuilder_.getMessage(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.set(index, value);
- onChanged();
- } else {
- propsBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.set(index, builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.add(value);
- onChanged();
- } else {
- propsBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.add(index, value);
- onChanged();
- } else {
- propsBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.add(builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.add(index, builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addAllProps(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, props_);
- onChanged();
- } else {
- propsBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder clearProps() {
- if (propsBuilder_ == null) {
- props_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- propsBuilder_.clear();
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder removeProps(int index) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.remove(index);
- onChanged();
- } else {
- propsBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder getPropsBuilder(int index) {
- return getPropsFieldBuilder().getBuilder(index);
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) {
- if (propsBuilder_ == null) {
- return props_.get(index);
- } else {
- return propsBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() {
- if (propsBuilder_ != null) {
- return propsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(props_);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() {
- return getPropsFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder(int index) {
- return getPropsFieldBuilder().addBuilder(index,
- com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List getPropsBuilderList() {
- return getPropsFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilder getPropsFieldBuilder() {
- if (propsBuilder_ == null) {
- propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(props_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
- props_ = null;
- }
- return propsBuilder_;
- }
-
- private long threadId_;
-
- /**
- * optional int64 threadId = 4;
- *
- *
- * *执行的thread Id*
- *
- */
- public boolean hasThreadId() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
-
- /**
- * optional int64 threadId = 4;
- *
- *
- * *执行的thread Id*
- *
- */
- public long getThreadId() {
- return threadId_;
- }
-
- /**
- * optional int64 threadId = 4;
- *
- *
- * *执行的thread Id*
- *
- */
- public Builder setThreadId(long value) {
- bitField0_ |= 0x00000008;
- threadId_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int64 threadId = 4;
- *
- *
- * *执行的thread Id*
- *
- */
- public Builder clearThreadId() {
- bitField0_ = (bitField0_ & ~0x00000008);
- threadId_ = 0L;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.TransactionBegin)
+ private Builder(
+ BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPropsFieldBuilder();
}
+ }
+ private static Builder create() {
+ return new Builder();
+ }
- static {
- defaultInstance = new TransactionBegin(true);
- defaultInstance.initFields();
+ 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);
+ } else {
+ propsBuilder_.clear();
}
+ threadId_ = 0L;
+ bitField0_ = (bitField0_ & ~0x00000008);
+ return this;
+ }
- // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.TransactionBegin)
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionBegin_descriptor;
+ }
+
+ public TransactionBegin getDefaultInstanceForType() {
+ return TransactionBegin.getDefaultInstance();
+ }
+
+ public TransactionBegin build() {
+ TransactionBegin result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public TransactionBegin buildPartial() {
+ TransactionBegin result = new 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)) {
+ props_ = java.util.Collections.unmodifiableList(props_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.props_ = props_;
+ } else {
+ result.props_ = propsBuilder_.build();
+ }
+ if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ to_bitField0_ |= 0x00000004;
+ }
+ result.threadId_ = threadId_;
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof TransactionBegin) {
+ return mergeFrom((TransactionBegin)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(TransactionBegin other) {
+ if (other == TransactionBegin.getDefaultInstance()) return this;
+ if (other.hasExecuteTime()) {
+ setExecuteTime(other.getExecuteTime());
+ }
+ if (other.hasTransactionId()) {
+ bitField0_ |= 0x00000002;
+ transactionId_ = other.transactionId_;
+ onChanged();
+ }
+ if (propsBuilder_ == null) {
+ if (!other.props_.isEmpty()) {
+ if (props_.isEmpty()) {
+ props_ = other.props_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensurePropsIsMutable();
+ props_.addAll(other.props_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.props_.isEmpty()) {
+ if (propsBuilder_.isEmpty()) {
+ propsBuilder_.dispose();
+ propsBuilder_ = null;
+ props_ = other.props_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ propsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPropsFieldBuilder() : null;
+ } else {
+ propsBuilder_.addAllMessages(other.props_);
+ }
+ }
+ }
+ if (other.hasThreadId()) {
+ setThreadId(other.getThreadId());
+ }
+ 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 {
+ TransactionBegin parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (TransactionBegin) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private long executeTime_ ;
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ public boolean hasExecuteTime() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ public long getExecuteTime() {
+ return executeTime_;
+ }
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ public Builder setExecuteTime(long value) {
+ bitField0_ |= 0x00000001;
+ executeTime_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ public Builder clearExecuteTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ executeTime_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private Object transactionId_ = "";
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ public boolean hasTransactionId() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ public String getTransactionId() {
+ Object ref = transactionId_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ transactionId_ = s;
+ }
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ public com.google.protobuf.ByteString
+ getTransactionIdBytes() {
+ Object ref = transactionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ transactionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ public Builder setTransactionId(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ transactionId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ public Builder clearTransactionId() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ transactionId_ = getDefaultInstance().getTransactionId();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **已废弃,Begin里不提供事务id*
+ *
+ */
+ public Builder setTransactionIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ transactionId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List props_ =
+ java.util.Collections.emptyList();
+ private void ensurePropsIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ props_ = new java.util.ArrayList(props_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder> propsBuilder_;
+
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List getPropsList() {
+ if (propsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(props_);
+ } else {
+ return propsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public int getPropsCount() {
+ if (propsBuilder_ == null) {
+ return props_.size();
+ } else {
+ return propsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair getProps(int index) {
+ if (propsBuilder_ == null) {
+ return props_.get(index);
+ } else {
+ return propsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder setProps(
+ int index, Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.set(index, value);
+ onChanged();
+ } else {
+ propsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder setProps(
+ int index, Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.add(value);
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ int index, Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.add(index, value);
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.add(builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ int index, Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addAllProps(
+ Iterable extends Pair> values) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, props_);
+ onChanged();
+ } else {
+ propsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder clearProps() {
+ if (propsBuilder_ == null) {
+ props_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ propsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder removeProps(int index) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.remove(index);
+ onChanged();
+ } else {
+ propsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder getPropsBuilder(
+ int index) {
+ return getPropsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public PairOrBuilder getPropsOrBuilder(
+ int index) {
+ if (propsBuilder_ == null) {
+ return props_.get(index); } else {
+ return propsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List extends PairOrBuilder>
+ getPropsOrBuilderList() {
+ if (propsBuilder_ != null) {
+ return propsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(props_);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder addPropsBuilder() {
+ return getPropsFieldBuilder().addBuilder(
+ Pair.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder addPropsBuilder(
+ int index) {
+ return getPropsFieldBuilder().addBuilder(
+ index, Pair.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List
+ getPropsBuilderList() {
+ return getPropsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder>
+ getPropsFieldBuilder() {
+ if (propsBuilder_ == null) {
+ propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder>(
+ props_,
+ ((bitField0_ & 0x00000004) == 0x00000004),
+ getParentForChildren(),
+ isClean());
+ props_ = null;
+ }
+ return propsBuilder_;
+ }
+
+ private long threadId_ ;
+ /**
+ * optional int64 threadId = 4;
+ *
+ *
+ **执行的thread Id*
+ *
+ */
+ public boolean hasThreadId() {
+ return ((bitField0_ & 0x00000008) == 0x00000008);
+ }
+ /**
+ * optional int64 threadId = 4;
+ *
+ *
+ **执行的thread Id*
+ *
+ */
+ public long getThreadId() {
+ return threadId_;
+ }
+ /**
+ * optional int64 threadId = 4;
+ *
+ *
+ **执行的thread Id*
+ *
+ */
+ public Builder setThreadId(long value) {
+ bitField0_ |= 0x00000008;
+ threadId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 threadId = 4;
+ *
+ *
+ **执行的thread Id*
+ *
+ */
+ public Builder clearThreadId() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ threadId_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.TransactionBegin)
}
- public interface TransactionEndOrBuilder extends
- // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.TransactionEnd)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- boolean hasExecuteTime();
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- long getExecuteTime();
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- boolean hasTransactionId();
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- java.lang.String getTransactionId();
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- com.google.protobuf.ByteString getTransactionIdBytes();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- java.util.List getPropsList();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index);
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- int getPropsCount();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList();
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index);
+ static {
+ defaultInstance = new TransactionBegin(true);
+ defaultInstance.initFields();
}
+ // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.TransactionBegin)
+ }
+
+ public interface TransactionEndOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.TransactionEnd)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ boolean hasExecuteTime();
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ long getExecuteTime();
+
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ boolean hasTransactionId();
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ String getTransactionId();
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ com.google.protobuf.ByteString
+ getTransactionIdBytes();
+
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ java.util.List
+ getPropsList();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ Pair getProps(int index);
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ int getPropsCount();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ java.util.List extends PairOrBuilder>
+ getPropsOrBuilderList();
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ PairOrBuilder getPropsOrBuilder(int index);
+ }
+ /**
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionEnd}
+ *
+ *
+ **结束事务的一些信息*
+ *
+ */
+ public static final class TransactionEnd extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.TransactionEnd)
+ TransactionEndOrBuilder {
+ // Use TransactionEnd.newBuilder() to construct.
+ private TransactionEnd(com.google.protobuf.GeneratedMessage.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;
+ }
+
+ public TransactionEnd getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private TransactionEnd(
+ 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;
+ executeTime_ = input.readInt64();
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ transactionId_ = bs;
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ props_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000004;
+ }
+ props_.add(input.readMessage(Pair.PARSER, extensionRegistry));
+ 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 {
+ if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
+ props_ = java.util.Collections.unmodifiableList(props_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
+ }
+
+ protected FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return 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;
+ }
+
+ 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*
+ *
+ */
+ public long getExecuteTime() {
+ return executeTime_;
+ }
+
+ public static final int TRANSACTIONID_FIELD_NUMBER = 2;
+ private Object transactionId_;
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ public boolean hasTransactionId() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ public String getTransactionId() {
+ Object ref = transactionId_;
+ if (ref instanceof String) {
+ return (String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ transactionId_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ public com.google.protobuf.ByteString
+ getTransactionIdBytes() {
+ Object ref = transactionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ transactionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROPS_FIELD_NUMBER = 3;
+ private java.util.List props_;
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List getPropsList() {
+ return props_;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List extends PairOrBuilder>
+ getPropsOrBuilderList() {
+ return props_;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public int getPropsCount() {
+ return props_.size();
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair getProps(int index) {
+ return props_.get(index);
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public PairOrBuilder getPropsOrBuilder(
+ int index) {
+ return props_.get(index);
+ }
+
+ private void initFields() {
+ executeTime_ = 0L;
+ transactionId_ = "";
+ props_ = java.util.Collections.emptyList();
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeInt64(1, executeTime_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getTransactionIdBytes());
+ }
+ for (int i = 0; i < props_.size(); i++) {
+ output.writeMessage(3, props_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, executeTime_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getTransactionIdBytes());
+ }
+ for (int i = 0; i < props_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, props_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @Override
+ protected Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ public static TransactionEnd parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static 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)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static 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)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static TransactionEnd parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static TransactionEnd parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static TransactionEnd parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static TransactionEnd parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static TransactionEnd 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(TransactionEnd prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @Override
+ protected Builder newBuilderForType(
+ BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
/**
* Protobuf type {@code com.alibaba.otter.canal.protocol.TransactionEnd}
*
*
- * *结束事务的一些信息*
+ **结束事务的一些信息*
*
*/
- public static final class TransactionEnd extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.TransactionEnd)
- TransactionEndOrBuilder {
-
- // Use TransactionEnd.newBuilder() to construct.
- private TransactionEnd(com.google.protobuf.GeneratedMessage.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;
- }
-
- public TransactionEnd getDefaultInstanceForType() {
- return defaultInstance;
- }
-
- private final com.google.protobuf.UnknownFieldSet unknownFields;
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
- }
-
- private TransactionEnd(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;
- executeTime_ = input.readInt64();
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- transactionId_ = bs;
- break;
- }
- case 26: {
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000004;
- }
- props_.add(input.readMessage(com.alibaba.otter.canal.protocol.CanalEntry.Pair.PARSER,
- extensionRegistry));
- 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 {
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = java.util.Collections.unmodifiableList(props_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_fieldAccessorTable.ensureFieldAccessorsInitialized(com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.class,
- com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.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);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- 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*
- *
- */
- public long getExecuteTime() {
- return executeTime_;
- }
-
- public static final int TRANSACTIONID_FIELD_NUMBER = 2;
- private java.lang.Object transactionId_;
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- public boolean hasTransactionId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- 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;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- transactionId_ = s;
- }
- return s;
- }
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- public com.google.protobuf.ByteString getTransactionIdBytes() {
- java.lang.Object ref = transactionId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- transactionId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int PROPS_FIELD_NUMBER = 3;
- private java.util.List props_;
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List getPropsList() {
- return props_;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() {
- return props_;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public int getPropsCount() {
- return props_.size();
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
- return props_.get(index);
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) {
- return props_.get(index);
- }
-
- private void initFields() {
- executeTime_ = 0L;
- transactionId_ = "";
- props_ = java.util.Collections.emptyList();
- }
-
- private byte memoizedIsInitialized = -1;
-
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeInt64(1, executeTime_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getTransactionIdBytes());
- }
- for (int i = 0; i < props_.size(); i++) {
- output.writeMessage(3, props_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
-
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, executeTime_);
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, getTransactionIdBytes());
- }
- for (int i = 0; i < props_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, props_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
-
- @java.lang.Override
- protected java.lang.Object writeReplace() throws java.io.ObjectStreamException {
- return super.writeReplace();
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- 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 com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- 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 com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- 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);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
-
- 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);
- }
-
- public static com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd parseFrom(com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
-
- 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);
- }
-
- public static Builder newBuilder() {
- return Builder.create();
- }
-
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder(com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd 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.TransactionEnd}
- *
- *
- * *结束事务的一些信息*
- *
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:com.alibaba.otter.canal.protocol.TransactionEnd)
- com.alibaba.otter.canal.protocol.CanalEntry.TransactionEndOrBuilder {
+ TransactionEndOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
+ }
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
- }
+ protected FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ TransactionEnd.class, Builder.class);
+ }
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_fieldAccessorTable.ensureFieldAccessorsInitialized(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()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
- // Construct using
- // com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.newBuilder()
- private Builder(){
- maybeForceBuilderInitialization();
- }
-
- private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent){
- super(parent);
- maybeForceBuilderInitialization();
- }
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPropsFieldBuilder();
- }
- }
-
- private static Builder create() {
- return new Builder();
- }
-
- 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);
- } else {
- propsBuilder_.clear();
- }
- return this;
- }
-
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.alibaba.otter.canal.protocol.CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
- }
-
- public com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd getDefaultInstanceForType() {
- return com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.getDefaultInstance();
- }
-
- 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 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)) {
- props_ = java.util.Collections.unmodifiableList(props_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.props_ = props_;
- } else {
- result.props_ = propsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message 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(com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd other) {
- if (other == com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd.getDefaultInstance()) return this;
- if (other.hasExecuteTime()) {
- setExecuteTime(other.getExecuteTime());
- }
- if (other.hasTransactionId()) {
- bitField0_ |= 0x00000002;
- transactionId_ = other.transactionId_;
- onChanged();
- }
- if (propsBuilder_ == null) {
- if (!other.props_.isEmpty()) {
- if (props_.isEmpty()) {
- props_ = other.props_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensurePropsIsMutable();
- props_.addAll(other.props_);
- }
- onChanged();
- }
- } else {
- if (!other.props_.isEmpty()) {
- if (propsBuilder_.isEmpty()) {
- propsBuilder_.dispose();
- propsBuilder_ = null;
- props_ = other.props_;
- bitField0_ = (bitField0_ & ~0x00000004);
- propsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPropsFieldBuilder() : null;
- } else {
- propsBuilder_.addAllMessages(other.props_);
- }
- }
- }
- 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.CanalEntry.TransactionEnd parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.alibaba.otter.canal.protocol.CanalEntry.TransactionEnd) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
-
- private int bitField0_;
-
- private long executeTime_;
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- public boolean hasExecuteTime() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- public long getExecuteTime() {
- return executeTime_;
- }
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- public Builder setExecuteTime(long value) {
- bitField0_ |= 0x00000001;
- executeTime_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional int64 executeTime = 1;
- *
- *
- * *已废弃,请使用header里的executeTime*
- *
- */
- public Builder clearExecuteTime() {
- bitField0_ = (bitField0_ & ~0x00000001);
- executeTime_ = 0L;
- onChanged();
- return this;
- }
-
- private java.lang.Object transactionId_ = "";
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- public boolean hasTransactionId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- 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;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- transactionId_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- public com.google.protobuf.ByteString getTransactionIdBytes() {
- java.lang.Object ref = transactionId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- transactionId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- public Builder setTransactionId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- transactionId_ = value;
- onChanged();
- return this;
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- public Builder clearTransactionId() {
- bitField0_ = (bitField0_ & ~0x00000002);
- transactionId_ = getDefaultInstance().getTransactionId();
- onChanged();
- return this;
- }
-
- /**
- * optional string transactionId = 2;
- *
- *
- * *事务号*
- *
- */
- public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- transactionId_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List props_ = java.util.Collections.emptyList();
-
- private void ensurePropsIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- props_ = new java.util.ArrayList(props_);
- bitField0_ |= 0x00000004;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder propsBuilder_;
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List getPropsList() {
- if (propsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(props_);
- } else {
- return propsBuilder_.getMessageList();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public int getPropsCount() {
- if (propsBuilder_ == null) {
- return props_.size();
- } else {
- return propsBuilder_.getCount();
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair getProps(int index) {
- if (propsBuilder_ == null) {
- return props_.get(index);
- } else {
- return propsBuilder_.getMessage(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.set(index, value);
- onChanged();
- } else {
- propsBuilder_.setMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder setProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.set(index, builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.add(value);
- onChanged();
- } else {
- propsBuilder_.addMessage(value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair value) {
- if (propsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePropsIsMutable();
- props_.add(index, value);
- onChanged();
- } else {
- propsBuilder_.addMessage(index, value);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.add(builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addProps(int index, com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder builderForValue) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.add(index, builderForValue.build());
- onChanged();
- } else {
- propsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder addAllProps(java.lang.Iterable extends com.alibaba.otter.canal.protocol.CanalEntry.Pair> values) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, props_);
- onChanged();
- } else {
- propsBuilder_.addAllMessages(values);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder clearProps() {
- if (propsBuilder_ == null) {
- props_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- propsBuilder_.clear();
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public Builder removeProps(int index) {
- if (propsBuilder_ == null) {
- ensurePropsIsMutable();
- props_.remove(index);
- onChanged();
- } else {
- propsBuilder_.remove(index);
- }
- return this;
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder getPropsBuilder(int index) {
- return getPropsFieldBuilder().getBuilder(index);
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder getPropsOrBuilder(int index) {
- if (propsBuilder_ == null) {
- return props_.get(index);
- } else {
- return propsBuilder_.getMessageOrBuilder(index);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List extends com.alibaba.otter.canal.protocol.CanalEntry.PairOrBuilder> getPropsOrBuilderList() {
- if (propsBuilder_ != null) {
- return propsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(props_);
- }
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder() {
- return getPropsFieldBuilder().addBuilder(com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public com.alibaba.otter.canal.protocol.CanalEntry.Pair.Builder addPropsBuilder(int index) {
- return getPropsFieldBuilder().addBuilder(index,
- com.alibaba.otter.canal.protocol.CanalEntry.Pair.getDefaultInstance());
- }
-
- /**
- * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
- *
- *
- * *预留扩展*
- *
- */
- public java.util.List getPropsBuilderList() {
- return getPropsFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilder getPropsFieldBuilder() {
- if (propsBuilder_ == null) {
- propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder(props_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
- props_ = null;
- }
- return propsBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.TransactionEnd)
+ private Builder(
+ BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getPropsFieldBuilder();
}
+ }
+ private static Builder create() {
+ return new Builder();
+ }
- static {
- defaultInstance = new TransactionEnd(true);
- defaultInstance.initFields();
+ 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);
+ } else {
+ propsBuilder_.clear();
}
+ return this;
+ }
- // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.TransactionEnd)
+ public Builder clone() {
+ return create().mergeFrom(buildPartial());
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_TransactionEnd_descriptor;
+ }
+
+ public TransactionEnd getDefaultInstanceForType() {
+ return TransactionEnd.getDefaultInstance();
+ }
+
+ public TransactionEnd build() {
+ TransactionEnd result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public TransactionEnd buildPartial() {
+ TransactionEnd result = new 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)) {
+ props_ = java.util.Collections.unmodifiableList(props_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.props_ = props_;
+ } else {
+ result.props_ = propsBuilder_.build();
+ }
+ result.bitField0_ = to_bitField0_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof TransactionEnd) {
+ return mergeFrom((TransactionEnd)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(TransactionEnd other) {
+ if (other == TransactionEnd.getDefaultInstance()) return this;
+ if (other.hasExecuteTime()) {
+ setExecuteTime(other.getExecuteTime());
+ }
+ if (other.hasTransactionId()) {
+ bitField0_ |= 0x00000002;
+ transactionId_ = other.transactionId_;
+ onChanged();
+ }
+ if (propsBuilder_ == null) {
+ if (!other.props_.isEmpty()) {
+ if (props_.isEmpty()) {
+ props_ = other.props_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensurePropsIsMutable();
+ props_.addAll(other.props_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.props_.isEmpty()) {
+ if (propsBuilder_.isEmpty()) {
+ propsBuilder_.dispose();
+ propsBuilder_ = null;
+ props_ = other.props_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ propsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPropsFieldBuilder() : null;
+ } else {
+ propsBuilder_.addAllMessages(other.props_);
+ }
+ }
+ }
+ 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 {
+ TransactionEnd parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (TransactionEnd) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private long executeTime_ ;
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ public boolean hasExecuteTime() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ public long getExecuteTime() {
+ return executeTime_;
+ }
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ public Builder setExecuteTime(long value) {
+ bitField0_ |= 0x00000001;
+ executeTime_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional int64 executeTime = 1;
+ *
+ *
+ **已废弃,请使用header里的executeTime*
+ *
+ */
+ public Builder clearExecuteTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ executeTime_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private Object transactionId_ = "";
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ public boolean hasTransactionId() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ public String getTransactionId() {
+ Object ref = transactionId_;
+ if (!(ref instanceof String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ String s = bs.toStringUtf8();
+ if (bs.isValidUtf8()) {
+ transactionId_ = s;
+ }
+ return s;
+ } else {
+ return (String) ref;
+ }
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ public com.google.protobuf.ByteString
+ getTransactionIdBytes() {
+ Object ref = transactionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (String) ref);
+ transactionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ public Builder setTransactionId(
+ String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ transactionId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ public Builder clearTransactionId() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ transactionId_ = getDefaultInstance().getTransactionId();
+ onChanged();
+ return this;
+ }
+ /**
+ * optional string transactionId = 2;
+ *
+ *
+ **事务号*
+ *
+ */
+ public Builder setTransactionIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ transactionId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List props_ =
+ java.util.Collections.emptyList();
+ private void ensurePropsIsMutable() {
+ if (!((bitField0_ & 0x00000004) == 0x00000004)) {
+ props_ = new java.util.ArrayList(props_);
+ bitField0_ |= 0x00000004;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder> propsBuilder_;
+
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List getPropsList() {
+ if (propsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(props_);
+ } else {
+ return propsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public int getPropsCount() {
+ if (propsBuilder_ == null) {
+ return props_.size();
+ } else {
+ return propsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair getProps(int index) {
+ if (propsBuilder_ == null) {
+ return props_.get(index);
+ } else {
+ return propsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder setProps(
+ int index, Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.set(index, value);
+ onChanged();
+ } else {
+ propsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder setProps(
+ int index, Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.add(value);
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ int index, Pair value) {
+ if (propsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePropsIsMutable();
+ props_.add(index, value);
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.add(builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addProps(
+ int index, Pair.Builder builderForValue) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ propsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder addAllProps(
+ Iterable extends Pair> values) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, props_);
+ onChanged();
+ } else {
+ propsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder clearProps() {
+ if (propsBuilder_ == null) {
+ props_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ propsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Builder removeProps(int index) {
+ if (propsBuilder_ == null) {
+ ensurePropsIsMutable();
+ props_.remove(index);
+ onChanged();
+ } else {
+ propsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder getPropsBuilder(
+ int index) {
+ return getPropsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public PairOrBuilder getPropsOrBuilder(
+ int index) {
+ if (propsBuilder_ == null) {
+ return props_.get(index); } else {
+ return propsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List extends PairOrBuilder>
+ getPropsOrBuilderList() {
+ if (propsBuilder_ != null) {
+ return propsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(props_);
+ }
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder addPropsBuilder() {
+ return getPropsFieldBuilder().addBuilder(
+ Pair.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public Pair.Builder addPropsBuilder(
+ int index) {
+ return getPropsFieldBuilder().addBuilder(
+ index, Pair.getDefaultInstance());
+ }
+ /**
+ * repeated .com.alibaba.otter.canal.protocol.Pair props = 3;
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public java.util.List
+ getPropsBuilderList() {
+ return getPropsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder>
+ getPropsFieldBuilder() {
+ if (propsBuilder_ == null) {
+ propsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ Pair, Pair.Builder, PairOrBuilder>(
+ props_,
+ ((bitField0_ & 0x00000004) == 0x00000004),
+ getParentForChildren(),
+ isClean());
+ props_ = null;
+ }
+ return propsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:com.alibaba.otter.canal.protocol.TransactionEnd)
}
- public interface PairOrBuilder extends
- // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Pair)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * optional string key = 1;
- */
- boolean hasKey();
-
- /**
- * optional string key = 1;
- */
- java.lang.String getKey();
-
- /**
- * optional string key = 1;
- */
- com.google.protobuf.ByteString getKeyBytes();
-
- /**
- * optional string value = 2;
- */
- boolean hasValue();
-
- /**
- * optional string value = 2;
- */
- java.lang.String getValue();
-
- /**
- * optional string value = 2;
- */
- com.google.protobuf.ByteString getValueBytes();
+ static {
+ defaultInstance = new TransactionEnd(true);
+ defaultInstance.initFields();
}
+ // @@protoc_insertion_point(class_scope:com.alibaba.otter.canal.protocol.TransactionEnd)
+ }
+
+ public interface PairOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:com.alibaba.otter.canal.protocol.Pair)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * optional string key = 1;
+ */
+ boolean hasKey();
+ /**
+ * optional string key = 1;
+ */
+ String getKey();
+ /**
+ * optional string key = 1;
+ */
+ com.google.protobuf.ByteString
+ getKeyBytes();
+
+ /**
+ * optional string value = 2;
+ */
+ boolean hasValue();
+ /**
+ * optional string value = 2;
+ */
+ String getValue();
+ /**
+ * optional string value = 2;
+ */
+ com.google.protobuf.ByteString
+ getValueBytes();
+ }
+ /**
+ * Protobuf type {@code com.alibaba.otter.canal.protocol.Pair}
+ *
+ *
+ **预留扩展*
+ *
+ */
+ public static final class Pair extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:com.alibaba.otter.canal.protocol.Pair)
+ PairOrBuilder {
+ // Use Pair.newBuilder() to construct.
+ private Pair(com.google.protobuf.GeneratedMessage.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;
+ }
+
+ public Pair getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Pair(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ initFields();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000001;
+ key_ = bs;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ bitField0_ |= 0x00000002;
+ value_ = bs;
+ 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 CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_descriptor;
+ }
+
+ protected FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return CanalEntry.internal_static_com_alibaba_otter_canal_protocol_Pair_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ Pair.class, Builder.class);
+ }
+
+ public static com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser