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

org.tikv.kvproto.Cdcpb Maven / Gradle / Ivy

There is a newer version: 3.2.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: cdcpb.proto

package org.tikv.kvproto;

public final class Cdcpb {
  private Cdcpb() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface HeaderOrBuilder extends
      // @@protoc_insertion_point(interface_extends:cdcpb.Header)
      com.google.protobuf.MessageOrBuilder {

    /**
     * uint64 cluster_id = 1;
     */
    long getClusterId();

    /**
     * string ticdc_version = 2;
     */
    java.lang.String getTicdcVersion();
    /**
     * string ticdc_version = 2;
     */
    com.google.protobuf.ByteString
        getTicdcVersionBytes();
  }
  /**
   * Protobuf type {@code cdcpb.Header}
   */
  public  static final class Header extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:cdcpb.Header)
      HeaderOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Header.newBuilder() to construct.
    private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Header() {
      clusterId_ = 0L;
      ticdcVersion_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Header(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {

              clusterId_ = input.readUInt64();
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              ticdcVersion_ = s;
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Header_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Header_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.tikv.kvproto.Cdcpb.Header.class, org.tikv.kvproto.Cdcpb.Header.Builder.class);
    }

    public static final int CLUSTER_ID_FIELD_NUMBER = 1;
    private long clusterId_;
    /**
     * uint64 cluster_id = 1;
     */
    public long getClusterId() {
      return clusterId_;
    }

    public static final int TICDC_VERSION_FIELD_NUMBER = 2;
    private volatile java.lang.Object ticdcVersion_;
    /**
     * string ticdc_version = 2;
     */
    public java.lang.String getTicdcVersion() {
      java.lang.Object ref = ticdcVersion_;
      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();
        ticdcVersion_ = s;
        return s;
      }
    }
    /**
     * string ticdc_version = 2;
     */
    public com.google.protobuf.ByteString
        getTicdcVersionBytes() {
      java.lang.Object ref = ticdcVersion_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        ticdcVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 {
      if (clusterId_ != 0L) {
        output.writeUInt64(1, clusterId_);
      }
      if (!getTicdcVersionBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ticdcVersion_);
      }
      unknownFields.writeTo(output);
    }

    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (clusterId_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(1, clusterId_);
      }
      if (!getTicdcVersionBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ticdcVersion_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof org.tikv.kvproto.Cdcpb.Header)) {
        return super.equals(obj);
      }
      org.tikv.kvproto.Cdcpb.Header other = (org.tikv.kvproto.Cdcpb.Header) obj;

      boolean result = true;
      result = result && (getClusterId()
          == other.getClusterId());
      result = result && getTicdcVersion()
          .equals(other.getTicdcVersion());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getClusterId());
      hash = (37 * hash) + TICDC_VERSION_FIELD_NUMBER;
      hash = (53 * hash) + getTicdcVersion().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static org.tikv.kvproto.Cdcpb.Header parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tikv.kvproto.Cdcpb.Header parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tikv.kvproto.Cdcpb.Header parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tikv.kvproto.Cdcpb.Header parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tikv.kvproto.Cdcpb.Header parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static org.tikv.kvproto.Cdcpb.Header parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static org.tikv.kvproto.Cdcpb.Header parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tikv.kvproto.Cdcpb.Header parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.tikv.kvproto.Cdcpb.Header parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static org.tikv.kvproto.Cdcpb.Header parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static org.tikv.kvproto.Cdcpb.Header parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static org.tikv.kvproto.Cdcpb.Header parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(org.tikv.kvproto.Cdcpb.Header prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code cdcpb.Header}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:cdcpb.Header)
        org.tikv.kvproto.Cdcpb.HeaderOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Header_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Header_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                org.tikv.kvproto.Cdcpb.Header.class, org.tikv.kvproto.Cdcpb.Header.Builder.class);
      }

      // Construct using org.tikv.kvproto.Cdcpb.Header.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      public Builder clear() {
        super.clear();
        clusterId_ = 0L;

        ticdcVersion_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Header_descriptor;
      }

      public org.tikv.kvproto.Cdcpb.Header getDefaultInstanceForType() {
        return org.tikv.kvproto.Cdcpb.Header.getDefaultInstance();
      }

      public org.tikv.kvproto.Cdcpb.Header build() {
        org.tikv.kvproto.Cdcpb.Header result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public org.tikv.kvproto.Cdcpb.Header buildPartial() {
        org.tikv.kvproto.Cdcpb.Header result = new org.tikv.kvproto.Cdcpb.Header(this);
        result.clusterId_ = clusterId_;
        result.ticdcVersion_ = ticdcVersion_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof org.tikv.kvproto.Cdcpb.Header) {
          return mergeFrom((org.tikv.kvproto.Cdcpb.Header)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(org.tikv.kvproto.Cdcpb.Header other) {
        if (other == org.tikv.kvproto.Cdcpb.Header.getDefaultInstance()) return this;
        if (other.getClusterId() != 0L) {
          setClusterId(other.getClusterId());
        }
        if (!other.getTicdcVersion().isEmpty()) {
          ticdcVersion_ = other.ticdcVersion_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        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 {
        org.tikv.kvproto.Cdcpb.Header parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (org.tikv.kvproto.Cdcpb.Header) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private long clusterId_ ;
      /**
       * uint64 cluster_id = 1;
       */
      public long getClusterId() {
        return clusterId_;
      }
      /**
       * uint64 cluster_id = 1;
       */
      public Builder setClusterId(long value) {
        
        clusterId_ = value;
        onChanged();
        return this;
      }
      /**
       * uint64 cluster_id = 1;
       */
      public Builder clearClusterId() {
        
        clusterId_ = 0L;
        onChanged();
        return this;
      }

      private java.lang.Object ticdcVersion_ = "";
      /**
       * string ticdc_version = 2;
       */
      public java.lang.String getTicdcVersion() {
        java.lang.Object ref = ticdcVersion_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          ticdcVersion_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string ticdc_version = 2;
       */
      public com.google.protobuf.ByteString
          getTicdcVersionBytes() {
        java.lang.Object ref = ticdcVersion_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          ticdcVersion_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string ticdc_version = 2;
       */
      public Builder setTicdcVersion(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        ticdcVersion_ = value;
        onChanged();
        return this;
      }
      /**
       * string ticdc_version = 2;
       */
      public Builder clearTicdcVersion() {
        
        ticdcVersion_ = getDefaultInstance().getTicdcVersion();
        onChanged();
        return this;
      }
      /**
       * string ticdc_version = 2;
       */
      public Builder setTicdcVersionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        ticdcVersion_ = value;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:cdcpb.Header)
    }

    // @@protoc_insertion_point(class_scope:cdcpb.Header)
    private static final org.tikv.kvproto.Cdcpb.Header DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.Header();
    }

    public static org.tikv.kvproto.Cdcpb.Header getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser
() { public Header parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Header(input, extensionRegistry); } }; public static com.google.protobuf.Parser
parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser
getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DuplicateRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.DuplicateRequest) com.google.protobuf.MessageOrBuilder { /** * uint64 region_id = 1; */ long getRegionId(); } /** * Protobuf type {@code cdcpb.DuplicateRequest} */ public static final class DuplicateRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.DuplicateRequest) DuplicateRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DuplicateRequest.newBuilder() to construct. private DuplicateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DuplicateRequest() { regionId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DuplicateRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { regionId_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_DuplicateRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_DuplicateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.DuplicateRequest.class, org.tikv.kvproto.Cdcpb.DuplicateRequest.Builder.class); } public static final int REGION_ID_FIELD_NUMBER = 1; private long regionId_; /** * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } 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 { if (regionId_ != 0L) { output.writeUInt64(1, regionId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, regionId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.DuplicateRequest)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.DuplicateRequest other = (org.tikv.kvproto.Cdcpb.DuplicateRequest) obj; boolean result = true; result = result && (getRegionId() == other.getRegionId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.DuplicateRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.DuplicateRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.DuplicateRequest) org.tikv.kvproto.Cdcpb.DuplicateRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_DuplicateRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_DuplicateRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.DuplicateRequest.class, org.tikv.kvproto.Cdcpb.DuplicateRequest.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.DuplicateRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); regionId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_DuplicateRequest_descriptor; } public org.tikv.kvproto.Cdcpb.DuplicateRequest getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.DuplicateRequest.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.DuplicateRequest build() { org.tikv.kvproto.Cdcpb.DuplicateRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.DuplicateRequest buildPartial() { org.tikv.kvproto.Cdcpb.DuplicateRequest result = new org.tikv.kvproto.Cdcpb.DuplicateRequest(this); result.regionId_ = regionId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.DuplicateRequest) { return mergeFrom((org.tikv.kvproto.Cdcpb.DuplicateRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.DuplicateRequest other) { if (other == org.tikv.kvproto.Cdcpb.DuplicateRequest.getDefaultInstance()) return this; if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.DuplicateRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.DuplicateRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long regionId_ ; /** * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } /** * uint64 region_id = 1; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** * uint64 region_id = 1; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.DuplicateRequest) } // @@protoc_insertion_point(class_scope:cdcpb.DuplicateRequest) private static final org.tikv.kvproto.Cdcpb.DuplicateRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.DuplicateRequest(); } public static org.tikv.kvproto.Cdcpb.DuplicateRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DuplicateRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DuplicateRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.DuplicateRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CompatibilityOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.Compatibility) com.google.protobuf.MessageOrBuilder { /** * string required_version = 1; */ java.lang.String getRequiredVersion(); /** * string required_version = 1; */ com.google.protobuf.ByteString getRequiredVersionBytes(); } /** * Protobuf type {@code cdcpb.Compatibility} */ public static final class Compatibility extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.Compatibility) CompatibilityOrBuilder { private static final long serialVersionUID = 0L; // Use Compatibility.newBuilder() to construct. private Compatibility(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Compatibility() { requiredVersion_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Compatibility( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); requiredVersion_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Compatibility_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Compatibility_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Compatibility.class, org.tikv.kvproto.Cdcpb.Compatibility.Builder.class); } public static final int REQUIRED_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object requiredVersion_; /** * string required_version = 1; */ public java.lang.String getRequiredVersion() { java.lang.Object ref = requiredVersion_; 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(); requiredVersion_ = s; return s; } } /** * string required_version = 1; */ public com.google.protobuf.ByteString getRequiredVersionBytes() { java.lang.Object ref = requiredVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requiredVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 { if (!getRequiredVersionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requiredVersion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getRequiredVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requiredVersion_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.Compatibility)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.Compatibility other = (org.tikv.kvproto.Cdcpb.Compatibility) obj; boolean result = true; result = result && getRequiredVersion() .equals(other.getRequiredVersion()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REQUIRED_VERSION_FIELD_NUMBER; hash = (53 * hash) + getRequiredVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.Compatibility parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Compatibility parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Compatibility parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Compatibility parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Compatibility parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Compatibility parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Compatibility parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Compatibility parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Compatibility parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Compatibility parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Compatibility parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Compatibility parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.Compatibility prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.Compatibility} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.Compatibility) org.tikv.kvproto.Cdcpb.CompatibilityOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Compatibility_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Compatibility_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Compatibility.class, org.tikv.kvproto.Cdcpb.Compatibility.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.Compatibility.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); requiredVersion_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Compatibility_descriptor; } public org.tikv.kvproto.Cdcpb.Compatibility getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.Compatibility.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.Compatibility build() { org.tikv.kvproto.Cdcpb.Compatibility result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.Compatibility buildPartial() { org.tikv.kvproto.Cdcpb.Compatibility result = new org.tikv.kvproto.Cdcpb.Compatibility(this); result.requiredVersion_ = requiredVersion_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.Compatibility) { return mergeFrom((org.tikv.kvproto.Cdcpb.Compatibility)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.Compatibility other) { if (other == org.tikv.kvproto.Cdcpb.Compatibility.getDefaultInstance()) return this; if (!other.getRequiredVersion().isEmpty()) { requiredVersion_ = other.requiredVersion_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.Compatibility parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.Compatibility) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object requiredVersion_ = ""; /** * string required_version = 1; */ public java.lang.String getRequiredVersion() { java.lang.Object ref = requiredVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requiredVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * string required_version = 1; */ public com.google.protobuf.ByteString getRequiredVersionBytes() { java.lang.Object ref = requiredVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requiredVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string required_version = 1; */ public Builder setRequiredVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } requiredVersion_ = value; onChanged(); return this; } /** * string required_version = 1; */ public Builder clearRequiredVersion() { requiredVersion_ = getDefaultInstance().getRequiredVersion(); onChanged(); return this; } /** * string required_version = 1; */ public Builder setRequiredVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requiredVersion_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.Compatibility) } // @@protoc_insertion_point(class_scope:cdcpb.Compatibility) private static final org.tikv.kvproto.Cdcpb.Compatibility DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.Compatibility(); } public static org.tikv.kvproto.Cdcpb.Compatibility getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Compatibility parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Compatibility(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.Compatibility getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.Error) com.google.protobuf.MessageOrBuilder { /** * .errorpb.NotLeader not_leader = 1; */ boolean hasNotLeader(); /** * .errorpb.NotLeader not_leader = 1; */ org.tikv.kvproto.Errorpb.NotLeader getNotLeader(); /** * .errorpb.NotLeader not_leader = 1; */ org.tikv.kvproto.Errorpb.NotLeaderOrBuilder getNotLeaderOrBuilder(); /** * .errorpb.RegionNotFound region_not_found = 2; */ boolean hasRegionNotFound(); /** * .errorpb.RegionNotFound region_not_found = 2; */ org.tikv.kvproto.Errorpb.RegionNotFound getRegionNotFound(); /** * .errorpb.RegionNotFound region_not_found = 2; */ org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder getRegionNotFoundOrBuilder(); /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ boolean hasEpochNotMatch(); /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ org.tikv.kvproto.Errorpb.EpochNotMatch getEpochNotMatch(); /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder getEpochNotMatchOrBuilder(); /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ boolean hasDuplicateRequest(); /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ org.tikv.kvproto.Cdcpb.DuplicateRequest getDuplicateRequest(); /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ org.tikv.kvproto.Cdcpb.DuplicateRequestOrBuilder getDuplicateRequestOrBuilder(); /** * .cdcpb.Compatibility compatibility = 5; */ boolean hasCompatibility(); /** * .cdcpb.Compatibility compatibility = 5; */ org.tikv.kvproto.Cdcpb.Compatibility getCompatibility(); /** * .cdcpb.Compatibility compatibility = 5; */ org.tikv.kvproto.Cdcpb.CompatibilityOrBuilder getCompatibilityOrBuilder(); } /** * Protobuf type {@code cdcpb.Error} */ public static final class Error extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.Error) ErrorOrBuilder { private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Error() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Error( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.NotLeader.Builder subBuilder = null; if (notLeader_ != null) { subBuilder = notLeader_.toBuilder(); } notLeader_ = input.readMessage(org.tikv.kvproto.Errorpb.NotLeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notLeader_); notLeader_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Errorpb.RegionNotFound.Builder subBuilder = null; if (regionNotFound_ != null) { subBuilder = regionNotFound_.toBuilder(); } regionNotFound_ = input.readMessage(org.tikv.kvproto.Errorpb.RegionNotFound.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionNotFound_); regionNotFound_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Errorpb.EpochNotMatch.Builder subBuilder = null; if (epochNotMatch_ != null) { subBuilder = epochNotMatch_.toBuilder(); } epochNotMatch_ = input.readMessage(org.tikv.kvproto.Errorpb.EpochNotMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(epochNotMatch_); epochNotMatch_ = subBuilder.buildPartial(); } break; } case 34: { org.tikv.kvproto.Cdcpb.DuplicateRequest.Builder subBuilder = null; if (duplicateRequest_ != null) { subBuilder = duplicateRequest_.toBuilder(); } duplicateRequest_ = input.readMessage(org.tikv.kvproto.Cdcpb.DuplicateRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(duplicateRequest_); duplicateRequest_ = subBuilder.buildPartial(); } break; } case 42: { org.tikv.kvproto.Cdcpb.Compatibility.Builder subBuilder = null; if (compatibility_ != null) { subBuilder = compatibility_.toBuilder(); } compatibility_ = input.readMessage(org.tikv.kvproto.Cdcpb.Compatibility.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(compatibility_); compatibility_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Error.class, org.tikv.kvproto.Cdcpb.Error.Builder.class); } public static final int NOT_LEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.NotLeader notLeader_; /** * .errorpb.NotLeader not_leader = 1; */ public boolean hasNotLeader() { return notLeader_ != null; } /** * .errorpb.NotLeader not_leader = 1; */ public org.tikv.kvproto.Errorpb.NotLeader getNotLeader() { return notLeader_ == null ? org.tikv.kvproto.Errorpb.NotLeader.getDefaultInstance() : notLeader_; } /** * .errorpb.NotLeader not_leader = 1; */ public org.tikv.kvproto.Errorpb.NotLeaderOrBuilder getNotLeaderOrBuilder() { return getNotLeader(); } public static final int REGION_NOT_FOUND_FIELD_NUMBER = 2; private org.tikv.kvproto.Errorpb.RegionNotFound regionNotFound_; /** * .errorpb.RegionNotFound region_not_found = 2; */ public boolean hasRegionNotFound() { return regionNotFound_ != null; } /** * .errorpb.RegionNotFound region_not_found = 2; */ public org.tikv.kvproto.Errorpb.RegionNotFound getRegionNotFound() { return regionNotFound_ == null ? org.tikv.kvproto.Errorpb.RegionNotFound.getDefaultInstance() : regionNotFound_; } /** * .errorpb.RegionNotFound region_not_found = 2; */ public org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder getRegionNotFoundOrBuilder() { return getRegionNotFound(); } public static final int EPOCH_NOT_MATCH_FIELD_NUMBER = 3; private org.tikv.kvproto.Errorpb.EpochNotMatch epochNotMatch_; /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ public boolean hasEpochNotMatch() { return epochNotMatch_ != null; } /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ public org.tikv.kvproto.Errorpb.EpochNotMatch getEpochNotMatch() { return epochNotMatch_ == null ? org.tikv.kvproto.Errorpb.EpochNotMatch.getDefaultInstance() : epochNotMatch_; } /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ public org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder getEpochNotMatchOrBuilder() { return getEpochNotMatch(); } public static final int DUPLICATE_REQUEST_FIELD_NUMBER = 4; private org.tikv.kvproto.Cdcpb.DuplicateRequest duplicateRequest_; /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ public boolean hasDuplicateRequest() { return duplicateRequest_ != null; } /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ public org.tikv.kvproto.Cdcpb.DuplicateRequest getDuplicateRequest() { return duplicateRequest_ == null ? org.tikv.kvproto.Cdcpb.DuplicateRequest.getDefaultInstance() : duplicateRequest_; } /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ public org.tikv.kvproto.Cdcpb.DuplicateRequestOrBuilder getDuplicateRequestOrBuilder() { return getDuplicateRequest(); } public static final int COMPATIBILITY_FIELD_NUMBER = 5; private org.tikv.kvproto.Cdcpb.Compatibility compatibility_; /** * .cdcpb.Compatibility compatibility = 5; */ public boolean hasCompatibility() { return compatibility_ != null; } /** * .cdcpb.Compatibility compatibility = 5; */ public org.tikv.kvproto.Cdcpb.Compatibility getCompatibility() { return compatibility_ == null ? org.tikv.kvproto.Cdcpb.Compatibility.getDefaultInstance() : compatibility_; } /** * .cdcpb.Compatibility compatibility = 5; */ public org.tikv.kvproto.Cdcpb.CompatibilityOrBuilder getCompatibilityOrBuilder() { return getCompatibility(); } 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 { if (notLeader_ != null) { output.writeMessage(1, getNotLeader()); } if (regionNotFound_ != null) { output.writeMessage(2, getRegionNotFound()); } if (epochNotMatch_ != null) { output.writeMessage(3, getEpochNotMatch()); } if (duplicateRequest_ != null) { output.writeMessage(4, getDuplicateRequest()); } if (compatibility_ != null) { output.writeMessage(5, getCompatibility()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (notLeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNotLeader()); } if (regionNotFound_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRegionNotFound()); } if (epochNotMatch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getEpochNotMatch()); } if (duplicateRequest_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getDuplicateRequest()); } if (compatibility_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getCompatibility()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.Error)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.Error other = (org.tikv.kvproto.Cdcpb.Error) obj; boolean result = true; result = result && (hasNotLeader() == other.hasNotLeader()); if (hasNotLeader()) { result = result && getNotLeader() .equals(other.getNotLeader()); } result = result && (hasRegionNotFound() == other.hasRegionNotFound()); if (hasRegionNotFound()) { result = result && getRegionNotFound() .equals(other.getRegionNotFound()); } result = result && (hasEpochNotMatch() == other.hasEpochNotMatch()); if (hasEpochNotMatch()) { result = result && getEpochNotMatch() .equals(other.getEpochNotMatch()); } result = result && (hasDuplicateRequest() == other.hasDuplicateRequest()); if (hasDuplicateRequest()) { result = result && getDuplicateRequest() .equals(other.getDuplicateRequest()); } result = result && (hasCompatibility() == other.hasCompatibility()); if (hasCompatibility()) { result = result && getCompatibility() .equals(other.getCompatibility()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNotLeader()) { hash = (37 * hash) + NOT_LEADER_FIELD_NUMBER; hash = (53 * hash) + getNotLeader().hashCode(); } if (hasRegionNotFound()) { hash = (37 * hash) + REGION_NOT_FOUND_FIELD_NUMBER; hash = (53 * hash) + getRegionNotFound().hashCode(); } if (hasEpochNotMatch()) { hash = (37 * hash) + EPOCH_NOT_MATCH_FIELD_NUMBER; hash = (53 * hash) + getEpochNotMatch().hashCode(); } if (hasDuplicateRequest()) { hash = (37 * hash) + DUPLICATE_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getDuplicateRequest().hashCode(); } if (hasCompatibility()) { hash = (37 * hash) + COMPATIBILITY_FIELD_NUMBER; hash = (53 * hash) + getCompatibility().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.Error parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Error parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Error parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Error parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Error parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Error parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Error parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.Error} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.Error) org.tikv.kvproto.Cdcpb.ErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Error.class, org.tikv.kvproto.Cdcpb.Error.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.Error.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (notLeaderBuilder_ == null) { notLeader_ = null; } else { notLeader_ = null; notLeaderBuilder_ = null; } if (regionNotFoundBuilder_ == null) { regionNotFound_ = null; } else { regionNotFound_ = null; regionNotFoundBuilder_ = null; } if (epochNotMatchBuilder_ == null) { epochNotMatch_ = null; } else { epochNotMatch_ = null; epochNotMatchBuilder_ = null; } if (duplicateRequestBuilder_ == null) { duplicateRequest_ = null; } else { duplicateRequest_ = null; duplicateRequestBuilder_ = null; } if (compatibilityBuilder_ == null) { compatibility_ = null; } else { compatibility_ = null; compatibilityBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Error_descriptor; } public org.tikv.kvproto.Cdcpb.Error getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.Error.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.Error build() { org.tikv.kvproto.Cdcpb.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.Error buildPartial() { org.tikv.kvproto.Cdcpb.Error result = new org.tikv.kvproto.Cdcpb.Error(this); if (notLeaderBuilder_ == null) { result.notLeader_ = notLeader_; } else { result.notLeader_ = notLeaderBuilder_.build(); } if (regionNotFoundBuilder_ == null) { result.regionNotFound_ = regionNotFound_; } else { result.regionNotFound_ = regionNotFoundBuilder_.build(); } if (epochNotMatchBuilder_ == null) { result.epochNotMatch_ = epochNotMatch_; } else { result.epochNotMatch_ = epochNotMatchBuilder_.build(); } if (duplicateRequestBuilder_ == null) { result.duplicateRequest_ = duplicateRequest_; } else { result.duplicateRequest_ = duplicateRequestBuilder_.build(); } if (compatibilityBuilder_ == null) { result.compatibility_ = compatibility_; } else { result.compatibility_ = compatibilityBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.Error) { return mergeFrom((org.tikv.kvproto.Cdcpb.Error)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.Error other) { if (other == org.tikv.kvproto.Cdcpb.Error.getDefaultInstance()) return this; if (other.hasNotLeader()) { mergeNotLeader(other.getNotLeader()); } if (other.hasRegionNotFound()) { mergeRegionNotFound(other.getRegionNotFound()); } if (other.hasEpochNotMatch()) { mergeEpochNotMatch(other.getEpochNotMatch()); } if (other.hasDuplicateRequest()) { mergeDuplicateRequest(other.getDuplicateRequest()); } if (other.hasCompatibility()) { mergeCompatibility(other.getCompatibility()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.Error parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.Error) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.NotLeader notLeader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.NotLeader, org.tikv.kvproto.Errorpb.NotLeader.Builder, org.tikv.kvproto.Errorpb.NotLeaderOrBuilder> notLeaderBuilder_; /** * .errorpb.NotLeader not_leader = 1; */ public boolean hasNotLeader() { return notLeaderBuilder_ != null || notLeader_ != null; } /** * .errorpb.NotLeader not_leader = 1; */ public org.tikv.kvproto.Errorpb.NotLeader getNotLeader() { if (notLeaderBuilder_ == null) { return notLeader_ == null ? org.tikv.kvproto.Errorpb.NotLeader.getDefaultInstance() : notLeader_; } else { return notLeaderBuilder_.getMessage(); } } /** * .errorpb.NotLeader not_leader = 1; */ public Builder setNotLeader(org.tikv.kvproto.Errorpb.NotLeader value) { if (notLeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notLeader_ = value; onChanged(); } else { notLeaderBuilder_.setMessage(value); } return this; } /** * .errorpb.NotLeader not_leader = 1; */ public Builder setNotLeader( org.tikv.kvproto.Errorpb.NotLeader.Builder builderForValue) { if (notLeaderBuilder_ == null) { notLeader_ = builderForValue.build(); onChanged(); } else { notLeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.NotLeader not_leader = 1; */ public Builder mergeNotLeader(org.tikv.kvproto.Errorpb.NotLeader value) { if (notLeaderBuilder_ == null) { if (notLeader_ != null) { notLeader_ = org.tikv.kvproto.Errorpb.NotLeader.newBuilder(notLeader_).mergeFrom(value).buildPartial(); } else { notLeader_ = value; } onChanged(); } else { notLeaderBuilder_.mergeFrom(value); } return this; } /** * .errorpb.NotLeader not_leader = 1; */ public Builder clearNotLeader() { if (notLeaderBuilder_ == null) { notLeader_ = null; onChanged(); } else { notLeader_ = null; notLeaderBuilder_ = null; } return this; } /** * .errorpb.NotLeader not_leader = 1; */ public org.tikv.kvproto.Errorpb.NotLeader.Builder getNotLeaderBuilder() { onChanged(); return getNotLeaderFieldBuilder().getBuilder(); } /** * .errorpb.NotLeader not_leader = 1; */ public org.tikv.kvproto.Errorpb.NotLeaderOrBuilder getNotLeaderOrBuilder() { if (notLeaderBuilder_ != null) { return notLeaderBuilder_.getMessageOrBuilder(); } else { return notLeader_ == null ? org.tikv.kvproto.Errorpb.NotLeader.getDefaultInstance() : notLeader_; } } /** * .errorpb.NotLeader not_leader = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.NotLeader, org.tikv.kvproto.Errorpb.NotLeader.Builder, org.tikv.kvproto.Errorpb.NotLeaderOrBuilder> getNotLeaderFieldBuilder() { if (notLeaderBuilder_ == null) { notLeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.NotLeader, org.tikv.kvproto.Errorpb.NotLeader.Builder, org.tikv.kvproto.Errorpb.NotLeaderOrBuilder>( getNotLeader(), getParentForChildren(), isClean()); notLeader_ = null; } return notLeaderBuilder_; } private org.tikv.kvproto.Errorpb.RegionNotFound regionNotFound_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.RegionNotFound, org.tikv.kvproto.Errorpb.RegionNotFound.Builder, org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder> regionNotFoundBuilder_; /** * .errorpb.RegionNotFound region_not_found = 2; */ public boolean hasRegionNotFound() { return regionNotFoundBuilder_ != null || regionNotFound_ != null; } /** * .errorpb.RegionNotFound region_not_found = 2; */ public org.tikv.kvproto.Errorpb.RegionNotFound getRegionNotFound() { if (regionNotFoundBuilder_ == null) { return regionNotFound_ == null ? org.tikv.kvproto.Errorpb.RegionNotFound.getDefaultInstance() : regionNotFound_; } else { return regionNotFoundBuilder_.getMessage(); } } /** * .errorpb.RegionNotFound region_not_found = 2; */ public Builder setRegionNotFound(org.tikv.kvproto.Errorpb.RegionNotFound value) { if (regionNotFoundBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionNotFound_ = value; onChanged(); } else { regionNotFoundBuilder_.setMessage(value); } return this; } /** * .errorpb.RegionNotFound region_not_found = 2; */ public Builder setRegionNotFound( org.tikv.kvproto.Errorpb.RegionNotFound.Builder builderForValue) { if (regionNotFoundBuilder_ == null) { regionNotFound_ = builderForValue.build(); onChanged(); } else { regionNotFoundBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.RegionNotFound region_not_found = 2; */ public Builder mergeRegionNotFound(org.tikv.kvproto.Errorpb.RegionNotFound value) { if (regionNotFoundBuilder_ == null) { if (regionNotFound_ != null) { regionNotFound_ = org.tikv.kvproto.Errorpb.RegionNotFound.newBuilder(regionNotFound_).mergeFrom(value).buildPartial(); } else { regionNotFound_ = value; } onChanged(); } else { regionNotFoundBuilder_.mergeFrom(value); } return this; } /** * .errorpb.RegionNotFound region_not_found = 2; */ public Builder clearRegionNotFound() { if (regionNotFoundBuilder_ == null) { regionNotFound_ = null; onChanged(); } else { regionNotFound_ = null; regionNotFoundBuilder_ = null; } return this; } /** * .errorpb.RegionNotFound region_not_found = 2; */ public org.tikv.kvproto.Errorpb.RegionNotFound.Builder getRegionNotFoundBuilder() { onChanged(); return getRegionNotFoundFieldBuilder().getBuilder(); } /** * .errorpb.RegionNotFound region_not_found = 2; */ public org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder getRegionNotFoundOrBuilder() { if (regionNotFoundBuilder_ != null) { return regionNotFoundBuilder_.getMessageOrBuilder(); } else { return regionNotFound_ == null ? org.tikv.kvproto.Errorpb.RegionNotFound.getDefaultInstance() : regionNotFound_; } } /** * .errorpb.RegionNotFound region_not_found = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.RegionNotFound, org.tikv.kvproto.Errorpb.RegionNotFound.Builder, org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder> getRegionNotFoundFieldBuilder() { if (regionNotFoundBuilder_ == null) { regionNotFoundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.RegionNotFound, org.tikv.kvproto.Errorpb.RegionNotFound.Builder, org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder>( getRegionNotFound(), getParentForChildren(), isClean()); regionNotFound_ = null; } return regionNotFoundBuilder_; } private org.tikv.kvproto.Errorpb.EpochNotMatch epochNotMatch_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.EpochNotMatch, org.tikv.kvproto.Errorpb.EpochNotMatch.Builder, org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder> epochNotMatchBuilder_; /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ public boolean hasEpochNotMatch() { return epochNotMatchBuilder_ != null || epochNotMatch_ != null; } /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ public org.tikv.kvproto.Errorpb.EpochNotMatch getEpochNotMatch() { if (epochNotMatchBuilder_ == null) { return epochNotMatch_ == null ? org.tikv.kvproto.Errorpb.EpochNotMatch.getDefaultInstance() : epochNotMatch_; } else { return epochNotMatchBuilder_.getMessage(); } } /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ public Builder setEpochNotMatch(org.tikv.kvproto.Errorpb.EpochNotMatch value) { if (epochNotMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } epochNotMatch_ = value; onChanged(); } else { epochNotMatchBuilder_.setMessage(value); } return this; } /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ public Builder setEpochNotMatch( org.tikv.kvproto.Errorpb.EpochNotMatch.Builder builderForValue) { if (epochNotMatchBuilder_ == null) { epochNotMatch_ = builderForValue.build(); onChanged(); } else { epochNotMatchBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ public Builder mergeEpochNotMatch(org.tikv.kvproto.Errorpb.EpochNotMatch value) { if (epochNotMatchBuilder_ == null) { if (epochNotMatch_ != null) { epochNotMatch_ = org.tikv.kvproto.Errorpb.EpochNotMatch.newBuilder(epochNotMatch_).mergeFrom(value).buildPartial(); } else { epochNotMatch_ = value; } onChanged(); } else { epochNotMatchBuilder_.mergeFrom(value); } return this; } /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ public Builder clearEpochNotMatch() { if (epochNotMatchBuilder_ == null) { epochNotMatch_ = null; onChanged(); } else { epochNotMatch_ = null; epochNotMatchBuilder_ = null; } return this; } /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ public org.tikv.kvproto.Errorpb.EpochNotMatch.Builder getEpochNotMatchBuilder() { onChanged(); return getEpochNotMatchFieldBuilder().getBuilder(); } /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ public org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder getEpochNotMatchOrBuilder() { if (epochNotMatchBuilder_ != null) { return epochNotMatchBuilder_.getMessageOrBuilder(); } else { return epochNotMatch_ == null ? org.tikv.kvproto.Errorpb.EpochNotMatch.getDefaultInstance() : epochNotMatch_; } } /** * .errorpb.EpochNotMatch epoch_not_match = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.EpochNotMatch, org.tikv.kvproto.Errorpb.EpochNotMatch.Builder, org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder> getEpochNotMatchFieldBuilder() { if (epochNotMatchBuilder_ == null) { epochNotMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.EpochNotMatch, org.tikv.kvproto.Errorpb.EpochNotMatch.Builder, org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder>( getEpochNotMatch(), getParentForChildren(), isClean()); epochNotMatch_ = null; } return epochNotMatchBuilder_; } private org.tikv.kvproto.Cdcpb.DuplicateRequest duplicateRequest_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.DuplicateRequest, org.tikv.kvproto.Cdcpb.DuplicateRequest.Builder, org.tikv.kvproto.Cdcpb.DuplicateRequestOrBuilder> duplicateRequestBuilder_; /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ public boolean hasDuplicateRequest() { return duplicateRequestBuilder_ != null || duplicateRequest_ != null; } /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ public org.tikv.kvproto.Cdcpb.DuplicateRequest getDuplicateRequest() { if (duplicateRequestBuilder_ == null) { return duplicateRequest_ == null ? org.tikv.kvproto.Cdcpb.DuplicateRequest.getDefaultInstance() : duplicateRequest_; } else { return duplicateRequestBuilder_.getMessage(); } } /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ public Builder setDuplicateRequest(org.tikv.kvproto.Cdcpb.DuplicateRequest value) { if (duplicateRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duplicateRequest_ = value; onChanged(); } else { duplicateRequestBuilder_.setMessage(value); } return this; } /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ public Builder setDuplicateRequest( org.tikv.kvproto.Cdcpb.DuplicateRequest.Builder builderForValue) { if (duplicateRequestBuilder_ == null) { duplicateRequest_ = builderForValue.build(); onChanged(); } else { duplicateRequestBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ public Builder mergeDuplicateRequest(org.tikv.kvproto.Cdcpb.DuplicateRequest value) { if (duplicateRequestBuilder_ == null) { if (duplicateRequest_ != null) { duplicateRequest_ = org.tikv.kvproto.Cdcpb.DuplicateRequest.newBuilder(duplicateRequest_).mergeFrom(value).buildPartial(); } else { duplicateRequest_ = value; } onChanged(); } else { duplicateRequestBuilder_.mergeFrom(value); } return this; } /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ public Builder clearDuplicateRequest() { if (duplicateRequestBuilder_ == null) { duplicateRequest_ = null; onChanged(); } else { duplicateRequest_ = null; duplicateRequestBuilder_ = null; } return this; } /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ public org.tikv.kvproto.Cdcpb.DuplicateRequest.Builder getDuplicateRequestBuilder() { onChanged(); return getDuplicateRequestFieldBuilder().getBuilder(); } /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ public org.tikv.kvproto.Cdcpb.DuplicateRequestOrBuilder getDuplicateRequestOrBuilder() { if (duplicateRequestBuilder_ != null) { return duplicateRequestBuilder_.getMessageOrBuilder(); } else { return duplicateRequest_ == null ? org.tikv.kvproto.Cdcpb.DuplicateRequest.getDefaultInstance() : duplicateRequest_; } } /** * .cdcpb.DuplicateRequest duplicate_request = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.DuplicateRequest, org.tikv.kvproto.Cdcpb.DuplicateRequest.Builder, org.tikv.kvproto.Cdcpb.DuplicateRequestOrBuilder> getDuplicateRequestFieldBuilder() { if (duplicateRequestBuilder_ == null) { duplicateRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.DuplicateRequest, org.tikv.kvproto.Cdcpb.DuplicateRequest.Builder, org.tikv.kvproto.Cdcpb.DuplicateRequestOrBuilder>( getDuplicateRequest(), getParentForChildren(), isClean()); duplicateRequest_ = null; } return duplicateRequestBuilder_; } private org.tikv.kvproto.Cdcpb.Compatibility compatibility_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Compatibility, org.tikv.kvproto.Cdcpb.Compatibility.Builder, org.tikv.kvproto.Cdcpb.CompatibilityOrBuilder> compatibilityBuilder_; /** * .cdcpb.Compatibility compatibility = 5; */ public boolean hasCompatibility() { return compatibilityBuilder_ != null || compatibility_ != null; } /** * .cdcpb.Compatibility compatibility = 5; */ public org.tikv.kvproto.Cdcpb.Compatibility getCompatibility() { if (compatibilityBuilder_ == null) { return compatibility_ == null ? org.tikv.kvproto.Cdcpb.Compatibility.getDefaultInstance() : compatibility_; } else { return compatibilityBuilder_.getMessage(); } } /** * .cdcpb.Compatibility compatibility = 5; */ public Builder setCompatibility(org.tikv.kvproto.Cdcpb.Compatibility value) { if (compatibilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } compatibility_ = value; onChanged(); } else { compatibilityBuilder_.setMessage(value); } return this; } /** * .cdcpb.Compatibility compatibility = 5; */ public Builder setCompatibility( org.tikv.kvproto.Cdcpb.Compatibility.Builder builderForValue) { if (compatibilityBuilder_ == null) { compatibility_ = builderForValue.build(); onChanged(); } else { compatibilityBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cdcpb.Compatibility compatibility = 5; */ public Builder mergeCompatibility(org.tikv.kvproto.Cdcpb.Compatibility value) { if (compatibilityBuilder_ == null) { if (compatibility_ != null) { compatibility_ = org.tikv.kvproto.Cdcpb.Compatibility.newBuilder(compatibility_).mergeFrom(value).buildPartial(); } else { compatibility_ = value; } onChanged(); } else { compatibilityBuilder_.mergeFrom(value); } return this; } /** * .cdcpb.Compatibility compatibility = 5; */ public Builder clearCompatibility() { if (compatibilityBuilder_ == null) { compatibility_ = null; onChanged(); } else { compatibility_ = null; compatibilityBuilder_ = null; } return this; } /** * .cdcpb.Compatibility compatibility = 5; */ public org.tikv.kvproto.Cdcpb.Compatibility.Builder getCompatibilityBuilder() { onChanged(); return getCompatibilityFieldBuilder().getBuilder(); } /** * .cdcpb.Compatibility compatibility = 5; */ public org.tikv.kvproto.Cdcpb.CompatibilityOrBuilder getCompatibilityOrBuilder() { if (compatibilityBuilder_ != null) { return compatibilityBuilder_.getMessageOrBuilder(); } else { return compatibility_ == null ? org.tikv.kvproto.Cdcpb.Compatibility.getDefaultInstance() : compatibility_; } } /** * .cdcpb.Compatibility compatibility = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Compatibility, org.tikv.kvproto.Cdcpb.Compatibility.Builder, org.tikv.kvproto.Cdcpb.CompatibilityOrBuilder> getCompatibilityFieldBuilder() { if (compatibilityBuilder_ == null) { compatibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Compatibility, org.tikv.kvproto.Cdcpb.Compatibility.Builder, org.tikv.kvproto.Cdcpb.CompatibilityOrBuilder>( getCompatibility(), getParentForChildren(), isClean()); compatibility_ = null; } return compatibilityBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.Error) } // @@protoc_insertion_point(class_scope:cdcpb.Error) private static final org.tikv.kvproto.Cdcpb.Error DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.Error(); } public static org.tikv.kvproto.Cdcpb.Error getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Error parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Error(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TxnInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.TxnInfo) com.google.protobuf.MessageOrBuilder { /** * uint64 start_ts = 1; */ long getStartTs(); /** * bytes primary = 2; */ com.google.protobuf.ByteString getPrimary(); } /** * Protobuf type {@code cdcpb.TxnInfo} */ public static final class TxnInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.TxnInfo) TxnInfoOrBuilder { private static final long serialVersionUID = 0L; // Use TxnInfo.newBuilder() to construct. private TxnInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TxnInfo() { startTs_ = 0L; primary_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TxnInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { startTs_ = input.readUInt64(); break; } case 18: { primary_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_TxnInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_TxnInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.TxnInfo.class, org.tikv.kvproto.Cdcpb.TxnInfo.Builder.class); } public static final int START_TS_FIELD_NUMBER = 1; private long startTs_; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } public static final int PRIMARY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString primary_; /** * bytes primary = 2; */ public com.google.protobuf.ByteString getPrimary() { return primary_; } 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 { if (startTs_ != 0L) { output.writeUInt64(1, startTs_); } if (!primary_.isEmpty()) { output.writeBytes(2, primary_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startTs_); } if (!primary_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, primary_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.TxnInfo)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.TxnInfo other = (org.tikv.kvproto.Cdcpb.TxnInfo) obj; boolean result = true; result = result && (getStartTs() == other.getStartTs()); result = result && getPrimary() .equals(other.getPrimary()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); hash = (37 * hash) + PRIMARY_FIELD_NUMBER; hash = (53 * hash) + getPrimary().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.TxnInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.TxnInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.TxnInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.TxnInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.TxnInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.TxnInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.TxnInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.TxnInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.TxnInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.TxnInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.TxnInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.TxnInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.TxnInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.TxnInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.TxnInfo) org.tikv.kvproto.Cdcpb.TxnInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_TxnInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_TxnInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.TxnInfo.class, org.tikv.kvproto.Cdcpb.TxnInfo.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.TxnInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); startTs_ = 0L; primary_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_TxnInfo_descriptor; } public org.tikv.kvproto.Cdcpb.TxnInfo getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.TxnInfo.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.TxnInfo build() { org.tikv.kvproto.Cdcpb.TxnInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.TxnInfo buildPartial() { org.tikv.kvproto.Cdcpb.TxnInfo result = new org.tikv.kvproto.Cdcpb.TxnInfo(this); result.startTs_ = startTs_; result.primary_ = primary_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.TxnInfo) { return mergeFrom((org.tikv.kvproto.Cdcpb.TxnInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.TxnInfo other) { if (other == org.tikv.kvproto.Cdcpb.TxnInfo.getDefaultInstance()) return this; if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (other.getPrimary() != com.google.protobuf.ByteString.EMPTY) { setPrimary(other.getPrimary()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.TxnInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.TxnInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startTs_ ; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } /** * uint64 start_ts = 1; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** * uint64 start_ts = 1; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString primary_ = com.google.protobuf.ByteString.EMPTY; /** * bytes primary = 2; */ public com.google.protobuf.ByteString getPrimary() { return primary_; } /** * bytes primary = 2; */ public Builder setPrimary(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } primary_ = value; onChanged(); return this; } /** * bytes primary = 2; */ public Builder clearPrimary() { primary_ = getDefaultInstance().getPrimary(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.TxnInfo) } // @@protoc_insertion_point(class_scope:cdcpb.TxnInfo) private static final org.tikv.kvproto.Cdcpb.TxnInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.TxnInfo(); } public static org.tikv.kvproto.Cdcpb.TxnInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TxnInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TxnInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.TxnInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TxnStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.TxnStatus) com.google.protobuf.MessageOrBuilder { /** * uint64 start_ts = 1; */ long getStartTs(); /** * uint64 min_commit_ts = 2; */ long getMinCommitTs(); /** * uint64 commit_ts = 3; */ long getCommitTs(); /** * bool is_rolled_back = 4; */ boolean getIsRolledBack(); } /** * Protobuf type {@code cdcpb.TxnStatus} */ public static final class TxnStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.TxnStatus) TxnStatusOrBuilder { private static final long serialVersionUID = 0L; // Use TxnStatus.newBuilder() to construct. private TxnStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TxnStatus() { startTs_ = 0L; minCommitTs_ = 0L; commitTs_ = 0L; isRolledBack_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TxnStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { startTs_ = input.readUInt64(); break; } case 16: { minCommitTs_ = input.readUInt64(); break; } case 24: { commitTs_ = input.readUInt64(); break; } case 32: { isRolledBack_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_TxnStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_TxnStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.TxnStatus.class, org.tikv.kvproto.Cdcpb.TxnStatus.Builder.class); } public static final int START_TS_FIELD_NUMBER = 1; private long startTs_; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } public static final int MIN_COMMIT_TS_FIELD_NUMBER = 2; private long minCommitTs_; /** * uint64 min_commit_ts = 2; */ public long getMinCommitTs() { return minCommitTs_; } public static final int COMMIT_TS_FIELD_NUMBER = 3; private long commitTs_; /** * uint64 commit_ts = 3; */ public long getCommitTs() { return commitTs_; } public static final int IS_ROLLED_BACK_FIELD_NUMBER = 4; private boolean isRolledBack_; /** * bool is_rolled_back = 4; */ public boolean getIsRolledBack() { return isRolledBack_; } 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 { if (startTs_ != 0L) { output.writeUInt64(1, startTs_); } if (minCommitTs_ != 0L) { output.writeUInt64(2, minCommitTs_); } if (commitTs_ != 0L) { output.writeUInt64(3, commitTs_); } if (isRolledBack_ != false) { output.writeBool(4, isRolledBack_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startTs_); } if (minCommitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, minCommitTs_); } if (commitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, commitTs_); } if (isRolledBack_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, isRolledBack_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.TxnStatus)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.TxnStatus other = (org.tikv.kvproto.Cdcpb.TxnStatus) obj; boolean result = true; result = result && (getStartTs() == other.getStartTs()); result = result && (getMinCommitTs() == other.getMinCommitTs()); result = result && (getCommitTs() == other.getCommitTs()); result = result && (getIsRolledBack() == other.getIsRolledBack()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); hash = (37 * hash) + MIN_COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinCommitTs()); hash = (37 * hash) + COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitTs()); hash = (37 * hash) + IS_ROLLED_BACK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsRolledBack()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.TxnStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.TxnStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.TxnStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.TxnStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.TxnStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.TxnStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.TxnStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.TxnStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.TxnStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.TxnStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.TxnStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.TxnStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.TxnStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.TxnStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.TxnStatus) org.tikv.kvproto.Cdcpb.TxnStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_TxnStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_TxnStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.TxnStatus.class, org.tikv.kvproto.Cdcpb.TxnStatus.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.TxnStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); startTs_ = 0L; minCommitTs_ = 0L; commitTs_ = 0L; isRolledBack_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_TxnStatus_descriptor; } public org.tikv.kvproto.Cdcpb.TxnStatus getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.TxnStatus.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.TxnStatus build() { org.tikv.kvproto.Cdcpb.TxnStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.TxnStatus buildPartial() { org.tikv.kvproto.Cdcpb.TxnStatus result = new org.tikv.kvproto.Cdcpb.TxnStatus(this); result.startTs_ = startTs_; result.minCommitTs_ = minCommitTs_; result.commitTs_ = commitTs_; result.isRolledBack_ = isRolledBack_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.TxnStatus) { return mergeFrom((org.tikv.kvproto.Cdcpb.TxnStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.TxnStatus other) { if (other == org.tikv.kvproto.Cdcpb.TxnStatus.getDefaultInstance()) return this; if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (other.getMinCommitTs() != 0L) { setMinCommitTs(other.getMinCommitTs()); } if (other.getCommitTs() != 0L) { setCommitTs(other.getCommitTs()); } if (other.getIsRolledBack() != false) { setIsRolledBack(other.getIsRolledBack()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.TxnStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.TxnStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startTs_ ; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } /** * uint64 start_ts = 1; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** * uint64 start_ts = 1; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private long minCommitTs_ ; /** * uint64 min_commit_ts = 2; */ public long getMinCommitTs() { return minCommitTs_; } /** * uint64 min_commit_ts = 2; */ public Builder setMinCommitTs(long value) { minCommitTs_ = value; onChanged(); return this; } /** * uint64 min_commit_ts = 2; */ public Builder clearMinCommitTs() { minCommitTs_ = 0L; onChanged(); return this; } private long commitTs_ ; /** * uint64 commit_ts = 3; */ public long getCommitTs() { return commitTs_; } /** * uint64 commit_ts = 3; */ public Builder setCommitTs(long value) { commitTs_ = value; onChanged(); return this; } /** * uint64 commit_ts = 3; */ public Builder clearCommitTs() { commitTs_ = 0L; onChanged(); return this; } private boolean isRolledBack_ ; /** * bool is_rolled_back = 4; */ public boolean getIsRolledBack() { return isRolledBack_; } /** * bool is_rolled_back = 4; */ public Builder setIsRolledBack(boolean value) { isRolledBack_ = value; onChanged(); return this; } /** * bool is_rolled_back = 4; */ public Builder clearIsRolledBack() { isRolledBack_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.TxnStatus) } // @@protoc_insertion_point(class_scope:cdcpb.TxnStatus) private static final org.tikv.kvproto.Cdcpb.TxnStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.TxnStatus(); } public static org.tikv.kvproto.Cdcpb.TxnStatus getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TxnStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TxnStatus(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.TxnStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EventOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.Event) com.google.protobuf.MessageOrBuilder { /** * uint64 region_id = 1; */ long getRegionId(); /** * uint64 index = 2; */ long getIndex(); /** * uint64 request_id = 7; */ long getRequestId(); /** * .cdcpb.Event.Entries entries = 3; */ boolean hasEntries(); /** * .cdcpb.Event.Entries entries = 3; */ org.tikv.kvproto.Cdcpb.Event.Entries getEntries(); /** * .cdcpb.Event.Entries entries = 3; */ org.tikv.kvproto.Cdcpb.Event.EntriesOrBuilder getEntriesOrBuilder(); /** * .cdcpb.Event.Admin admin = 4; */ boolean hasAdmin(); /** * .cdcpb.Event.Admin admin = 4; */ org.tikv.kvproto.Cdcpb.Event.Admin getAdmin(); /** * .cdcpb.Event.Admin admin = 4; */ org.tikv.kvproto.Cdcpb.Event.AdminOrBuilder getAdminOrBuilder(); /** * .cdcpb.Error error = 5; */ boolean hasError(); /** * .cdcpb.Error error = 5; */ org.tikv.kvproto.Cdcpb.Error getError(); /** * .cdcpb.Error error = 5; */ org.tikv.kvproto.Cdcpb.ErrorOrBuilder getErrorOrBuilder(); /** * uint64 resolved_ts = 6 [deprecated = true]; */ @java.lang.Deprecated long getResolvedTs(); /** *
     * Note that field 7 is taken by request_id.
     * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ boolean hasLongTxn(); /** *
     * Note that field 7 is taken by request_id.
     * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ org.tikv.kvproto.Cdcpb.Event.LongTxn getLongTxn(); /** *
     * Note that field 7 is taken by request_id.
     * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ org.tikv.kvproto.Cdcpb.Event.LongTxnOrBuilder getLongTxnOrBuilder(); public org.tikv.kvproto.Cdcpb.Event.EventCase getEventCase(); } /** * Protobuf type {@code cdcpb.Event} */ public static final class Event extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.Event) EventOrBuilder { private static final long serialVersionUID = 0L; // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Event() { regionId_ = 0L; index_ = 0L; requestId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Event( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { regionId_ = input.readUInt64(); break; } case 16: { index_ = input.readUInt64(); break; } case 26: { org.tikv.kvproto.Cdcpb.Event.Entries.Builder subBuilder = null; if (eventCase_ == 3) { subBuilder = ((org.tikv.kvproto.Cdcpb.Event.Entries) event_).toBuilder(); } event_ = input.readMessage(org.tikv.kvproto.Cdcpb.Event.Entries.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Cdcpb.Event.Entries) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 3; break; } case 34: { org.tikv.kvproto.Cdcpb.Event.Admin.Builder subBuilder = null; if (eventCase_ == 4) { subBuilder = ((org.tikv.kvproto.Cdcpb.Event.Admin) event_).toBuilder(); } event_ = input.readMessage(org.tikv.kvproto.Cdcpb.Event.Admin.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Cdcpb.Event.Admin) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 4; break; } case 42: { org.tikv.kvproto.Cdcpb.Error.Builder subBuilder = null; if (eventCase_ == 5) { subBuilder = ((org.tikv.kvproto.Cdcpb.Error) event_).toBuilder(); } event_ = input.readMessage(org.tikv.kvproto.Cdcpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Cdcpb.Error) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 5; break; } case 48: { eventCase_ = 6; event_ = input.readUInt64(); break; } case 56: { requestId_ = input.readUInt64(); break; } case 66: { org.tikv.kvproto.Cdcpb.Event.LongTxn.Builder subBuilder = null; if (eventCase_ == 8) { subBuilder = ((org.tikv.kvproto.Cdcpb.Event.LongTxn) event_).toBuilder(); } event_ = input.readMessage(org.tikv.kvproto.Cdcpb.Event.LongTxn.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Cdcpb.Event.LongTxn) event_); event_ = subBuilder.buildPartial(); } eventCase_ = 8; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Event.class, org.tikv.kvproto.Cdcpb.Event.Builder.class); } /** * Protobuf enum {@code cdcpb.Event.LogType} */ public enum LogType implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * PREWRITE = 1; */ PREWRITE(1), /** * COMMIT = 2; */ COMMIT(2), /** * ROLLBACK = 3; */ ROLLBACK(3), /** * COMMITTED = 4; */ COMMITTED(4), /** * INITIALIZED = 5; */ INITIALIZED(5), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * PREWRITE = 1; */ public static final int PREWRITE_VALUE = 1; /** * COMMIT = 2; */ public static final int COMMIT_VALUE = 2; /** * ROLLBACK = 3; */ public static final int ROLLBACK_VALUE = 3; /** * COMMITTED = 4; */ public static final int COMMITTED_VALUE = 4; /** * INITIALIZED = 5; */ public static final int INITIALIZED_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static LogType valueOf(int value) { return forNumber(value); } public static LogType forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return PREWRITE; case 2: return COMMIT; case 3: return ROLLBACK; case 4: return COMMITTED; case 5: return INITIALIZED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< LogType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public LogType findValueByNumber(int number) { return LogType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.Event.getDescriptor().getEnumTypes().get(0); } private static final LogType[] VALUES = values(); public static LogType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private LogType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:cdcpb.Event.LogType) } public interface RowOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.Event.Row) com.google.protobuf.MessageOrBuilder { /** * uint64 start_ts = 1; */ long getStartTs(); /** * uint64 commit_ts = 2; */ long getCommitTs(); /** * .cdcpb.Event.LogType type = 3; */ int getTypeValue(); /** * .cdcpb.Event.LogType type = 3; */ org.tikv.kvproto.Cdcpb.Event.LogType getType(); /** * .cdcpb.Event.Row.OpType op_type = 4; */ int getOpTypeValue(); /** * .cdcpb.Event.Row.OpType op_type = 4; */ org.tikv.kvproto.Cdcpb.Event.Row.OpType getOpType(); /** * bytes key = 5; */ com.google.protobuf.ByteString getKey(); /** * bytes value = 6; */ com.google.protobuf.ByteString getValue(); /** * bytes old_value = 7; */ com.google.protobuf.ByteString getOldValue(); } /** * Protobuf type {@code cdcpb.Event.Row} */ public static final class Row extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.Event.Row) RowOrBuilder { private static final long serialVersionUID = 0L; // Use Row.newBuilder() to construct. private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Row() { startTs_ = 0L; commitTs_ = 0L; type_ = 0; opType_ = 0; key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; oldValue_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Row( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { startTs_ = input.readUInt64(); break; } case 16: { commitTs_ = input.readUInt64(); break; } case 24: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 32: { int rawValue = input.readEnum(); opType_ = rawValue; break; } case 42: { key_ = input.readBytes(); break; } case 50: { value_ = input.readBytes(); break; } case 58: { oldValue_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Row_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Event.Row.class, org.tikv.kvproto.Cdcpb.Event.Row.Builder.class); } /** * Protobuf enum {@code cdcpb.Event.Row.OpType} */ public enum OpType implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN = 0; */ UNKNOWN(0), /** * PUT = 1; */ PUT(1), /** * DELETE = 2; */ DELETE(2), UNRECOGNIZED(-1), ; /** * UNKNOWN = 0; */ public static final int UNKNOWN_VALUE = 0; /** * PUT = 1; */ public static final int PUT_VALUE = 1; /** * DELETE = 2; */ public static final int DELETE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static OpType valueOf(int value) { return forNumber(value); } public static OpType forNumber(int value) { switch (value) { case 0: return UNKNOWN; case 1: return PUT; case 2: return DELETE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< OpType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public OpType findValueByNumber(int number) { return OpType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.Event.Row.getDescriptor().getEnumTypes().get(0); } private static final OpType[] VALUES = values(); public static OpType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private OpType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:cdcpb.Event.Row.OpType) } public static final int START_TS_FIELD_NUMBER = 1; private long startTs_; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } public static final int COMMIT_TS_FIELD_NUMBER = 2; private long commitTs_; /** * uint64 commit_ts = 2; */ public long getCommitTs() { return commitTs_; } public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** * .cdcpb.Event.LogType type = 3; */ public int getTypeValue() { return type_; } /** * .cdcpb.Event.LogType type = 3; */ public org.tikv.kvproto.Cdcpb.Event.LogType getType() { org.tikv.kvproto.Cdcpb.Event.LogType result = org.tikv.kvproto.Cdcpb.Event.LogType.valueOf(type_); return result == null ? org.tikv.kvproto.Cdcpb.Event.LogType.UNRECOGNIZED : result; } public static final int OP_TYPE_FIELD_NUMBER = 4; private int opType_; /** * .cdcpb.Event.Row.OpType op_type = 4; */ public int getOpTypeValue() { return opType_; } /** * .cdcpb.Event.Row.OpType op_type = 4; */ public org.tikv.kvproto.Cdcpb.Event.Row.OpType getOpType() { org.tikv.kvproto.Cdcpb.Event.Row.OpType result = org.tikv.kvproto.Cdcpb.Event.Row.OpType.valueOf(opType_); return result == null ? org.tikv.kvproto.Cdcpb.Event.Row.OpType.UNRECOGNIZED : result; } public static final int KEY_FIELD_NUMBER = 5; private com.google.protobuf.ByteString key_; /** * bytes key = 5; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 6; private com.google.protobuf.ByteString value_; /** * bytes value = 6; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int OLD_VALUE_FIELD_NUMBER = 7; private com.google.protobuf.ByteString oldValue_; /** * bytes old_value = 7; */ public com.google.protobuf.ByteString getOldValue() { return oldValue_; } 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 { if (startTs_ != 0L) { output.writeUInt64(1, startTs_); } if (commitTs_ != 0L) { output.writeUInt64(2, commitTs_); } if (type_ != org.tikv.kvproto.Cdcpb.Event.LogType.UNKNOWN.getNumber()) { output.writeEnum(3, type_); } if (opType_ != org.tikv.kvproto.Cdcpb.Event.Row.OpType.UNKNOWN.getNumber()) { output.writeEnum(4, opType_); } if (!key_.isEmpty()) { output.writeBytes(5, key_); } if (!value_.isEmpty()) { output.writeBytes(6, value_); } if (!oldValue_.isEmpty()) { output.writeBytes(7, oldValue_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startTs_); } if (commitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, commitTs_); } if (type_ != org.tikv.kvproto.Cdcpb.Event.LogType.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } if (opType_ != org.tikv.kvproto.Cdcpb.Event.Row.OpType.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, opType_); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, value_); } if (!oldValue_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, oldValue_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.Event.Row)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.Event.Row other = (org.tikv.kvproto.Cdcpb.Event.Row) obj; boolean result = true; result = result && (getStartTs() == other.getStartTs()); result = result && (getCommitTs() == other.getCommitTs()); result = result && type_ == other.type_; result = result && opType_ == other.opType_; result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); result = result && getOldValue() .equals(other.getOldValue()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); hash = (37 * hash) + COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitTs()); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + OP_TYPE_FIELD_NUMBER; hash = (53 * hash) + opType_; hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + OLD_VALUE_FIELD_NUMBER; hash = (53 * hash) + getOldValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.Event.Row parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.Row parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Row parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.Row parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Row parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.Row parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Row parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.Row parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Row parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.Row parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Row parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.Row parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.Event.Row prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.Event.Row} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.Event.Row) org.tikv.kvproto.Cdcpb.Event.RowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Row_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Row_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Event.Row.class, org.tikv.kvproto.Cdcpb.Event.Row.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.Event.Row.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); startTs_ = 0L; commitTs_ = 0L; type_ = 0; opType_ = 0; key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; oldValue_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Row_descriptor; } public org.tikv.kvproto.Cdcpb.Event.Row getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.Event.Row.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.Event.Row build() { org.tikv.kvproto.Cdcpb.Event.Row result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.Event.Row buildPartial() { org.tikv.kvproto.Cdcpb.Event.Row result = new org.tikv.kvproto.Cdcpb.Event.Row(this); result.startTs_ = startTs_; result.commitTs_ = commitTs_; result.type_ = type_; result.opType_ = opType_; result.key_ = key_; result.value_ = value_; result.oldValue_ = oldValue_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.Event.Row) { return mergeFrom((org.tikv.kvproto.Cdcpb.Event.Row)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.Event.Row other) { if (other == org.tikv.kvproto.Cdcpb.Event.Row.getDefaultInstance()) return this; if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (other.getCommitTs() != 0L) { setCommitTs(other.getCommitTs()); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.opType_ != 0) { setOpTypeValue(other.getOpTypeValue()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.getOldValue() != com.google.protobuf.ByteString.EMPTY) { setOldValue(other.getOldValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.Event.Row parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.Event.Row) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startTs_ ; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } /** * uint64 start_ts = 1; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** * uint64 start_ts = 1; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private long commitTs_ ; /** * uint64 commit_ts = 2; */ public long getCommitTs() { return commitTs_; } /** * uint64 commit_ts = 2; */ public Builder setCommitTs(long value) { commitTs_ = value; onChanged(); return this; } /** * uint64 commit_ts = 2; */ public Builder clearCommitTs() { commitTs_ = 0L; onChanged(); return this; } private int type_ = 0; /** * .cdcpb.Event.LogType type = 3; */ public int getTypeValue() { return type_; } /** * .cdcpb.Event.LogType type = 3; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .cdcpb.Event.LogType type = 3; */ public org.tikv.kvproto.Cdcpb.Event.LogType getType() { org.tikv.kvproto.Cdcpb.Event.LogType result = org.tikv.kvproto.Cdcpb.Event.LogType.valueOf(type_); return result == null ? org.tikv.kvproto.Cdcpb.Event.LogType.UNRECOGNIZED : result; } /** * .cdcpb.Event.LogType type = 3; */ public Builder setType(org.tikv.kvproto.Cdcpb.Event.LogType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .cdcpb.Event.LogType type = 3; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private int opType_ = 0; /** * .cdcpb.Event.Row.OpType op_type = 4; */ public int getOpTypeValue() { return opType_; } /** * .cdcpb.Event.Row.OpType op_type = 4; */ public Builder setOpTypeValue(int value) { opType_ = value; onChanged(); return this; } /** * .cdcpb.Event.Row.OpType op_type = 4; */ public org.tikv.kvproto.Cdcpb.Event.Row.OpType getOpType() { org.tikv.kvproto.Cdcpb.Event.Row.OpType result = org.tikv.kvproto.Cdcpb.Event.Row.OpType.valueOf(opType_); return result == null ? org.tikv.kvproto.Cdcpb.Event.Row.OpType.UNRECOGNIZED : result; } /** * .cdcpb.Event.Row.OpType op_type = 4; */ public Builder setOpType(org.tikv.kvproto.Cdcpb.Event.Row.OpType value) { if (value == null) { throw new NullPointerException(); } opType_ = value.getNumber(); onChanged(); return this; } /** * .cdcpb.Event.Row.OpType op_type = 4; */ public Builder clearOpType() { opType_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 5; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 5; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 5; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 6; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 6; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 6; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private com.google.protobuf.ByteString oldValue_ = com.google.protobuf.ByteString.EMPTY; /** * bytes old_value = 7; */ public com.google.protobuf.ByteString getOldValue() { return oldValue_; } /** * bytes old_value = 7; */ public Builder setOldValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } oldValue_ = value; onChanged(); return this; } /** * bytes old_value = 7; */ public Builder clearOldValue() { oldValue_ = getDefaultInstance().getOldValue(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.Event.Row) } // @@protoc_insertion_point(class_scope:cdcpb.Event.Row) private static final org.tikv.kvproto.Cdcpb.Event.Row DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.Event.Row(); } public static org.tikv.kvproto.Cdcpb.Event.Row getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Row parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Row(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.Event.Row getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EntriesOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.Event.Entries) com.google.protobuf.MessageOrBuilder { /** * repeated .cdcpb.Event.Row entries = 1; */ java.util.List getEntriesList(); /** * repeated .cdcpb.Event.Row entries = 1; */ org.tikv.kvproto.Cdcpb.Event.Row getEntries(int index); /** * repeated .cdcpb.Event.Row entries = 1; */ int getEntriesCount(); /** * repeated .cdcpb.Event.Row entries = 1; */ java.util.List getEntriesOrBuilderList(); /** * repeated .cdcpb.Event.Row entries = 1; */ org.tikv.kvproto.Cdcpb.Event.RowOrBuilder getEntriesOrBuilder( int index); } /** * Protobuf type {@code cdcpb.Event.Entries} */ public static final class Entries extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.Event.Entries) EntriesOrBuilder { private static final long serialVersionUID = 0L; // Use Entries.newBuilder() to construct. private Entries(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Entries() { entries_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Entries( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { entries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entries_.add( input.readMessage(org.tikv.kvproto.Cdcpb.Event.Row.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).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { entries_ = java.util.Collections.unmodifiableList(entries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Entries_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Entries_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Event.Entries.class, org.tikv.kvproto.Cdcpb.Event.Entries.Builder.class); } public static final int ENTRIES_FIELD_NUMBER = 1; private java.util.List entries_; /** * repeated .cdcpb.Event.Row entries = 1; */ public java.util.List getEntriesList() { return entries_; } /** * repeated .cdcpb.Event.Row entries = 1; */ public java.util.List getEntriesOrBuilderList() { return entries_; } /** * repeated .cdcpb.Event.Row entries = 1; */ public int getEntriesCount() { return entries_.size(); } /** * repeated .cdcpb.Event.Row entries = 1; */ public org.tikv.kvproto.Cdcpb.Event.Row getEntries(int index) { return entries_.get(index); } /** * repeated .cdcpb.Event.Row entries = 1; */ public org.tikv.kvproto.Cdcpb.Event.RowOrBuilder getEntriesOrBuilder( int index) { return entries_.get(index); } 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 { for (int i = 0; i < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.Event.Entries)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.Event.Entries other = (org.tikv.kvproto.Cdcpb.Event.Entries) obj; boolean result = true; result = result && getEntriesList() .equals(other.getEntriesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.Event.Entries parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.Entries parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Entries parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.Entries parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Entries parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.Entries parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Entries parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.Entries parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Entries parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.Entries parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Entries parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.Entries parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.Event.Entries prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.Event.Entries} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.Event.Entries) org.tikv.kvproto.Cdcpb.Event.EntriesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Entries_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Entries_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Event.Entries.class, org.tikv.kvproto.Cdcpb.Event.Entries.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.Event.Entries.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } public Builder clear() { super.clear(); if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entriesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Entries_descriptor; } public org.tikv.kvproto.Cdcpb.Event.Entries getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.Event.Entries.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.Event.Entries build() { org.tikv.kvproto.Cdcpb.Event.Entries result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.Event.Entries buildPartial() { org.tikv.kvproto.Cdcpb.Event.Entries result = new org.tikv.kvproto.Cdcpb.Event.Entries(this); int from_bitField0_ = bitField0_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.Event.Entries) { return mergeFrom((org.tikv.kvproto.Cdcpb.Event.Entries)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.Event.Entries other) { if (other == org.tikv.kvproto.Cdcpb.Event.Entries.getDefaultInstance()) return this; if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.Event.Entries parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.Event.Entries) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.Row, org.tikv.kvproto.Cdcpb.Event.Row.Builder, org.tikv.kvproto.Cdcpb.Event.RowOrBuilder> entriesBuilder_; /** * repeated .cdcpb.Event.Row entries = 1; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** * repeated .cdcpb.Event.Row entries = 1; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** * repeated .cdcpb.Event.Row entries = 1; */ public org.tikv.kvproto.Cdcpb.Event.Row getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** * repeated .cdcpb.Event.Row entries = 1; */ public Builder setEntries( int index, org.tikv.kvproto.Cdcpb.Event.Row value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** * repeated .cdcpb.Event.Row entries = 1; */ public Builder setEntries( int index, org.tikv.kvproto.Cdcpb.Event.Row.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .cdcpb.Event.Row entries = 1; */ public Builder addEntries(org.tikv.kvproto.Cdcpb.Event.Row value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** * repeated .cdcpb.Event.Row entries = 1; */ public Builder addEntries( int index, org.tikv.kvproto.Cdcpb.Event.Row value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** * repeated .cdcpb.Event.Row entries = 1; */ public Builder addEntries( org.tikv.kvproto.Cdcpb.Event.Row.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .cdcpb.Event.Row entries = 1; */ public Builder addEntries( int index, org.tikv.kvproto.Cdcpb.Event.Row.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .cdcpb.Event.Row entries = 1; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** * repeated .cdcpb.Event.Row entries = 1; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** * repeated .cdcpb.Event.Row entries = 1; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** * repeated .cdcpb.Event.Row entries = 1; */ public org.tikv.kvproto.Cdcpb.Event.Row.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** * repeated .cdcpb.Event.Row entries = 1; */ public org.tikv.kvproto.Cdcpb.Event.RowOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .cdcpb.Event.Row entries = 1; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** * repeated .cdcpb.Event.Row entries = 1; */ public org.tikv.kvproto.Cdcpb.Event.Row.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( org.tikv.kvproto.Cdcpb.Event.Row.getDefaultInstance()); } /** * repeated .cdcpb.Event.Row entries = 1; */ public org.tikv.kvproto.Cdcpb.Event.Row.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, org.tikv.kvproto.Cdcpb.Event.Row.getDefaultInstance()); } /** * repeated .cdcpb.Event.Row entries = 1; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.Row, org.tikv.kvproto.Cdcpb.Event.Row.Builder, org.tikv.kvproto.Cdcpb.Event.RowOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.Row, org.tikv.kvproto.Cdcpb.Event.Row.Builder, org.tikv.kvproto.Cdcpb.Event.RowOrBuilder>( entries_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.Event.Entries) } // @@protoc_insertion_point(class_scope:cdcpb.Event.Entries) private static final org.tikv.kvproto.Cdcpb.Event.Entries DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.Event.Entries(); } public static org.tikv.kvproto.Cdcpb.Event.Entries getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Entries parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Entries(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.Event.Entries getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AdminOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.Event.Admin) com.google.protobuf.MessageOrBuilder { /** * .raft_cmdpb.AdminRequest admin_request = 1; */ boolean hasAdminRequest(); /** * .raft_cmdpb.AdminRequest admin_request = 1; */ org.tikv.kvproto.RaftCmdpb.AdminRequest getAdminRequest(); /** * .raft_cmdpb.AdminRequest admin_request = 1; */ org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder getAdminRequestOrBuilder(); /** * .raft_cmdpb.AdminResponse admin_response = 2; */ boolean hasAdminResponse(); /** * .raft_cmdpb.AdminResponse admin_response = 2; */ org.tikv.kvproto.RaftCmdpb.AdminResponse getAdminResponse(); /** * .raft_cmdpb.AdminResponse admin_response = 2; */ org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder getAdminResponseOrBuilder(); } /** * Protobuf type {@code cdcpb.Event.Admin} */ public static final class Admin extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.Event.Admin) AdminOrBuilder { private static final long serialVersionUID = 0L; // Use Admin.newBuilder() to construct. private Admin(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Admin() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Admin( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder subBuilder = null; if (adminRequest_ != null) { subBuilder = adminRequest_.toBuilder(); } adminRequest_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.AdminRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(adminRequest_); adminRequest_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder subBuilder = null; if (adminResponse_ != null) { subBuilder = adminResponse_.toBuilder(); } adminResponse_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.AdminResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(adminResponse_); adminResponse_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Admin_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Admin_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Event.Admin.class, org.tikv.kvproto.Cdcpb.Event.Admin.Builder.class); } public static final int ADMIN_REQUEST_FIELD_NUMBER = 1; private org.tikv.kvproto.RaftCmdpb.AdminRequest adminRequest_; /** * .raft_cmdpb.AdminRequest admin_request = 1; */ public boolean hasAdminRequest() { return adminRequest_ != null; } /** * .raft_cmdpb.AdminRequest admin_request = 1; */ public org.tikv.kvproto.RaftCmdpb.AdminRequest getAdminRequest() { return adminRequest_ == null ? org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance() : adminRequest_; } /** * .raft_cmdpb.AdminRequest admin_request = 1; */ public org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder getAdminRequestOrBuilder() { return getAdminRequest(); } public static final int ADMIN_RESPONSE_FIELD_NUMBER = 2; private org.tikv.kvproto.RaftCmdpb.AdminResponse adminResponse_; /** * .raft_cmdpb.AdminResponse admin_response = 2; */ public boolean hasAdminResponse() { return adminResponse_ != null; } /** * .raft_cmdpb.AdminResponse admin_response = 2; */ public org.tikv.kvproto.RaftCmdpb.AdminResponse getAdminResponse() { return adminResponse_ == null ? org.tikv.kvproto.RaftCmdpb.AdminResponse.getDefaultInstance() : adminResponse_; } /** * .raft_cmdpb.AdminResponse admin_response = 2; */ public org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder getAdminResponseOrBuilder() { return getAdminResponse(); } 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 { if (adminRequest_ != null) { output.writeMessage(1, getAdminRequest()); } if (adminResponse_ != null) { output.writeMessage(2, getAdminResponse()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (adminRequest_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getAdminRequest()); } if (adminResponse_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAdminResponse()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.Event.Admin)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.Event.Admin other = (org.tikv.kvproto.Cdcpb.Event.Admin) obj; boolean result = true; result = result && (hasAdminRequest() == other.hasAdminRequest()); if (hasAdminRequest()) { result = result && getAdminRequest() .equals(other.getAdminRequest()); } result = result && (hasAdminResponse() == other.hasAdminResponse()); if (hasAdminResponse()) { result = result && getAdminResponse() .equals(other.getAdminResponse()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAdminRequest()) { hash = (37 * hash) + ADMIN_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getAdminRequest().hashCode(); } if (hasAdminResponse()) { hash = (37 * hash) + ADMIN_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getAdminResponse().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.Event.Admin parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.Admin parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Admin parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.Admin parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Admin parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.Admin parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Admin parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.Admin parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Admin parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.Admin parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.Admin parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.Admin parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.Event.Admin prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.Event.Admin} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.Event.Admin) org.tikv.kvproto.Cdcpb.Event.AdminOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Admin_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Admin_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Event.Admin.class, org.tikv.kvproto.Cdcpb.Event.Admin.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.Event.Admin.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (adminRequestBuilder_ == null) { adminRequest_ = null; } else { adminRequest_ = null; adminRequestBuilder_ = null; } if (adminResponseBuilder_ == null) { adminResponse_ = null; } else { adminResponse_ = null; adminResponseBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_Admin_descriptor; } public org.tikv.kvproto.Cdcpb.Event.Admin getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.Event.Admin.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.Event.Admin build() { org.tikv.kvproto.Cdcpb.Event.Admin result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.Event.Admin buildPartial() { org.tikv.kvproto.Cdcpb.Event.Admin result = new org.tikv.kvproto.Cdcpb.Event.Admin(this); if (adminRequestBuilder_ == null) { result.adminRequest_ = adminRequest_; } else { result.adminRequest_ = adminRequestBuilder_.build(); } if (adminResponseBuilder_ == null) { result.adminResponse_ = adminResponse_; } else { result.adminResponse_ = adminResponseBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.Event.Admin) { return mergeFrom((org.tikv.kvproto.Cdcpb.Event.Admin)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.Event.Admin other) { if (other == org.tikv.kvproto.Cdcpb.Event.Admin.getDefaultInstance()) return this; if (other.hasAdminRequest()) { mergeAdminRequest(other.getAdminRequest()); } if (other.hasAdminResponse()) { mergeAdminResponse(other.getAdminResponse()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.Event.Admin parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.Event.Admin) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.RaftCmdpb.AdminRequest adminRequest_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminRequest, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder, org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder> adminRequestBuilder_; /** * .raft_cmdpb.AdminRequest admin_request = 1; */ public boolean hasAdminRequest() { return adminRequestBuilder_ != null || adminRequest_ != null; } /** * .raft_cmdpb.AdminRequest admin_request = 1; */ public org.tikv.kvproto.RaftCmdpb.AdminRequest getAdminRequest() { if (adminRequestBuilder_ == null) { return adminRequest_ == null ? org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance() : adminRequest_; } else { return adminRequestBuilder_.getMessage(); } } /** * .raft_cmdpb.AdminRequest admin_request = 1; */ public Builder setAdminRequest(org.tikv.kvproto.RaftCmdpb.AdminRequest value) { if (adminRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminRequest_ = value; onChanged(); } else { adminRequestBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.AdminRequest admin_request = 1; */ public Builder setAdminRequest( org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder builderForValue) { if (adminRequestBuilder_ == null) { adminRequest_ = builderForValue.build(); onChanged(); } else { adminRequestBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.AdminRequest admin_request = 1; */ public Builder mergeAdminRequest(org.tikv.kvproto.RaftCmdpb.AdminRequest value) { if (adminRequestBuilder_ == null) { if (adminRequest_ != null) { adminRequest_ = org.tikv.kvproto.RaftCmdpb.AdminRequest.newBuilder(adminRequest_).mergeFrom(value).buildPartial(); } else { adminRequest_ = value; } onChanged(); } else { adminRequestBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.AdminRequest admin_request = 1; */ public Builder clearAdminRequest() { if (adminRequestBuilder_ == null) { adminRequest_ = null; onChanged(); } else { adminRequest_ = null; adminRequestBuilder_ = null; } return this; } /** * .raft_cmdpb.AdminRequest admin_request = 1; */ public org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder getAdminRequestBuilder() { onChanged(); return getAdminRequestFieldBuilder().getBuilder(); } /** * .raft_cmdpb.AdminRequest admin_request = 1; */ public org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder getAdminRequestOrBuilder() { if (adminRequestBuilder_ != null) { return adminRequestBuilder_.getMessageOrBuilder(); } else { return adminRequest_ == null ? org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance() : adminRequest_; } } /** * .raft_cmdpb.AdminRequest admin_request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminRequest, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder, org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder> getAdminRequestFieldBuilder() { if (adminRequestBuilder_ == null) { adminRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminRequest, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder, org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder>( getAdminRequest(), getParentForChildren(), isClean()); adminRequest_ = null; } return adminRequestBuilder_; } private org.tikv.kvproto.RaftCmdpb.AdminResponse adminResponse_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminResponse, org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder, org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder> adminResponseBuilder_; /** * .raft_cmdpb.AdminResponse admin_response = 2; */ public boolean hasAdminResponse() { return adminResponseBuilder_ != null || adminResponse_ != null; } /** * .raft_cmdpb.AdminResponse admin_response = 2; */ public org.tikv.kvproto.RaftCmdpb.AdminResponse getAdminResponse() { if (adminResponseBuilder_ == null) { return adminResponse_ == null ? org.tikv.kvproto.RaftCmdpb.AdminResponse.getDefaultInstance() : adminResponse_; } else { return adminResponseBuilder_.getMessage(); } } /** * .raft_cmdpb.AdminResponse admin_response = 2; */ public Builder setAdminResponse(org.tikv.kvproto.RaftCmdpb.AdminResponse value) { if (adminResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminResponse_ = value; onChanged(); } else { adminResponseBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.AdminResponse admin_response = 2; */ public Builder setAdminResponse( org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder builderForValue) { if (adminResponseBuilder_ == null) { adminResponse_ = builderForValue.build(); onChanged(); } else { adminResponseBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.AdminResponse admin_response = 2; */ public Builder mergeAdminResponse(org.tikv.kvproto.RaftCmdpb.AdminResponse value) { if (adminResponseBuilder_ == null) { if (adminResponse_ != null) { adminResponse_ = org.tikv.kvproto.RaftCmdpb.AdminResponse.newBuilder(adminResponse_).mergeFrom(value).buildPartial(); } else { adminResponse_ = value; } onChanged(); } else { adminResponseBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.AdminResponse admin_response = 2; */ public Builder clearAdminResponse() { if (adminResponseBuilder_ == null) { adminResponse_ = null; onChanged(); } else { adminResponse_ = null; adminResponseBuilder_ = null; } return this; } /** * .raft_cmdpb.AdminResponse admin_response = 2; */ public org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder getAdminResponseBuilder() { onChanged(); return getAdminResponseFieldBuilder().getBuilder(); } /** * .raft_cmdpb.AdminResponse admin_response = 2; */ public org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder getAdminResponseOrBuilder() { if (adminResponseBuilder_ != null) { return adminResponseBuilder_.getMessageOrBuilder(); } else { return adminResponse_ == null ? org.tikv.kvproto.RaftCmdpb.AdminResponse.getDefaultInstance() : adminResponse_; } } /** * .raft_cmdpb.AdminResponse admin_response = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminResponse, org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder, org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder> getAdminResponseFieldBuilder() { if (adminResponseBuilder_ == null) { adminResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminResponse, org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder, org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder>( getAdminResponse(), getParentForChildren(), isClean()); adminResponse_ = null; } return adminResponseBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.Event.Admin) } // @@protoc_insertion_point(class_scope:cdcpb.Event.Admin) private static final org.tikv.kvproto.Cdcpb.Event.Admin DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.Event.Admin(); } public static org.tikv.kvproto.Cdcpb.Event.Admin getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Admin parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Admin(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.Event.Admin getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LongTxnOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.Event.LongTxn) com.google.protobuf.MessageOrBuilder { /** * repeated .cdcpb.TxnInfo txn_info = 1; */ java.util.List getTxnInfoList(); /** * repeated .cdcpb.TxnInfo txn_info = 1; */ org.tikv.kvproto.Cdcpb.TxnInfo getTxnInfo(int index); /** * repeated .cdcpb.TxnInfo txn_info = 1; */ int getTxnInfoCount(); /** * repeated .cdcpb.TxnInfo txn_info = 1; */ java.util.List getTxnInfoOrBuilderList(); /** * repeated .cdcpb.TxnInfo txn_info = 1; */ org.tikv.kvproto.Cdcpb.TxnInfoOrBuilder getTxnInfoOrBuilder( int index); } /** * Protobuf type {@code cdcpb.Event.LongTxn} */ public static final class LongTxn extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.Event.LongTxn) LongTxnOrBuilder { private static final long serialVersionUID = 0L; // Use LongTxn.newBuilder() to construct. private LongTxn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LongTxn() { txnInfo_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LongTxn( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { txnInfo_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } txnInfo_.add( input.readMessage(org.tikv.kvproto.Cdcpb.TxnInfo.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).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { txnInfo_ = java.util.Collections.unmodifiableList(txnInfo_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_LongTxn_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_LongTxn_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Event.LongTxn.class, org.tikv.kvproto.Cdcpb.Event.LongTxn.Builder.class); } public static final int TXN_INFO_FIELD_NUMBER = 1; private java.util.List txnInfo_; /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public java.util.List getTxnInfoList() { return txnInfo_; } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public java.util.List getTxnInfoOrBuilderList() { return txnInfo_; } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public int getTxnInfoCount() { return txnInfo_.size(); } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public org.tikv.kvproto.Cdcpb.TxnInfo getTxnInfo(int index) { return txnInfo_.get(index); } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public org.tikv.kvproto.Cdcpb.TxnInfoOrBuilder getTxnInfoOrBuilder( int index) { return txnInfo_.get(index); } 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 { for (int i = 0; i < txnInfo_.size(); i++) { output.writeMessage(1, txnInfo_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < txnInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, txnInfo_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.Event.LongTxn)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.Event.LongTxn other = (org.tikv.kvproto.Cdcpb.Event.LongTxn) obj; boolean result = true; result = result && getTxnInfoList() .equals(other.getTxnInfoList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTxnInfoCount() > 0) { hash = (37 * hash) + TXN_INFO_FIELD_NUMBER; hash = (53 * hash) + getTxnInfoList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.Event.LongTxn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.Event.LongTxn} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.Event.LongTxn) org.tikv.kvproto.Cdcpb.Event.LongTxnOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_LongTxn_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_LongTxn_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Event.LongTxn.class, org.tikv.kvproto.Cdcpb.Event.LongTxn.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.Event.LongTxn.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTxnInfoFieldBuilder(); } } public Builder clear() { super.clear(); if (txnInfoBuilder_ == null) { txnInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { txnInfoBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_LongTxn_descriptor; } public org.tikv.kvproto.Cdcpb.Event.LongTxn getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.Event.LongTxn.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.Event.LongTxn build() { org.tikv.kvproto.Cdcpb.Event.LongTxn result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.Event.LongTxn buildPartial() { org.tikv.kvproto.Cdcpb.Event.LongTxn result = new org.tikv.kvproto.Cdcpb.Event.LongTxn(this); int from_bitField0_ = bitField0_; if (txnInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { txnInfo_ = java.util.Collections.unmodifiableList(txnInfo_); bitField0_ = (bitField0_ & ~0x00000001); } result.txnInfo_ = txnInfo_; } else { result.txnInfo_ = txnInfoBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.Event.LongTxn) { return mergeFrom((org.tikv.kvproto.Cdcpb.Event.LongTxn)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.Event.LongTxn other) { if (other == org.tikv.kvproto.Cdcpb.Event.LongTxn.getDefaultInstance()) return this; if (txnInfoBuilder_ == null) { if (!other.txnInfo_.isEmpty()) { if (txnInfo_.isEmpty()) { txnInfo_ = other.txnInfo_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTxnInfoIsMutable(); txnInfo_.addAll(other.txnInfo_); } onChanged(); } } else { if (!other.txnInfo_.isEmpty()) { if (txnInfoBuilder_.isEmpty()) { txnInfoBuilder_.dispose(); txnInfoBuilder_ = null; txnInfo_ = other.txnInfo_; bitField0_ = (bitField0_ & ~0x00000001); txnInfoBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTxnInfoFieldBuilder() : null; } else { txnInfoBuilder_.addAllMessages(other.txnInfo_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.Event.LongTxn parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.Event.LongTxn) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List txnInfo_ = java.util.Collections.emptyList(); private void ensureTxnInfoIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { txnInfo_ = new java.util.ArrayList(txnInfo_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.TxnInfo, org.tikv.kvproto.Cdcpb.TxnInfo.Builder, org.tikv.kvproto.Cdcpb.TxnInfoOrBuilder> txnInfoBuilder_; /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public java.util.List getTxnInfoList() { if (txnInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(txnInfo_); } else { return txnInfoBuilder_.getMessageList(); } } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public int getTxnInfoCount() { if (txnInfoBuilder_ == null) { return txnInfo_.size(); } else { return txnInfoBuilder_.getCount(); } } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public org.tikv.kvproto.Cdcpb.TxnInfo getTxnInfo(int index) { if (txnInfoBuilder_ == null) { return txnInfo_.get(index); } else { return txnInfoBuilder_.getMessage(index); } } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public Builder setTxnInfo( int index, org.tikv.kvproto.Cdcpb.TxnInfo value) { if (txnInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTxnInfoIsMutable(); txnInfo_.set(index, value); onChanged(); } else { txnInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public Builder setTxnInfo( int index, org.tikv.kvproto.Cdcpb.TxnInfo.Builder builderForValue) { if (txnInfoBuilder_ == null) { ensureTxnInfoIsMutable(); txnInfo_.set(index, builderForValue.build()); onChanged(); } else { txnInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public Builder addTxnInfo(org.tikv.kvproto.Cdcpb.TxnInfo value) { if (txnInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTxnInfoIsMutable(); txnInfo_.add(value); onChanged(); } else { txnInfoBuilder_.addMessage(value); } return this; } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public Builder addTxnInfo( int index, org.tikv.kvproto.Cdcpb.TxnInfo value) { if (txnInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTxnInfoIsMutable(); txnInfo_.add(index, value); onChanged(); } else { txnInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public Builder addTxnInfo( org.tikv.kvproto.Cdcpb.TxnInfo.Builder builderForValue) { if (txnInfoBuilder_ == null) { ensureTxnInfoIsMutable(); txnInfo_.add(builderForValue.build()); onChanged(); } else { txnInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public Builder addTxnInfo( int index, org.tikv.kvproto.Cdcpb.TxnInfo.Builder builderForValue) { if (txnInfoBuilder_ == null) { ensureTxnInfoIsMutable(); txnInfo_.add(index, builderForValue.build()); onChanged(); } else { txnInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public Builder addAllTxnInfo( java.lang.Iterable values) { if (txnInfoBuilder_ == null) { ensureTxnInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, txnInfo_); onChanged(); } else { txnInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public Builder clearTxnInfo() { if (txnInfoBuilder_ == null) { txnInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { txnInfoBuilder_.clear(); } return this; } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public Builder removeTxnInfo(int index) { if (txnInfoBuilder_ == null) { ensureTxnInfoIsMutable(); txnInfo_.remove(index); onChanged(); } else { txnInfoBuilder_.remove(index); } return this; } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public org.tikv.kvproto.Cdcpb.TxnInfo.Builder getTxnInfoBuilder( int index) { return getTxnInfoFieldBuilder().getBuilder(index); } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public org.tikv.kvproto.Cdcpb.TxnInfoOrBuilder getTxnInfoOrBuilder( int index) { if (txnInfoBuilder_ == null) { return txnInfo_.get(index); } else { return txnInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public java.util.List getTxnInfoOrBuilderList() { if (txnInfoBuilder_ != null) { return txnInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(txnInfo_); } } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public org.tikv.kvproto.Cdcpb.TxnInfo.Builder addTxnInfoBuilder() { return getTxnInfoFieldBuilder().addBuilder( org.tikv.kvproto.Cdcpb.TxnInfo.getDefaultInstance()); } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public org.tikv.kvproto.Cdcpb.TxnInfo.Builder addTxnInfoBuilder( int index) { return getTxnInfoFieldBuilder().addBuilder( index, org.tikv.kvproto.Cdcpb.TxnInfo.getDefaultInstance()); } /** * repeated .cdcpb.TxnInfo txn_info = 1; */ public java.util.List getTxnInfoBuilderList() { return getTxnInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.TxnInfo, org.tikv.kvproto.Cdcpb.TxnInfo.Builder, org.tikv.kvproto.Cdcpb.TxnInfoOrBuilder> getTxnInfoFieldBuilder() { if (txnInfoBuilder_ == null) { txnInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.TxnInfo, org.tikv.kvproto.Cdcpb.TxnInfo.Builder, org.tikv.kvproto.Cdcpb.TxnInfoOrBuilder>( txnInfo_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); txnInfo_ = null; } return txnInfoBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.Event.LongTxn) } // @@protoc_insertion_point(class_scope:cdcpb.Event.LongTxn) private static final org.tikv.kvproto.Cdcpb.Event.LongTxn DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.Event.LongTxn(); } public static org.tikv.kvproto.Cdcpb.Event.LongTxn getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LongTxn parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LongTxn(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.Event.LongTxn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int eventCase_ = 0; private java.lang.Object event_; public enum EventCase implements com.google.protobuf.Internal.EnumLite { ENTRIES(3), ADMIN(4), ERROR(5), RESOLVED_TS(6), LONG_TXN(8), EVENT_NOT_SET(0); private final int value; private EventCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EventCase valueOf(int value) { return forNumber(value); } public static EventCase forNumber(int value) { switch (value) { case 3: return ENTRIES; case 4: return ADMIN; case 5: return ERROR; case 6: return RESOLVED_TS; case 8: return LONG_TXN; case 0: return EVENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public EventCase getEventCase() { return EventCase.forNumber( eventCase_); } public static final int REGION_ID_FIELD_NUMBER = 1; private long regionId_; /** * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } public static final int INDEX_FIELD_NUMBER = 2; private long index_; /** * uint64 index = 2; */ public long getIndex() { return index_; } public static final int REQUEST_ID_FIELD_NUMBER = 7; private long requestId_; /** * uint64 request_id = 7; */ public long getRequestId() { return requestId_; } public static final int ENTRIES_FIELD_NUMBER = 3; /** * .cdcpb.Event.Entries entries = 3; */ public boolean hasEntries() { return eventCase_ == 3; } /** * .cdcpb.Event.Entries entries = 3; */ public org.tikv.kvproto.Cdcpb.Event.Entries getEntries() { if (eventCase_ == 3) { return (org.tikv.kvproto.Cdcpb.Event.Entries) event_; } return org.tikv.kvproto.Cdcpb.Event.Entries.getDefaultInstance(); } /** * .cdcpb.Event.Entries entries = 3; */ public org.tikv.kvproto.Cdcpb.Event.EntriesOrBuilder getEntriesOrBuilder() { if (eventCase_ == 3) { return (org.tikv.kvproto.Cdcpb.Event.Entries) event_; } return org.tikv.kvproto.Cdcpb.Event.Entries.getDefaultInstance(); } public static final int ADMIN_FIELD_NUMBER = 4; /** * .cdcpb.Event.Admin admin = 4; */ public boolean hasAdmin() { return eventCase_ == 4; } /** * .cdcpb.Event.Admin admin = 4; */ public org.tikv.kvproto.Cdcpb.Event.Admin getAdmin() { if (eventCase_ == 4) { return (org.tikv.kvproto.Cdcpb.Event.Admin) event_; } return org.tikv.kvproto.Cdcpb.Event.Admin.getDefaultInstance(); } /** * .cdcpb.Event.Admin admin = 4; */ public org.tikv.kvproto.Cdcpb.Event.AdminOrBuilder getAdminOrBuilder() { if (eventCase_ == 4) { return (org.tikv.kvproto.Cdcpb.Event.Admin) event_; } return org.tikv.kvproto.Cdcpb.Event.Admin.getDefaultInstance(); } public static final int ERROR_FIELD_NUMBER = 5; /** * .cdcpb.Error error = 5; */ public boolean hasError() { return eventCase_ == 5; } /** * .cdcpb.Error error = 5; */ public org.tikv.kvproto.Cdcpb.Error getError() { if (eventCase_ == 5) { return (org.tikv.kvproto.Cdcpb.Error) event_; } return org.tikv.kvproto.Cdcpb.Error.getDefaultInstance(); } /** * .cdcpb.Error error = 5; */ public org.tikv.kvproto.Cdcpb.ErrorOrBuilder getErrorOrBuilder() { if (eventCase_ == 5) { return (org.tikv.kvproto.Cdcpb.Error) event_; } return org.tikv.kvproto.Cdcpb.Error.getDefaultInstance(); } public static final int RESOLVED_TS_FIELD_NUMBER = 6; /** * uint64 resolved_ts = 6 [deprecated = true]; */ @java.lang.Deprecated public long getResolvedTs() { if (eventCase_ == 6) { return (java.lang.Long) event_; } return 0L; } public static final int LONG_TXN_FIELD_NUMBER = 8; /** *
     * Note that field 7 is taken by request_id.
     * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ public boolean hasLongTxn() { return eventCase_ == 8; } /** *
     * Note that field 7 is taken by request_id.
     * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ public org.tikv.kvproto.Cdcpb.Event.LongTxn getLongTxn() { if (eventCase_ == 8) { return (org.tikv.kvproto.Cdcpb.Event.LongTxn) event_; } return org.tikv.kvproto.Cdcpb.Event.LongTxn.getDefaultInstance(); } /** *
     * Note that field 7 is taken by request_id.
     * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ public org.tikv.kvproto.Cdcpb.Event.LongTxnOrBuilder getLongTxnOrBuilder() { if (eventCase_ == 8) { return (org.tikv.kvproto.Cdcpb.Event.LongTxn) event_; } return org.tikv.kvproto.Cdcpb.Event.LongTxn.getDefaultInstance(); } 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 { if (regionId_ != 0L) { output.writeUInt64(1, regionId_); } if (index_ != 0L) { output.writeUInt64(2, index_); } if (eventCase_ == 3) { output.writeMessage(3, (org.tikv.kvproto.Cdcpb.Event.Entries) event_); } if (eventCase_ == 4) { output.writeMessage(4, (org.tikv.kvproto.Cdcpb.Event.Admin) event_); } if (eventCase_ == 5) { output.writeMessage(5, (org.tikv.kvproto.Cdcpb.Error) event_); } if (eventCase_ == 6) { output.writeUInt64( 6, (long)((java.lang.Long) event_)); } if (requestId_ != 0L) { output.writeUInt64(7, requestId_); } if (eventCase_ == 8) { output.writeMessage(8, (org.tikv.kvproto.Cdcpb.Event.LongTxn) event_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, regionId_); } if (index_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, index_); } if (eventCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (org.tikv.kvproto.Cdcpb.Event.Entries) event_); } if (eventCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (org.tikv.kvproto.Cdcpb.Event.Admin) event_); } if (eventCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.tikv.kvproto.Cdcpb.Error) event_); } if (eventCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size( 6, (long)((java.lang.Long) event_)); } if (requestId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, requestId_); } if (eventCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (org.tikv.kvproto.Cdcpb.Event.LongTxn) event_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.Event)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.Event other = (org.tikv.kvproto.Cdcpb.Event) obj; boolean result = true; result = result && (getRegionId() == other.getRegionId()); result = result && (getIndex() == other.getIndex()); result = result && (getRequestId() == other.getRequestId()); result = result && getEventCase().equals( other.getEventCase()); if (!result) return false; switch (eventCase_) { case 3: result = result && getEntries() .equals(other.getEntries()); break; case 4: result = result && getAdmin() .equals(other.getAdmin()); break; case 5: result = result && getError() .equals(other.getError()); break; case 6: result = result && (getResolvedTs() == other.getResolvedTs()); break; case 8: result = result && getLongTxn() .equals(other.getLongTxn()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIndex()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRequestId()); switch (eventCase_) { case 3: hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntries().hashCode(); break; case 4: hash = (37 * hash) + ADMIN_FIELD_NUMBER; hash = (53 * hash) + getAdmin().hashCode(); break; case 5: hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); break; case 6: hash = (37 * hash) + RESOLVED_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getResolvedTs()); break; case 8: hash = (37 * hash) + LONG_TXN_FIELD_NUMBER; hash = (53 * hash) + getLongTxn().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.Event parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.Event parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.Event parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.Event parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.Event prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.Event} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.Event) org.tikv.kvproto.Cdcpb.EventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.Event.class, org.tikv.kvproto.Cdcpb.Event.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.Event.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); regionId_ = 0L; index_ = 0L; requestId_ = 0L; eventCase_ = 0; event_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_Event_descriptor; } public org.tikv.kvproto.Cdcpb.Event getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.Event.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.Event build() { org.tikv.kvproto.Cdcpb.Event result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.Event buildPartial() { org.tikv.kvproto.Cdcpb.Event result = new org.tikv.kvproto.Cdcpb.Event(this); result.regionId_ = regionId_; result.index_ = index_; result.requestId_ = requestId_; if (eventCase_ == 3) { if (entriesBuilder_ == null) { result.event_ = event_; } else { result.event_ = entriesBuilder_.build(); } } if (eventCase_ == 4) { if (adminBuilder_ == null) { result.event_ = event_; } else { result.event_ = adminBuilder_.build(); } } if (eventCase_ == 5) { if (errorBuilder_ == null) { result.event_ = event_; } else { result.event_ = errorBuilder_.build(); } } if (eventCase_ == 6) { result.event_ = event_; } if (eventCase_ == 8) { if (longTxnBuilder_ == null) { result.event_ = event_; } else { result.event_ = longTxnBuilder_.build(); } } result.eventCase_ = eventCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.Event) { return mergeFrom((org.tikv.kvproto.Cdcpb.Event)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.Event other) { if (other == org.tikv.kvproto.Cdcpb.Event.getDefaultInstance()) return this; if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } if (other.getIndex() != 0L) { setIndex(other.getIndex()); } if (other.getRequestId() != 0L) { setRequestId(other.getRequestId()); } switch (other.getEventCase()) { case ENTRIES: { mergeEntries(other.getEntries()); break; } case ADMIN: { mergeAdmin(other.getAdmin()); break; } case ERROR: { mergeError(other.getError()); break; } case RESOLVED_TS: { setResolvedTs(other.getResolvedTs()); break; } case LONG_TXN: { mergeLongTxn(other.getLongTxn()); break; } case EVENT_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.Event parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.Event) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int eventCase_ = 0; private java.lang.Object event_; public EventCase getEventCase() { return EventCase.forNumber( eventCase_); } public Builder clearEvent() { eventCase_ = 0; event_ = null; onChanged(); return this; } private long regionId_ ; /** * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } /** * uint64 region_id = 1; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** * uint64 region_id = 1; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } private long index_ ; /** * uint64 index = 2; */ public long getIndex() { return index_; } /** * uint64 index = 2; */ public Builder setIndex(long value) { index_ = value; onChanged(); return this; } /** * uint64 index = 2; */ public Builder clearIndex() { index_ = 0L; onChanged(); return this; } private long requestId_ ; /** * uint64 request_id = 7; */ public long getRequestId() { return requestId_; } /** * uint64 request_id = 7; */ public Builder setRequestId(long value) { requestId_ = value; onChanged(); return this; } /** * uint64 request_id = 7; */ public Builder clearRequestId() { requestId_ = 0L; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.Entries, org.tikv.kvproto.Cdcpb.Event.Entries.Builder, org.tikv.kvproto.Cdcpb.Event.EntriesOrBuilder> entriesBuilder_; /** * .cdcpb.Event.Entries entries = 3; */ public boolean hasEntries() { return eventCase_ == 3; } /** * .cdcpb.Event.Entries entries = 3; */ public org.tikv.kvproto.Cdcpb.Event.Entries getEntries() { if (entriesBuilder_ == null) { if (eventCase_ == 3) { return (org.tikv.kvproto.Cdcpb.Event.Entries) event_; } return org.tikv.kvproto.Cdcpb.Event.Entries.getDefaultInstance(); } else { if (eventCase_ == 3) { return entriesBuilder_.getMessage(); } return org.tikv.kvproto.Cdcpb.Event.Entries.getDefaultInstance(); } } /** * .cdcpb.Event.Entries entries = 3; */ public Builder setEntries(org.tikv.kvproto.Cdcpb.Event.Entries value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { entriesBuilder_.setMessage(value); } eventCase_ = 3; return this; } /** * .cdcpb.Event.Entries entries = 3; */ public Builder setEntries( org.tikv.kvproto.Cdcpb.Event.Entries.Builder builderForValue) { if (entriesBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { entriesBuilder_.setMessage(builderForValue.build()); } eventCase_ = 3; return this; } /** * .cdcpb.Event.Entries entries = 3; */ public Builder mergeEntries(org.tikv.kvproto.Cdcpb.Event.Entries value) { if (entriesBuilder_ == null) { if (eventCase_ == 3 && event_ != org.tikv.kvproto.Cdcpb.Event.Entries.getDefaultInstance()) { event_ = org.tikv.kvproto.Cdcpb.Event.Entries.newBuilder((org.tikv.kvproto.Cdcpb.Event.Entries) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 3) { entriesBuilder_.mergeFrom(value); } entriesBuilder_.setMessage(value); } eventCase_ = 3; return this; } /** * .cdcpb.Event.Entries entries = 3; */ public Builder clearEntries() { if (entriesBuilder_ == null) { if (eventCase_ == 3) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 3) { eventCase_ = 0; event_ = null; } entriesBuilder_.clear(); } return this; } /** * .cdcpb.Event.Entries entries = 3; */ public org.tikv.kvproto.Cdcpb.Event.Entries.Builder getEntriesBuilder() { return getEntriesFieldBuilder().getBuilder(); } /** * .cdcpb.Event.Entries entries = 3; */ public org.tikv.kvproto.Cdcpb.Event.EntriesOrBuilder getEntriesOrBuilder() { if ((eventCase_ == 3) && (entriesBuilder_ != null)) { return entriesBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 3) { return (org.tikv.kvproto.Cdcpb.Event.Entries) event_; } return org.tikv.kvproto.Cdcpb.Event.Entries.getDefaultInstance(); } } /** * .cdcpb.Event.Entries entries = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.Entries, org.tikv.kvproto.Cdcpb.Event.Entries.Builder, org.tikv.kvproto.Cdcpb.Event.EntriesOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { if (!(eventCase_ == 3)) { event_ = org.tikv.kvproto.Cdcpb.Event.Entries.getDefaultInstance(); } entriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.Entries, org.tikv.kvproto.Cdcpb.Event.Entries.Builder, org.tikv.kvproto.Cdcpb.Event.EntriesOrBuilder>( (org.tikv.kvproto.Cdcpb.Event.Entries) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 3; onChanged();; return entriesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.Admin, org.tikv.kvproto.Cdcpb.Event.Admin.Builder, org.tikv.kvproto.Cdcpb.Event.AdminOrBuilder> adminBuilder_; /** * .cdcpb.Event.Admin admin = 4; */ public boolean hasAdmin() { return eventCase_ == 4; } /** * .cdcpb.Event.Admin admin = 4; */ public org.tikv.kvproto.Cdcpb.Event.Admin getAdmin() { if (adminBuilder_ == null) { if (eventCase_ == 4) { return (org.tikv.kvproto.Cdcpb.Event.Admin) event_; } return org.tikv.kvproto.Cdcpb.Event.Admin.getDefaultInstance(); } else { if (eventCase_ == 4) { return adminBuilder_.getMessage(); } return org.tikv.kvproto.Cdcpb.Event.Admin.getDefaultInstance(); } } /** * .cdcpb.Event.Admin admin = 4; */ public Builder setAdmin(org.tikv.kvproto.Cdcpb.Event.Admin value) { if (adminBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { adminBuilder_.setMessage(value); } eventCase_ = 4; return this; } /** * .cdcpb.Event.Admin admin = 4; */ public Builder setAdmin( org.tikv.kvproto.Cdcpb.Event.Admin.Builder builderForValue) { if (adminBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { adminBuilder_.setMessage(builderForValue.build()); } eventCase_ = 4; return this; } /** * .cdcpb.Event.Admin admin = 4; */ public Builder mergeAdmin(org.tikv.kvproto.Cdcpb.Event.Admin value) { if (adminBuilder_ == null) { if (eventCase_ == 4 && event_ != org.tikv.kvproto.Cdcpb.Event.Admin.getDefaultInstance()) { event_ = org.tikv.kvproto.Cdcpb.Event.Admin.newBuilder((org.tikv.kvproto.Cdcpb.Event.Admin) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 4) { adminBuilder_.mergeFrom(value); } adminBuilder_.setMessage(value); } eventCase_ = 4; return this; } /** * .cdcpb.Event.Admin admin = 4; */ public Builder clearAdmin() { if (adminBuilder_ == null) { if (eventCase_ == 4) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 4) { eventCase_ = 0; event_ = null; } adminBuilder_.clear(); } return this; } /** * .cdcpb.Event.Admin admin = 4; */ public org.tikv.kvproto.Cdcpb.Event.Admin.Builder getAdminBuilder() { return getAdminFieldBuilder().getBuilder(); } /** * .cdcpb.Event.Admin admin = 4; */ public org.tikv.kvproto.Cdcpb.Event.AdminOrBuilder getAdminOrBuilder() { if ((eventCase_ == 4) && (adminBuilder_ != null)) { return adminBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 4) { return (org.tikv.kvproto.Cdcpb.Event.Admin) event_; } return org.tikv.kvproto.Cdcpb.Event.Admin.getDefaultInstance(); } } /** * .cdcpb.Event.Admin admin = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.Admin, org.tikv.kvproto.Cdcpb.Event.Admin.Builder, org.tikv.kvproto.Cdcpb.Event.AdminOrBuilder> getAdminFieldBuilder() { if (adminBuilder_ == null) { if (!(eventCase_ == 4)) { event_ = org.tikv.kvproto.Cdcpb.Event.Admin.getDefaultInstance(); } adminBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.Admin, org.tikv.kvproto.Cdcpb.Event.Admin.Builder, org.tikv.kvproto.Cdcpb.Event.AdminOrBuilder>( (org.tikv.kvproto.Cdcpb.Event.Admin) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 4; onChanged();; return adminBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Error, org.tikv.kvproto.Cdcpb.Error.Builder, org.tikv.kvproto.Cdcpb.ErrorOrBuilder> errorBuilder_; /** * .cdcpb.Error error = 5; */ public boolean hasError() { return eventCase_ == 5; } /** * .cdcpb.Error error = 5; */ public org.tikv.kvproto.Cdcpb.Error getError() { if (errorBuilder_ == null) { if (eventCase_ == 5) { return (org.tikv.kvproto.Cdcpb.Error) event_; } return org.tikv.kvproto.Cdcpb.Error.getDefaultInstance(); } else { if (eventCase_ == 5) { return errorBuilder_.getMessage(); } return org.tikv.kvproto.Cdcpb.Error.getDefaultInstance(); } } /** * .cdcpb.Error error = 5; */ public Builder setError(org.tikv.kvproto.Cdcpb.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } eventCase_ = 5; return this; } /** * .cdcpb.Error error = 5; */ public Builder setError( org.tikv.kvproto.Cdcpb.Error.Builder builderForValue) { if (errorBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } eventCase_ = 5; return this; } /** * .cdcpb.Error error = 5; */ public Builder mergeError(org.tikv.kvproto.Cdcpb.Error value) { if (errorBuilder_ == null) { if (eventCase_ == 5 && event_ != org.tikv.kvproto.Cdcpb.Error.getDefaultInstance()) { event_ = org.tikv.kvproto.Cdcpb.Error.newBuilder((org.tikv.kvproto.Cdcpb.Error) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 5) { errorBuilder_.mergeFrom(value); } errorBuilder_.setMessage(value); } eventCase_ = 5; return this; } /** * .cdcpb.Error error = 5; */ public Builder clearError() { if (errorBuilder_ == null) { if (eventCase_ == 5) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 5) { eventCase_ = 0; event_ = null; } errorBuilder_.clear(); } return this; } /** * .cdcpb.Error error = 5; */ public org.tikv.kvproto.Cdcpb.Error.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** * .cdcpb.Error error = 5; */ public org.tikv.kvproto.Cdcpb.ErrorOrBuilder getErrorOrBuilder() { if ((eventCase_ == 5) && (errorBuilder_ != null)) { return errorBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 5) { return (org.tikv.kvproto.Cdcpb.Error) event_; } return org.tikv.kvproto.Cdcpb.Error.getDefaultInstance(); } } /** * .cdcpb.Error error = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Error, org.tikv.kvproto.Cdcpb.Error.Builder, org.tikv.kvproto.Cdcpb.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { if (!(eventCase_ == 5)) { event_ = org.tikv.kvproto.Cdcpb.Error.getDefaultInstance(); } errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Error, org.tikv.kvproto.Cdcpb.Error.Builder, org.tikv.kvproto.Cdcpb.ErrorOrBuilder>( (org.tikv.kvproto.Cdcpb.Error) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 5; onChanged();; return errorBuilder_; } /** * uint64 resolved_ts = 6 [deprecated = true]; */ @java.lang.Deprecated public long getResolvedTs() { if (eventCase_ == 6) { return (java.lang.Long) event_; } return 0L; } /** * uint64 resolved_ts = 6 [deprecated = true]; */ @java.lang.Deprecated public Builder setResolvedTs(long value) { eventCase_ = 6; event_ = value; onChanged(); return this; } /** * uint64 resolved_ts = 6 [deprecated = true]; */ @java.lang.Deprecated public Builder clearResolvedTs() { if (eventCase_ == 6) { eventCase_ = 0; event_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.LongTxn, org.tikv.kvproto.Cdcpb.Event.LongTxn.Builder, org.tikv.kvproto.Cdcpb.Event.LongTxnOrBuilder> longTxnBuilder_; /** *
       * Note that field 7 is taken by request_id.
       * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ public boolean hasLongTxn() { return eventCase_ == 8; } /** *
       * Note that field 7 is taken by request_id.
       * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ public org.tikv.kvproto.Cdcpb.Event.LongTxn getLongTxn() { if (longTxnBuilder_ == null) { if (eventCase_ == 8) { return (org.tikv.kvproto.Cdcpb.Event.LongTxn) event_; } return org.tikv.kvproto.Cdcpb.Event.LongTxn.getDefaultInstance(); } else { if (eventCase_ == 8) { return longTxnBuilder_.getMessage(); } return org.tikv.kvproto.Cdcpb.Event.LongTxn.getDefaultInstance(); } } /** *
       * Note that field 7 is taken by request_id.
       * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ public Builder setLongTxn(org.tikv.kvproto.Cdcpb.Event.LongTxn value) { if (longTxnBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { longTxnBuilder_.setMessage(value); } eventCase_ = 8; return this; } /** *
       * Note that field 7 is taken by request_id.
       * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ public Builder setLongTxn( org.tikv.kvproto.Cdcpb.Event.LongTxn.Builder builderForValue) { if (longTxnBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { longTxnBuilder_.setMessage(builderForValue.build()); } eventCase_ = 8; return this; } /** *
       * Note that field 7 is taken by request_id.
       * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ public Builder mergeLongTxn(org.tikv.kvproto.Cdcpb.Event.LongTxn value) { if (longTxnBuilder_ == null) { if (eventCase_ == 8 && event_ != org.tikv.kvproto.Cdcpb.Event.LongTxn.getDefaultInstance()) { event_ = org.tikv.kvproto.Cdcpb.Event.LongTxn.newBuilder((org.tikv.kvproto.Cdcpb.Event.LongTxn) event_) .mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { if (eventCase_ == 8) { longTxnBuilder_.mergeFrom(value); } longTxnBuilder_.setMessage(value); } eventCase_ = 8; return this; } /** *
       * Note that field 7 is taken by request_id.
       * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ public Builder clearLongTxn() { if (longTxnBuilder_ == null) { if (eventCase_ == 8) { eventCase_ = 0; event_ = null; onChanged(); } } else { if (eventCase_ == 8) { eventCase_ = 0; event_ = null; } longTxnBuilder_.clear(); } return this; } /** *
       * Note that field 7 is taken by request_id.
       * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ public org.tikv.kvproto.Cdcpb.Event.LongTxn.Builder getLongTxnBuilder() { return getLongTxnFieldBuilder().getBuilder(); } /** *
       * Note that field 7 is taken by request_id.
       * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ public org.tikv.kvproto.Cdcpb.Event.LongTxnOrBuilder getLongTxnOrBuilder() { if ((eventCase_ == 8) && (longTxnBuilder_ != null)) { return longTxnBuilder_.getMessageOrBuilder(); } else { if (eventCase_ == 8) { return (org.tikv.kvproto.Cdcpb.Event.LongTxn) event_; } return org.tikv.kvproto.Cdcpb.Event.LongTxn.getDefaultInstance(); } } /** *
       * Note that field 7 is taken by request_id.
       * 
* * .cdcpb.Event.LongTxn long_txn = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.LongTxn, org.tikv.kvproto.Cdcpb.Event.LongTxn.Builder, org.tikv.kvproto.Cdcpb.Event.LongTxnOrBuilder> getLongTxnFieldBuilder() { if (longTxnBuilder_ == null) { if (!(eventCase_ == 8)) { event_ = org.tikv.kvproto.Cdcpb.Event.LongTxn.getDefaultInstance(); } longTxnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event.LongTxn, org.tikv.kvproto.Cdcpb.Event.LongTxn.Builder, org.tikv.kvproto.Cdcpb.Event.LongTxnOrBuilder>( (org.tikv.kvproto.Cdcpb.Event.LongTxn) event_, getParentForChildren(), isClean()); event_ = null; } eventCase_ = 8; onChanged();; return longTxnBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.Event) } // @@protoc_insertion_point(class_scope:cdcpb.Event) private static final org.tikv.kvproto.Cdcpb.Event DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.Event(); } public static org.tikv.kvproto.Cdcpb.Event getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Event parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Event(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChangeDataEventOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.ChangeDataEvent) com.google.protobuf.MessageOrBuilder { /** * repeated .cdcpb.Event events = 1; */ java.util.List getEventsList(); /** * repeated .cdcpb.Event events = 1; */ org.tikv.kvproto.Cdcpb.Event getEvents(int index); /** * repeated .cdcpb.Event events = 1; */ int getEventsCount(); /** * repeated .cdcpb.Event events = 1; */ java.util.List getEventsOrBuilderList(); /** * repeated .cdcpb.Event events = 1; */ org.tikv.kvproto.Cdcpb.EventOrBuilder getEventsOrBuilder( int index); /** *
     * More store level events ...
     * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ boolean hasResolvedTs(); /** *
     * More store level events ...
     * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ org.tikv.kvproto.Cdcpb.ResolvedTs getResolvedTs(); /** *
     * More store level events ...
     * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ org.tikv.kvproto.Cdcpb.ResolvedTsOrBuilder getResolvedTsOrBuilder(); } /** * Protobuf type {@code cdcpb.ChangeDataEvent} */ public static final class ChangeDataEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.ChangeDataEvent) ChangeDataEventOrBuilder { private static final long serialVersionUID = 0L; // Use ChangeDataEvent.newBuilder() to construct. private ChangeDataEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChangeDataEvent() { events_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangeDataEvent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { events_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } events_.add( input.readMessage(org.tikv.kvproto.Cdcpb.Event.parser(), extensionRegistry)); break; } case 18: { org.tikv.kvproto.Cdcpb.ResolvedTs.Builder subBuilder = null; if (resolvedTs_ != null) { subBuilder = resolvedTs_.toBuilder(); } resolvedTs_ = input.readMessage(org.tikv.kvproto.Cdcpb.ResolvedTs.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(resolvedTs_); resolvedTs_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { events_ = java.util.Collections.unmodifiableList(events_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataEvent_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.ChangeDataEvent.class, org.tikv.kvproto.Cdcpb.ChangeDataEvent.Builder.class); } private int bitField0_; public static final int EVENTS_FIELD_NUMBER = 1; private java.util.List events_; /** * repeated .cdcpb.Event events = 1; */ public java.util.List getEventsList() { return events_; } /** * repeated .cdcpb.Event events = 1; */ public java.util.List getEventsOrBuilderList() { return events_; } /** * repeated .cdcpb.Event events = 1; */ public int getEventsCount() { return events_.size(); } /** * repeated .cdcpb.Event events = 1; */ public org.tikv.kvproto.Cdcpb.Event getEvents(int index) { return events_.get(index); } /** * repeated .cdcpb.Event events = 1; */ public org.tikv.kvproto.Cdcpb.EventOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } public static final int RESOLVED_TS_FIELD_NUMBER = 2; private org.tikv.kvproto.Cdcpb.ResolvedTs resolvedTs_; /** *
     * More store level events ...
     * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ public boolean hasResolvedTs() { return resolvedTs_ != null; } /** *
     * More store level events ...
     * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ public org.tikv.kvproto.Cdcpb.ResolvedTs getResolvedTs() { return resolvedTs_ == null ? org.tikv.kvproto.Cdcpb.ResolvedTs.getDefaultInstance() : resolvedTs_; } /** *
     * More store level events ...
     * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ public org.tikv.kvproto.Cdcpb.ResolvedTsOrBuilder getResolvedTsOrBuilder() { return getResolvedTs(); } 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 { for (int i = 0; i < events_.size(); i++) { output.writeMessage(1, events_.get(i)); } if (resolvedTs_ != null) { output.writeMessage(2, getResolvedTs()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, events_.get(i)); } if (resolvedTs_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResolvedTs()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.ChangeDataEvent)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.ChangeDataEvent other = (org.tikv.kvproto.Cdcpb.ChangeDataEvent) obj; boolean result = true; result = result && getEventsList() .equals(other.getEventsList()); result = result && (hasResolvedTs() == other.hasResolvedTs()); if (hasResolvedTs()) { result = result && getResolvedTs() .equals(other.getResolvedTs()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } if (hasResolvedTs()) { hash = (37 * hash) + RESOLVED_TS_FIELD_NUMBER; hash = (53 * hash) + getResolvedTs().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.ChangeDataEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.ChangeDataEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.ChangeDataEvent) org.tikv.kvproto.Cdcpb.ChangeDataEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataEvent_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.ChangeDataEvent.class, org.tikv.kvproto.Cdcpb.ChangeDataEvent.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.ChangeDataEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEventsFieldBuilder(); } } public Builder clear() { super.clear(); if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { eventsBuilder_.clear(); } if (resolvedTsBuilder_ == null) { resolvedTs_ = null; } else { resolvedTs_ = null; resolvedTsBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataEvent_descriptor; } public org.tikv.kvproto.Cdcpb.ChangeDataEvent getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.ChangeDataEvent.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.ChangeDataEvent build() { org.tikv.kvproto.Cdcpb.ChangeDataEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.ChangeDataEvent buildPartial() { org.tikv.kvproto.Cdcpb.ChangeDataEvent result = new org.tikv.kvproto.Cdcpb.ChangeDataEvent(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000001); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } if (resolvedTsBuilder_ == null) { result.resolvedTs_ = resolvedTs_; } else { result.resolvedTs_ = resolvedTsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.ChangeDataEvent) { return mergeFrom((org.tikv.kvproto.Cdcpb.ChangeDataEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.ChangeDataEvent other) { if (other == org.tikv.kvproto.Cdcpb.ChangeDataEvent.getDefaultInstance()) return this; if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } } else { if (!other.events_.isEmpty()) { if (eventsBuilder_.isEmpty()) { eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } } } if (other.hasResolvedTs()) { mergeResolvedTs(other.getResolvedTs()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.ChangeDataEvent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.ChangeDataEvent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event, org.tikv.kvproto.Cdcpb.Event.Builder, org.tikv.kvproto.Cdcpb.EventOrBuilder> eventsBuilder_; /** * repeated .cdcpb.Event events = 1; */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { return java.util.Collections.unmodifiableList(events_); } else { return eventsBuilder_.getMessageList(); } } /** * repeated .cdcpb.Event events = 1; */ public int getEventsCount() { if (eventsBuilder_ == null) { return events_.size(); } else { return eventsBuilder_.getCount(); } } /** * repeated .cdcpb.Event events = 1; */ public org.tikv.kvproto.Cdcpb.Event getEvents(int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessage(index); } } /** * repeated .cdcpb.Event events = 1; */ public Builder setEvents( int index, org.tikv.kvproto.Cdcpb.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); onChanged(); } else { eventsBuilder_.setMessage(index, value); } return this; } /** * repeated .cdcpb.Event events = 1; */ public Builder setEvents( int index, org.tikv.kvproto.Cdcpb.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .cdcpb.Event events = 1; */ public Builder addEvents(org.tikv.kvproto.Cdcpb.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); onChanged(); } else { eventsBuilder_.addMessage(value); } return this; } /** * repeated .cdcpb.Event events = 1; */ public Builder addEvents( int index, org.tikv.kvproto.Cdcpb.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(index, value); onChanged(); } else { eventsBuilder_.addMessage(index, value); } return this; } /** * repeated .cdcpb.Event events = 1; */ public Builder addEvents( org.tikv.kvproto.Cdcpb.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .cdcpb.Event events = 1; */ public Builder addEvents( int index, org.tikv.kvproto.Cdcpb.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .cdcpb.Event events = 1; */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); } return this; } /** * repeated .cdcpb.Event events = 1; */ public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { eventsBuilder_.clear(); } return this; } /** * repeated .cdcpb.Event events = 1; */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.remove(index); onChanged(); } else { eventsBuilder_.remove(index); } return this; } /** * repeated .cdcpb.Event events = 1; */ public org.tikv.kvproto.Cdcpb.Event.Builder getEventsBuilder( int index) { return getEventsFieldBuilder().getBuilder(index); } /** * repeated .cdcpb.Event events = 1; */ public org.tikv.kvproto.Cdcpb.EventOrBuilder getEventsOrBuilder( int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** * repeated .cdcpb.Event events = 1; */ public java.util.List getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(events_); } } /** * repeated .cdcpb.Event events = 1; */ public org.tikv.kvproto.Cdcpb.Event.Builder addEventsBuilder() { return getEventsFieldBuilder().addBuilder( org.tikv.kvproto.Cdcpb.Event.getDefaultInstance()); } /** * repeated .cdcpb.Event events = 1; */ public org.tikv.kvproto.Cdcpb.Event.Builder addEventsBuilder( int index) { return getEventsFieldBuilder().addBuilder( index, org.tikv.kvproto.Cdcpb.Event.getDefaultInstance()); } /** * repeated .cdcpb.Event events = 1; */ public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event, org.tikv.kvproto.Cdcpb.Event.Builder, org.tikv.kvproto.Cdcpb.EventOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.Event, org.tikv.kvproto.Cdcpb.Event.Builder, org.tikv.kvproto.Cdcpb.EventOrBuilder>( events_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } private org.tikv.kvproto.Cdcpb.ResolvedTs resolvedTs_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.ResolvedTs, org.tikv.kvproto.Cdcpb.ResolvedTs.Builder, org.tikv.kvproto.Cdcpb.ResolvedTsOrBuilder> resolvedTsBuilder_; /** *
       * More store level events ...
       * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ public boolean hasResolvedTs() { return resolvedTsBuilder_ != null || resolvedTs_ != null; } /** *
       * More store level events ...
       * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ public org.tikv.kvproto.Cdcpb.ResolvedTs getResolvedTs() { if (resolvedTsBuilder_ == null) { return resolvedTs_ == null ? org.tikv.kvproto.Cdcpb.ResolvedTs.getDefaultInstance() : resolvedTs_; } else { return resolvedTsBuilder_.getMessage(); } } /** *
       * More store level events ...
       * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ public Builder setResolvedTs(org.tikv.kvproto.Cdcpb.ResolvedTs value) { if (resolvedTsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resolvedTs_ = value; onChanged(); } else { resolvedTsBuilder_.setMessage(value); } return this; } /** *
       * More store level events ...
       * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ public Builder setResolvedTs( org.tikv.kvproto.Cdcpb.ResolvedTs.Builder builderForValue) { if (resolvedTsBuilder_ == null) { resolvedTs_ = builderForValue.build(); onChanged(); } else { resolvedTsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * More store level events ...
       * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ public Builder mergeResolvedTs(org.tikv.kvproto.Cdcpb.ResolvedTs value) { if (resolvedTsBuilder_ == null) { if (resolvedTs_ != null) { resolvedTs_ = org.tikv.kvproto.Cdcpb.ResolvedTs.newBuilder(resolvedTs_).mergeFrom(value).buildPartial(); } else { resolvedTs_ = value; } onChanged(); } else { resolvedTsBuilder_.mergeFrom(value); } return this; } /** *
       * More store level events ...
       * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ public Builder clearResolvedTs() { if (resolvedTsBuilder_ == null) { resolvedTs_ = null; onChanged(); } else { resolvedTs_ = null; resolvedTsBuilder_ = null; } return this; } /** *
       * More store level events ...
       * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ public org.tikv.kvproto.Cdcpb.ResolvedTs.Builder getResolvedTsBuilder() { onChanged(); return getResolvedTsFieldBuilder().getBuilder(); } /** *
       * More store level events ...
       * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ public org.tikv.kvproto.Cdcpb.ResolvedTsOrBuilder getResolvedTsOrBuilder() { if (resolvedTsBuilder_ != null) { return resolvedTsBuilder_.getMessageOrBuilder(); } else { return resolvedTs_ == null ? org.tikv.kvproto.Cdcpb.ResolvedTs.getDefaultInstance() : resolvedTs_; } } /** *
       * More store level events ...
       * 
* * .cdcpb.ResolvedTs resolved_ts = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.ResolvedTs, org.tikv.kvproto.Cdcpb.ResolvedTs.Builder, org.tikv.kvproto.Cdcpb.ResolvedTsOrBuilder> getResolvedTsFieldBuilder() { if (resolvedTsBuilder_ == null) { resolvedTsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.ResolvedTs, org.tikv.kvproto.Cdcpb.ResolvedTs.Builder, org.tikv.kvproto.Cdcpb.ResolvedTsOrBuilder>( getResolvedTs(), getParentForChildren(), isClean()); resolvedTs_ = null; } return resolvedTsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.ChangeDataEvent) } // @@protoc_insertion_point(class_scope:cdcpb.ChangeDataEvent) private static final org.tikv.kvproto.Cdcpb.ChangeDataEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.ChangeDataEvent(); } public static org.tikv.kvproto.Cdcpb.ChangeDataEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChangeDataEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChangeDataEvent(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.ChangeDataEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResolvedTsOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.ResolvedTs) com.google.protobuf.MessageOrBuilder { /** * repeated uint64 regions = 1; */ java.util.List getRegionsList(); /** * repeated uint64 regions = 1; */ int getRegionsCount(); /** * repeated uint64 regions = 1; */ long getRegions(int index); /** * uint64 ts = 2; */ long getTs(); } /** * Protobuf type {@code cdcpb.ResolvedTs} */ public static final class ResolvedTs extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.ResolvedTs) ResolvedTsOrBuilder { private static final long serialVersionUID = 0L; // Use ResolvedTs.newBuilder() to construct. private ResolvedTs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResolvedTs() { regions_ = java.util.Collections.emptyList(); ts_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResolvedTs( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } regions_.add(input.readUInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { regions_.add(input.readUInt64()); } input.popLimit(limit); break; } case 16: { ts_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { regions_ = java.util.Collections.unmodifiableList(regions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ResolvedTs_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ResolvedTs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.ResolvedTs.class, org.tikv.kvproto.Cdcpb.ResolvedTs.Builder.class); } private int bitField0_; public static final int REGIONS_FIELD_NUMBER = 1; private java.util.List regions_; /** * repeated uint64 regions = 1; */ public java.util.List getRegionsList() { return regions_; } /** * repeated uint64 regions = 1; */ public int getRegionsCount() { return regions_.size(); } /** * repeated uint64 regions = 1; */ public long getRegions(int index) { return regions_.get(index); } private int regionsMemoizedSerializedSize = -1; public static final int TS_FIELD_NUMBER = 2; private long ts_; /** * uint64 ts = 2; */ public long getTs() { return ts_; } 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 (getRegionsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(regionsMemoizedSerializedSize); } for (int i = 0; i < regions_.size(); i++) { output.writeUInt64NoTag(regions_.get(i)); } if (ts_ != 0L) { output.writeUInt64(2, ts_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < regions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(regions_.get(i)); } size += dataSize; if (!getRegionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } regionsMemoizedSerializedSize = dataSize; } if (ts_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, ts_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.ResolvedTs)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.ResolvedTs other = (org.tikv.kvproto.Cdcpb.ResolvedTs) obj; boolean result = true; result = result && getRegionsList() .equals(other.getRegionsList()); result = result && (getTs() == other.getTs()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRegionsCount() > 0) { hash = (37 * hash) + REGIONS_FIELD_NUMBER; hash = (53 * hash) + getRegionsList().hashCode(); } hash = (37 * hash) + TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ResolvedTs parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.ResolvedTs prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.ResolvedTs} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.ResolvedTs) org.tikv.kvproto.Cdcpb.ResolvedTsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ResolvedTs_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ResolvedTs_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.ResolvedTs.class, org.tikv.kvproto.Cdcpb.ResolvedTs.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.ResolvedTs.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); ts_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ResolvedTs_descriptor; } public org.tikv.kvproto.Cdcpb.ResolvedTs getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.ResolvedTs.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.ResolvedTs build() { org.tikv.kvproto.Cdcpb.ResolvedTs result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.ResolvedTs buildPartial() { org.tikv.kvproto.Cdcpb.ResolvedTs result = new org.tikv.kvproto.Cdcpb.ResolvedTs(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { regions_ = java.util.Collections.unmodifiableList(regions_); bitField0_ = (bitField0_ & ~0x00000001); } result.regions_ = regions_; result.ts_ = ts_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.ResolvedTs) { return mergeFrom((org.tikv.kvproto.Cdcpb.ResolvedTs)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.ResolvedTs other) { if (other == org.tikv.kvproto.Cdcpb.ResolvedTs.getDefaultInstance()) return this; if (!other.regions_.isEmpty()) { if (regions_.isEmpty()) { regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRegionsIsMutable(); regions_.addAll(other.regions_); } onChanged(); } if (other.getTs() != 0L) { setTs(other.getTs()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.ResolvedTs parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.ResolvedTs) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List regions_ = java.util.Collections.emptyList(); private void ensureRegionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { regions_ = new java.util.ArrayList(regions_); bitField0_ |= 0x00000001; } } /** * repeated uint64 regions = 1; */ public java.util.List getRegionsList() { return java.util.Collections.unmodifiableList(regions_); } /** * repeated uint64 regions = 1; */ public int getRegionsCount() { return regions_.size(); } /** * repeated uint64 regions = 1; */ public long getRegions(int index) { return regions_.get(index); } /** * repeated uint64 regions = 1; */ public Builder setRegions( int index, long value) { ensureRegionsIsMutable(); regions_.set(index, value); onChanged(); return this; } /** * repeated uint64 regions = 1; */ public Builder addRegions(long value) { ensureRegionsIsMutable(); regions_.add(value); onChanged(); return this; } /** * repeated uint64 regions = 1; */ public Builder addAllRegions( java.lang.Iterable values) { ensureRegionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regions_); onChanged(); return this; } /** * repeated uint64 regions = 1; */ public Builder clearRegions() { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private long ts_ ; /** * uint64 ts = 2; */ public long getTs() { return ts_; } /** * uint64 ts = 2; */ public Builder setTs(long value) { ts_ = value; onChanged(); return this; } /** * uint64 ts = 2; */ public Builder clearTs() { ts_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.ResolvedTs) } // @@protoc_insertion_point(class_scope:cdcpb.ResolvedTs) private static final org.tikv.kvproto.Cdcpb.ResolvedTs DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.ResolvedTs(); } public static org.tikv.kvproto.Cdcpb.ResolvedTs getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResolvedTs parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResolvedTs(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.ResolvedTs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChangeDataRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.ChangeDataRequest) com.google.protobuf.MessageOrBuilder { /** * .cdcpb.Header header = 1; */ boolean hasHeader(); /** * .cdcpb.Header header = 1; */ org.tikv.kvproto.Cdcpb.Header getHeader(); /** * .cdcpb.Header header = 1; */ org.tikv.kvproto.Cdcpb.HeaderOrBuilder getHeaderOrBuilder(); /** * uint64 region_id = 2; */ long getRegionId(); /** * .metapb.RegionEpoch region_epoch = 3; */ boolean hasRegionEpoch(); /** * .metapb.RegionEpoch region_epoch = 3; */ org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch(); /** * .metapb.RegionEpoch region_epoch = 3; */ org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder(); /** * uint64 checkpoint_ts = 4; */ long getCheckpointTs(); /** * bytes start_key = 5; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 6; */ com.google.protobuf.ByteString getEndKey(); /** *
     * Used for CDC to identify events corresponding to different requests.
     * 
* * uint64 request_id = 7; */ long getRequestId(); /** * .kvrpcpb.ExtraOp extra_op = 8; */ int getExtraOpValue(); /** * .kvrpcpb.ExtraOp extra_op = 8; */ org.tikv.kvproto.Kvrpcpb.ExtraOp getExtraOp(); /** *
     * A normal request that trying to register change data feed on a region.
     * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ boolean hasRegister(); /** *
     * A normal request that trying to register change data feed on a region.
     * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register getRegister(); /** *
     * A normal request that trying to register change data feed on a region.
     * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ org.tikv.kvproto.Cdcpb.ChangeDataRequest.RegisterOrBuilder getRegisterOrBuilder(); /** *
     * Notify the region that some of the running transactions on the region has a pushed
     * min_commit_ts so that the resolved_ts can be advanced.
     * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ boolean hasNotifyTxnStatus(); /** *
     * Notify the region that some of the running transactions on the region has a pushed
     * min_commit_ts so that the resolved_ts can be advanced.
     * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus getNotifyTxnStatus(); /** *
     * Notify the region that some of the running transactions on the region has a pushed
     * min_commit_ts so that the resolved_ts can be advanced.
     * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatusOrBuilder getNotifyTxnStatusOrBuilder(); public org.tikv.kvproto.Cdcpb.ChangeDataRequest.RequestCase getRequestCase(); } /** * Protobuf type {@code cdcpb.ChangeDataRequest} */ public static final class ChangeDataRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.ChangeDataRequest) ChangeDataRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ChangeDataRequest.newBuilder() to construct. private ChangeDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChangeDataRequest() { regionId_ = 0L; checkpointTs_ = 0L; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; requestId_ = 0L; extraOp_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangeDataRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Cdcpb.Header.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.Cdcpb.Header.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 16: { regionId_ = input.readUInt64(); break; } case 26: { org.tikv.kvproto.Metapb.RegionEpoch.Builder subBuilder = null; if (regionEpoch_ != null) { subBuilder = regionEpoch_.toBuilder(); } regionEpoch_ = input.readMessage(org.tikv.kvproto.Metapb.RegionEpoch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionEpoch_); regionEpoch_ = subBuilder.buildPartial(); } break; } case 32: { checkpointTs_ = input.readUInt64(); break; } case 42: { startKey_ = input.readBytes(); break; } case 50: { endKey_ = input.readBytes(); break; } case 56: { requestId_ = input.readUInt64(); break; } case 64: { int rawValue = input.readEnum(); extraOp_ = rawValue; break; } case 74: { org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.Builder subBuilder = null; if (requestCase_ == 9) { subBuilder = ((org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) request_).toBuilder(); } request_ = input.readMessage(org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 9; break; } case 82: { org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.Builder subBuilder = null; if (requestCase_ == 10) { subBuilder = ((org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) request_).toBuilder(); } request_ = input.readMessage(org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 10; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.ChangeDataRequest.class, org.tikv.kvproto.Cdcpb.ChangeDataRequest.Builder.class); } public interface RegisterOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.ChangeDataRequest.Register) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code cdcpb.ChangeDataRequest.Register} */ public static final class Register extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.ChangeDataRequest.Register) RegisterOrBuilder { private static final long serialVersionUID = 0L; // Use Register.newBuilder() to construct. private Register(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Register() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Register( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_Register_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_Register_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.class, org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.Builder.class); } 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 { unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register other = (org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) obj; boolean result = true; result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.ChangeDataRequest.Register} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.ChangeDataRequest.Register) org.tikv.kvproto.Cdcpb.ChangeDataRequest.RegisterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_Register_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_Register_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.class, org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_Register_descriptor; } public org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register build() { org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register buildPartial() { org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register result = new org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register(this); onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) { return mergeFrom((org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register other) { if (other == org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.ChangeDataRequest.Register) } // @@protoc_insertion_point(class_scope:cdcpb.ChangeDataRequest.Register) private static final org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register(); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Register parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Register(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NotifyTxnStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:cdcpb.ChangeDataRequest.NotifyTxnStatus) com.google.protobuf.MessageOrBuilder { /** * repeated .cdcpb.TxnStatus txn_status = 1; */ java.util.List getTxnStatusList(); /** * repeated .cdcpb.TxnStatus txn_status = 1; */ org.tikv.kvproto.Cdcpb.TxnStatus getTxnStatus(int index); /** * repeated .cdcpb.TxnStatus txn_status = 1; */ int getTxnStatusCount(); /** * repeated .cdcpb.TxnStatus txn_status = 1; */ java.util.List getTxnStatusOrBuilderList(); /** * repeated .cdcpb.TxnStatus txn_status = 1; */ org.tikv.kvproto.Cdcpb.TxnStatusOrBuilder getTxnStatusOrBuilder( int index); } /** * Protobuf type {@code cdcpb.ChangeDataRequest.NotifyTxnStatus} */ public static final class NotifyTxnStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:cdcpb.ChangeDataRequest.NotifyTxnStatus) NotifyTxnStatusOrBuilder { private static final long serialVersionUID = 0L; // Use NotifyTxnStatus.newBuilder() to construct. private NotifyTxnStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NotifyTxnStatus() { txnStatus_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NotifyTxnStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { txnStatus_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } txnStatus_.add( input.readMessage(org.tikv.kvproto.Cdcpb.TxnStatus.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).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { txnStatus_ = java.util.Collections.unmodifiableList(txnStatus_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_NotifyTxnStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_NotifyTxnStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.class, org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.Builder.class); } public static final int TXN_STATUS_FIELD_NUMBER = 1; private java.util.List txnStatus_; /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public java.util.List getTxnStatusList() { return txnStatus_; } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public java.util.List getTxnStatusOrBuilderList() { return txnStatus_; } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public int getTxnStatusCount() { return txnStatus_.size(); } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public org.tikv.kvproto.Cdcpb.TxnStatus getTxnStatus(int index) { return txnStatus_.get(index); } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public org.tikv.kvproto.Cdcpb.TxnStatusOrBuilder getTxnStatusOrBuilder( int index) { return txnStatus_.get(index); } 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 { for (int i = 0; i < txnStatus_.size(); i++) { output.writeMessage(1, txnStatus_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < txnStatus_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, txnStatus_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus other = (org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) obj; boolean result = true; result = result && getTxnStatusList() .equals(other.getTxnStatusList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTxnStatusCount() > 0) { hash = (37 * hash) + TXN_STATUS_FIELD_NUMBER; hash = (53 * hash) + getTxnStatusList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.ChangeDataRequest.NotifyTxnStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.ChangeDataRequest.NotifyTxnStatus) org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_NotifyTxnStatus_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_NotifyTxnStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.class, org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTxnStatusFieldBuilder(); } } public Builder clear() { super.clear(); if (txnStatusBuilder_ == null) { txnStatus_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { txnStatusBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_NotifyTxnStatus_descriptor; } public org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus build() { org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus buildPartial() { org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus result = new org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus(this); int from_bitField0_ = bitField0_; if (txnStatusBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { txnStatus_ = java.util.Collections.unmodifiableList(txnStatus_); bitField0_ = (bitField0_ & ~0x00000001); } result.txnStatus_ = txnStatus_; } else { result.txnStatus_ = txnStatusBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) { return mergeFrom((org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus other) { if (other == org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.getDefaultInstance()) return this; if (txnStatusBuilder_ == null) { if (!other.txnStatus_.isEmpty()) { if (txnStatus_.isEmpty()) { txnStatus_ = other.txnStatus_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTxnStatusIsMutable(); txnStatus_.addAll(other.txnStatus_); } onChanged(); } } else { if (!other.txnStatus_.isEmpty()) { if (txnStatusBuilder_.isEmpty()) { txnStatusBuilder_.dispose(); txnStatusBuilder_ = null; txnStatus_ = other.txnStatus_; bitField0_ = (bitField0_ & ~0x00000001); txnStatusBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTxnStatusFieldBuilder() : null; } else { txnStatusBuilder_.addAllMessages(other.txnStatus_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List txnStatus_ = java.util.Collections.emptyList(); private void ensureTxnStatusIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { txnStatus_ = new java.util.ArrayList(txnStatus_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.TxnStatus, org.tikv.kvproto.Cdcpb.TxnStatus.Builder, org.tikv.kvproto.Cdcpb.TxnStatusOrBuilder> txnStatusBuilder_; /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public java.util.List getTxnStatusList() { if (txnStatusBuilder_ == null) { return java.util.Collections.unmodifiableList(txnStatus_); } else { return txnStatusBuilder_.getMessageList(); } } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public int getTxnStatusCount() { if (txnStatusBuilder_ == null) { return txnStatus_.size(); } else { return txnStatusBuilder_.getCount(); } } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public org.tikv.kvproto.Cdcpb.TxnStatus getTxnStatus(int index) { if (txnStatusBuilder_ == null) { return txnStatus_.get(index); } else { return txnStatusBuilder_.getMessage(index); } } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public Builder setTxnStatus( int index, org.tikv.kvproto.Cdcpb.TxnStatus value) { if (txnStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTxnStatusIsMutable(); txnStatus_.set(index, value); onChanged(); } else { txnStatusBuilder_.setMessage(index, value); } return this; } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public Builder setTxnStatus( int index, org.tikv.kvproto.Cdcpb.TxnStatus.Builder builderForValue) { if (txnStatusBuilder_ == null) { ensureTxnStatusIsMutable(); txnStatus_.set(index, builderForValue.build()); onChanged(); } else { txnStatusBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public Builder addTxnStatus(org.tikv.kvproto.Cdcpb.TxnStatus value) { if (txnStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTxnStatusIsMutable(); txnStatus_.add(value); onChanged(); } else { txnStatusBuilder_.addMessage(value); } return this; } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public Builder addTxnStatus( int index, org.tikv.kvproto.Cdcpb.TxnStatus value) { if (txnStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTxnStatusIsMutable(); txnStatus_.add(index, value); onChanged(); } else { txnStatusBuilder_.addMessage(index, value); } return this; } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public Builder addTxnStatus( org.tikv.kvproto.Cdcpb.TxnStatus.Builder builderForValue) { if (txnStatusBuilder_ == null) { ensureTxnStatusIsMutable(); txnStatus_.add(builderForValue.build()); onChanged(); } else { txnStatusBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public Builder addTxnStatus( int index, org.tikv.kvproto.Cdcpb.TxnStatus.Builder builderForValue) { if (txnStatusBuilder_ == null) { ensureTxnStatusIsMutable(); txnStatus_.add(index, builderForValue.build()); onChanged(); } else { txnStatusBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public Builder addAllTxnStatus( java.lang.Iterable values) { if (txnStatusBuilder_ == null) { ensureTxnStatusIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, txnStatus_); onChanged(); } else { txnStatusBuilder_.addAllMessages(values); } return this; } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public Builder clearTxnStatus() { if (txnStatusBuilder_ == null) { txnStatus_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { txnStatusBuilder_.clear(); } return this; } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public Builder removeTxnStatus(int index) { if (txnStatusBuilder_ == null) { ensureTxnStatusIsMutable(); txnStatus_.remove(index); onChanged(); } else { txnStatusBuilder_.remove(index); } return this; } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public org.tikv.kvproto.Cdcpb.TxnStatus.Builder getTxnStatusBuilder( int index) { return getTxnStatusFieldBuilder().getBuilder(index); } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public org.tikv.kvproto.Cdcpb.TxnStatusOrBuilder getTxnStatusOrBuilder( int index) { if (txnStatusBuilder_ == null) { return txnStatus_.get(index); } else { return txnStatusBuilder_.getMessageOrBuilder(index); } } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public java.util.List getTxnStatusOrBuilderList() { if (txnStatusBuilder_ != null) { return txnStatusBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(txnStatus_); } } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public org.tikv.kvproto.Cdcpb.TxnStatus.Builder addTxnStatusBuilder() { return getTxnStatusFieldBuilder().addBuilder( org.tikv.kvproto.Cdcpb.TxnStatus.getDefaultInstance()); } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public org.tikv.kvproto.Cdcpb.TxnStatus.Builder addTxnStatusBuilder( int index) { return getTxnStatusFieldBuilder().addBuilder( index, org.tikv.kvproto.Cdcpb.TxnStatus.getDefaultInstance()); } /** * repeated .cdcpb.TxnStatus txn_status = 1; */ public java.util.List getTxnStatusBuilderList() { return getTxnStatusFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.TxnStatus, org.tikv.kvproto.Cdcpb.TxnStatus.Builder, org.tikv.kvproto.Cdcpb.TxnStatusOrBuilder> getTxnStatusFieldBuilder() { if (txnStatusBuilder_ == null) { txnStatusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Cdcpb.TxnStatus, org.tikv.kvproto.Cdcpb.TxnStatus.Builder, org.tikv.kvproto.Cdcpb.TxnStatusOrBuilder>( txnStatus_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); txnStatus_ = null; } return txnStatusBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.ChangeDataRequest.NotifyTxnStatus) } // @@protoc_insertion_point(class_scope:cdcpb.ChangeDataRequest.NotifyTxnStatus) private static final org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus(); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NotifyTxnStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NotifyTxnStatus(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int requestCase_ = 0; private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite { REGISTER(9), NOTIFY_TXN_STATUS(10), REQUEST_NOT_SET(0); private final int value; private RequestCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RequestCase valueOf(int value) { return forNumber(value); } public static RequestCase forNumber(int value) { switch (value) { case 9: return REGISTER; case 10: return NOTIFY_TXN_STATUS; case 0: return REQUEST_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Cdcpb.Header header_; /** * .cdcpb.Header header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .cdcpb.Header header = 1; */ public org.tikv.kvproto.Cdcpb.Header getHeader() { return header_ == null ? org.tikv.kvproto.Cdcpb.Header.getDefaultInstance() : header_; } /** * .cdcpb.Header header = 1; */ public org.tikv.kvproto.Cdcpb.HeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REGION_ID_FIELD_NUMBER = 2; private long regionId_; /** * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } public static final int REGION_EPOCH_FIELD_NUMBER = 3; private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_; /** * .metapb.RegionEpoch region_epoch = 3; */ public boolean hasRegionEpoch() { return regionEpoch_ != null; } /** * .metapb.RegionEpoch region_epoch = 3; */ public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } /** * .metapb.RegionEpoch region_epoch = 3; */ public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() { return getRegionEpoch(); } public static final int CHECKPOINT_TS_FIELD_NUMBER = 4; private long checkpointTs_; /** * uint64 checkpoint_ts = 4; */ public long getCheckpointTs() { return checkpointTs_; } public static final int START_KEY_FIELD_NUMBER = 5; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 5; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 6; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 6; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int REQUEST_ID_FIELD_NUMBER = 7; private long requestId_; /** *
     * Used for CDC to identify events corresponding to different requests.
     * 
* * uint64 request_id = 7; */ public long getRequestId() { return requestId_; } public static final int EXTRA_OP_FIELD_NUMBER = 8; private int extraOp_; /** * .kvrpcpb.ExtraOp extra_op = 8; */ public int getExtraOpValue() { return extraOp_; } /** * .kvrpcpb.ExtraOp extra_op = 8; */ public org.tikv.kvproto.Kvrpcpb.ExtraOp getExtraOp() { org.tikv.kvproto.Kvrpcpb.ExtraOp result = org.tikv.kvproto.Kvrpcpb.ExtraOp.valueOf(extraOp_); return result == null ? org.tikv.kvproto.Kvrpcpb.ExtraOp.UNRECOGNIZED : result; } public static final int REGISTER_FIELD_NUMBER = 9; /** *
     * A normal request that trying to register change data feed on a region.
     * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ public boolean hasRegister() { return requestCase_ == 9; } /** *
     * A normal request that trying to register change data feed on a region.
     * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ public org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register getRegister() { if (requestCase_ == 9) { return (org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) request_; } return org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.getDefaultInstance(); } /** *
     * A normal request that trying to register change data feed on a region.
     * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ public org.tikv.kvproto.Cdcpb.ChangeDataRequest.RegisterOrBuilder getRegisterOrBuilder() { if (requestCase_ == 9) { return (org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) request_; } return org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.getDefaultInstance(); } public static final int NOTIFY_TXN_STATUS_FIELD_NUMBER = 10; /** *
     * Notify the region that some of the running transactions on the region has a pushed
     * min_commit_ts so that the resolved_ts can be advanced.
     * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ public boolean hasNotifyTxnStatus() { return requestCase_ == 10; } /** *
     * Notify the region that some of the running transactions on the region has a pushed
     * min_commit_ts so that the resolved_ts can be advanced.
     * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ public org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus getNotifyTxnStatus() { if (requestCase_ == 10) { return (org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) request_; } return org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.getDefaultInstance(); } /** *
     * Notify the region that some of the running transactions on the region has a pushed
     * min_commit_ts so that the resolved_ts can be advanced.
     * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ public org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatusOrBuilder getNotifyTxnStatusOrBuilder() { if (requestCase_ == 10) { return (org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) request_; } return org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.getDefaultInstance(); } 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 { if (header_ != null) { output.writeMessage(1, getHeader()); } if (regionId_ != 0L) { output.writeUInt64(2, regionId_); } if (regionEpoch_ != null) { output.writeMessage(3, getRegionEpoch()); } if (checkpointTs_ != 0L) { output.writeUInt64(4, checkpointTs_); } if (!startKey_.isEmpty()) { output.writeBytes(5, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(6, endKey_); } if (requestId_ != 0L) { output.writeUInt64(7, requestId_); } if (extraOp_ != org.tikv.kvproto.Kvrpcpb.ExtraOp.Noop.getNumber()) { output.writeEnum(8, extraOp_); } if (requestCase_ == 9) { output.writeMessage(9, (org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) request_); } if (requestCase_ == 10) { output.writeMessage(10, (org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) request_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, regionId_); } if (regionEpoch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRegionEpoch()); } if (checkpointTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, checkpointTs_); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, endKey_); } if (requestId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, requestId_); } if (extraOp_ != org.tikv.kvproto.Kvrpcpb.ExtraOp.Noop.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, extraOp_); } if (requestCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) request_); } if (requestCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) request_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Cdcpb.ChangeDataRequest)) { return super.equals(obj); } org.tikv.kvproto.Cdcpb.ChangeDataRequest other = (org.tikv.kvproto.Cdcpb.ChangeDataRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (getRegionId() == other.getRegionId()); result = result && (hasRegionEpoch() == other.hasRegionEpoch()); if (hasRegionEpoch()) { result = result && getRegionEpoch() .equals(other.getRegionEpoch()); } result = result && (getCheckpointTs() == other.getCheckpointTs()); result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); result = result && (getRequestId() == other.getRequestId()); result = result && extraOp_ == other.extraOp_; result = result && getRequestCase().equals( other.getRequestCase()); if (!result) return false; switch (requestCase_) { case 9: result = result && getRegister() .equals(other.getRegister()); break; case 10: result = result && getNotifyTxnStatus() .equals(other.getNotifyTxnStatus()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); if (hasRegionEpoch()) { hash = (37 * hash) + REGION_EPOCH_FIELD_NUMBER; hash = (53 * hash) + getRegionEpoch().hashCode(); } hash = (37 * hash) + CHECKPOINT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCheckpointTs()); hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRequestId()); hash = (37 * hash) + EXTRA_OP_FIELD_NUMBER; hash = (53 * hash) + extraOp_; switch (requestCase_) { case 9: hash = (37 * hash) + REGISTER_FIELD_NUMBER; hash = (53 * hash) + getRegister().hashCode(); break; case 10: hash = (37 * hash) + NOTIFY_TXN_STATUS_FIELD_NUMBER; hash = (53 * hash) + getNotifyTxnStatus().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Cdcpb.ChangeDataRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cdcpb.ChangeDataRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cdcpb.ChangeDataRequest) org.tikv.kvproto.Cdcpb.ChangeDataRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Cdcpb.ChangeDataRequest.class, org.tikv.kvproto.Cdcpb.ChangeDataRequest.Builder.class); } // Construct using org.tikv.kvproto.Cdcpb.ChangeDataRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } regionId_ = 0L; if (regionEpochBuilder_ == null) { regionEpoch_ = null; } else { regionEpoch_ = null; regionEpochBuilder_ = null; } checkpointTs_ = 0L; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; requestId_ = 0L; extraOp_ = 0; requestCase_ = 0; request_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Cdcpb.internal_static_cdcpb_ChangeDataRequest_descriptor; } public org.tikv.kvproto.Cdcpb.ChangeDataRequest getDefaultInstanceForType() { return org.tikv.kvproto.Cdcpb.ChangeDataRequest.getDefaultInstance(); } public org.tikv.kvproto.Cdcpb.ChangeDataRequest build() { org.tikv.kvproto.Cdcpb.ChangeDataRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Cdcpb.ChangeDataRequest buildPartial() { org.tikv.kvproto.Cdcpb.ChangeDataRequest result = new org.tikv.kvproto.Cdcpb.ChangeDataRequest(this); if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.regionId_ = regionId_; if (regionEpochBuilder_ == null) { result.regionEpoch_ = regionEpoch_; } else { result.regionEpoch_ = regionEpochBuilder_.build(); } result.checkpointTs_ = checkpointTs_; result.startKey_ = startKey_; result.endKey_ = endKey_; result.requestId_ = requestId_; result.extraOp_ = extraOp_; if (requestCase_ == 9) { if (registerBuilder_ == null) { result.request_ = request_; } else { result.request_ = registerBuilder_.build(); } } if (requestCase_ == 10) { if (notifyTxnStatusBuilder_ == null) { result.request_ = request_; } else { result.request_ = notifyTxnStatusBuilder_.build(); } } result.requestCase_ = requestCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Cdcpb.ChangeDataRequest) { return mergeFrom((org.tikv.kvproto.Cdcpb.ChangeDataRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Cdcpb.ChangeDataRequest other) { if (other == org.tikv.kvproto.Cdcpb.ChangeDataRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } if (other.hasRegionEpoch()) { mergeRegionEpoch(other.getRegionEpoch()); } if (other.getCheckpointTs() != 0L) { setCheckpointTs(other.getCheckpointTs()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } if (other.getRequestId() != 0L) { setRequestId(other.getRequestId()); } if (other.extraOp_ != 0) { setExtraOpValue(other.getExtraOpValue()); } switch (other.getRequestCase()) { case REGISTER: { mergeRegister(other.getRegister()); break; } case NOTIFY_TXN_STATUS: { mergeNotifyTxnStatus(other.getNotifyTxnStatus()); break; } case REQUEST_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); 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 { org.tikv.kvproto.Cdcpb.ChangeDataRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Cdcpb.ChangeDataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int requestCase_ = 0; private java.lang.Object request_; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public Builder clearRequest() { requestCase_ = 0; request_ = null; onChanged(); return this; } private org.tikv.kvproto.Cdcpb.Header header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Header, org.tikv.kvproto.Cdcpb.Header.Builder, org.tikv.kvproto.Cdcpb.HeaderOrBuilder> headerBuilder_; /** * .cdcpb.Header header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .cdcpb.Header header = 1; */ public org.tikv.kvproto.Cdcpb.Header getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.Cdcpb.Header.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .cdcpb.Header header = 1; */ public Builder setHeader(org.tikv.kvproto.Cdcpb.Header value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .cdcpb.Header header = 1; */ public Builder setHeader( org.tikv.kvproto.Cdcpb.Header.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .cdcpb.Header header = 1; */ public Builder mergeHeader(org.tikv.kvproto.Cdcpb.Header value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.Cdcpb.Header.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .cdcpb.Header header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .cdcpb.Header header = 1; */ public org.tikv.kvproto.Cdcpb.Header.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .cdcpb.Header header = 1; */ public org.tikv.kvproto.Cdcpb.HeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.Cdcpb.Header.getDefaultInstance() : header_; } } /** * .cdcpb.Header header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Header, org.tikv.kvproto.Cdcpb.Header.Builder, org.tikv.kvproto.Cdcpb.HeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.Header, org.tikv.kvproto.Cdcpb.Header.Builder, org.tikv.kvproto.Cdcpb.HeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long regionId_ ; /** * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } /** * uint64 region_id = 2; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** * uint64 region_id = 2; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder> regionEpochBuilder_; /** * .metapb.RegionEpoch region_epoch = 3; */ public boolean hasRegionEpoch() { return regionEpochBuilder_ != null || regionEpoch_ != null; } /** * .metapb.RegionEpoch region_epoch = 3; */ public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() { if (regionEpochBuilder_ == null) { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } else { return regionEpochBuilder_.getMessage(); } } /** * .metapb.RegionEpoch region_epoch = 3; */ public Builder setRegionEpoch(org.tikv.kvproto.Metapb.RegionEpoch value) { if (regionEpochBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionEpoch_ = value; onChanged(); } else { regionEpochBuilder_.setMessage(value); } return this; } /** * .metapb.RegionEpoch region_epoch = 3; */ public Builder setRegionEpoch( org.tikv.kvproto.Metapb.RegionEpoch.Builder builderForValue) { if (regionEpochBuilder_ == null) { regionEpoch_ = builderForValue.build(); onChanged(); } else { regionEpochBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.RegionEpoch region_epoch = 3; */ public Builder mergeRegionEpoch(org.tikv.kvproto.Metapb.RegionEpoch value) { if (regionEpochBuilder_ == null) { if (regionEpoch_ != null) { regionEpoch_ = org.tikv.kvproto.Metapb.RegionEpoch.newBuilder(regionEpoch_).mergeFrom(value).buildPartial(); } else { regionEpoch_ = value; } onChanged(); } else { regionEpochBuilder_.mergeFrom(value); } return this; } /** * .metapb.RegionEpoch region_epoch = 3; */ public Builder clearRegionEpoch() { if (regionEpochBuilder_ == null) { regionEpoch_ = null; onChanged(); } else { regionEpoch_ = null; regionEpochBuilder_ = null; } return this; } /** * .metapb.RegionEpoch region_epoch = 3; */ public org.tikv.kvproto.Metapb.RegionEpoch.Builder getRegionEpochBuilder() { onChanged(); return getRegionEpochFieldBuilder().getBuilder(); } /** * .metapb.RegionEpoch region_epoch = 3; */ public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() { if (regionEpochBuilder_ != null) { return regionEpochBuilder_.getMessageOrBuilder(); } else { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } } /** * .metapb.RegionEpoch region_epoch = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder> getRegionEpochFieldBuilder() { if (regionEpochBuilder_ == null) { regionEpochBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder>( getRegionEpoch(), getParentForChildren(), isClean()); regionEpoch_ = null; } return regionEpochBuilder_; } private long checkpointTs_ ; /** * uint64 checkpoint_ts = 4; */ public long getCheckpointTs() { return checkpointTs_; } /** * uint64 checkpoint_ts = 4; */ public Builder setCheckpointTs(long value) { checkpointTs_ = value; onChanged(); return this; } /** * uint64 checkpoint_ts = 4; */ public Builder clearCheckpointTs() { checkpointTs_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 5; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 5; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 5; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 6; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 6; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 6; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private long requestId_ ; /** *
       * Used for CDC to identify events corresponding to different requests.
       * 
* * uint64 request_id = 7; */ public long getRequestId() { return requestId_; } /** *
       * Used for CDC to identify events corresponding to different requests.
       * 
* * uint64 request_id = 7; */ public Builder setRequestId(long value) { requestId_ = value; onChanged(); return this; } /** *
       * Used for CDC to identify events corresponding to different requests.
       * 
* * uint64 request_id = 7; */ public Builder clearRequestId() { requestId_ = 0L; onChanged(); return this; } private int extraOp_ = 0; /** * .kvrpcpb.ExtraOp extra_op = 8; */ public int getExtraOpValue() { return extraOp_; } /** * .kvrpcpb.ExtraOp extra_op = 8; */ public Builder setExtraOpValue(int value) { extraOp_ = value; onChanged(); return this; } /** * .kvrpcpb.ExtraOp extra_op = 8; */ public org.tikv.kvproto.Kvrpcpb.ExtraOp getExtraOp() { org.tikv.kvproto.Kvrpcpb.ExtraOp result = org.tikv.kvproto.Kvrpcpb.ExtraOp.valueOf(extraOp_); return result == null ? org.tikv.kvproto.Kvrpcpb.ExtraOp.UNRECOGNIZED : result; } /** * .kvrpcpb.ExtraOp extra_op = 8; */ public Builder setExtraOp(org.tikv.kvproto.Kvrpcpb.ExtraOp value) { if (value == null) { throw new NullPointerException(); } extraOp_ = value.getNumber(); onChanged(); return this; } /** * .kvrpcpb.ExtraOp extra_op = 8; */ public Builder clearExtraOp() { extraOp_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register, org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.Builder, org.tikv.kvproto.Cdcpb.ChangeDataRequest.RegisterOrBuilder> registerBuilder_; /** *
       * A normal request that trying to register change data feed on a region.
       * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ public boolean hasRegister() { return requestCase_ == 9; } /** *
       * A normal request that trying to register change data feed on a region.
       * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ public org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register getRegister() { if (registerBuilder_ == null) { if (requestCase_ == 9) { return (org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) request_; } return org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.getDefaultInstance(); } else { if (requestCase_ == 9) { return registerBuilder_.getMessage(); } return org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.getDefaultInstance(); } } /** *
       * A normal request that trying to register change data feed on a region.
       * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ public Builder setRegister(org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register value) { if (registerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { registerBuilder_.setMessage(value); } requestCase_ = 9; return this; } /** *
       * A normal request that trying to register change data feed on a region.
       * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ public Builder setRegister( org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.Builder builderForValue) { if (registerBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { registerBuilder_.setMessage(builderForValue.build()); } requestCase_ = 9; return this; } /** *
       * A normal request that trying to register change data feed on a region.
       * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ public Builder mergeRegister(org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register value) { if (registerBuilder_ == null) { if (requestCase_ == 9 && request_ != org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.getDefaultInstance()) { request_ = org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.newBuilder((org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 9) { registerBuilder_.mergeFrom(value); } registerBuilder_.setMessage(value); } requestCase_ = 9; return this; } /** *
       * A normal request that trying to register change data feed on a region.
       * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ public Builder clearRegister() { if (registerBuilder_ == null) { if (requestCase_ == 9) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 9) { requestCase_ = 0; request_ = null; } registerBuilder_.clear(); } return this; } /** *
       * A normal request that trying to register change data feed on a region.
       * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ public org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.Builder getRegisterBuilder() { return getRegisterFieldBuilder().getBuilder(); } /** *
       * A normal request that trying to register change data feed on a region.
       * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ public org.tikv.kvproto.Cdcpb.ChangeDataRequest.RegisterOrBuilder getRegisterOrBuilder() { if ((requestCase_ == 9) && (registerBuilder_ != null)) { return registerBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 9) { return (org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) request_; } return org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.getDefaultInstance(); } } /** *
       * A normal request that trying to register change data feed on a region.
       * 
* * .cdcpb.ChangeDataRequest.Register register = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register, org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.Builder, org.tikv.kvproto.Cdcpb.ChangeDataRequest.RegisterOrBuilder> getRegisterFieldBuilder() { if (registerBuilder_ == null) { if (!(requestCase_ == 9)) { request_ = org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.getDefaultInstance(); } registerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register, org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register.Builder, org.tikv.kvproto.Cdcpb.ChangeDataRequest.RegisterOrBuilder>( (org.tikv.kvproto.Cdcpb.ChangeDataRequest.Register) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 9; onChanged();; return registerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus, org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.Builder, org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatusOrBuilder> notifyTxnStatusBuilder_; /** *
       * Notify the region that some of the running transactions on the region has a pushed
       * min_commit_ts so that the resolved_ts can be advanced.
       * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ public boolean hasNotifyTxnStatus() { return requestCase_ == 10; } /** *
       * Notify the region that some of the running transactions on the region has a pushed
       * min_commit_ts so that the resolved_ts can be advanced.
       * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ public org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus getNotifyTxnStatus() { if (notifyTxnStatusBuilder_ == null) { if (requestCase_ == 10) { return (org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) request_; } return org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.getDefaultInstance(); } else { if (requestCase_ == 10) { return notifyTxnStatusBuilder_.getMessage(); } return org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.getDefaultInstance(); } } /** *
       * Notify the region that some of the running transactions on the region has a pushed
       * min_commit_ts so that the resolved_ts can be advanced.
       * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ public Builder setNotifyTxnStatus(org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus value) { if (notifyTxnStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { notifyTxnStatusBuilder_.setMessage(value); } requestCase_ = 10; return this; } /** *
       * Notify the region that some of the running transactions on the region has a pushed
       * min_commit_ts so that the resolved_ts can be advanced.
       * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ public Builder setNotifyTxnStatus( org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.Builder builderForValue) { if (notifyTxnStatusBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { notifyTxnStatusBuilder_.setMessage(builderForValue.build()); } requestCase_ = 10; return this; } /** *
       * Notify the region that some of the running transactions on the region has a pushed
       * min_commit_ts so that the resolved_ts can be advanced.
       * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ public Builder mergeNotifyTxnStatus(org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus value) { if (notifyTxnStatusBuilder_ == null) { if (requestCase_ == 10 && request_ != org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.getDefaultInstance()) { request_ = org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.newBuilder((org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 10) { notifyTxnStatusBuilder_.mergeFrom(value); } notifyTxnStatusBuilder_.setMessage(value); } requestCase_ = 10; return this; } /** *
       * Notify the region that some of the running transactions on the region has a pushed
       * min_commit_ts so that the resolved_ts can be advanced.
       * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ public Builder clearNotifyTxnStatus() { if (notifyTxnStatusBuilder_ == null) { if (requestCase_ == 10) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 10) { requestCase_ = 0; request_ = null; } notifyTxnStatusBuilder_.clear(); } return this; } /** *
       * Notify the region that some of the running transactions on the region has a pushed
       * min_commit_ts so that the resolved_ts can be advanced.
       * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ public org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.Builder getNotifyTxnStatusBuilder() { return getNotifyTxnStatusFieldBuilder().getBuilder(); } /** *
       * Notify the region that some of the running transactions on the region has a pushed
       * min_commit_ts so that the resolved_ts can be advanced.
       * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ public org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatusOrBuilder getNotifyTxnStatusOrBuilder() { if ((requestCase_ == 10) && (notifyTxnStatusBuilder_ != null)) { return notifyTxnStatusBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 10) { return (org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) request_; } return org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.getDefaultInstance(); } } /** *
       * Notify the region that some of the running transactions on the region has a pushed
       * min_commit_ts so that the resolved_ts can be advanced.
       * 
* * .cdcpb.ChangeDataRequest.NotifyTxnStatus notify_txn_status = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus, org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.Builder, org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatusOrBuilder> getNotifyTxnStatusFieldBuilder() { if (notifyTxnStatusBuilder_ == null) { if (!(requestCase_ == 10)) { request_ = org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.getDefaultInstance(); } notifyTxnStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus, org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus.Builder, org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatusOrBuilder>( (org.tikv.kvproto.Cdcpb.ChangeDataRequest.NotifyTxnStatus) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 10; onChanged();; return notifyTxnStatusBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cdcpb.ChangeDataRequest) } // @@protoc_insertion_point(class_scope:cdcpb.ChangeDataRequest) private static final org.tikv.kvproto.Cdcpb.ChangeDataRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Cdcpb.ChangeDataRequest(); } public static org.tikv.kvproto.Cdcpb.ChangeDataRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChangeDataRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChangeDataRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Cdcpb.ChangeDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_Header_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_Header_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_DuplicateRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_DuplicateRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_Compatibility_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_Compatibility_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_Error_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_Error_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_TxnInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_TxnInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_TxnStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_TxnStatus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_Event_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_Event_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_Event_Row_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_Event_Row_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_Event_Entries_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_Event_Entries_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_Event_Admin_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_Event_Admin_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_Event_LongTxn_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_Event_LongTxn_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_ChangeDataEvent_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_ChangeDataEvent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_ResolvedTs_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_ResolvedTs_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_ChangeDataRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_ChangeDataRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_ChangeDataRequest_Register_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_ChangeDataRequest_Register_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_cdcpb_ChangeDataRequest_NotifyTxnStatus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_cdcpb_ChangeDataRequest_NotifyTxnStatus_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\013cdcpb.proto\022\005cdcpb\032\020raft_cmdpb.proto\032\014" + "metapb.proto\032\rerrorpb.proto\032\rkvrpcpb.pro" + "to\032\024gogoproto/gogo.proto\032\017rustproto.prot" + "o\"3\n\006Header\022\022\n\ncluster_id\030\001 \001(\004\022\025\n\rticdc" + "_version\030\002 \001(\t\"%\n\020DuplicateRequest\022\021\n\tre" + "gion_id\030\001 \001(\004\")\n\rCompatibility\022\030\n\020requir" + "ed_version\030\001 \001(\t\"\364\001\n\005Error\022&\n\nnot_leader" + "\030\001 \001(\0132\022.errorpb.NotLeader\0221\n\020region_not" + "_found\030\002 \001(\0132\027.errorpb.RegionNotFound\022/\n" + "\017epoch_not_match\030\003 \001(\0132\026.errorpb.EpochNo" + "tMatch\0222\n\021duplicate_request\030\004 \001(\0132\027.cdcp" + "b.DuplicateRequest\022+\n\rcompatibility\030\005 \001(" + "\0132\024.cdcpb.Compatibility\",\n\007TxnInfo\022\020\n\010st" + "art_ts\030\001 \001(\004\022\017\n\007primary\030\002 \001(\014\"_\n\tTxnStat" + "us\022\020\n\010start_ts\030\001 \001(\004\022\025\n\rmin_commit_ts\030\002 " + "\001(\004\022\021\n\tcommit_ts\030\003 \001(\004\022\026\n\016is_rolled_back" + "\030\004 \001(\010\"\366\005\n\005Event\022\021\n\tregion_id\030\001 \001(\004\022\r\n\005i" + "ndex\030\002 \001(\004\022\022\n\nrequest_id\030\007 \001(\004\022\'\n\007entrie" + "s\030\003 \001(\0132\024.cdcpb.Event.EntriesH\000\022#\n\005admin" + "\030\004 \001(\0132\022.cdcpb.Event.AdminH\000\022\035\n\005error\030\005 " + "\001(\0132\014.cdcpb.ErrorH\000\022\031\n\013resolved_ts\030\006 \001(\004" + "B\002\030\001H\000\022(\n\010long_txn\030\010 \001(\0132\024.cdcpb.Event.L" + "ongTxnH\000\032\323\001\n\003Row\022\020\n\010start_ts\030\001 \001(\004\022\021\n\tco" + "mmit_ts\030\002 \001(\004\022\"\n\004type\030\003 \001(\0162\024.cdcpb.Even" + "t.LogType\022(\n\007op_type\030\004 \001(\0162\027.cdcpb.Event" + ".Row.OpType\022\013\n\003key\030\005 \001(\014\022\r\n\005value\030\006 \001(\014\022" + "\021\n\told_value\030\007 \001(\014\"*\n\006OpType\022\013\n\007UNKNOWN\020" + "\000\022\007\n\003PUT\020\001\022\n\n\006DELETE\020\002\032,\n\007Entries\022!\n\007ent" + "ries\030\001 \003(\0132\020.cdcpb.Event.Row\032k\n\005Admin\022/\n" + "\radmin_request\030\001 \001(\0132\030.raft_cmdpb.AdminR" + "equest\0221\n\016admin_response\030\002 \001(\0132\031.raft_cm" + "dpb.AdminResponse\032+\n\007LongTxn\022 \n\010txn_info" + "\030\001 \003(\0132\016.cdcpb.TxnInfo\"^\n\007LogType\022\013\n\007UNK" + "NOWN\020\000\022\014\n\010PREWRITE\020\001\022\n\n\006COMMIT\020\002\022\014\n\010ROLL" + "BACK\020\003\022\r\n\tCOMMITTED\020\004\022\017\n\013INITIALIZED\020\005B\007" + "\n\005event\"W\n\017ChangeDataEvent\022\034\n\006events\030\001 \003" + "(\0132\014.cdcpb.Event\022&\n\013resolved_ts\030\002 \001(\0132\021." + "cdcpb.ResolvedTs\")\n\nResolvedTs\022\017\n\007region" + "s\030\001 \003(\004\022\n\n\002ts\030\002 \001(\004\"\261\003\n\021ChangeDataReques" + "t\022\035\n\006header\030\001 \001(\0132\r.cdcpb.Header\022\021\n\tregi" + "on_id\030\002 \001(\004\022)\n\014region_epoch\030\003 \001(\0132\023.meta" + "pb.RegionEpoch\022\025\n\rcheckpoint_ts\030\004 \001(\004\022\021\n" + "\tstart_key\030\005 \001(\014\022\017\n\007end_key\030\006 \001(\014\022\022\n\nreq" + "uest_id\030\007 \001(\004\022\"\n\010extra_op\030\010 \001(\0162\020.kvrpcp" + "b.ExtraOp\0225\n\010register\030\t \001(\0132!.cdcpb.Chan" + "geDataRequest.RegisterH\000\022E\n\021notify_txn_s" + "tatus\030\n \001(\0132(.cdcpb.ChangeDataRequest.No" + "tifyTxnStatusH\000\032\n\n\010Register\0327\n\017NotifyTxn" + "Status\022$\n\ntxn_status\030\001 \003(\0132\020.cdcpb.TxnSt" + "atusB\t\n\007request2O\n\nChangeData\022A\n\tEventFe" + "ed\022\030.cdcpb.ChangeDataRequest\032\026.cdcpb.Cha" + "ngeDataEvent(\0010\001B\"\n\020org.tikv.kvproto\340\342\036\001" + "\310\342\036\001\320\342\036\001\330\250\010\001b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tikv.kvproto.RaftCmdpb.getDescriptor(), org.tikv.kvproto.Metapb.getDescriptor(), org.tikv.kvproto.Errorpb.getDescriptor(), org.tikv.kvproto.Kvrpcpb.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), rustproto.Rustproto.getDescriptor(), }, assigner); internal_static_cdcpb_Header_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_cdcpb_Header_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_Header_descriptor, new java.lang.String[] { "ClusterId", "TicdcVersion", }); internal_static_cdcpb_DuplicateRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_cdcpb_DuplicateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_DuplicateRequest_descriptor, new java.lang.String[] { "RegionId", }); internal_static_cdcpb_Compatibility_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_cdcpb_Compatibility_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_Compatibility_descriptor, new java.lang.String[] { "RequiredVersion", }); internal_static_cdcpb_Error_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_cdcpb_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_Error_descriptor, new java.lang.String[] { "NotLeader", "RegionNotFound", "EpochNotMatch", "DuplicateRequest", "Compatibility", }); internal_static_cdcpb_TxnInfo_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_cdcpb_TxnInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_TxnInfo_descriptor, new java.lang.String[] { "StartTs", "Primary", }); internal_static_cdcpb_TxnStatus_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_cdcpb_TxnStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_TxnStatus_descriptor, new java.lang.String[] { "StartTs", "MinCommitTs", "CommitTs", "IsRolledBack", }); internal_static_cdcpb_Event_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_cdcpb_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_Event_descriptor, new java.lang.String[] { "RegionId", "Index", "RequestId", "Entries", "Admin", "Error", "ResolvedTs", "LongTxn", "Event", }); internal_static_cdcpb_Event_Row_descriptor = internal_static_cdcpb_Event_descriptor.getNestedTypes().get(0); internal_static_cdcpb_Event_Row_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_Event_Row_descriptor, new java.lang.String[] { "StartTs", "CommitTs", "Type", "OpType", "Key", "Value", "OldValue", }); internal_static_cdcpb_Event_Entries_descriptor = internal_static_cdcpb_Event_descriptor.getNestedTypes().get(1); internal_static_cdcpb_Event_Entries_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_Event_Entries_descriptor, new java.lang.String[] { "Entries", }); internal_static_cdcpb_Event_Admin_descriptor = internal_static_cdcpb_Event_descriptor.getNestedTypes().get(2); internal_static_cdcpb_Event_Admin_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_Event_Admin_descriptor, new java.lang.String[] { "AdminRequest", "AdminResponse", }); internal_static_cdcpb_Event_LongTxn_descriptor = internal_static_cdcpb_Event_descriptor.getNestedTypes().get(3); internal_static_cdcpb_Event_LongTxn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_Event_LongTxn_descriptor, new java.lang.String[] { "TxnInfo", }); internal_static_cdcpb_ChangeDataEvent_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_cdcpb_ChangeDataEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_ChangeDataEvent_descriptor, new java.lang.String[] { "Events", "ResolvedTs", }); internal_static_cdcpb_ResolvedTs_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_cdcpb_ResolvedTs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_ResolvedTs_descriptor, new java.lang.String[] { "Regions", "Ts", }); internal_static_cdcpb_ChangeDataRequest_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_cdcpb_ChangeDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_ChangeDataRequest_descriptor, new java.lang.String[] { "Header", "RegionId", "RegionEpoch", "CheckpointTs", "StartKey", "EndKey", "RequestId", "ExtraOp", "Register", "NotifyTxnStatus", "Request", }); internal_static_cdcpb_ChangeDataRequest_Register_descriptor = internal_static_cdcpb_ChangeDataRequest_descriptor.getNestedTypes().get(0); internal_static_cdcpb_ChangeDataRequest_Register_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_ChangeDataRequest_Register_descriptor, new java.lang.String[] { }); internal_static_cdcpb_ChangeDataRequest_NotifyTxnStatus_descriptor = internal_static_cdcpb_ChangeDataRequest_descriptor.getNestedTypes().get(1); internal_static_cdcpb_ChangeDataRequest_NotifyTxnStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_cdcpb_ChangeDataRequest_NotifyTxnStatus_descriptor, new java.lang.String[] { "TxnStatus", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.marshalerAll); registry.add(com.google.protobuf.GoGoProtos.sizerAll); registry.add(com.google.protobuf.GoGoProtos.unmarshalerAll); registry.add(rustproto.Rustproto.liteRuntimeAll); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); org.tikv.kvproto.RaftCmdpb.getDescriptor(); org.tikv.kvproto.Metapb.getDescriptor(); org.tikv.kvproto.Errorpb.getDescriptor(); org.tikv.kvproto.Kvrpcpb.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); rustproto.Rustproto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy