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

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

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

package org.tikv.kvproto;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code raft_serverpb.PeerState}
   */
  public enum PeerState
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * Normal = 0;
     */
    Normal(0),
    /**
     * Applying = 1;
     */
    Applying(1),
    /**
     * Tombstone = 2;
     */
    Tombstone(2),
    /**
     * Merging = 3;
     */
    Merging(3),
    UNRECOGNIZED(-1),
    ;

    /**
     * Normal = 0;
     */
    public static final int Normal_VALUE = 0;
    /**
     * Applying = 1;
     */
    public static final int Applying_VALUE = 1;
    /**
     * Tombstone = 2;
     */
    public static final int Tombstone_VALUE = 2;
    /**
     * Merging = 3;
     */
    public static final int Merging_VALUE = 3;


    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 PeerState valueOf(int value) {
      return forNumber(value);
    }

    public static PeerState forNumber(int value) {
      switch (value) {
        case 0: return Normal;
        case 1: return Applying;
        case 2: return Tombstone;
        case 3: return Merging;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        PeerState> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public PeerState findValueByNumber(int number) {
              return PeerState.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.RaftServerpb.getDescriptor().getEnumTypes().get(0);
    }

    private static final PeerState[] VALUES = values();

    public static PeerState 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 PeerState(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:raft_serverpb.PeerState)
  }

  /**
   * Protobuf enum {@code raft_serverpb.ExtraMessageType}
   */
  public enum ExtraMessageType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * MsgRegionWakeUp = 0;
     */
    MsgRegionWakeUp(0),
    /**
     * MsgWantRollbackMerge = 1;
     */
    MsgWantRollbackMerge(1),
    /**
     * MsgCheckStalePeer = 2;
     */
    MsgCheckStalePeer(2),
    /**
     * MsgCheckStalePeerResponse = 3;
     */
    MsgCheckStalePeerResponse(3),
    /**
     * 
     * If leader is going to sleep, it will send requests to all its followers
     * to make sure they all agree to sleep.
     * 
* * MsgHibernateRequest = 4; */ MsgHibernateRequest(4), /** * MsgHibernateResponse = 5; */ MsgHibernateResponse(5), UNRECOGNIZED(-1), ; /** * MsgRegionWakeUp = 0; */ public static final int MsgRegionWakeUp_VALUE = 0; /** * MsgWantRollbackMerge = 1; */ public static final int MsgWantRollbackMerge_VALUE = 1; /** * MsgCheckStalePeer = 2; */ public static final int MsgCheckStalePeer_VALUE = 2; /** * MsgCheckStalePeerResponse = 3; */ public static final int MsgCheckStalePeerResponse_VALUE = 3; /** *
     * If leader is going to sleep, it will send requests to all its followers
     * to make sure they all agree to sleep.
     * 
* * MsgHibernateRequest = 4; */ public static final int MsgHibernateRequest_VALUE = 4; /** * MsgHibernateResponse = 5; */ public static final int MsgHibernateResponse_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 ExtraMessageType valueOf(int value) { return forNumber(value); } public static ExtraMessageType forNumber(int value) { switch (value) { case 0: return MsgRegionWakeUp; case 1: return MsgWantRollbackMerge; case 2: return MsgCheckStalePeer; case 3: return MsgCheckStalePeerResponse; case 4: return MsgHibernateRequest; case 5: return MsgHibernateResponse; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ExtraMessageType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ExtraMessageType findValueByNumber(int number) { return ExtraMessageType.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.RaftServerpb.getDescriptor().getEnumTypes().get(1); } private static final ExtraMessageType[] VALUES = values(); public static ExtraMessageType 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 ExtraMessageType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:raft_serverpb.ExtraMessageType) } public interface RaftMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.RaftMessage) com.google.protobuf.MessageOrBuilder { /** * uint64 region_id = 1; */ long getRegionId(); /** * .metapb.Peer from_peer = 2; */ boolean hasFromPeer(); /** * .metapb.Peer from_peer = 2; */ org.tikv.kvproto.Metapb.Peer getFromPeer(); /** * .metapb.Peer from_peer = 2; */ org.tikv.kvproto.Metapb.PeerOrBuilder getFromPeerOrBuilder(); /** * .metapb.Peer to_peer = 3; */ boolean hasToPeer(); /** * .metapb.Peer to_peer = 3; */ org.tikv.kvproto.Metapb.Peer getToPeer(); /** * .metapb.Peer to_peer = 3; */ org.tikv.kvproto.Metapb.PeerOrBuilder getToPeerOrBuilder(); /** * .eraftpb.Message message = 4; */ boolean hasMessage(); /** * .eraftpb.Message message = 4; */ eraftpb.Eraftpb.Message getMessage(); /** * .eraftpb.Message message = 4; */ eraftpb.Eraftpb.MessageOrBuilder getMessageOrBuilder(); /** * .metapb.RegionEpoch region_epoch = 5; */ boolean hasRegionEpoch(); /** * .metapb.RegionEpoch region_epoch = 5; */ org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch(); /** * .metapb.RegionEpoch region_epoch = 5; */ org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder(); /** *
     * true means to_peer is a tombstone peer and it should remove itself.
     * 
* * bool is_tombstone = 6; */ boolean getIsTombstone(); /** *
     * Region key range [start_key, end_key).
     * 
* * bytes start_key = 7; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 8; */ com.google.protobuf.ByteString getEndKey(); /** *
     * If it has value, to_peer should be removed if merge is never going to complete.
     * 
* * .metapb.Region merge_target = 9; */ boolean hasMergeTarget(); /** *
     * If it has value, to_peer should be removed if merge is never going to complete.
     * 
* * .metapb.Region merge_target = 9; */ org.tikv.kvproto.Metapb.Region getMergeTarget(); /** *
     * If it has value, to_peer should be removed if merge is never going to complete.
     * 
* * .metapb.Region merge_target = 9; */ org.tikv.kvproto.Metapb.RegionOrBuilder getMergeTargetOrBuilder(); /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ boolean hasExtraMsg(); /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ org.tikv.kvproto.RaftServerpb.ExtraMessage getExtraMsg(); /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ org.tikv.kvproto.RaftServerpb.ExtraMessageOrBuilder getExtraMsgOrBuilder(); } /** * Protobuf type {@code raft_serverpb.RaftMessage} */ public static final class RaftMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.RaftMessage) RaftMessageOrBuilder { private static final long serialVersionUID = 0L; // Use RaftMessage.newBuilder() to construct. private RaftMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaftMessage() { regionId_ = 0L; isTombstone_ = false; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RaftMessage( 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 18: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (fromPeer_ != null) { subBuilder = fromPeer_.toBuilder(); } fromPeer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fromPeer_); fromPeer_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (toPeer_ != null) { subBuilder = toPeer_.toBuilder(); } toPeer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(toPeer_); toPeer_ = subBuilder.buildPartial(); } break; } case 34: { eraftpb.Eraftpb.Message.Builder subBuilder = null; if (message_ != null) { subBuilder = message_.toBuilder(); } message_ = input.readMessage(eraftpb.Eraftpb.Message.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(message_); message_ = subBuilder.buildPartial(); } break; } case 42: { 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 48: { isTombstone_ = input.readBool(); break; } case 58: { startKey_ = input.readBytes(); break; } case 66: { endKey_ = input.readBytes(); break; } case 74: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (mergeTarget_ != null) { subBuilder = mergeTarget_.toBuilder(); } mergeTarget_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mergeTarget_); mergeTarget_ = subBuilder.buildPartial(); } break; } case 82: { org.tikv.kvproto.RaftServerpb.ExtraMessage.Builder subBuilder = null; if (extraMsg_ != null) { subBuilder = extraMsg_.toBuilder(); } extraMsg_ = input.readMessage(org.tikv.kvproto.RaftServerpb.ExtraMessage.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(extraMsg_); extraMsg_ = 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.RaftServerpb.internal_static_raft_serverpb_RaftMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RaftMessage.class, org.tikv.kvproto.RaftServerpb.RaftMessage.Builder.class); } 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 FROM_PEER_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Peer fromPeer_; /** * .metapb.Peer from_peer = 2; */ public boolean hasFromPeer() { return fromPeer_ != null; } /** * .metapb.Peer from_peer = 2; */ public org.tikv.kvproto.Metapb.Peer getFromPeer() { return fromPeer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : fromPeer_; } /** * .metapb.Peer from_peer = 2; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getFromPeerOrBuilder() { return getFromPeer(); } public static final int TO_PEER_FIELD_NUMBER = 3; private org.tikv.kvproto.Metapb.Peer toPeer_; /** * .metapb.Peer to_peer = 3; */ public boolean hasToPeer() { return toPeer_ != null; } /** * .metapb.Peer to_peer = 3; */ public org.tikv.kvproto.Metapb.Peer getToPeer() { return toPeer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : toPeer_; } /** * .metapb.Peer to_peer = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getToPeerOrBuilder() { return getToPeer(); } public static final int MESSAGE_FIELD_NUMBER = 4; private eraftpb.Eraftpb.Message message_; /** * .eraftpb.Message message = 4; */ public boolean hasMessage() { return message_ != null; } /** * .eraftpb.Message message = 4; */ public eraftpb.Eraftpb.Message getMessage() { return message_ == null ? eraftpb.Eraftpb.Message.getDefaultInstance() : message_; } /** * .eraftpb.Message message = 4; */ public eraftpb.Eraftpb.MessageOrBuilder getMessageOrBuilder() { return getMessage(); } public static final int REGION_EPOCH_FIELD_NUMBER = 5; private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_; /** * .metapb.RegionEpoch region_epoch = 5; */ public boolean hasRegionEpoch() { return regionEpoch_ != null; } /** * .metapb.RegionEpoch region_epoch = 5; */ public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } /** * .metapb.RegionEpoch region_epoch = 5; */ public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() { return getRegionEpoch(); } public static final int IS_TOMBSTONE_FIELD_NUMBER = 6; private boolean isTombstone_; /** *
     * true means to_peer is a tombstone peer and it should remove itself.
     * 
* * bool is_tombstone = 6; */ public boolean getIsTombstone() { return isTombstone_; } public static final int START_KEY_FIELD_NUMBER = 7; private com.google.protobuf.ByteString startKey_; /** *
     * Region key range [start_key, end_key).
     * 
* * bytes start_key = 7; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 8; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 8; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int MERGE_TARGET_FIELD_NUMBER = 9; private org.tikv.kvproto.Metapb.Region mergeTarget_; /** *
     * If it has value, to_peer should be removed if merge is never going to complete.
     * 
* * .metapb.Region merge_target = 9; */ public boolean hasMergeTarget() { return mergeTarget_ != null; } /** *
     * If it has value, to_peer should be removed if merge is never going to complete.
     * 
* * .metapb.Region merge_target = 9; */ public org.tikv.kvproto.Metapb.Region getMergeTarget() { return mergeTarget_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : mergeTarget_; } /** *
     * If it has value, to_peer should be removed if merge is never going to complete.
     * 
* * .metapb.Region merge_target = 9; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getMergeTargetOrBuilder() { return getMergeTarget(); } public static final int EXTRA_MSG_FIELD_NUMBER = 10; private org.tikv.kvproto.RaftServerpb.ExtraMessage extraMsg_; /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ public boolean hasExtraMsg() { return extraMsg_ != null; } /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ public org.tikv.kvproto.RaftServerpb.ExtraMessage getExtraMsg() { return extraMsg_ == null ? org.tikv.kvproto.RaftServerpb.ExtraMessage.getDefaultInstance() : extraMsg_; } /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ public org.tikv.kvproto.RaftServerpb.ExtraMessageOrBuilder getExtraMsgOrBuilder() { return getExtraMsg(); } 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 (fromPeer_ != null) { output.writeMessage(2, getFromPeer()); } if (toPeer_ != null) { output.writeMessage(3, getToPeer()); } if (message_ != null) { output.writeMessage(4, getMessage()); } if (regionEpoch_ != null) { output.writeMessage(5, getRegionEpoch()); } if (isTombstone_ != false) { output.writeBool(6, isTombstone_); } if (!startKey_.isEmpty()) { output.writeBytes(7, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(8, endKey_); } if (mergeTarget_ != null) { output.writeMessage(9, getMergeTarget()); } if (extraMsg_ != null) { output.writeMessage(10, getExtraMsg()); } 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 (fromPeer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getFromPeer()); } if (toPeer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getToPeer()); } if (message_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getMessage()); } if (regionEpoch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRegionEpoch()); } if (isTombstone_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, isTombstone_); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, endKey_); } if (mergeTarget_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getMergeTarget()); } if (extraMsg_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getExtraMsg()); } 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.RaftServerpb.RaftMessage)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.RaftMessage other = (org.tikv.kvproto.RaftServerpb.RaftMessage) obj; boolean result = true; result = result && (getRegionId() == other.getRegionId()); result = result && (hasFromPeer() == other.hasFromPeer()); if (hasFromPeer()) { result = result && getFromPeer() .equals(other.getFromPeer()); } result = result && (hasToPeer() == other.hasToPeer()); if (hasToPeer()) { result = result && getToPeer() .equals(other.getToPeer()); } result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage() .equals(other.getMessage()); } result = result && (hasRegionEpoch() == other.hasRegionEpoch()); if (hasRegionEpoch()) { result = result && getRegionEpoch() .equals(other.getRegionEpoch()); } result = result && (getIsTombstone() == other.getIsTombstone()); result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); result = result && (hasMergeTarget() == other.hasMergeTarget()); if (hasMergeTarget()) { result = result && getMergeTarget() .equals(other.getMergeTarget()); } result = result && (hasExtraMsg() == other.hasExtraMsg()); if (hasExtraMsg()) { result = result && getExtraMsg() .equals(other.getExtraMsg()); } 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()); if (hasFromPeer()) { hash = (37 * hash) + FROM_PEER_FIELD_NUMBER; hash = (53 * hash) + getFromPeer().hashCode(); } if (hasToPeer()) { hash = (37 * hash) + TO_PEER_FIELD_NUMBER; hash = (53 * hash) + getToPeer().hashCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (hasRegionEpoch()) { hash = (37 * hash) + REGION_EPOCH_FIELD_NUMBER; hash = (53 * hash) + getRegionEpoch().hashCode(); } hash = (37 * hash) + IS_TOMBSTONE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsTombstone()); hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); if (hasMergeTarget()) { hash = (37 * hash) + MERGE_TARGET_FIELD_NUMBER; hash = (53 * hash) + getMergeTarget().hashCode(); } if (hasExtraMsg()) { hash = (37 * hash) + EXTRA_MSG_FIELD_NUMBER; hash = (53 * hash) + getExtraMsg().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.RaftMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftMessage 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.RaftServerpb.RaftMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftMessage 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.RaftServerpb.RaftMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.RaftMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftMessage 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.RaftServerpb.RaftMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftMessage 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.RaftServerpb.RaftMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftMessage 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.RaftServerpb.RaftMessage 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 raft_serverpb.RaftMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.RaftMessage) org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RaftMessage.class, org.tikv.kvproto.RaftServerpb.RaftMessage.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.RaftMessage.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; if (fromPeerBuilder_ == null) { fromPeer_ = null; } else { fromPeer_ = null; fromPeerBuilder_ = null; } if (toPeerBuilder_ == null) { toPeer_ = null; } else { toPeer_ = null; toPeerBuilder_ = null; } if (messageBuilder_ == null) { message_ = null; } else { message_ = null; messageBuilder_ = null; } if (regionEpochBuilder_ == null) { regionEpoch_ = null; } else { regionEpoch_ = null; regionEpochBuilder_ = null; } isTombstone_ = false; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; if (mergeTargetBuilder_ == null) { mergeTarget_ = null; } else { mergeTarget_ = null; mergeTargetBuilder_ = null; } if (extraMsgBuilder_ == null) { extraMsg_ = null; } else { extraMsg_ = null; extraMsgBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftMessage_descriptor; } public org.tikv.kvproto.RaftServerpb.RaftMessage getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.RaftMessage.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.RaftMessage build() { org.tikv.kvproto.RaftServerpb.RaftMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.RaftMessage buildPartial() { org.tikv.kvproto.RaftServerpb.RaftMessage result = new org.tikv.kvproto.RaftServerpb.RaftMessage(this); result.regionId_ = regionId_; if (fromPeerBuilder_ == null) { result.fromPeer_ = fromPeer_; } else { result.fromPeer_ = fromPeerBuilder_.build(); } if (toPeerBuilder_ == null) { result.toPeer_ = toPeer_; } else { result.toPeer_ = toPeerBuilder_.build(); } if (messageBuilder_ == null) { result.message_ = message_; } else { result.message_ = messageBuilder_.build(); } if (regionEpochBuilder_ == null) { result.regionEpoch_ = regionEpoch_; } else { result.regionEpoch_ = regionEpochBuilder_.build(); } result.isTombstone_ = isTombstone_; result.startKey_ = startKey_; result.endKey_ = endKey_; if (mergeTargetBuilder_ == null) { result.mergeTarget_ = mergeTarget_; } else { result.mergeTarget_ = mergeTargetBuilder_.build(); } if (extraMsgBuilder_ == null) { result.extraMsg_ = extraMsg_; } else { result.extraMsg_ = extraMsgBuilder_.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.RaftServerpb.RaftMessage) { return mergeFrom((org.tikv.kvproto.RaftServerpb.RaftMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.RaftMessage other) { if (other == org.tikv.kvproto.RaftServerpb.RaftMessage.getDefaultInstance()) return this; if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } if (other.hasFromPeer()) { mergeFromPeer(other.getFromPeer()); } if (other.hasToPeer()) { mergeToPeer(other.getToPeer()); } if (other.hasMessage()) { mergeMessage(other.getMessage()); } if (other.hasRegionEpoch()) { mergeRegionEpoch(other.getRegionEpoch()); } if (other.getIsTombstone() != false) { setIsTombstone(other.getIsTombstone()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } if (other.hasMergeTarget()) { mergeMergeTarget(other.getMergeTarget()); } if (other.hasExtraMsg()) { mergeExtraMsg(other.getExtraMsg()); } 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.RaftServerpb.RaftMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.RaftMessage) 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; } private org.tikv.kvproto.Metapb.Peer fromPeer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> fromPeerBuilder_; /** * .metapb.Peer from_peer = 2; */ public boolean hasFromPeer() { return fromPeerBuilder_ != null || fromPeer_ != null; } /** * .metapb.Peer from_peer = 2; */ public org.tikv.kvproto.Metapb.Peer getFromPeer() { if (fromPeerBuilder_ == null) { return fromPeer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : fromPeer_; } else { return fromPeerBuilder_.getMessage(); } } /** * .metapb.Peer from_peer = 2; */ public Builder setFromPeer(org.tikv.kvproto.Metapb.Peer value) { if (fromPeerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fromPeer_ = value; onChanged(); } else { fromPeerBuilder_.setMessage(value); } return this; } /** * .metapb.Peer from_peer = 2; */ public Builder setFromPeer( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (fromPeerBuilder_ == null) { fromPeer_ = builderForValue.build(); onChanged(); } else { fromPeerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer from_peer = 2; */ public Builder mergeFromPeer(org.tikv.kvproto.Metapb.Peer value) { if (fromPeerBuilder_ == null) { if (fromPeer_ != null) { fromPeer_ = org.tikv.kvproto.Metapb.Peer.newBuilder(fromPeer_).mergeFrom(value).buildPartial(); } else { fromPeer_ = value; } onChanged(); } else { fromPeerBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer from_peer = 2; */ public Builder clearFromPeer() { if (fromPeerBuilder_ == null) { fromPeer_ = null; onChanged(); } else { fromPeer_ = null; fromPeerBuilder_ = null; } return this; } /** * .metapb.Peer from_peer = 2; */ public org.tikv.kvproto.Metapb.Peer.Builder getFromPeerBuilder() { onChanged(); return getFromPeerFieldBuilder().getBuilder(); } /** * .metapb.Peer from_peer = 2; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getFromPeerOrBuilder() { if (fromPeerBuilder_ != null) { return fromPeerBuilder_.getMessageOrBuilder(); } else { return fromPeer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : fromPeer_; } } /** * .metapb.Peer from_peer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getFromPeerFieldBuilder() { if (fromPeerBuilder_ == null) { fromPeerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getFromPeer(), getParentForChildren(), isClean()); fromPeer_ = null; } return fromPeerBuilder_; } private org.tikv.kvproto.Metapb.Peer toPeer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> toPeerBuilder_; /** * .metapb.Peer to_peer = 3; */ public boolean hasToPeer() { return toPeerBuilder_ != null || toPeer_ != null; } /** * .metapb.Peer to_peer = 3; */ public org.tikv.kvproto.Metapb.Peer getToPeer() { if (toPeerBuilder_ == null) { return toPeer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : toPeer_; } else { return toPeerBuilder_.getMessage(); } } /** * .metapb.Peer to_peer = 3; */ public Builder setToPeer(org.tikv.kvproto.Metapb.Peer value) { if (toPeerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } toPeer_ = value; onChanged(); } else { toPeerBuilder_.setMessage(value); } return this; } /** * .metapb.Peer to_peer = 3; */ public Builder setToPeer( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (toPeerBuilder_ == null) { toPeer_ = builderForValue.build(); onChanged(); } else { toPeerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer to_peer = 3; */ public Builder mergeToPeer(org.tikv.kvproto.Metapb.Peer value) { if (toPeerBuilder_ == null) { if (toPeer_ != null) { toPeer_ = org.tikv.kvproto.Metapb.Peer.newBuilder(toPeer_).mergeFrom(value).buildPartial(); } else { toPeer_ = value; } onChanged(); } else { toPeerBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer to_peer = 3; */ public Builder clearToPeer() { if (toPeerBuilder_ == null) { toPeer_ = null; onChanged(); } else { toPeer_ = null; toPeerBuilder_ = null; } return this; } /** * .metapb.Peer to_peer = 3; */ public org.tikv.kvproto.Metapb.Peer.Builder getToPeerBuilder() { onChanged(); return getToPeerFieldBuilder().getBuilder(); } /** * .metapb.Peer to_peer = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getToPeerOrBuilder() { if (toPeerBuilder_ != null) { return toPeerBuilder_.getMessageOrBuilder(); } else { return toPeer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : toPeer_; } } /** * .metapb.Peer to_peer = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getToPeerFieldBuilder() { if (toPeerBuilder_ == null) { toPeerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getToPeer(), getParentForChildren(), isClean()); toPeer_ = null; } return toPeerBuilder_; } private eraftpb.Eraftpb.Message message_ = null; private com.google.protobuf.SingleFieldBuilderV3< eraftpb.Eraftpb.Message, eraftpb.Eraftpb.Message.Builder, eraftpb.Eraftpb.MessageOrBuilder> messageBuilder_; /** * .eraftpb.Message message = 4; */ public boolean hasMessage() { return messageBuilder_ != null || message_ != null; } /** * .eraftpb.Message message = 4; */ public eraftpb.Eraftpb.Message getMessage() { if (messageBuilder_ == null) { return message_ == null ? eraftpb.Eraftpb.Message.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } } /** * .eraftpb.Message message = 4; */ public Builder setMessage(eraftpb.Eraftpb.Message value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { messageBuilder_.setMessage(value); } return this; } /** * .eraftpb.Message message = 4; */ public Builder setMessage( eraftpb.Eraftpb.Message.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { messageBuilder_.setMessage(builderForValue.build()); } return this; } /** * .eraftpb.Message message = 4; */ public Builder mergeMessage(eraftpb.Eraftpb.Message value) { if (messageBuilder_ == null) { if (message_ != null) { message_ = eraftpb.Eraftpb.Message.newBuilder(message_).mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { messageBuilder_.mergeFrom(value); } return this; } /** * .eraftpb.Message message = 4; */ public Builder clearMessage() { if (messageBuilder_ == null) { message_ = null; onChanged(); } else { message_ = null; messageBuilder_ = null; } return this; } /** * .eraftpb.Message message = 4; */ public eraftpb.Eraftpb.Message.Builder getMessageBuilder() { onChanged(); return getMessageFieldBuilder().getBuilder(); } /** * .eraftpb.Message message = 4; */ public eraftpb.Eraftpb.MessageOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { return message_ == null ? eraftpb.Eraftpb.Message.getDefaultInstance() : message_; } } /** * .eraftpb.Message message = 4; */ private com.google.protobuf.SingleFieldBuilderV3< eraftpb.Eraftpb.Message, eraftpb.Eraftpb.Message.Builder, eraftpb.Eraftpb.MessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< eraftpb.Eraftpb.Message, eraftpb.Eraftpb.Message.Builder, eraftpb.Eraftpb.MessageOrBuilder>( getMessage(), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; } 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 = 5; */ public boolean hasRegionEpoch() { return regionEpochBuilder_ != null || regionEpoch_ != null; } /** * .metapb.RegionEpoch region_epoch = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ 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 = 5; */ public Builder clearRegionEpoch() { if (regionEpochBuilder_ == null) { regionEpoch_ = null; onChanged(); } else { regionEpoch_ = null; regionEpochBuilder_ = null; } return this; } /** * .metapb.RegionEpoch region_epoch = 5; */ public org.tikv.kvproto.Metapb.RegionEpoch.Builder getRegionEpochBuilder() { onChanged(); return getRegionEpochFieldBuilder().getBuilder(); } /** * .metapb.RegionEpoch region_epoch = 5; */ 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 = 5; */ 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 boolean isTombstone_ ; /** *
       * true means to_peer is a tombstone peer and it should remove itself.
       * 
* * bool is_tombstone = 6; */ public boolean getIsTombstone() { return isTombstone_; } /** *
       * true means to_peer is a tombstone peer and it should remove itself.
       * 
* * bool is_tombstone = 6; */ public Builder setIsTombstone(boolean value) { isTombstone_ = value; onChanged(); return this; } /** *
       * true means to_peer is a tombstone peer and it should remove itself.
       * 
* * bool is_tombstone = 6; */ public Builder clearIsTombstone() { isTombstone_ = false; onChanged(); return this; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Region key range [start_key, end_key).
       * 
* * bytes start_key = 7; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** *
       * Region key range [start_key, end_key).
       * 
* * bytes start_key = 7; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** *
       * Region key range [start_key, end_key).
       * 
* * bytes start_key = 7; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 8; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 8; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 8; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private org.tikv.kvproto.Metapb.Region mergeTarget_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> mergeTargetBuilder_; /** *
       * If it has value, to_peer should be removed if merge is never going to complete.
       * 
* * .metapb.Region merge_target = 9; */ public boolean hasMergeTarget() { return mergeTargetBuilder_ != null || mergeTarget_ != null; } /** *
       * If it has value, to_peer should be removed if merge is never going to complete.
       * 
* * .metapb.Region merge_target = 9; */ public org.tikv.kvproto.Metapb.Region getMergeTarget() { if (mergeTargetBuilder_ == null) { return mergeTarget_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : mergeTarget_; } else { return mergeTargetBuilder_.getMessage(); } } /** *
       * If it has value, to_peer should be removed if merge is never going to complete.
       * 
* * .metapb.Region merge_target = 9; */ public Builder setMergeTarget(org.tikv.kvproto.Metapb.Region value) { if (mergeTargetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mergeTarget_ = value; onChanged(); } else { mergeTargetBuilder_.setMessage(value); } return this; } /** *
       * If it has value, to_peer should be removed if merge is never going to complete.
       * 
* * .metapb.Region merge_target = 9; */ public Builder setMergeTarget( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (mergeTargetBuilder_ == null) { mergeTarget_ = builderForValue.build(); onChanged(); } else { mergeTargetBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * If it has value, to_peer should be removed if merge is never going to complete.
       * 
* * .metapb.Region merge_target = 9; */ public Builder mergeMergeTarget(org.tikv.kvproto.Metapb.Region value) { if (mergeTargetBuilder_ == null) { if (mergeTarget_ != null) { mergeTarget_ = org.tikv.kvproto.Metapb.Region.newBuilder(mergeTarget_).mergeFrom(value).buildPartial(); } else { mergeTarget_ = value; } onChanged(); } else { mergeTargetBuilder_.mergeFrom(value); } return this; } /** *
       * If it has value, to_peer should be removed if merge is never going to complete.
       * 
* * .metapb.Region merge_target = 9; */ public Builder clearMergeTarget() { if (mergeTargetBuilder_ == null) { mergeTarget_ = null; onChanged(); } else { mergeTarget_ = null; mergeTargetBuilder_ = null; } return this; } /** *
       * If it has value, to_peer should be removed if merge is never going to complete.
       * 
* * .metapb.Region merge_target = 9; */ public org.tikv.kvproto.Metapb.Region.Builder getMergeTargetBuilder() { onChanged(); return getMergeTargetFieldBuilder().getBuilder(); } /** *
       * If it has value, to_peer should be removed if merge is never going to complete.
       * 
* * .metapb.Region merge_target = 9; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getMergeTargetOrBuilder() { if (mergeTargetBuilder_ != null) { return mergeTargetBuilder_.getMessageOrBuilder(); } else { return mergeTarget_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : mergeTarget_; } } /** *
       * If it has value, to_peer should be removed if merge is never going to complete.
       * 
* * .metapb.Region merge_target = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getMergeTargetFieldBuilder() { if (mergeTargetBuilder_ == null) { mergeTargetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getMergeTarget(), getParentForChildren(), isClean()); mergeTarget_ = null; } return mergeTargetBuilder_; } private org.tikv.kvproto.RaftServerpb.ExtraMessage extraMsg_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.ExtraMessage, org.tikv.kvproto.RaftServerpb.ExtraMessage.Builder, org.tikv.kvproto.RaftServerpb.ExtraMessageOrBuilder> extraMsgBuilder_; /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ public boolean hasExtraMsg() { return extraMsgBuilder_ != null || extraMsg_ != null; } /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ public org.tikv.kvproto.RaftServerpb.ExtraMessage getExtraMsg() { if (extraMsgBuilder_ == null) { return extraMsg_ == null ? org.tikv.kvproto.RaftServerpb.ExtraMessage.getDefaultInstance() : extraMsg_; } else { return extraMsgBuilder_.getMessage(); } } /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ public Builder setExtraMsg(org.tikv.kvproto.RaftServerpb.ExtraMessage value) { if (extraMsgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extraMsg_ = value; onChanged(); } else { extraMsgBuilder_.setMessage(value); } return this; } /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ public Builder setExtraMsg( org.tikv.kvproto.RaftServerpb.ExtraMessage.Builder builderForValue) { if (extraMsgBuilder_ == null) { extraMsg_ = builderForValue.build(); onChanged(); } else { extraMsgBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ public Builder mergeExtraMsg(org.tikv.kvproto.RaftServerpb.ExtraMessage value) { if (extraMsgBuilder_ == null) { if (extraMsg_ != null) { extraMsg_ = org.tikv.kvproto.RaftServerpb.ExtraMessage.newBuilder(extraMsg_).mergeFrom(value).buildPartial(); } else { extraMsg_ = value; } onChanged(); } else { extraMsgBuilder_.mergeFrom(value); } return this; } /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ public Builder clearExtraMsg() { if (extraMsgBuilder_ == null) { extraMsg_ = null; onChanged(); } else { extraMsg_ = null; extraMsgBuilder_ = null; } return this; } /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ public org.tikv.kvproto.RaftServerpb.ExtraMessage.Builder getExtraMsgBuilder() { onChanged(); return getExtraMsgFieldBuilder().getBuilder(); } /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ public org.tikv.kvproto.RaftServerpb.ExtraMessageOrBuilder getExtraMsgOrBuilder() { if (extraMsgBuilder_ != null) { return extraMsgBuilder_.getMessageOrBuilder(); } else { return extraMsg_ == null ? org.tikv.kvproto.RaftServerpb.ExtraMessage.getDefaultInstance() : extraMsg_; } } /** * .raft_serverpb.ExtraMessage extra_msg = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.ExtraMessage, org.tikv.kvproto.RaftServerpb.ExtraMessage.Builder, org.tikv.kvproto.RaftServerpb.ExtraMessageOrBuilder> getExtraMsgFieldBuilder() { if (extraMsgBuilder_ == null) { extraMsgBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.ExtraMessage, org.tikv.kvproto.RaftServerpb.ExtraMessage.Builder, org.tikv.kvproto.RaftServerpb.ExtraMessageOrBuilder>( getExtraMsg(), getParentForChildren(), isClean()); extraMsg_ = null; } return extraMsgBuilder_; } 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:raft_serverpb.RaftMessage) } // @@protoc_insertion_point(class_scope:raft_serverpb.RaftMessage) private static final org.tikv.kvproto.RaftServerpb.RaftMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.RaftMessage(); } public static org.tikv.kvproto.RaftServerpb.RaftMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RaftMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RaftMessage(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.RaftServerpb.RaftMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RaftTruncatedStateOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.RaftTruncatedState) com.google.protobuf.MessageOrBuilder { /** * uint64 index = 1; */ long getIndex(); /** * uint64 term = 2; */ long getTerm(); } /** * Protobuf type {@code raft_serverpb.RaftTruncatedState} */ public static final class RaftTruncatedState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.RaftTruncatedState) RaftTruncatedStateOrBuilder { private static final long serialVersionUID = 0L; // Use RaftTruncatedState.newBuilder() to construct. private RaftTruncatedState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaftTruncatedState() { index_ = 0L; term_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RaftTruncatedState( 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: { index_ = input.readUInt64(); break; } case 16: { term_ = 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.RaftServerpb.internal_static_raft_serverpb_RaftTruncatedState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftTruncatedState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RaftTruncatedState.class, org.tikv.kvproto.RaftServerpb.RaftTruncatedState.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; private long index_; /** * uint64 index = 1; */ public long getIndex() { return index_; } public static final int TERM_FIELD_NUMBER = 2; private long term_; /** * uint64 term = 2; */ public long getTerm() { return term_; } 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 (index_ != 0L) { output.writeUInt64(1, index_); } if (term_ != 0L) { output.writeUInt64(2, term_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, index_); } if (term_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, term_); } 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.RaftServerpb.RaftTruncatedState)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.RaftTruncatedState other = (org.tikv.kvproto.RaftServerpb.RaftTruncatedState) obj; boolean result = true; result = result && (getIndex() == other.getIndex()); result = result && (getTerm() == other.getTerm()); 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) + INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIndex()); hash = (37 * hash) + TERM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTerm()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.RaftTruncatedState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftTruncatedState 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.RaftServerpb.RaftTruncatedState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftTruncatedState 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.RaftServerpb.RaftTruncatedState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftTruncatedState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.RaftTruncatedState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftTruncatedState 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.RaftServerpb.RaftTruncatedState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftTruncatedState 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.RaftServerpb.RaftTruncatedState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftTruncatedState 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.RaftServerpb.RaftTruncatedState 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 raft_serverpb.RaftTruncatedState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.RaftTruncatedState) org.tikv.kvproto.RaftServerpb.RaftTruncatedStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftTruncatedState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftTruncatedState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RaftTruncatedState.class, org.tikv.kvproto.RaftServerpb.RaftTruncatedState.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.RaftTruncatedState.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(); index_ = 0L; term_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftTruncatedState_descriptor; } public org.tikv.kvproto.RaftServerpb.RaftTruncatedState getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.RaftTruncatedState.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.RaftTruncatedState build() { org.tikv.kvproto.RaftServerpb.RaftTruncatedState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.RaftTruncatedState buildPartial() { org.tikv.kvproto.RaftServerpb.RaftTruncatedState result = new org.tikv.kvproto.RaftServerpb.RaftTruncatedState(this); result.index_ = index_; result.term_ = term_; 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.RaftServerpb.RaftTruncatedState) { return mergeFrom((org.tikv.kvproto.RaftServerpb.RaftTruncatedState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.RaftTruncatedState other) { if (other == org.tikv.kvproto.RaftServerpb.RaftTruncatedState.getDefaultInstance()) return this; if (other.getIndex() != 0L) { setIndex(other.getIndex()); } if (other.getTerm() != 0L) { setTerm(other.getTerm()); } 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.RaftServerpb.RaftTruncatedState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.RaftTruncatedState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long index_ ; /** * uint64 index = 1; */ public long getIndex() { return index_; } /** * uint64 index = 1; */ public Builder setIndex(long value) { index_ = value; onChanged(); return this; } /** * uint64 index = 1; */ public Builder clearIndex() { index_ = 0L; onChanged(); return this; } private long term_ ; /** * uint64 term = 2; */ public long getTerm() { return term_; } /** * uint64 term = 2; */ public Builder setTerm(long value) { term_ = value; onChanged(); return this; } /** * uint64 term = 2; */ public Builder clearTerm() { term_ = 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:raft_serverpb.RaftTruncatedState) } // @@protoc_insertion_point(class_scope:raft_serverpb.RaftTruncatedState) private static final org.tikv.kvproto.RaftServerpb.RaftTruncatedState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.RaftTruncatedState(); } public static org.tikv.kvproto.RaftServerpb.RaftTruncatedState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RaftTruncatedState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RaftTruncatedState(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.RaftServerpb.RaftTruncatedState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SnapshotCFFileOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.SnapshotCFFile) com.google.protobuf.MessageOrBuilder { /** * string cf = 1; */ java.lang.String getCf(); /** * string cf = 1; */ com.google.protobuf.ByteString getCfBytes(); /** * uint64 size = 2; */ long getSize(); /** * uint32 checksum = 3; */ int getChecksum(); } /** * Protobuf type {@code raft_serverpb.SnapshotCFFile} */ public static final class SnapshotCFFile extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.SnapshotCFFile) SnapshotCFFileOrBuilder { private static final long serialVersionUID = 0L; // Use SnapshotCFFile.newBuilder() to construct. private SnapshotCFFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SnapshotCFFile() { cf_ = ""; size_ = 0L; checksum_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapshotCFFile( 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(); cf_ = s; break; } case 16: { size_ = input.readUInt64(); break; } case 24: { checksum_ = input.readUInt32(); 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.RaftServerpb.internal_static_raft_serverpb_SnapshotCFFile_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotCFFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.SnapshotCFFile.class, org.tikv.kvproto.RaftServerpb.SnapshotCFFile.Builder.class); } public static final int CF_FIELD_NUMBER = 1; private volatile java.lang.Object cf_; /** * string cf = 1; */ public java.lang.String getCf() { java.lang.Object ref = cf_; 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(); cf_ = s; return s; } } /** * string cf = 1; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SIZE_FIELD_NUMBER = 2; private long size_; /** * uint64 size = 2; */ public long getSize() { return size_; } public static final int CHECKSUM_FIELD_NUMBER = 3; private int checksum_; /** * uint32 checksum = 3; */ public int getChecksum() { return checksum_; } 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 (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cf_); } if (size_ != 0L) { output.writeUInt64(2, size_); } if (checksum_ != 0) { output.writeUInt32(3, checksum_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cf_); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, size_); } if (checksum_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, checksum_); } 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.RaftServerpb.SnapshotCFFile)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.SnapshotCFFile other = (org.tikv.kvproto.RaftServerpb.SnapshotCFFile) obj; boolean result = true; result = result && getCf() .equals(other.getCf()); result = result && (getSize() == other.getSize()); result = result && (getChecksum() == other.getChecksum()); 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) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (37 * hash) + CHECKSUM_FIELD_NUMBER; hash = (53 * hash) + getChecksum(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.SnapshotCFFile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.SnapshotCFFile 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.RaftServerpb.SnapshotCFFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.SnapshotCFFile 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.RaftServerpb.SnapshotCFFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.SnapshotCFFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.SnapshotCFFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.SnapshotCFFile 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.RaftServerpb.SnapshotCFFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.SnapshotCFFile 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.RaftServerpb.SnapshotCFFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.SnapshotCFFile 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.RaftServerpb.SnapshotCFFile 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 raft_serverpb.SnapshotCFFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.SnapshotCFFile) org.tikv.kvproto.RaftServerpb.SnapshotCFFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotCFFile_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotCFFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.SnapshotCFFile.class, org.tikv.kvproto.RaftServerpb.SnapshotCFFile.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.SnapshotCFFile.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(); cf_ = ""; size_ = 0L; checksum_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotCFFile_descriptor; } public org.tikv.kvproto.RaftServerpb.SnapshotCFFile getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.SnapshotCFFile.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.SnapshotCFFile build() { org.tikv.kvproto.RaftServerpb.SnapshotCFFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.SnapshotCFFile buildPartial() { org.tikv.kvproto.RaftServerpb.SnapshotCFFile result = new org.tikv.kvproto.RaftServerpb.SnapshotCFFile(this); result.cf_ = cf_; result.size_ = size_; result.checksum_ = checksum_; 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.RaftServerpb.SnapshotCFFile) { return mergeFrom((org.tikv.kvproto.RaftServerpb.SnapshotCFFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.SnapshotCFFile other) { if (other == org.tikv.kvproto.RaftServerpb.SnapshotCFFile.getDefaultInstance()) return this; if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getSize() != 0L) { setSize(other.getSize()); } if (other.getChecksum() != 0) { setChecksum(other.getChecksum()); } 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.RaftServerpb.SnapshotCFFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.SnapshotCFFile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object cf_ = ""; /** * string cf = 1; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 1; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 1; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 1; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 1; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } private long size_ ; /** * uint64 size = 2; */ public long getSize() { return size_; } /** * uint64 size = 2; */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** * uint64 size = 2; */ public Builder clearSize() { size_ = 0L; onChanged(); return this; } private int checksum_ ; /** * uint32 checksum = 3; */ public int getChecksum() { return checksum_; } /** * uint32 checksum = 3; */ public Builder setChecksum(int value) { checksum_ = value; onChanged(); return this; } /** * uint32 checksum = 3; */ public Builder clearChecksum() { checksum_ = 0; 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:raft_serverpb.SnapshotCFFile) } // @@protoc_insertion_point(class_scope:raft_serverpb.SnapshotCFFile) private static final org.tikv.kvproto.RaftServerpb.SnapshotCFFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.SnapshotCFFile(); } public static org.tikv.kvproto.RaftServerpb.SnapshotCFFile getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SnapshotCFFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SnapshotCFFile(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.RaftServerpb.SnapshotCFFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SnapshotMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.SnapshotMeta) com.google.protobuf.MessageOrBuilder { /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ java.util.List getCfFilesList(); /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ org.tikv.kvproto.RaftServerpb.SnapshotCFFile getCfFiles(int index); /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ int getCfFilesCount(); /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ java.util.List getCfFilesOrBuilderList(); /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ org.tikv.kvproto.RaftServerpb.SnapshotCFFileOrBuilder getCfFilesOrBuilder( int index); /** *
     * true means this snapshot is triggered for load balance
     * 
* * bool for_balance = 2; */ boolean getForBalance(); } /** * Protobuf type {@code raft_serverpb.SnapshotMeta} */ public static final class SnapshotMeta extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.SnapshotMeta) SnapshotMetaOrBuilder { private static final long serialVersionUID = 0L; // Use SnapshotMeta.newBuilder() to construct. private SnapshotMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SnapshotMeta() { cfFiles_ = java.util.Collections.emptyList(); forBalance_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapshotMeta( 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)) { cfFiles_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } cfFiles_.add( input.readMessage(org.tikv.kvproto.RaftServerpb.SnapshotCFFile.parser(), extensionRegistry)); break; } case 16: { forBalance_ = 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { cfFiles_ = java.util.Collections.unmodifiableList(cfFiles_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotMeta_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.SnapshotMeta.class, org.tikv.kvproto.RaftServerpb.SnapshotMeta.Builder.class); } private int bitField0_; public static final int CF_FILES_FIELD_NUMBER = 1; private java.util.List cfFiles_; /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public java.util.List getCfFilesList() { return cfFiles_; } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public java.util.List getCfFilesOrBuilderList() { return cfFiles_; } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public int getCfFilesCount() { return cfFiles_.size(); } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public org.tikv.kvproto.RaftServerpb.SnapshotCFFile getCfFiles(int index) { return cfFiles_.get(index); } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public org.tikv.kvproto.RaftServerpb.SnapshotCFFileOrBuilder getCfFilesOrBuilder( int index) { return cfFiles_.get(index); } public static final int FOR_BALANCE_FIELD_NUMBER = 2; private boolean forBalance_; /** *
     * true means this snapshot is triggered for load balance
     * 
* * bool for_balance = 2; */ public boolean getForBalance() { return forBalance_; } 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 < cfFiles_.size(); i++) { output.writeMessage(1, cfFiles_.get(i)); } if (forBalance_ != false) { output.writeBool(2, forBalance_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < cfFiles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, cfFiles_.get(i)); } if (forBalance_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, forBalance_); } 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.RaftServerpb.SnapshotMeta)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.SnapshotMeta other = (org.tikv.kvproto.RaftServerpb.SnapshotMeta) obj; boolean result = true; result = result && getCfFilesList() .equals(other.getCfFilesList()); result = result && (getForBalance() == other.getForBalance()); 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 (getCfFilesCount() > 0) { hash = (37 * hash) + CF_FILES_FIELD_NUMBER; hash = (53 * hash) + getCfFilesList().hashCode(); } hash = (37 * hash) + FOR_BALANCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForBalance()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.SnapshotMeta parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.SnapshotMeta 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.RaftServerpb.SnapshotMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.SnapshotMeta 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.RaftServerpb.SnapshotMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.SnapshotMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.SnapshotMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.SnapshotMeta 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.RaftServerpb.SnapshotMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.SnapshotMeta 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.RaftServerpb.SnapshotMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.SnapshotMeta 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.RaftServerpb.SnapshotMeta 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 raft_serverpb.SnapshotMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.SnapshotMeta) org.tikv.kvproto.RaftServerpb.SnapshotMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotMeta_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.SnapshotMeta.class, org.tikv.kvproto.RaftServerpb.SnapshotMeta.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.SnapshotMeta.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCfFilesFieldBuilder(); } } public Builder clear() { super.clear(); if (cfFilesBuilder_ == null) { cfFiles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { cfFilesBuilder_.clear(); } forBalance_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotMeta_descriptor; } public org.tikv.kvproto.RaftServerpb.SnapshotMeta getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.SnapshotMeta.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.SnapshotMeta build() { org.tikv.kvproto.RaftServerpb.SnapshotMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.SnapshotMeta buildPartial() { org.tikv.kvproto.RaftServerpb.SnapshotMeta result = new org.tikv.kvproto.RaftServerpb.SnapshotMeta(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (cfFilesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { cfFiles_ = java.util.Collections.unmodifiableList(cfFiles_); bitField0_ = (bitField0_ & ~0x00000001); } result.cfFiles_ = cfFiles_; } else { result.cfFiles_ = cfFilesBuilder_.build(); } result.forBalance_ = forBalance_; 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.RaftServerpb.SnapshotMeta) { return mergeFrom((org.tikv.kvproto.RaftServerpb.SnapshotMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.SnapshotMeta other) { if (other == org.tikv.kvproto.RaftServerpb.SnapshotMeta.getDefaultInstance()) return this; if (cfFilesBuilder_ == null) { if (!other.cfFiles_.isEmpty()) { if (cfFiles_.isEmpty()) { cfFiles_ = other.cfFiles_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCfFilesIsMutable(); cfFiles_.addAll(other.cfFiles_); } onChanged(); } } else { if (!other.cfFiles_.isEmpty()) { if (cfFilesBuilder_.isEmpty()) { cfFilesBuilder_.dispose(); cfFilesBuilder_ = null; cfFiles_ = other.cfFiles_; bitField0_ = (bitField0_ & ~0x00000001); cfFilesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCfFilesFieldBuilder() : null; } else { cfFilesBuilder_.addAllMessages(other.cfFiles_); } } } if (other.getForBalance() != false) { setForBalance(other.getForBalance()); } 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.RaftServerpb.SnapshotMeta parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.SnapshotMeta) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List cfFiles_ = java.util.Collections.emptyList(); private void ensureCfFilesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { cfFiles_ = new java.util.ArrayList(cfFiles_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftServerpb.SnapshotCFFile, org.tikv.kvproto.RaftServerpb.SnapshotCFFile.Builder, org.tikv.kvproto.RaftServerpb.SnapshotCFFileOrBuilder> cfFilesBuilder_; /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public java.util.List getCfFilesList() { if (cfFilesBuilder_ == null) { return java.util.Collections.unmodifiableList(cfFiles_); } else { return cfFilesBuilder_.getMessageList(); } } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public int getCfFilesCount() { if (cfFilesBuilder_ == null) { return cfFiles_.size(); } else { return cfFilesBuilder_.getCount(); } } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public org.tikv.kvproto.RaftServerpb.SnapshotCFFile getCfFiles(int index) { if (cfFilesBuilder_ == null) { return cfFiles_.get(index); } else { return cfFilesBuilder_.getMessage(index); } } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public Builder setCfFiles( int index, org.tikv.kvproto.RaftServerpb.SnapshotCFFile value) { if (cfFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCfFilesIsMutable(); cfFiles_.set(index, value); onChanged(); } else { cfFilesBuilder_.setMessage(index, value); } return this; } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public Builder setCfFiles( int index, org.tikv.kvproto.RaftServerpb.SnapshotCFFile.Builder builderForValue) { if (cfFilesBuilder_ == null) { ensureCfFilesIsMutable(); cfFiles_.set(index, builderForValue.build()); onChanged(); } else { cfFilesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public Builder addCfFiles(org.tikv.kvproto.RaftServerpb.SnapshotCFFile value) { if (cfFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCfFilesIsMutable(); cfFiles_.add(value); onChanged(); } else { cfFilesBuilder_.addMessage(value); } return this; } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public Builder addCfFiles( int index, org.tikv.kvproto.RaftServerpb.SnapshotCFFile value) { if (cfFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCfFilesIsMutable(); cfFiles_.add(index, value); onChanged(); } else { cfFilesBuilder_.addMessage(index, value); } return this; } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public Builder addCfFiles( org.tikv.kvproto.RaftServerpb.SnapshotCFFile.Builder builderForValue) { if (cfFilesBuilder_ == null) { ensureCfFilesIsMutable(); cfFiles_.add(builderForValue.build()); onChanged(); } else { cfFilesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public Builder addCfFiles( int index, org.tikv.kvproto.RaftServerpb.SnapshotCFFile.Builder builderForValue) { if (cfFilesBuilder_ == null) { ensureCfFilesIsMutable(); cfFiles_.add(index, builderForValue.build()); onChanged(); } else { cfFilesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public Builder addAllCfFiles( java.lang.Iterable values) { if (cfFilesBuilder_ == null) { ensureCfFilesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, cfFiles_); onChanged(); } else { cfFilesBuilder_.addAllMessages(values); } return this; } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public Builder clearCfFiles() { if (cfFilesBuilder_ == null) { cfFiles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { cfFilesBuilder_.clear(); } return this; } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public Builder removeCfFiles(int index) { if (cfFilesBuilder_ == null) { ensureCfFilesIsMutable(); cfFiles_.remove(index); onChanged(); } else { cfFilesBuilder_.remove(index); } return this; } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public org.tikv.kvproto.RaftServerpb.SnapshotCFFile.Builder getCfFilesBuilder( int index) { return getCfFilesFieldBuilder().getBuilder(index); } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public org.tikv.kvproto.RaftServerpb.SnapshotCFFileOrBuilder getCfFilesOrBuilder( int index) { if (cfFilesBuilder_ == null) { return cfFiles_.get(index); } else { return cfFilesBuilder_.getMessageOrBuilder(index); } } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public java.util.List getCfFilesOrBuilderList() { if (cfFilesBuilder_ != null) { return cfFilesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(cfFiles_); } } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public org.tikv.kvproto.RaftServerpb.SnapshotCFFile.Builder addCfFilesBuilder() { return getCfFilesFieldBuilder().addBuilder( org.tikv.kvproto.RaftServerpb.SnapshotCFFile.getDefaultInstance()); } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public org.tikv.kvproto.RaftServerpb.SnapshotCFFile.Builder addCfFilesBuilder( int index) { return getCfFilesFieldBuilder().addBuilder( index, org.tikv.kvproto.RaftServerpb.SnapshotCFFile.getDefaultInstance()); } /** * repeated .raft_serverpb.SnapshotCFFile cf_files = 1; */ public java.util.List getCfFilesBuilderList() { return getCfFilesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftServerpb.SnapshotCFFile, org.tikv.kvproto.RaftServerpb.SnapshotCFFile.Builder, org.tikv.kvproto.RaftServerpb.SnapshotCFFileOrBuilder> getCfFilesFieldBuilder() { if (cfFilesBuilder_ == null) { cfFilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftServerpb.SnapshotCFFile, org.tikv.kvproto.RaftServerpb.SnapshotCFFile.Builder, org.tikv.kvproto.RaftServerpb.SnapshotCFFileOrBuilder>( cfFiles_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); cfFiles_ = null; } return cfFilesBuilder_; } private boolean forBalance_ ; /** *
       * true means this snapshot is triggered for load balance
       * 
* * bool for_balance = 2; */ public boolean getForBalance() { return forBalance_; } /** *
       * true means this snapshot is triggered for load balance
       * 
* * bool for_balance = 2; */ public Builder setForBalance(boolean value) { forBalance_ = value; onChanged(); return this; } /** *
       * true means this snapshot is triggered for load balance
       * 
* * bool for_balance = 2; */ public Builder clearForBalance() { forBalance_ = 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:raft_serverpb.SnapshotMeta) } // @@protoc_insertion_point(class_scope:raft_serverpb.SnapshotMeta) private static final org.tikv.kvproto.RaftServerpb.SnapshotMeta DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.SnapshotMeta(); } public static org.tikv.kvproto.RaftServerpb.SnapshotMeta getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SnapshotMeta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SnapshotMeta(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.RaftServerpb.SnapshotMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SnapshotChunkOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.SnapshotChunk) com.google.protobuf.MessageOrBuilder { /** * .raft_serverpb.RaftMessage message = 1; */ boolean hasMessage(); /** * .raft_serverpb.RaftMessage message = 1; */ org.tikv.kvproto.RaftServerpb.RaftMessage getMessage(); /** * .raft_serverpb.RaftMessage message = 1; */ org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder getMessageOrBuilder(); /** * bytes data = 2; */ com.google.protobuf.ByteString getData(); } /** * Protobuf type {@code raft_serverpb.SnapshotChunk} */ public static final class SnapshotChunk extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.SnapshotChunk) SnapshotChunkOrBuilder { private static final long serialVersionUID = 0L; // Use SnapshotChunk.newBuilder() to construct. private SnapshotChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SnapshotChunk() { data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapshotChunk( 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.RaftServerpb.RaftMessage.Builder subBuilder = null; if (message_ != null) { subBuilder = message_.toBuilder(); } message_ = input.readMessage(org.tikv.kvproto.RaftServerpb.RaftMessage.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(message_); message_ = subBuilder.buildPartial(); } break; } case 18: { data_ = 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.RaftServerpb.internal_static_raft_serverpb_SnapshotChunk_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotChunk_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.SnapshotChunk.class, org.tikv.kvproto.RaftServerpb.SnapshotChunk.Builder.class); } public static final int MESSAGE_FIELD_NUMBER = 1; private org.tikv.kvproto.RaftServerpb.RaftMessage message_; /** * .raft_serverpb.RaftMessage message = 1; */ public boolean hasMessage() { return message_ != null; } /** * .raft_serverpb.RaftMessage message = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessage getMessage() { return message_ == null ? org.tikv.kvproto.RaftServerpb.RaftMessage.getDefaultInstance() : message_; } /** * .raft_serverpb.RaftMessage message = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder getMessageOrBuilder() { return getMessage(); } public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** * bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } 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 (message_ != null) { output.writeMessage(1, getMessage()); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (message_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMessage()); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } 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.RaftServerpb.SnapshotChunk)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.SnapshotChunk other = (org.tikv.kvproto.RaftServerpb.SnapshotChunk) obj; boolean result = true; result = result && (hasMessage() == other.hasMessage()); if (hasMessage()) { result = result && getMessage() .equals(other.getMessage()); } result = result && getData() .equals(other.getData()); 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 (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.SnapshotChunk parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.SnapshotChunk 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.RaftServerpb.SnapshotChunk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.SnapshotChunk 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.RaftServerpb.SnapshotChunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.SnapshotChunk parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.SnapshotChunk parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.SnapshotChunk 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.RaftServerpb.SnapshotChunk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.SnapshotChunk 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.RaftServerpb.SnapshotChunk parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.SnapshotChunk 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.RaftServerpb.SnapshotChunk 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 raft_serverpb.SnapshotChunk} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.SnapshotChunk) org.tikv.kvproto.RaftServerpb.SnapshotChunkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotChunk_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotChunk_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.SnapshotChunk.class, org.tikv.kvproto.RaftServerpb.SnapshotChunk.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.SnapshotChunk.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 (messageBuilder_ == null) { message_ = null; } else { message_ = null; messageBuilder_ = null; } data_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_SnapshotChunk_descriptor; } public org.tikv.kvproto.RaftServerpb.SnapshotChunk getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.SnapshotChunk.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.SnapshotChunk build() { org.tikv.kvproto.RaftServerpb.SnapshotChunk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.SnapshotChunk buildPartial() { org.tikv.kvproto.RaftServerpb.SnapshotChunk result = new org.tikv.kvproto.RaftServerpb.SnapshotChunk(this); if (messageBuilder_ == null) { result.message_ = message_; } else { result.message_ = messageBuilder_.build(); } result.data_ = data_; 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.RaftServerpb.SnapshotChunk) { return mergeFrom((org.tikv.kvproto.RaftServerpb.SnapshotChunk)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.SnapshotChunk other) { if (other == org.tikv.kvproto.RaftServerpb.SnapshotChunk.getDefaultInstance()) return this; if (other.hasMessage()) { mergeMessage(other.getMessage()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } 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.RaftServerpb.SnapshotChunk parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.SnapshotChunk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.RaftServerpb.RaftMessage message_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.RaftMessage, org.tikv.kvproto.RaftServerpb.RaftMessage.Builder, org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder> messageBuilder_; /** * .raft_serverpb.RaftMessage message = 1; */ public boolean hasMessage() { return messageBuilder_ != null || message_ != null; } /** * .raft_serverpb.RaftMessage message = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessage getMessage() { if (messageBuilder_ == null) { return message_ == null ? org.tikv.kvproto.RaftServerpb.RaftMessage.getDefaultInstance() : message_; } else { return messageBuilder_.getMessage(); } } /** * .raft_serverpb.RaftMessage message = 1; */ public Builder setMessage(org.tikv.kvproto.RaftServerpb.RaftMessage value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); } else { messageBuilder_.setMessage(value); } return this; } /** * .raft_serverpb.RaftMessage message = 1; */ public Builder setMessage( org.tikv.kvproto.RaftServerpb.RaftMessage.Builder builderForValue) { if (messageBuilder_ == null) { message_ = builderForValue.build(); onChanged(); } else { messageBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_serverpb.RaftMessage message = 1; */ public Builder mergeMessage(org.tikv.kvproto.RaftServerpb.RaftMessage value) { if (messageBuilder_ == null) { if (message_ != null) { message_ = org.tikv.kvproto.RaftServerpb.RaftMessage.newBuilder(message_).mergeFrom(value).buildPartial(); } else { message_ = value; } onChanged(); } else { messageBuilder_.mergeFrom(value); } return this; } /** * .raft_serverpb.RaftMessage message = 1; */ public Builder clearMessage() { if (messageBuilder_ == null) { message_ = null; onChanged(); } else { message_ = null; messageBuilder_ = null; } return this; } /** * .raft_serverpb.RaftMessage message = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessage.Builder getMessageBuilder() { onChanged(); return getMessageFieldBuilder().getBuilder(); } /** * .raft_serverpb.RaftMessage message = 1; */ public org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder getMessageOrBuilder() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilder(); } else { return message_ == null ? org.tikv.kvproto.RaftServerpb.RaftMessage.getDefaultInstance() : message_; } } /** * .raft_serverpb.RaftMessage message = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.RaftMessage, org.tikv.kvproto.RaftServerpb.RaftMessage.Builder, org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.RaftMessage, org.tikv.kvproto.RaftServerpb.RaftMessage.Builder, org.tikv.kvproto.RaftServerpb.RaftMessageOrBuilder>( getMessage(), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 2; */ public com.google.protobuf.ByteString getData() { return data_; } /** * bytes data = 2; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** * bytes data = 2; */ public Builder clearData() { data_ = getDefaultInstance().getData(); 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:raft_serverpb.SnapshotChunk) } // @@protoc_insertion_point(class_scope:raft_serverpb.SnapshotChunk) private static final org.tikv.kvproto.RaftServerpb.SnapshotChunk DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.SnapshotChunk(); } public static org.tikv.kvproto.RaftServerpb.SnapshotChunk getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SnapshotChunk parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SnapshotChunk(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.RaftServerpb.SnapshotChunk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DoneOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.Done) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_serverpb.Done} */ public static final class Done extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.Done) DoneOrBuilder { private static final long serialVersionUID = 0L; // Use Done.newBuilder() to construct. private Done(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Done() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Done( 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.RaftServerpb.internal_static_raft_serverpb_Done_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_Done_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.Done.class, org.tikv.kvproto.RaftServerpb.Done.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.RaftServerpb.Done)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.Done other = (org.tikv.kvproto.RaftServerpb.Done) 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.RaftServerpb.Done parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.Done 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.RaftServerpb.Done parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.Done 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.RaftServerpb.Done parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.Done parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.Done parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.Done 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.RaftServerpb.Done parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.Done 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.RaftServerpb.Done parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.Done 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.RaftServerpb.Done 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 raft_serverpb.Done} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.Done) org.tikv.kvproto.RaftServerpb.DoneOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_Done_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_Done_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.Done.class, org.tikv.kvproto.RaftServerpb.Done.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.Done.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.RaftServerpb.internal_static_raft_serverpb_Done_descriptor; } public org.tikv.kvproto.RaftServerpb.Done getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.Done.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.Done build() { org.tikv.kvproto.RaftServerpb.Done result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.Done buildPartial() { org.tikv.kvproto.RaftServerpb.Done result = new org.tikv.kvproto.RaftServerpb.Done(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.RaftServerpb.Done) { return mergeFrom((org.tikv.kvproto.RaftServerpb.Done)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.Done other) { if (other == org.tikv.kvproto.RaftServerpb.Done.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.RaftServerpb.Done parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.Done) 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:raft_serverpb.Done) } // @@protoc_insertion_point(class_scope:raft_serverpb.Done) private static final org.tikv.kvproto.RaftServerpb.Done DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.Done(); } public static org.tikv.kvproto.RaftServerpb.Done getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Done parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Done(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.RaftServerpb.Done getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeyValueOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.KeyValue) com.google.protobuf.MessageOrBuilder { /** * bytes key = 1; */ com.google.protobuf.ByteString getKey(); /** * bytes value = 2; */ com.google.protobuf.ByteString getValue(); } /** * Protobuf type {@code raft_serverpb.KeyValue} */ public static final class KeyValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.KeyValue) KeyValueOrBuilder { private static final long serialVersionUID = 0L; // Use KeyValue.newBuilder() to construct. private KeyValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyValue() { key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KeyValue( 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: { key_ = input.readBytes(); break; } case 18: { value_ = 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.RaftServerpb.internal_static_raft_serverpb_KeyValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.KeyValue.class, org.tikv.kvproto.RaftServerpb.KeyValue.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; /** * bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } 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 (!key_.isEmpty()) { output.writeBytes(1, key_); } if (!value_.isEmpty()) { output.writeBytes(2, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, value_); } 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.RaftServerpb.KeyValue)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.KeyValue other = (org.tikv.kvproto.RaftServerpb.KeyValue) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); 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) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.KeyValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.KeyValue 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.RaftServerpb.KeyValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.KeyValue 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.RaftServerpb.KeyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.KeyValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.KeyValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.KeyValue 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.RaftServerpb.KeyValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.KeyValue 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.RaftServerpb.KeyValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.KeyValue 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.RaftServerpb.KeyValue 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 raft_serverpb.KeyValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.KeyValue) org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_KeyValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_KeyValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.KeyValue.class, org.tikv.kvproto.RaftServerpb.KeyValue.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.KeyValue.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(); key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_KeyValue_descriptor; } public org.tikv.kvproto.RaftServerpb.KeyValue getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.KeyValue.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.KeyValue build() { org.tikv.kvproto.RaftServerpb.KeyValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.KeyValue buildPartial() { org.tikv.kvproto.RaftServerpb.KeyValue result = new org.tikv.kvproto.RaftServerpb.KeyValue(this); result.key_ = key_; result.value_ = value_; 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.RaftServerpb.KeyValue) { return mergeFrom((org.tikv.kvproto.RaftServerpb.KeyValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.KeyValue other) { if (other == org.tikv.kvproto.RaftServerpb.KeyValue.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } 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.RaftServerpb.KeyValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.KeyValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 1; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 2; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 2; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); 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:raft_serverpb.KeyValue) } // @@protoc_insertion_point(class_scope:raft_serverpb.KeyValue) private static final org.tikv.kvproto.RaftServerpb.KeyValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.KeyValue(); } public static org.tikv.kvproto.RaftServerpb.KeyValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KeyValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyValue(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.RaftServerpb.KeyValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RaftSnapshotDataOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.RaftSnapshotData) com.google.protobuf.MessageOrBuilder { /** * .metapb.Region region = 1; */ boolean hasRegion(); /** * .metapb.Region region = 1; */ org.tikv.kvproto.Metapb.Region getRegion(); /** * .metapb.Region region = 1; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder(); /** * uint64 file_size = 2; */ long getFileSize(); /** * repeated .raft_serverpb.KeyValue data = 3; */ java.util.List getDataList(); /** * repeated .raft_serverpb.KeyValue data = 3; */ org.tikv.kvproto.RaftServerpb.KeyValue getData(int index); /** * repeated .raft_serverpb.KeyValue data = 3; */ int getDataCount(); /** * repeated .raft_serverpb.KeyValue data = 3; */ java.util.List getDataOrBuilderList(); /** * repeated .raft_serverpb.KeyValue data = 3; */ org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder getDataOrBuilder( int index); /** * uint64 version = 4; */ long getVersion(); /** * .raft_serverpb.SnapshotMeta meta = 5; */ boolean hasMeta(); /** * .raft_serverpb.SnapshotMeta meta = 5; */ org.tikv.kvproto.RaftServerpb.SnapshotMeta getMeta(); /** * .raft_serverpb.SnapshotMeta meta = 5; */ org.tikv.kvproto.RaftServerpb.SnapshotMetaOrBuilder getMetaOrBuilder(); } /** * Protobuf type {@code raft_serverpb.RaftSnapshotData} */ public static final class RaftSnapshotData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.RaftSnapshotData) RaftSnapshotDataOrBuilder { private static final long serialVersionUID = 0L; // Use RaftSnapshotData.newBuilder() to construct. private RaftSnapshotData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaftSnapshotData() { fileSize_ = 0L; data_ = java.util.Collections.emptyList(); version_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RaftSnapshotData( 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.Metapb.Region.Builder subBuilder = null; if (region_ != null) { subBuilder = region_.toBuilder(); } region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(region_); region_ = subBuilder.buildPartial(); } break; } case 16: { fileSize_ = input.readUInt64(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { data_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } data_.add( input.readMessage(org.tikv.kvproto.RaftServerpb.KeyValue.parser(), extensionRegistry)); break; } case 32: { version_ = input.readUInt64(); break; } case 42: { org.tikv.kvproto.RaftServerpb.SnapshotMeta.Builder subBuilder = null; if (meta_ != null) { subBuilder = meta_.toBuilder(); } meta_ = input.readMessage(org.tikv.kvproto.RaftServerpb.SnapshotMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(meta_); meta_ = 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_ & 0x00000004) == 0x00000004)) { data_ = java.util.Collections.unmodifiableList(data_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftSnapshotData_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftSnapshotData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RaftSnapshotData.class, org.tikv.kvproto.RaftServerpb.RaftSnapshotData.Builder.class); } private int bitField0_; public static final int REGION_FIELD_NUMBER = 1; private org.tikv.kvproto.Metapb.Region region_; /** * .metapb.Region region = 1; */ public boolean hasRegion() { return region_ != null; } /** * .metapb.Region region = 1; */ public org.tikv.kvproto.Metapb.Region getRegion() { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } /** * .metapb.Region region = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { return getRegion(); } public static final int FILE_SIZE_FIELD_NUMBER = 2; private long fileSize_; /** * uint64 file_size = 2; */ public long getFileSize() { return fileSize_; } public static final int DATA_FIELD_NUMBER = 3; private java.util.List data_; /** * repeated .raft_serverpb.KeyValue data = 3; */ public java.util.List getDataList() { return data_; } /** * repeated .raft_serverpb.KeyValue data = 3; */ public java.util.List getDataOrBuilderList() { return data_; } /** * repeated .raft_serverpb.KeyValue data = 3; */ public int getDataCount() { return data_.size(); } /** * repeated .raft_serverpb.KeyValue data = 3; */ public org.tikv.kvproto.RaftServerpb.KeyValue getData(int index) { return data_.get(index); } /** * repeated .raft_serverpb.KeyValue data = 3; */ public org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder getDataOrBuilder( int index) { return data_.get(index); } public static final int VERSION_FIELD_NUMBER = 4; private long version_; /** * uint64 version = 4; */ public long getVersion() { return version_; } public static final int META_FIELD_NUMBER = 5; private org.tikv.kvproto.RaftServerpb.SnapshotMeta meta_; /** * .raft_serverpb.SnapshotMeta meta = 5; */ public boolean hasMeta() { return meta_ != null; } /** * .raft_serverpb.SnapshotMeta meta = 5; */ public org.tikv.kvproto.RaftServerpb.SnapshotMeta getMeta() { return meta_ == null ? org.tikv.kvproto.RaftServerpb.SnapshotMeta.getDefaultInstance() : meta_; } /** * .raft_serverpb.SnapshotMeta meta = 5; */ public org.tikv.kvproto.RaftServerpb.SnapshotMetaOrBuilder getMetaOrBuilder() { return getMeta(); } 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 (region_ != null) { output.writeMessage(1, getRegion()); } if (fileSize_ != 0L) { output.writeUInt64(2, fileSize_); } for (int i = 0; i < data_.size(); i++) { output.writeMessage(3, data_.get(i)); } if (version_ != 0L) { output.writeUInt64(4, version_); } if (meta_ != null) { output.writeMessage(5, getMeta()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (region_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegion()); } if (fileSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, fileSize_); } for (int i = 0; i < data_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, data_.get(i)); } if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, version_); } if (meta_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getMeta()); } 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.RaftServerpb.RaftSnapshotData)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.RaftSnapshotData other = (org.tikv.kvproto.RaftServerpb.RaftSnapshotData) obj; boolean result = true; result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } result = result && (getFileSize() == other.getFileSize()); result = result && getDataList() .equals(other.getDataList()); result = result && (getVersion() == other.getVersion()); result = result && (hasMeta() == other.hasMeta()); if (hasMeta()) { result = result && getMeta() .equals(other.getMeta()); } 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 (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } hash = (37 * hash) + FILE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFileSize()); if (getDataCount() > 0) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getDataList().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); if (hasMeta()) { hash = (37 * hash) + META_FIELD_NUMBER; hash = (53 * hash) + getMeta().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.RaftSnapshotData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftSnapshotData 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.RaftServerpb.RaftSnapshotData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftSnapshotData 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.RaftServerpb.RaftSnapshotData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftSnapshotData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.RaftSnapshotData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftSnapshotData 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.RaftServerpb.RaftSnapshotData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftSnapshotData 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.RaftServerpb.RaftSnapshotData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftSnapshotData 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.RaftServerpb.RaftSnapshotData 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 raft_serverpb.RaftSnapshotData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.RaftSnapshotData) org.tikv.kvproto.RaftServerpb.RaftSnapshotDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftSnapshotData_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftSnapshotData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RaftSnapshotData.class, org.tikv.kvproto.RaftServerpb.RaftSnapshotData.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.RaftSnapshotData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDataFieldBuilder(); } } public Builder clear() { super.clear(); if (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } fileSize_ = 0L; if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { dataBuilder_.clear(); } version_ = 0L; if (metaBuilder_ == null) { meta_ = null; } else { meta_ = null; metaBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftSnapshotData_descriptor; } public org.tikv.kvproto.RaftServerpb.RaftSnapshotData getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.RaftSnapshotData.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.RaftSnapshotData build() { org.tikv.kvproto.RaftServerpb.RaftSnapshotData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.RaftSnapshotData buildPartial() { org.tikv.kvproto.RaftServerpb.RaftSnapshotData result = new org.tikv.kvproto.RaftServerpb.RaftSnapshotData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.build(); } result.fileSize_ = fileSize_; if (dataBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { data_ = java.util.Collections.unmodifiableList(data_); bitField0_ = (bitField0_ & ~0x00000004); } result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } result.version_ = version_; if (metaBuilder_ == null) { result.meta_ = meta_; } else { result.meta_ = metaBuilder_.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.RaftServerpb.RaftSnapshotData) { return mergeFrom((org.tikv.kvproto.RaftServerpb.RaftSnapshotData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.RaftSnapshotData other) { if (other == org.tikv.kvproto.RaftServerpb.RaftSnapshotData.getDefaultInstance()) return this; if (other.hasRegion()) { mergeRegion(other.getRegion()); } if (other.getFileSize() != 0L) { setFileSize(other.getFileSize()); } if (dataBuilder_ == null) { if (!other.data_.isEmpty()) { if (data_.isEmpty()) { data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDataIsMutable(); data_.addAll(other.data_); } onChanged(); } } else { if (!other.data_.isEmpty()) { if (dataBuilder_.isEmpty()) { dataBuilder_.dispose(); dataBuilder_ = null; data_ = other.data_; bitField0_ = (bitField0_ & ~0x00000004); dataBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDataFieldBuilder() : null; } else { dataBuilder_.addAllMessages(other.data_); } } } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } if (other.hasMeta()) { mergeMeta(other.getMeta()); } 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.RaftServerpb.RaftSnapshotData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.RaftSnapshotData) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Metapb.Region region_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_; /** * .metapb.Region region = 1; */ public boolean hasRegion() { return regionBuilder_ != null || region_ != null; } /** * .metapb.Region region = 1; */ public org.tikv.kvproto.Metapb.Region getRegion() { if (regionBuilder_ == null) { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } else { return regionBuilder_.getMessage(); } } /** * .metapb.Region region = 1; */ public Builder setRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); } else { regionBuilder_.setMessage(value); } return this; } /** * .metapb.Region region = 1; */ public Builder setRegion( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionBuilder_ == null) { region_ = builderForValue.build(); onChanged(); } else { regionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region region = 1; */ public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (region_ != null) { region_ = org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial(); } else { region_ = value; } onChanged(); } else { regionBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region region = 1; */ public Builder clearRegion() { if (regionBuilder_ == null) { region_ = null; onChanged(); } else { region_ = null; regionBuilder_ = null; } return this; } /** * .metapb.Region region = 1; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() { onChanged(); return getRegionFieldBuilder().getBuilder(); } /** * .metapb.Region region = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { if (regionBuilder_ != null) { return regionBuilder_.getMessageOrBuilder(); } else { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } } /** * .metapb.Region region = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionFieldBuilder() { if (regionBuilder_ == null) { regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRegion(), getParentForChildren(), isClean()); region_ = null; } return regionBuilder_; } private long fileSize_ ; /** * uint64 file_size = 2; */ public long getFileSize() { return fileSize_; } /** * uint64 file_size = 2; */ public Builder setFileSize(long value) { fileSize_ = value; onChanged(); return this; } /** * uint64 file_size = 2; */ public Builder clearFileSize() { fileSize_ = 0L; onChanged(); return this; } private java.util.List data_ = java.util.Collections.emptyList(); private void ensureDataIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { data_ = new java.util.ArrayList(data_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftServerpb.KeyValue, org.tikv.kvproto.RaftServerpb.KeyValue.Builder, org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder> dataBuilder_; /** * repeated .raft_serverpb.KeyValue data = 3; */ public java.util.List getDataList() { if (dataBuilder_ == null) { return java.util.Collections.unmodifiableList(data_); } else { return dataBuilder_.getMessageList(); } } /** * repeated .raft_serverpb.KeyValue data = 3; */ public int getDataCount() { if (dataBuilder_ == null) { return data_.size(); } else { return dataBuilder_.getCount(); } } /** * repeated .raft_serverpb.KeyValue data = 3; */ public org.tikv.kvproto.RaftServerpb.KeyValue getData(int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessage(index); } } /** * repeated .raft_serverpb.KeyValue data = 3; */ public Builder setData( int index, org.tikv.kvproto.RaftServerpb.KeyValue value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.set(index, value); onChanged(); } else { dataBuilder_.setMessage(index, value); } return this; } /** * repeated .raft_serverpb.KeyValue data = 3; */ public Builder setData( int index, org.tikv.kvproto.RaftServerpb.KeyValue.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.set(index, builderForValue.build()); onChanged(); } else { dataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_serverpb.KeyValue data = 3; */ public Builder addData(org.tikv.kvproto.RaftServerpb.KeyValue value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(value); onChanged(); } else { dataBuilder_.addMessage(value); } return this; } /** * repeated .raft_serverpb.KeyValue data = 3; */ public Builder addData( int index, org.tikv.kvproto.RaftServerpb.KeyValue value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDataIsMutable(); data_.add(index, value); onChanged(); } else { dataBuilder_.addMessage(index, value); } return this; } /** * repeated .raft_serverpb.KeyValue data = 3; */ public Builder addData( org.tikv.kvproto.RaftServerpb.KeyValue.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .raft_serverpb.KeyValue data = 3; */ public Builder addData( int index, org.tikv.kvproto.RaftServerpb.KeyValue.Builder builderForValue) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.add(index, builderForValue.build()); onChanged(); } else { dataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_serverpb.KeyValue data = 3; */ public Builder addAllData( java.lang.Iterable values) { if (dataBuilder_ == null) { ensureDataIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, data_); onChanged(); } else { dataBuilder_.addAllMessages(values); } return this; } /** * repeated .raft_serverpb.KeyValue data = 3; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { dataBuilder_.clear(); } return this; } /** * repeated .raft_serverpb.KeyValue data = 3; */ public Builder removeData(int index) { if (dataBuilder_ == null) { ensureDataIsMutable(); data_.remove(index); onChanged(); } else { dataBuilder_.remove(index); } return this; } /** * repeated .raft_serverpb.KeyValue data = 3; */ public org.tikv.kvproto.RaftServerpb.KeyValue.Builder getDataBuilder( int index) { return getDataFieldBuilder().getBuilder(index); } /** * repeated .raft_serverpb.KeyValue data = 3; */ public org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder getDataOrBuilder( int index) { if (dataBuilder_ == null) { return data_.get(index); } else { return dataBuilder_.getMessageOrBuilder(index); } } /** * repeated .raft_serverpb.KeyValue data = 3; */ public java.util.List getDataOrBuilderList() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(data_); } } /** * repeated .raft_serverpb.KeyValue data = 3; */ public org.tikv.kvproto.RaftServerpb.KeyValue.Builder addDataBuilder() { return getDataFieldBuilder().addBuilder( org.tikv.kvproto.RaftServerpb.KeyValue.getDefaultInstance()); } /** * repeated .raft_serverpb.KeyValue data = 3; */ public org.tikv.kvproto.RaftServerpb.KeyValue.Builder addDataBuilder( int index) { return getDataFieldBuilder().addBuilder( index, org.tikv.kvproto.RaftServerpb.KeyValue.getDefaultInstance()); } /** * repeated .raft_serverpb.KeyValue data = 3; */ public java.util.List getDataBuilderList() { return getDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftServerpb.KeyValue, org.tikv.kvproto.RaftServerpb.KeyValue.Builder, org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftServerpb.KeyValue, org.tikv.kvproto.RaftServerpb.KeyValue.Builder, org.tikv.kvproto.RaftServerpb.KeyValueOrBuilder>( data_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private long version_ ; /** * uint64 version = 4; */ public long getVersion() { return version_; } /** * uint64 version = 4; */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * uint64 version = 4; */ public Builder clearVersion() { version_ = 0L; onChanged(); return this; } private org.tikv.kvproto.RaftServerpb.SnapshotMeta meta_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.SnapshotMeta, org.tikv.kvproto.RaftServerpb.SnapshotMeta.Builder, org.tikv.kvproto.RaftServerpb.SnapshotMetaOrBuilder> metaBuilder_; /** * .raft_serverpb.SnapshotMeta meta = 5; */ public boolean hasMeta() { return metaBuilder_ != null || meta_ != null; } /** * .raft_serverpb.SnapshotMeta meta = 5; */ public org.tikv.kvproto.RaftServerpb.SnapshotMeta getMeta() { if (metaBuilder_ == null) { return meta_ == null ? org.tikv.kvproto.RaftServerpb.SnapshotMeta.getDefaultInstance() : meta_; } else { return metaBuilder_.getMessage(); } } /** * .raft_serverpb.SnapshotMeta meta = 5; */ public Builder setMeta(org.tikv.kvproto.RaftServerpb.SnapshotMeta value) { if (metaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } meta_ = value; onChanged(); } else { metaBuilder_.setMessage(value); } return this; } /** * .raft_serverpb.SnapshotMeta meta = 5; */ public Builder setMeta( org.tikv.kvproto.RaftServerpb.SnapshotMeta.Builder builderForValue) { if (metaBuilder_ == null) { meta_ = builderForValue.build(); onChanged(); } else { metaBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_serverpb.SnapshotMeta meta = 5; */ public Builder mergeMeta(org.tikv.kvproto.RaftServerpb.SnapshotMeta value) { if (metaBuilder_ == null) { if (meta_ != null) { meta_ = org.tikv.kvproto.RaftServerpb.SnapshotMeta.newBuilder(meta_).mergeFrom(value).buildPartial(); } else { meta_ = value; } onChanged(); } else { metaBuilder_.mergeFrom(value); } return this; } /** * .raft_serverpb.SnapshotMeta meta = 5; */ public Builder clearMeta() { if (metaBuilder_ == null) { meta_ = null; onChanged(); } else { meta_ = null; metaBuilder_ = null; } return this; } /** * .raft_serverpb.SnapshotMeta meta = 5; */ public org.tikv.kvproto.RaftServerpb.SnapshotMeta.Builder getMetaBuilder() { onChanged(); return getMetaFieldBuilder().getBuilder(); } /** * .raft_serverpb.SnapshotMeta meta = 5; */ public org.tikv.kvproto.RaftServerpb.SnapshotMetaOrBuilder getMetaOrBuilder() { if (metaBuilder_ != null) { return metaBuilder_.getMessageOrBuilder(); } else { return meta_ == null ? org.tikv.kvproto.RaftServerpb.SnapshotMeta.getDefaultInstance() : meta_; } } /** * .raft_serverpb.SnapshotMeta meta = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.SnapshotMeta, org.tikv.kvproto.RaftServerpb.SnapshotMeta.Builder, org.tikv.kvproto.RaftServerpb.SnapshotMetaOrBuilder> getMetaFieldBuilder() { if (metaBuilder_ == null) { metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.SnapshotMeta, org.tikv.kvproto.RaftServerpb.SnapshotMeta.Builder, org.tikv.kvproto.RaftServerpb.SnapshotMetaOrBuilder>( getMeta(), getParentForChildren(), isClean()); meta_ = null; } return metaBuilder_; } 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:raft_serverpb.RaftSnapshotData) } // @@protoc_insertion_point(class_scope:raft_serverpb.RaftSnapshotData) private static final org.tikv.kvproto.RaftServerpb.RaftSnapshotData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.RaftSnapshotData(); } public static org.tikv.kvproto.RaftServerpb.RaftSnapshotData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RaftSnapshotData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RaftSnapshotData(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.RaftServerpb.RaftSnapshotData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StoreIdentOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.StoreIdent) com.google.protobuf.MessageOrBuilder { /** * uint64 cluster_id = 1; */ long getClusterId(); /** * uint64 store_id = 2; */ long getStoreId(); } /** * Protobuf type {@code raft_serverpb.StoreIdent} */ public static final class StoreIdent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.StoreIdent) StoreIdentOrBuilder { private static final long serialVersionUID = 0L; // Use StoreIdent.newBuilder() to construct. private StoreIdent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StoreIdent() { clusterId_ = 0L; storeId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StoreIdent( 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 16: { storeId_ = 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.RaftServerpb.internal_static_raft_serverpb_StoreIdent_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_StoreIdent_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.StoreIdent.class, org.tikv.kvproto.RaftServerpb.StoreIdent.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 STORE_ID_FIELD_NUMBER = 2; private long storeId_; /** * uint64 store_id = 2; */ public long getStoreId() { return storeId_; } 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 (storeId_ != 0L) { output.writeUInt64(2, storeId_); } 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 (storeId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, storeId_); } 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.RaftServerpb.StoreIdent)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.StoreIdent other = (org.tikv.kvproto.RaftServerpb.StoreIdent) obj; boolean result = true; result = result && (getClusterId() == other.getClusterId()); result = result && (getStoreId() == other.getStoreId()); 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) + STORE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStoreId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.StoreIdent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.StoreIdent 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.RaftServerpb.StoreIdent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.StoreIdent 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.RaftServerpb.StoreIdent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.StoreIdent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.StoreIdent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.StoreIdent 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.RaftServerpb.StoreIdent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.StoreIdent 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.RaftServerpb.StoreIdent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.StoreIdent 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.RaftServerpb.StoreIdent 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 raft_serverpb.StoreIdent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.StoreIdent) org.tikv.kvproto.RaftServerpb.StoreIdentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_StoreIdent_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_StoreIdent_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.StoreIdent.class, org.tikv.kvproto.RaftServerpb.StoreIdent.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.StoreIdent.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; storeId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_StoreIdent_descriptor; } public org.tikv.kvproto.RaftServerpb.StoreIdent getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.StoreIdent.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.StoreIdent build() { org.tikv.kvproto.RaftServerpb.StoreIdent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.StoreIdent buildPartial() { org.tikv.kvproto.RaftServerpb.StoreIdent result = new org.tikv.kvproto.RaftServerpb.StoreIdent(this); result.clusterId_ = clusterId_; result.storeId_ = storeId_; 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.RaftServerpb.StoreIdent) { return mergeFrom((org.tikv.kvproto.RaftServerpb.StoreIdent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.StoreIdent other) { if (other == org.tikv.kvproto.RaftServerpb.StoreIdent.getDefaultInstance()) return this; if (other.getClusterId() != 0L) { setClusterId(other.getClusterId()); } if (other.getStoreId() != 0L) { setStoreId(other.getStoreId()); } 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.RaftServerpb.StoreIdent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.StoreIdent) 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 long storeId_ ; /** * uint64 store_id = 2; */ public long getStoreId() { return storeId_; } /** * uint64 store_id = 2; */ public Builder setStoreId(long value) { storeId_ = value; onChanged(); return this; } /** * uint64 store_id = 2; */ public Builder clearStoreId() { storeId_ = 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:raft_serverpb.StoreIdent) } // @@protoc_insertion_point(class_scope:raft_serverpb.StoreIdent) private static final org.tikv.kvproto.RaftServerpb.StoreIdent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.StoreIdent(); } public static org.tikv.kvproto.RaftServerpb.StoreIdent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StoreIdent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StoreIdent(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.RaftServerpb.StoreIdent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RaftLocalStateOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.RaftLocalState) com.google.protobuf.MessageOrBuilder { /** * .eraftpb.HardState hard_state = 1; */ boolean hasHardState(); /** * .eraftpb.HardState hard_state = 1; */ eraftpb.Eraftpb.HardState getHardState(); /** * .eraftpb.HardState hard_state = 1; */ eraftpb.Eraftpb.HardStateOrBuilder getHardStateOrBuilder(); /** * uint64 last_index = 2; */ long getLastIndex(); } /** * Protobuf type {@code raft_serverpb.RaftLocalState} */ public static final class RaftLocalState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.RaftLocalState) RaftLocalStateOrBuilder { private static final long serialVersionUID = 0L; // Use RaftLocalState.newBuilder() to construct. private RaftLocalState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaftLocalState() { lastIndex_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RaftLocalState( 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: { eraftpb.Eraftpb.HardState.Builder subBuilder = null; if (hardState_ != null) { subBuilder = hardState_.toBuilder(); } hardState_ = input.readMessage(eraftpb.Eraftpb.HardState.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hardState_); hardState_ = subBuilder.buildPartial(); } break; } case 16: { lastIndex_ = 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.RaftServerpb.internal_static_raft_serverpb_RaftLocalState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftLocalState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RaftLocalState.class, org.tikv.kvproto.RaftServerpb.RaftLocalState.Builder.class); } public static final int HARD_STATE_FIELD_NUMBER = 1; private eraftpb.Eraftpb.HardState hardState_; /** * .eraftpb.HardState hard_state = 1; */ public boolean hasHardState() { return hardState_ != null; } /** * .eraftpb.HardState hard_state = 1; */ public eraftpb.Eraftpb.HardState getHardState() { return hardState_ == null ? eraftpb.Eraftpb.HardState.getDefaultInstance() : hardState_; } /** * .eraftpb.HardState hard_state = 1; */ public eraftpb.Eraftpb.HardStateOrBuilder getHardStateOrBuilder() { return getHardState(); } public static final int LAST_INDEX_FIELD_NUMBER = 2; private long lastIndex_; /** * uint64 last_index = 2; */ public long getLastIndex() { return lastIndex_; } 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 (hardState_ != null) { output.writeMessage(1, getHardState()); } if (lastIndex_ != 0L) { output.writeUInt64(2, lastIndex_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (hardState_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHardState()); } if (lastIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, lastIndex_); } 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.RaftServerpb.RaftLocalState)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.RaftLocalState other = (org.tikv.kvproto.RaftServerpb.RaftLocalState) obj; boolean result = true; result = result && (hasHardState() == other.hasHardState()); if (hasHardState()) { result = result && getHardState() .equals(other.getHardState()); } result = result && (getLastIndex() == other.getLastIndex()); 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 (hasHardState()) { hash = (37 * hash) + HARD_STATE_FIELD_NUMBER; hash = (53 * hash) + getHardState().hashCode(); } hash = (37 * hash) + LAST_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastIndex()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.RaftLocalState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftLocalState 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.RaftServerpb.RaftLocalState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftLocalState 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.RaftServerpb.RaftLocalState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftLocalState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.RaftLocalState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftLocalState 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.RaftServerpb.RaftLocalState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftLocalState 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.RaftServerpb.RaftLocalState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftLocalState 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.RaftServerpb.RaftLocalState 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 raft_serverpb.RaftLocalState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.RaftLocalState) org.tikv.kvproto.RaftServerpb.RaftLocalStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftLocalState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftLocalState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RaftLocalState.class, org.tikv.kvproto.RaftServerpb.RaftLocalState.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.RaftLocalState.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 (hardStateBuilder_ == null) { hardState_ = null; } else { hardState_ = null; hardStateBuilder_ = null; } lastIndex_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftLocalState_descriptor; } public org.tikv.kvproto.RaftServerpb.RaftLocalState getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.RaftLocalState.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.RaftLocalState build() { org.tikv.kvproto.RaftServerpb.RaftLocalState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.RaftLocalState buildPartial() { org.tikv.kvproto.RaftServerpb.RaftLocalState result = new org.tikv.kvproto.RaftServerpb.RaftLocalState(this); if (hardStateBuilder_ == null) { result.hardState_ = hardState_; } else { result.hardState_ = hardStateBuilder_.build(); } result.lastIndex_ = lastIndex_; 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.RaftServerpb.RaftLocalState) { return mergeFrom((org.tikv.kvproto.RaftServerpb.RaftLocalState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.RaftLocalState other) { if (other == org.tikv.kvproto.RaftServerpb.RaftLocalState.getDefaultInstance()) return this; if (other.hasHardState()) { mergeHardState(other.getHardState()); } if (other.getLastIndex() != 0L) { setLastIndex(other.getLastIndex()); } 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.RaftServerpb.RaftLocalState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.RaftLocalState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private eraftpb.Eraftpb.HardState hardState_ = null; private com.google.protobuf.SingleFieldBuilderV3< eraftpb.Eraftpb.HardState, eraftpb.Eraftpb.HardState.Builder, eraftpb.Eraftpb.HardStateOrBuilder> hardStateBuilder_; /** * .eraftpb.HardState hard_state = 1; */ public boolean hasHardState() { return hardStateBuilder_ != null || hardState_ != null; } /** * .eraftpb.HardState hard_state = 1; */ public eraftpb.Eraftpb.HardState getHardState() { if (hardStateBuilder_ == null) { return hardState_ == null ? eraftpb.Eraftpb.HardState.getDefaultInstance() : hardState_; } else { return hardStateBuilder_.getMessage(); } } /** * .eraftpb.HardState hard_state = 1; */ public Builder setHardState(eraftpb.Eraftpb.HardState value) { if (hardStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hardState_ = value; onChanged(); } else { hardStateBuilder_.setMessage(value); } return this; } /** * .eraftpb.HardState hard_state = 1; */ public Builder setHardState( eraftpb.Eraftpb.HardState.Builder builderForValue) { if (hardStateBuilder_ == null) { hardState_ = builderForValue.build(); onChanged(); } else { hardStateBuilder_.setMessage(builderForValue.build()); } return this; } /** * .eraftpb.HardState hard_state = 1; */ public Builder mergeHardState(eraftpb.Eraftpb.HardState value) { if (hardStateBuilder_ == null) { if (hardState_ != null) { hardState_ = eraftpb.Eraftpb.HardState.newBuilder(hardState_).mergeFrom(value).buildPartial(); } else { hardState_ = value; } onChanged(); } else { hardStateBuilder_.mergeFrom(value); } return this; } /** * .eraftpb.HardState hard_state = 1; */ public Builder clearHardState() { if (hardStateBuilder_ == null) { hardState_ = null; onChanged(); } else { hardState_ = null; hardStateBuilder_ = null; } return this; } /** * .eraftpb.HardState hard_state = 1; */ public eraftpb.Eraftpb.HardState.Builder getHardStateBuilder() { onChanged(); return getHardStateFieldBuilder().getBuilder(); } /** * .eraftpb.HardState hard_state = 1; */ public eraftpb.Eraftpb.HardStateOrBuilder getHardStateOrBuilder() { if (hardStateBuilder_ != null) { return hardStateBuilder_.getMessageOrBuilder(); } else { return hardState_ == null ? eraftpb.Eraftpb.HardState.getDefaultInstance() : hardState_; } } /** * .eraftpb.HardState hard_state = 1; */ private com.google.protobuf.SingleFieldBuilderV3< eraftpb.Eraftpb.HardState, eraftpb.Eraftpb.HardState.Builder, eraftpb.Eraftpb.HardStateOrBuilder> getHardStateFieldBuilder() { if (hardStateBuilder_ == null) { hardStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< eraftpb.Eraftpb.HardState, eraftpb.Eraftpb.HardState.Builder, eraftpb.Eraftpb.HardStateOrBuilder>( getHardState(), getParentForChildren(), isClean()); hardState_ = null; } return hardStateBuilder_; } private long lastIndex_ ; /** * uint64 last_index = 2; */ public long getLastIndex() { return lastIndex_; } /** * uint64 last_index = 2; */ public Builder setLastIndex(long value) { lastIndex_ = value; onChanged(); return this; } /** * uint64 last_index = 2; */ public Builder clearLastIndex() { lastIndex_ = 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:raft_serverpb.RaftLocalState) } // @@protoc_insertion_point(class_scope:raft_serverpb.RaftLocalState) private static final org.tikv.kvproto.RaftServerpb.RaftLocalState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.RaftLocalState(); } public static org.tikv.kvproto.RaftServerpb.RaftLocalState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RaftLocalState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RaftLocalState(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.RaftServerpb.RaftLocalState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RaftApplyStateOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.RaftApplyState) com.google.protobuf.MessageOrBuilder { /** * uint64 applied_index = 1; */ long getAppliedIndex(); /** * uint64 last_commit_index = 3; */ long getLastCommitIndex(); /** * uint64 commit_index = 4; */ long getCommitIndex(); /** * uint64 commit_term = 5; */ long getCommitTerm(); /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ boolean hasTruncatedState(); /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ org.tikv.kvproto.RaftServerpb.RaftTruncatedState getTruncatedState(); /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ org.tikv.kvproto.RaftServerpb.RaftTruncatedStateOrBuilder getTruncatedStateOrBuilder(); } /** * Protobuf type {@code raft_serverpb.RaftApplyState} */ public static final class RaftApplyState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.RaftApplyState) RaftApplyStateOrBuilder { private static final long serialVersionUID = 0L; // Use RaftApplyState.newBuilder() to construct. private RaftApplyState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaftApplyState() { appliedIndex_ = 0L; lastCommitIndex_ = 0L; commitIndex_ = 0L; commitTerm_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RaftApplyState( 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: { appliedIndex_ = input.readUInt64(); break; } case 18: { org.tikv.kvproto.RaftServerpb.RaftTruncatedState.Builder subBuilder = null; if (truncatedState_ != null) { subBuilder = truncatedState_.toBuilder(); } truncatedState_ = input.readMessage(org.tikv.kvproto.RaftServerpb.RaftTruncatedState.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(truncatedState_); truncatedState_ = subBuilder.buildPartial(); } break; } case 24: { lastCommitIndex_ = input.readUInt64(); break; } case 32: { commitIndex_ = input.readUInt64(); break; } case 40: { commitTerm_ = 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.RaftServerpb.internal_static_raft_serverpb_RaftApplyState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftApplyState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RaftApplyState.class, org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder.class); } public static final int APPLIED_INDEX_FIELD_NUMBER = 1; private long appliedIndex_; /** * uint64 applied_index = 1; */ public long getAppliedIndex() { return appliedIndex_; } public static final int LAST_COMMIT_INDEX_FIELD_NUMBER = 3; private long lastCommitIndex_; /** * uint64 last_commit_index = 3; */ public long getLastCommitIndex() { return lastCommitIndex_; } public static final int COMMIT_INDEX_FIELD_NUMBER = 4; private long commitIndex_; /** * uint64 commit_index = 4; */ public long getCommitIndex() { return commitIndex_; } public static final int COMMIT_TERM_FIELD_NUMBER = 5; private long commitTerm_; /** * uint64 commit_term = 5; */ public long getCommitTerm() { return commitTerm_; } public static final int TRUNCATED_STATE_FIELD_NUMBER = 2; private org.tikv.kvproto.RaftServerpb.RaftTruncatedState truncatedState_; /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ public boolean hasTruncatedState() { return truncatedState_ != null; } /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ public org.tikv.kvproto.RaftServerpb.RaftTruncatedState getTruncatedState() { return truncatedState_ == null ? org.tikv.kvproto.RaftServerpb.RaftTruncatedState.getDefaultInstance() : truncatedState_; } /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ public org.tikv.kvproto.RaftServerpb.RaftTruncatedStateOrBuilder getTruncatedStateOrBuilder() { return getTruncatedState(); } 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 (appliedIndex_ != 0L) { output.writeUInt64(1, appliedIndex_); } if (truncatedState_ != null) { output.writeMessage(2, getTruncatedState()); } if (lastCommitIndex_ != 0L) { output.writeUInt64(3, lastCommitIndex_); } if (commitIndex_ != 0L) { output.writeUInt64(4, commitIndex_); } if (commitTerm_ != 0L) { output.writeUInt64(5, commitTerm_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (appliedIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, appliedIndex_); } if (truncatedState_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTruncatedState()); } if (lastCommitIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, lastCommitIndex_); } if (commitIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, commitIndex_); } if (commitTerm_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, commitTerm_); } 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.RaftServerpb.RaftApplyState)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.RaftApplyState other = (org.tikv.kvproto.RaftServerpb.RaftApplyState) obj; boolean result = true; result = result && (getAppliedIndex() == other.getAppliedIndex()); result = result && (getLastCommitIndex() == other.getLastCommitIndex()); result = result && (getCommitIndex() == other.getCommitIndex()); result = result && (getCommitTerm() == other.getCommitTerm()); result = result && (hasTruncatedState() == other.hasTruncatedState()); if (hasTruncatedState()) { result = result && getTruncatedState() .equals(other.getTruncatedState()); } 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) + APPLIED_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAppliedIndex()); hash = (37 * hash) + LAST_COMMIT_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLastCommitIndex()); hash = (37 * hash) + COMMIT_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitIndex()); hash = (37 * hash) + COMMIT_TERM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitTerm()); if (hasTruncatedState()) { hash = (37 * hash) + TRUNCATED_STATE_FIELD_NUMBER; hash = (53 * hash) + getTruncatedState().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.RaftApplyState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftApplyState 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.RaftServerpb.RaftApplyState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftApplyState 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.RaftServerpb.RaftApplyState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RaftApplyState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.RaftApplyState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftApplyState 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.RaftServerpb.RaftApplyState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftApplyState 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.RaftServerpb.RaftApplyState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RaftApplyState 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.RaftServerpb.RaftApplyState 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 raft_serverpb.RaftApplyState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.RaftApplyState) org.tikv.kvproto.RaftServerpb.RaftApplyStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftApplyState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftApplyState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RaftApplyState.class, org.tikv.kvproto.RaftServerpb.RaftApplyState.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.RaftApplyState.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(); appliedIndex_ = 0L; lastCommitIndex_ = 0L; commitIndex_ = 0L; commitTerm_ = 0L; if (truncatedStateBuilder_ == null) { truncatedState_ = null; } else { truncatedState_ = null; truncatedStateBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RaftApplyState_descriptor; } public org.tikv.kvproto.RaftServerpb.RaftApplyState getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.RaftApplyState.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.RaftApplyState build() { org.tikv.kvproto.RaftServerpb.RaftApplyState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.RaftApplyState buildPartial() { org.tikv.kvproto.RaftServerpb.RaftApplyState result = new org.tikv.kvproto.RaftServerpb.RaftApplyState(this); result.appliedIndex_ = appliedIndex_; result.lastCommitIndex_ = lastCommitIndex_; result.commitIndex_ = commitIndex_; result.commitTerm_ = commitTerm_; if (truncatedStateBuilder_ == null) { result.truncatedState_ = truncatedState_; } else { result.truncatedState_ = truncatedStateBuilder_.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.RaftServerpb.RaftApplyState) { return mergeFrom((org.tikv.kvproto.RaftServerpb.RaftApplyState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.RaftApplyState other) { if (other == org.tikv.kvproto.RaftServerpb.RaftApplyState.getDefaultInstance()) return this; if (other.getAppliedIndex() != 0L) { setAppliedIndex(other.getAppliedIndex()); } if (other.getLastCommitIndex() != 0L) { setLastCommitIndex(other.getLastCommitIndex()); } if (other.getCommitIndex() != 0L) { setCommitIndex(other.getCommitIndex()); } if (other.getCommitTerm() != 0L) { setCommitTerm(other.getCommitTerm()); } if (other.hasTruncatedState()) { mergeTruncatedState(other.getTruncatedState()); } 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.RaftServerpb.RaftApplyState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.RaftApplyState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long appliedIndex_ ; /** * uint64 applied_index = 1; */ public long getAppliedIndex() { return appliedIndex_; } /** * uint64 applied_index = 1; */ public Builder setAppliedIndex(long value) { appliedIndex_ = value; onChanged(); return this; } /** * uint64 applied_index = 1; */ public Builder clearAppliedIndex() { appliedIndex_ = 0L; onChanged(); return this; } private long lastCommitIndex_ ; /** * uint64 last_commit_index = 3; */ public long getLastCommitIndex() { return lastCommitIndex_; } /** * uint64 last_commit_index = 3; */ public Builder setLastCommitIndex(long value) { lastCommitIndex_ = value; onChanged(); return this; } /** * uint64 last_commit_index = 3; */ public Builder clearLastCommitIndex() { lastCommitIndex_ = 0L; onChanged(); return this; } private long commitIndex_ ; /** * uint64 commit_index = 4; */ public long getCommitIndex() { return commitIndex_; } /** * uint64 commit_index = 4; */ public Builder setCommitIndex(long value) { commitIndex_ = value; onChanged(); return this; } /** * uint64 commit_index = 4; */ public Builder clearCommitIndex() { commitIndex_ = 0L; onChanged(); return this; } private long commitTerm_ ; /** * uint64 commit_term = 5; */ public long getCommitTerm() { return commitTerm_; } /** * uint64 commit_term = 5; */ public Builder setCommitTerm(long value) { commitTerm_ = value; onChanged(); return this; } /** * uint64 commit_term = 5; */ public Builder clearCommitTerm() { commitTerm_ = 0L; onChanged(); return this; } private org.tikv.kvproto.RaftServerpb.RaftTruncatedState truncatedState_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.RaftTruncatedState, org.tikv.kvproto.RaftServerpb.RaftTruncatedState.Builder, org.tikv.kvproto.RaftServerpb.RaftTruncatedStateOrBuilder> truncatedStateBuilder_; /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ public boolean hasTruncatedState() { return truncatedStateBuilder_ != null || truncatedState_ != null; } /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ public org.tikv.kvproto.RaftServerpb.RaftTruncatedState getTruncatedState() { if (truncatedStateBuilder_ == null) { return truncatedState_ == null ? org.tikv.kvproto.RaftServerpb.RaftTruncatedState.getDefaultInstance() : truncatedState_; } else { return truncatedStateBuilder_.getMessage(); } } /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ public Builder setTruncatedState(org.tikv.kvproto.RaftServerpb.RaftTruncatedState value) { if (truncatedStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } truncatedState_ = value; onChanged(); } else { truncatedStateBuilder_.setMessage(value); } return this; } /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ public Builder setTruncatedState( org.tikv.kvproto.RaftServerpb.RaftTruncatedState.Builder builderForValue) { if (truncatedStateBuilder_ == null) { truncatedState_ = builderForValue.build(); onChanged(); } else { truncatedStateBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ public Builder mergeTruncatedState(org.tikv.kvproto.RaftServerpb.RaftTruncatedState value) { if (truncatedStateBuilder_ == null) { if (truncatedState_ != null) { truncatedState_ = org.tikv.kvproto.RaftServerpb.RaftTruncatedState.newBuilder(truncatedState_).mergeFrom(value).buildPartial(); } else { truncatedState_ = value; } onChanged(); } else { truncatedStateBuilder_.mergeFrom(value); } return this; } /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ public Builder clearTruncatedState() { if (truncatedStateBuilder_ == null) { truncatedState_ = null; onChanged(); } else { truncatedState_ = null; truncatedStateBuilder_ = null; } return this; } /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ public org.tikv.kvproto.RaftServerpb.RaftTruncatedState.Builder getTruncatedStateBuilder() { onChanged(); return getTruncatedStateFieldBuilder().getBuilder(); } /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ public org.tikv.kvproto.RaftServerpb.RaftTruncatedStateOrBuilder getTruncatedStateOrBuilder() { if (truncatedStateBuilder_ != null) { return truncatedStateBuilder_.getMessageOrBuilder(); } else { return truncatedState_ == null ? org.tikv.kvproto.RaftServerpb.RaftTruncatedState.getDefaultInstance() : truncatedState_; } } /** * .raft_serverpb.RaftTruncatedState truncated_state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.RaftTruncatedState, org.tikv.kvproto.RaftServerpb.RaftTruncatedState.Builder, org.tikv.kvproto.RaftServerpb.RaftTruncatedStateOrBuilder> getTruncatedStateFieldBuilder() { if (truncatedStateBuilder_ == null) { truncatedStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.RaftTruncatedState, org.tikv.kvproto.RaftServerpb.RaftTruncatedState.Builder, org.tikv.kvproto.RaftServerpb.RaftTruncatedStateOrBuilder>( getTruncatedState(), getParentForChildren(), isClean()); truncatedState_ = null; } return truncatedStateBuilder_; } 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:raft_serverpb.RaftApplyState) } // @@protoc_insertion_point(class_scope:raft_serverpb.RaftApplyState) private static final org.tikv.kvproto.RaftServerpb.RaftApplyState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.RaftApplyState(); } public static org.tikv.kvproto.RaftServerpb.RaftApplyState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RaftApplyState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RaftApplyState(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.RaftServerpb.RaftApplyState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MergeStateOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.MergeState) com.google.protobuf.MessageOrBuilder { /** * uint64 min_index = 1; */ long getMinIndex(); /** * .metapb.Region target = 2; */ boolean hasTarget(); /** * .metapb.Region target = 2; */ org.tikv.kvproto.Metapb.Region getTarget(); /** * .metapb.Region target = 2; */ org.tikv.kvproto.Metapb.RegionOrBuilder getTargetOrBuilder(); /** * uint64 commit = 3; */ long getCommit(); } /** * Protobuf type {@code raft_serverpb.MergeState} */ public static final class MergeState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.MergeState) MergeStateOrBuilder { private static final long serialVersionUID = 0L; // Use MergeState.newBuilder() to construct. private MergeState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MergeState() { minIndex_ = 0L; commit_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MergeState( 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: { minIndex_ = input.readUInt64(); break; } case 18: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (target_ != null) { subBuilder = target_.toBuilder(); } target_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(target_); target_ = subBuilder.buildPartial(); } break; } case 24: { commit_ = 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.RaftServerpb.internal_static_raft_serverpb_MergeState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_MergeState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.MergeState.class, org.tikv.kvproto.RaftServerpb.MergeState.Builder.class); } public static final int MIN_INDEX_FIELD_NUMBER = 1; private long minIndex_; /** * uint64 min_index = 1; */ public long getMinIndex() { return minIndex_; } public static final int TARGET_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Region target_; /** * .metapb.Region target = 2; */ public boolean hasTarget() { return target_ != null; } /** * .metapb.Region target = 2; */ public org.tikv.kvproto.Metapb.Region getTarget() { return target_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : target_; } /** * .metapb.Region target = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getTargetOrBuilder() { return getTarget(); } public static final int COMMIT_FIELD_NUMBER = 3; private long commit_; /** * uint64 commit = 3; */ public long getCommit() { return commit_; } 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 (minIndex_ != 0L) { output.writeUInt64(1, minIndex_); } if (target_ != null) { output.writeMessage(2, getTarget()); } if (commit_ != 0L) { output.writeUInt64(3, commit_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (minIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, minIndex_); } if (target_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTarget()); } if (commit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, commit_); } 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.RaftServerpb.MergeState)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.MergeState other = (org.tikv.kvproto.RaftServerpb.MergeState) obj; boolean result = true; result = result && (getMinIndex() == other.getMinIndex()); result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } result = result && (getCommit() == other.getCommit()); 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) + MIN_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinIndex()); if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + getTarget().hashCode(); } hash = (37 * hash) + COMMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommit()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.MergeState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.MergeState 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.RaftServerpb.MergeState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.MergeState 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.RaftServerpb.MergeState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.MergeState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.MergeState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.MergeState 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.RaftServerpb.MergeState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.MergeState 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.RaftServerpb.MergeState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.MergeState 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.RaftServerpb.MergeState 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 raft_serverpb.MergeState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.MergeState) org.tikv.kvproto.RaftServerpb.MergeStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_MergeState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_MergeState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.MergeState.class, org.tikv.kvproto.RaftServerpb.MergeState.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.MergeState.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(); minIndex_ = 0L; if (targetBuilder_ == null) { target_ = null; } else { target_ = null; targetBuilder_ = null; } commit_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_MergeState_descriptor; } public org.tikv.kvproto.RaftServerpb.MergeState getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.MergeState.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.MergeState build() { org.tikv.kvproto.RaftServerpb.MergeState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.MergeState buildPartial() { org.tikv.kvproto.RaftServerpb.MergeState result = new org.tikv.kvproto.RaftServerpb.MergeState(this); result.minIndex_ = minIndex_; if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.build(); } result.commit_ = commit_; 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.RaftServerpb.MergeState) { return mergeFrom((org.tikv.kvproto.RaftServerpb.MergeState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.MergeState other) { if (other == org.tikv.kvproto.RaftServerpb.MergeState.getDefaultInstance()) return this; if (other.getMinIndex() != 0L) { setMinIndex(other.getMinIndex()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } if (other.getCommit() != 0L) { setCommit(other.getCommit()); } 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.RaftServerpb.MergeState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.MergeState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long minIndex_ ; /** * uint64 min_index = 1; */ public long getMinIndex() { return minIndex_; } /** * uint64 min_index = 1; */ public Builder setMinIndex(long value) { minIndex_ = value; onChanged(); return this; } /** * uint64 min_index = 1; */ public Builder clearMinIndex() { minIndex_ = 0L; onChanged(); return this; } private org.tikv.kvproto.Metapb.Region target_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> targetBuilder_; /** * .metapb.Region target = 2; */ public boolean hasTarget() { return targetBuilder_ != null || target_ != null; } /** * .metapb.Region target = 2; */ public org.tikv.kvproto.Metapb.Region getTarget() { if (targetBuilder_ == null) { return target_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : target_; } else { return targetBuilder_.getMessage(); } } /** * .metapb.Region target = 2; */ public Builder setTarget(org.tikv.kvproto.Metapb.Region value) { if (targetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; onChanged(); } else { targetBuilder_.setMessage(value); } return this; } /** * .metapb.Region target = 2; */ public Builder setTarget( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); onChanged(); } else { targetBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region target = 2; */ public Builder mergeTarget(org.tikv.kvproto.Metapb.Region value) { if (targetBuilder_ == null) { if (target_ != null) { target_ = org.tikv.kvproto.Metapb.Region.newBuilder(target_).mergeFrom(value).buildPartial(); } else { target_ = value; } onChanged(); } else { targetBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region target = 2; */ public Builder clearTarget() { if (targetBuilder_ == null) { target_ = null; onChanged(); } else { target_ = null; targetBuilder_ = null; } return this; } /** * .metapb.Region target = 2; */ public org.tikv.kvproto.Metapb.Region.Builder getTargetBuilder() { onChanged(); return getTargetFieldBuilder().getBuilder(); } /** * .metapb.Region target = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getTargetOrBuilder() { if (targetBuilder_ != null) { return targetBuilder_.getMessageOrBuilder(); } else { return target_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : target_; } } /** * .metapb.Region target = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getTargetFieldBuilder() { if (targetBuilder_ == null) { targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getTarget(), getParentForChildren(), isClean()); target_ = null; } return targetBuilder_; } private long commit_ ; /** * uint64 commit = 3; */ public long getCommit() { return commit_; } /** * uint64 commit = 3; */ public Builder setCommit(long value) { commit_ = value; onChanged(); return this; } /** * uint64 commit = 3; */ public Builder clearCommit() { commit_ = 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:raft_serverpb.MergeState) } // @@protoc_insertion_point(class_scope:raft_serverpb.MergeState) private static final org.tikv.kvproto.RaftServerpb.MergeState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.MergeState(); } public static org.tikv.kvproto.RaftServerpb.MergeState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MergeState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MergeState(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.RaftServerpb.MergeState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegionLocalStateOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.RegionLocalState) com.google.protobuf.MessageOrBuilder { /** * .raft_serverpb.PeerState state = 1; */ int getStateValue(); /** * .raft_serverpb.PeerState state = 1; */ org.tikv.kvproto.RaftServerpb.PeerState getState(); /** * .metapb.Region region = 2; */ boolean hasRegion(); /** * .metapb.Region region = 2; */ org.tikv.kvproto.Metapb.Region getRegion(); /** * .metapb.Region region = 2; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder(); /** * .raft_serverpb.MergeState merge_state = 3; */ boolean hasMergeState(); /** * .raft_serverpb.MergeState merge_state = 3; */ org.tikv.kvproto.RaftServerpb.MergeState getMergeState(); /** * .raft_serverpb.MergeState merge_state = 3; */ org.tikv.kvproto.RaftServerpb.MergeStateOrBuilder getMergeStateOrBuilder(); } /** * Protobuf type {@code raft_serverpb.RegionLocalState} */ public static final class RegionLocalState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.RegionLocalState) RegionLocalStateOrBuilder { private static final long serialVersionUID = 0L; // Use RegionLocalState.newBuilder() to construct. private RegionLocalState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegionLocalState() { state_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegionLocalState( 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: { int rawValue = input.readEnum(); state_ = rawValue; break; } case 18: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (region_ != null) { subBuilder = region_.toBuilder(); } region_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(region_); region_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.RaftServerpb.MergeState.Builder subBuilder = null; if (mergeState_ != null) { subBuilder = mergeState_.toBuilder(); } mergeState_ = input.readMessage(org.tikv.kvproto.RaftServerpb.MergeState.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mergeState_); mergeState_ = 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.RaftServerpb.internal_static_raft_serverpb_RegionLocalState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RegionLocalState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RegionLocalState.class, org.tikv.kvproto.RaftServerpb.RegionLocalState.Builder.class); } public static final int STATE_FIELD_NUMBER = 1; private int state_; /** * .raft_serverpb.PeerState state = 1; */ public int getStateValue() { return state_; } /** * .raft_serverpb.PeerState state = 1; */ public org.tikv.kvproto.RaftServerpb.PeerState getState() { org.tikv.kvproto.RaftServerpb.PeerState result = org.tikv.kvproto.RaftServerpb.PeerState.valueOf(state_); return result == null ? org.tikv.kvproto.RaftServerpb.PeerState.UNRECOGNIZED : result; } public static final int REGION_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Region region_; /** * .metapb.Region region = 2; */ public boolean hasRegion() { return region_ != null; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region getRegion() { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { return getRegion(); } public static final int MERGE_STATE_FIELD_NUMBER = 3; private org.tikv.kvproto.RaftServerpb.MergeState mergeState_; /** * .raft_serverpb.MergeState merge_state = 3; */ public boolean hasMergeState() { return mergeState_ != null; } /** * .raft_serverpb.MergeState merge_state = 3; */ public org.tikv.kvproto.RaftServerpb.MergeState getMergeState() { return mergeState_ == null ? org.tikv.kvproto.RaftServerpb.MergeState.getDefaultInstance() : mergeState_; } /** * .raft_serverpb.MergeState merge_state = 3; */ public org.tikv.kvproto.RaftServerpb.MergeStateOrBuilder getMergeStateOrBuilder() { return getMergeState(); } 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 (state_ != org.tikv.kvproto.RaftServerpb.PeerState.Normal.getNumber()) { output.writeEnum(1, state_); } if (region_ != null) { output.writeMessage(2, getRegion()); } if (mergeState_ != null) { output.writeMessage(3, getMergeState()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (state_ != org.tikv.kvproto.RaftServerpb.PeerState.Normal.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, state_); } if (region_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRegion()); } if (mergeState_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMergeState()); } 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.RaftServerpb.RegionLocalState)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.RegionLocalState other = (org.tikv.kvproto.RaftServerpb.RegionLocalState) obj; boolean result = true; result = result && state_ == other.state_; result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } result = result && (hasMergeState() == other.hasMergeState()); if (hasMergeState()) { result = result && getMergeState() .equals(other.getMergeState()); } 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) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; if (hasRegion()) { hash = (37 * hash) + REGION_FIELD_NUMBER; hash = (53 * hash) + getRegion().hashCode(); } if (hasMergeState()) { hash = (37 * hash) + MERGE_STATE_FIELD_NUMBER; hash = (53 * hash) + getMergeState().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.RegionLocalState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RegionLocalState 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.RaftServerpb.RegionLocalState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RegionLocalState 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.RaftServerpb.RegionLocalState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.RegionLocalState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.RegionLocalState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RegionLocalState 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.RaftServerpb.RegionLocalState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RegionLocalState 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.RaftServerpb.RegionLocalState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.RegionLocalState 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.RaftServerpb.RegionLocalState 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 raft_serverpb.RegionLocalState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.RegionLocalState) org.tikv.kvproto.RaftServerpb.RegionLocalStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RegionLocalState_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RegionLocalState_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.RegionLocalState.class, org.tikv.kvproto.RaftServerpb.RegionLocalState.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.RegionLocalState.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(); state_ = 0; if (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } if (mergeStateBuilder_ == null) { mergeState_ = null; } else { mergeState_ = null; mergeStateBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_RegionLocalState_descriptor; } public org.tikv.kvproto.RaftServerpb.RegionLocalState getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.RegionLocalState.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.RegionLocalState build() { org.tikv.kvproto.RaftServerpb.RegionLocalState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.RegionLocalState buildPartial() { org.tikv.kvproto.RaftServerpb.RegionLocalState result = new org.tikv.kvproto.RaftServerpb.RegionLocalState(this); result.state_ = state_; if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.build(); } if (mergeStateBuilder_ == null) { result.mergeState_ = mergeState_; } else { result.mergeState_ = mergeStateBuilder_.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.RaftServerpb.RegionLocalState) { return mergeFrom((org.tikv.kvproto.RaftServerpb.RegionLocalState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.RegionLocalState other) { if (other == org.tikv.kvproto.RaftServerpb.RegionLocalState.getDefaultInstance()) return this; if (other.state_ != 0) { setStateValue(other.getStateValue()); } if (other.hasRegion()) { mergeRegion(other.getRegion()); } if (other.hasMergeState()) { mergeMergeState(other.getMergeState()); } 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.RaftServerpb.RegionLocalState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.RegionLocalState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int state_ = 0; /** * .raft_serverpb.PeerState state = 1; */ public int getStateValue() { return state_; } /** * .raft_serverpb.PeerState state = 1; */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /** * .raft_serverpb.PeerState state = 1; */ public org.tikv.kvproto.RaftServerpb.PeerState getState() { org.tikv.kvproto.RaftServerpb.PeerState result = org.tikv.kvproto.RaftServerpb.PeerState.valueOf(state_); return result == null ? org.tikv.kvproto.RaftServerpb.PeerState.UNRECOGNIZED : result; } /** * .raft_serverpb.PeerState state = 1; */ public Builder setState(org.tikv.kvproto.RaftServerpb.PeerState value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /** * .raft_serverpb.PeerState state = 1; */ public Builder clearState() { state_ = 0; onChanged(); return this; } private org.tikv.kvproto.Metapb.Region region_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionBuilder_; /** * .metapb.Region region = 2; */ public boolean hasRegion() { return regionBuilder_ != null || region_ != null; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region getRegion() { if (regionBuilder_ == null) { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } else { return regionBuilder_.getMessage(); } } /** * .metapb.Region region = 2; */ public Builder setRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } region_ = value; onChanged(); } else { regionBuilder_.setMessage(value); } return this; } /** * .metapb.Region region = 2; */ public Builder setRegion( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionBuilder_ == null) { region_ = builderForValue.build(); onChanged(); } else { regionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region region = 2; */ public Builder mergeRegion(org.tikv.kvproto.Metapb.Region value) { if (regionBuilder_ == null) { if (region_ != null) { region_ = org.tikv.kvproto.Metapb.Region.newBuilder(region_).mergeFrom(value).buildPartial(); } else { region_ = value; } onChanged(); } else { regionBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region region = 2; */ public Builder clearRegion() { if (regionBuilder_ == null) { region_ = null; onChanged(); } else { region_ = null; regionBuilder_ = null; } return this; } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionBuilder() { onChanged(); return getRegionFieldBuilder().getBuilder(); } /** * .metapb.Region region = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionOrBuilder() { if (regionBuilder_ != null) { return regionBuilder_.getMessageOrBuilder(); } else { return region_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : region_; } } /** * .metapb.Region region = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionFieldBuilder() { if (regionBuilder_ == null) { regionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRegion(), getParentForChildren(), isClean()); region_ = null; } return regionBuilder_; } private org.tikv.kvproto.RaftServerpb.MergeState mergeState_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.MergeState, org.tikv.kvproto.RaftServerpb.MergeState.Builder, org.tikv.kvproto.RaftServerpb.MergeStateOrBuilder> mergeStateBuilder_; /** * .raft_serverpb.MergeState merge_state = 3; */ public boolean hasMergeState() { return mergeStateBuilder_ != null || mergeState_ != null; } /** * .raft_serverpb.MergeState merge_state = 3; */ public org.tikv.kvproto.RaftServerpb.MergeState getMergeState() { if (mergeStateBuilder_ == null) { return mergeState_ == null ? org.tikv.kvproto.RaftServerpb.MergeState.getDefaultInstance() : mergeState_; } else { return mergeStateBuilder_.getMessage(); } } /** * .raft_serverpb.MergeState merge_state = 3; */ public Builder setMergeState(org.tikv.kvproto.RaftServerpb.MergeState value) { if (mergeStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mergeState_ = value; onChanged(); } else { mergeStateBuilder_.setMessage(value); } return this; } /** * .raft_serverpb.MergeState merge_state = 3; */ public Builder setMergeState( org.tikv.kvproto.RaftServerpb.MergeState.Builder builderForValue) { if (mergeStateBuilder_ == null) { mergeState_ = builderForValue.build(); onChanged(); } else { mergeStateBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_serverpb.MergeState merge_state = 3; */ public Builder mergeMergeState(org.tikv.kvproto.RaftServerpb.MergeState value) { if (mergeStateBuilder_ == null) { if (mergeState_ != null) { mergeState_ = org.tikv.kvproto.RaftServerpb.MergeState.newBuilder(mergeState_).mergeFrom(value).buildPartial(); } else { mergeState_ = value; } onChanged(); } else { mergeStateBuilder_.mergeFrom(value); } return this; } /** * .raft_serverpb.MergeState merge_state = 3; */ public Builder clearMergeState() { if (mergeStateBuilder_ == null) { mergeState_ = null; onChanged(); } else { mergeState_ = null; mergeStateBuilder_ = null; } return this; } /** * .raft_serverpb.MergeState merge_state = 3; */ public org.tikv.kvproto.RaftServerpb.MergeState.Builder getMergeStateBuilder() { onChanged(); return getMergeStateFieldBuilder().getBuilder(); } /** * .raft_serverpb.MergeState merge_state = 3; */ public org.tikv.kvproto.RaftServerpb.MergeStateOrBuilder getMergeStateOrBuilder() { if (mergeStateBuilder_ != null) { return mergeStateBuilder_.getMessageOrBuilder(); } else { return mergeState_ == null ? org.tikv.kvproto.RaftServerpb.MergeState.getDefaultInstance() : mergeState_; } } /** * .raft_serverpb.MergeState merge_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.MergeState, org.tikv.kvproto.RaftServerpb.MergeState.Builder, org.tikv.kvproto.RaftServerpb.MergeStateOrBuilder> getMergeStateFieldBuilder() { if (mergeStateBuilder_ == null) { mergeStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftServerpb.MergeState, org.tikv.kvproto.RaftServerpb.MergeState.Builder, org.tikv.kvproto.RaftServerpb.MergeStateOrBuilder>( getMergeState(), getParentForChildren(), isClean()); mergeState_ = null; } return mergeStateBuilder_; } 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:raft_serverpb.RegionLocalState) } // @@protoc_insertion_point(class_scope:raft_serverpb.RegionLocalState) private static final org.tikv.kvproto.RaftServerpb.RegionLocalState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.RegionLocalState(); } public static org.tikv.kvproto.RaftServerpb.RegionLocalState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegionLocalState parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegionLocalState(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.RaftServerpb.RegionLocalState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExtraMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_serverpb.ExtraMessage) com.google.protobuf.MessageOrBuilder { /** * .raft_serverpb.ExtraMessageType type = 1; */ int getTypeValue(); /** * .raft_serverpb.ExtraMessageType type = 1; */ org.tikv.kvproto.RaftServerpb.ExtraMessageType getType(); /** * uint64 premerge_commit = 2; */ long getPremergeCommit(); /** * repeated .metapb.Peer check_peers = 3; */ java.util.List getCheckPeersList(); /** * repeated .metapb.Peer check_peers = 3; */ org.tikv.kvproto.Metapb.Peer getCheckPeers(int index); /** * repeated .metapb.Peer check_peers = 3; */ int getCheckPeersCount(); /** * repeated .metapb.Peer check_peers = 3; */ java.util.List getCheckPeersOrBuilderList(); /** * repeated .metapb.Peer check_peers = 3; */ org.tikv.kvproto.Metapb.PeerOrBuilder getCheckPeersOrBuilder( int index); } /** * Protobuf type {@code raft_serverpb.ExtraMessage} */ public static final class ExtraMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_serverpb.ExtraMessage) ExtraMessageOrBuilder { private static final long serialVersionUID = 0L; // Use ExtraMessage.newBuilder() to construct. private ExtraMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExtraMessage() { type_ = 0; premergeCommit_ = 0L; checkPeers_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExtraMessage( 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: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 16: { premergeCommit_ = input.readUInt64(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { checkPeers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } checkPeers_.add( input.readMessage(org.tikv.kvproto.Metapb.Peer.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_ & 0x00000004) == 0x00000004)) { checkPeers_ = java.util.Collections.unmodifiableList(checkPeers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_ExtraMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_ExtraMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.ExtraMessage.class, org.tikv.kvproto.RaftServerpb.ExtraMessage.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * .raft_serverpb.ExtraMessageType type = 1; */ public int getTypeValue() { return type_; } /** * .raft_serverpb.ExtraMessageType type = 1; */ public org.tikv.kvproto.RaftServerpb.ExtraMessageType getType() { org.tikv.kvproto.RaftServerpb.ExtraMessageType result = org.tikv.kvproto.RaftServerpb.ExtraMessageType.valueOf(type_); return result == null ? org.tikv.kvproto.RaftServerpb.ExtraMessageType.UNRECOGNIZED : result; } public static final int PREMERGE_COMMIT_FIELD_NUMBER = 2; private long premergeCommit_; /** * uint64 premerge_commit = 2; */ public long getPremergeCommit() { return premergeCommit_; } public static final int CHECK_PEERS_FIELD_NUMBER = 3; private java.util.List checkPeers_; /** * repeated .metapb.Peer check_peers = 3; */ public java.util.List getCheckPeersList() { return checkPeers_; } /** * repeated .metapb.Peer check_peers = 3; */ public java.util.List getCheckPeersOrBuilderList() { return checkPeers_; } /** * repeated .metapb.Peer check_peers = 3; */ public int getCheckPeersCount() { return checkPeers_.size(); } /** * repeated .metapb.Peer check_peers = 3; */ public org.tikv.kvproto.Metapb.Peer getCheckPeers(int index) { return checkPeers_.get(index); } /** * repeated .metapb.Peer check_peers = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getCheckPeersOrBuilder( int index) { return checkPeers_.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 { if (type_ != org.tikv.kvproto.RaftServerpb.ExtraMessageType.MsgRegionWakeUp.getNumber()) { output.writeEnum(1, type_); } if (premergeCommit_ != 0L) { output.writeUInt64(2, premergeCommit_); } for (int i = 0; i < checkPeers_.size(); i++) { output.writeMessage(3, checkPeers_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.tikv.kvproto.RaftServerpb.ExtraMessageType.MsgRegionWakeUp.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (premergeCommit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, premergeCommit_); } for (int i = 0; i < checkPeers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, checkPeers_.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.RaftServerpb.ExtraMessage)) { return super.equals(obj); } org.tikv.kvproto.RaftServerpb.ExtraMessage other = (org.tikv.kvproto.RaftServerpb.ExtraMessage) obj; boolean result = true; result = result && type_ == other.type_; result = result && (getPremergeCommit() == other.getPremergeCommit()); result = result && getCheckPeersList() .equals(other.getCheckPeersList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + PREMERGE_COMMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPremergeCommit()); if (getCheckPeersCount() > 0) { hash = (37 * hash) + CHECK_PEERS_FIELD_NUMBER; hash = (53 * hash) + getCheckPeersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftServerpb.ExtraMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.ExtraMessage 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.RaftServerpb.ExtraMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.ExtraMessage 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.RaftServerpb.ExtraMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftServerpb.ExtraMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftServerpb.ExtraMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.ExtraMessage 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.RaftServerpb.ExtraMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.ExtraMessage 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.RaftServerpb.ExtraMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftServerpb.ExtraMessage 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.RaftServerpb.ExtraMessage 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 raft_serverpb.ExtraMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_serverpb.ExtraMessage) org.tikv.kvproto.RaftServerpb.ExtraMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_ExtraMessage_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_ExtraMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftServerpb.ExtraMessage.class, org.tikv.kvproto.RaftServerpb.ExtraMessage.Builder.class); } // Construct using org.tikv.kvproto.RaftServerpb.ExtraMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCheckPeersFieldBuilder(); } } public Builder clear() { super.clear(); type_ = 0; premergeCommit_ = 0L; if (checkPeersBuilder_ == null) { checkPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { checkPeersBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftServerpb.internal_static_raft_serverpb_ExtraMessage_descriptor; } public org.tikv.kvproto.RaftServerpb.ExtraMessage getDefaultInstanceForType() { return org.tikv.kvproto.RaftServerpb.ExtraMessage.getDefaultInstance(); } public org.tikv.kvproto.RaftServerpb.ExtraMessage build() { org.tikv.kvproto.RaftServerpb.ExtraMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftServerpb.ExtraMessage buildPartial() { org.tikv.kvproto.RaftServerpb.ExtraMessage result = new org.tikv.kvproto.RaftServerpb.ExtraMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.type_ = type_; result.premergeCommit_ = premergeCommit_; if (checkPeersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { checkPeers_ = java.util.Collections.unmodifiableList(checkPeers_); bitField0_ = (bitField0_ & ~0x00000004); } result.checkPeers_ = checkPeers_; } else { result.checkPeers_ = checkPeersBuilder_.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.RaftServerpb.ExtraMessage) { return mergeFrom((org.tikv.kvproto.RaftServerpb.ExtraMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftServerpb.ExtraMessage other) { if (other == org.tikv.kvproto.RaftServerpb.ExtraMessage.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getPremergeCommit() != 0L) { setPremergeCommit(other.getPremergeCommit()); } if (checkPeersBuilder_ == null) { if (!other.checkPeers_.isEmpty()) { if (checkPeers_.isEmpty()) { checkPeers_ = other.checkPeers_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCheckPeersIsMutable(); checkPeers_.addAll(other.checkPeers_); } onChanged(); } } else { if (!other.checkPeers_.isEmpty()) { if (checkPeersBuilder_.isEmpty()) { checkPeersBuilder_.dispose(); checkPeersBuilder_ = null; checkPeers_ = other.checkPeers_; bitField0_ = (bitField0_ & ~0x00000004); checkPeersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCheckPeersFieldBuilder() : null; } else { checkPeersBuilder_.addAllMessages(other.checkPeers_); } } } 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.RaftServerpb.ExtraMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftServerpb.ExtraMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * .raft_serverpb.ExtraMessageType type = 1; */ public int getTypeValue() { return type_; } /** * .raft_serverpb.ExtraMessageType type = 1; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .raft_serverpb.ExtraMessageType type = 1; */ public org.tikv.kvproto.RaftServerpb.ExtraMessageType getType() { org.tikv.kvproto.RaftServerpb.ExtraMessageType result = org.tikv.kvproto.RaftServerpb.ExtraMessageType.valueOf(type_); return result == null ? org.tikv.kvproto.RaftServerpb.ExtraMessageType.UNRECOGNIZED : result; } /** * .raft_serverpb.ExtraMessageType type = 1; */ public Builder setType(org.tikv.kvproto.RaftServerpb.ExtraMessageType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .raft_serverpb.ExtraMessageType type = 1; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private long premergeCommit_ ; /** * uint64 premerge_commit = 2; */ public long getPremergeCommit() { return premergeCommit_; } /** * uint64 premerge_commit = 2; */ public Builder setPremergeCommit(long value) { premergeCommit_ = value; onChanged(); return this; } /** * uint64 premerge_commit = 2; */ public Builder clearPremergeCommit() { premergeCommit_ = 0L; onChanged(); return this; } private java.util.List checkPeers_ = java.util.Collections.emptyList(); private void ensureCheckPeersIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { checkPeers_ = new java.util.ArrayList(checkPeers_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> checkPeersBuilder_; /** * repeated .metapb.Peer check_peers = 3; */ public java.util.List getCheckPeersList() { if (checkPeersBuilder_ == null) { return java.util.Collections.unmodifiableList(checkPeers_); } else { return checkPeersBuilder_.getMessageList(); } } /** * repeated .metapb.Peer check_peers = 3; */ public int getCheckPeersCount() { if (checkPeersBuilder_ == null) { return checkPeers_.size(); } else { return checkPeersBuilder_.getCount(); } } /** * repeated .metapb.Peer check_peers = 3; */ public org.tikv.kvproto.Metapb.Peer getCheckPeers(int index) { if (checkPeersBuilder_ == null) { return checkPeers_.get(index); } else { return checkPeersBuilder_.getMessage(index); } } /** * repeated .metapb.Peer check_peers = 3; */ public Builder setCheckPeers( int index, org.tikv.kvproto.Metapb.Peer value) { if (checkPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCheckPeersIsMutable(); checkPeers_.set(index, value); onChanged(); } else { checkPeersBuilder_.setMessage(index, value); } return this; } /** * repeated .metapb.Peer check_peers = 3; */ public Builder setCheckPeers( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (checkPeersBuilder_ == null) { ensureCheckPeersIsMutable(); checkPeers_.set(index, builderForValue.build()); onChanged(); } else { checkPeersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Peer check_peers = 3; */ public Builder addCheckPeers(org.tikv.kvproto.Metapb.Peer value) { if (checkPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCheckPeersIsMutable(); checkPeers_.add(value); onChanged(); } else { checkPeersBuilder_.addMessage(value); } return this; } /** * repeated .metapb.Peer check_peers = 3; */ public Builder addCheckPeers( int index, org.tikv.kvproto.Metapb.Peer value) { if (checkPeersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCheckPeersIsMutable(); checkPeers_.add(index, value); onChanged(); } else { checkPeersBuilder_.addMessage(index, value); } return this; } /** * repeated .metapb.Peer check_peers = 3; */ public Builder addCheckPeers( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (checkPeersBuilder_ == null) { ensureCheckPeersIsMutable(); checkPeers_.add(builderForValue.build()); onChanged(); } else { checkPeersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .metapb.Peer check_peers = 3; */ public Builder addCheckPeers( int index, org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (checkPeersBuilder_ == null) { ensureCheckPeersIsMutable(); checkPeers_.add(index, builderForValue.build()); onChanged(); } else { checkPeersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Peer check_peers = 3; */ public Builder addAllCheckPeers( java.lang.Iterable values) { if (checkPeersBuilder_ == null) { ensureCheckPeersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, checkPeers_); onChanged(); } else { checkPeersBuilder_.addAllMessages(values); } return this; } /** * repeated .metapb.Peer check_peers = 3; */ public Builder clearCheckPeers() { if (checkPeersBuilder_ == null) { checkPeers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { checkPeersBuilder_.clear(); } return this; } /** * repeated .metapb.Peer check_peers = 3; */ public Builder removeCheckPeers(int index) { if (checkPeersBuilder_ == null) { ensureCheckPeersIsMutable(); checkPeers_.remove(index); onChanged(); } else { checkPeersBuilder_.remove(index); } return this; } /** * repeated .metapb.Peer check_peers = 3; */ public org.tikv.kvproto.Metapb.Peer.Builder getCheckPeersBuilder( int index) { return getCheckPeersFieldBuilder().getBuilder(index); } /** * repeated .metapb.Peer check_peers = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getCheckPeersOrBuilder( int index) { if (checkPeersBuilder_ == null) { return checkPeers_.get(index); } else { return checkPeersBuilder_.getMessageOrBuilder(index); } } /** * repeated .metapb.Peer check_peers = 3; */ public java.util.List getCheckPeersOrBuilderList() { if (checkPeersBuilder_ != null) { return checkPeersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(checkPeers_); } } /** * repeated .metapb.Peer check_peers = 3; */ public org.tikv.kvproto.Metapb.Peer.Builder addCheckPeersBuilder() { return getCheckPeersFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** * repeated .metapb.Peer check_peers = 3; */ public org.tikv.kvproto.Metapb.Peer.Builder addCheckPeersBuilder( int index) { return getCheckPeersFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Peer.getDefaultInstance()); } /** * repeated .metapb.Peer check_peers = 3; */ public java.util.List getCheckPeersBuilderList() { return getCheckPeersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getCheckPeersFieldBuilder() { if (checkPeersBuilder_ == null) { checkPeersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( checkPeers_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); checkPeers_ = null; } return checkPeersBuilder_; } 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:raft_serverpb.ExtraMessage) } // @@protoc_insertion_point(class_scope:raft_serverpb.ExtraMessage) private static final org.tikv.kvproto.RaftServerpb.ExtraMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftServerpb.ExtraMessage(); } public static org.tikv.kvproto.RaftServerpb.ExtraMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ExtraMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExtraMessage(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.RaftServerpb.ExtraMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_RaftMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_RaftMessage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_RaftTruncatedState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_RaftTruncatedState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_SnapshotCFFile_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_SnapshotCFFile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_SnapshotMeta_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_SnapshotMeta_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_SnapshotChunk_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_SnapshotChunk_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_Done_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_Done_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_KeyValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_KeyValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_RaftSnapshotData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_RaftSnapshotData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_StoreIdent_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_StoreIdent_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_RaftLocalState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_RaftLocalState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_RaftApplyState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_RaftApplyState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_MergeState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_MergeState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_RegionLocalState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_RegionLocalState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_serverpb_ExtraMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_serverpb_ExtraMessage_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\023raft_serverpb.proto\022\rraft_serverpb\032\rer" + "aftpb.proto\032\014metapb.proto\032\017rustproto.pro" + "to\"\276\002\n\013RaftMessage\022\021\n\tregion_id\030\001 \001(\004\022\037\n" + "\tfrom_peer\030\002 \001(\0132\014.metapb.Peer\022\035\n\007to_pee" + "r\030\003 \001(\0132\014.metapb.Peer\022!\n\007message\030\004 \001(\0132\020" + ".eraftpb.Message\022)\n\014region_epoch\030\005 \001(\0132\023" + ".metapb.RegionEpoch\022\024\n\014is_tombstone\030\006 \001(" + "\010\022\021\n\tstart_key\030\007 \001(\014\022\017\n\007end_key\030\010 \001(\014\022$\n" + "\014merge_target\030\t \001(\0132\016.metapb.Region\022.\n\te" + "xtra_msg\030\n \001(\0132\033.raft_serverpb.ExtraMess" + "age\"1\n\022RaftTruncatedState\022\r\n\005index\030\001 \001(\004" + "\022\014\n\004term\030\002 \001(\004\"<\n\016SnapshotCFFile\022\n\n\002cf\030\001" + " \001(\t\022\014\n\004size\030\002 \001(\004\022\020\n\010checksum\030\003 \001(\r\"T\n\014" + "SnapshotMeta\022/\n\010cf_files\030\001 \003(\0132\035.raft_se" + "rverpb.SnapshotCFFile\022\023\n\013for_balance\030\002 \001" + "(\010\"J\n\rSnapshotChunk\022+\n\007message\030\001 \001(\0132\032.r" + "aft_serverpb.RaftMessage\022\014\n\004data\030\002 \001(\014\"\006" + "\n\004Done\"&\n\010KeyValue\022\013\n\003key\030\001 \001(\014\022\r\n\005value" + "\030\002 \001(\014\"\250\001\n\020RaftSnapshotData\022\036\n\006region\030\001 " + "\001(\0132\016.metapb.Region\022\021\n\tfile_size\030\002 \001(\004\022%" + "\n\004data\030\003 \003(\0132\027.raft_serverpb.KeyValue\022\017\n" + "\007version\030\004 \001(\004\022)\n\004meta\030\005 \001(\0132\033.raft_serv" + "erpb.SnapshotMeta\"2\n\nStoreIdent\022\022\n\nclust" + "er_id\030\001 \001(\004\022\020\n\010store_id\030\002 \001(\004\"L\n\016RaftLoc" + "alState\022&\n\nhard_state\030\001 \001(\0132\022.eraftpb.Ha" + "rdState\022\022\n\nlast_index\030\002 \001(\004\"\251\001\n\016RaftAppl" + "yState\022\025\n\rapplied_index\030\001 \001(\004\022\031\n\021last_co" + "mmit_index\030\003 \001(\004\022\024\n\014commit_index\030\004 \001(\004\022\023" + "\n\013commit_term\030\005 \001(\004\022:\n\017truncated_state\030\002" + " \001(\0132!.raft_serverpb.RaftTruncatedState\"" + "O\n\nMergeState\022\021\n\tmin_index\030\001 \001(\004\022\036\n\006targ" + "et\030\002 \001(\0132\016.metapb.Region\022\016\n\006commit\030\003 \001(\004" + "\"\213\001\n\020RegionLocalState\022\'\n\005state\030\001 \001(\0162\030.r" + "aft_serverpb.PeerState\022\036\n\006region\030\002 \001(\0132\016" + ".metapb.Region\022.\n\013merge_state\030\003 \001(\0132\031.ra" + "ft_serverpb.MergeState\"y\n\014ExtraMessage\022-" + "\n\004type\030\001 \001(\0162\037.raft_serverpb.ExtraMessag" + "eType\022\027\n\017premerge_commit\030\002 \001(\004\022!\n\013check_" + "peers\030\003 \003(\0132\014.metapb.Peer*A\n\tPeerState\022\n" + "\n\006Normal\020\000\022\014\n\010Applying\020\001\022\r\n\tTombstone\020\002\022" + "\013\n\007Merging\020\003*\252\001\n\020ExtraMessageType\022\023\n\017Msg" + "RegionWakeUp\020\000\022\030\n\024MsgWantRollbackMerge\020\001" + "\022\025\n\021MsgCheckStalePeer\020\002\022\035\n\031MsgCheckStale" + "PeerResponse\020\003\022\027\n\023MsgHibernateRequest\020\004\022" + "\030\n\024MsgHibernateResponse\020\005B\026\n\020org.tikv.kv" + "proto\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[] { eraftpb.Eraftpb.getDescriptor(), org.tikv.kvproto.Metapb.getDescriptor(), rustproto.Rustproto.getDescriptor(), }, assigner); internal_static_raft_serverpb_RaftMessage_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_raft_serverpb_RaftMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_RaftMessage_descriptor, new java.lang.String[] { "RegionId", "FromPeer", "ToPeer", "Message", "RegionEpoch", "IsTombstone", "StartKey", "EndKey", "MergeTarget", "ExtraMsg", }); internal_static_raft_serverpb_RaftTruncatedState_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_raft_serverpb_RaftTruncatedState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_RaftTruncatedState_descriptor, new java.lang.String[] { "Index", "Term", }); internal_static_raft_serverpb_SnapshotCFFile_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_raft_serverpb_SnapshotCFFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_SnapshotCFFile_descriptor, new java.lang.String[] { "Cf", "Size", "Checksum", }); internal_static_raft_serverpb_SnapshotMeta_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_raft_serverpb_SnapshotMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_SnapshotMeta_descriptor, new java.lang.String[] { "CfFiles", "ForBalance", }); internal_static_raft_serverpb_SnapshotChunk_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_raft_serverpb_SnapshotChunk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_SnapshotChunk_descriptor, new java.lang.String[] { "Message", "Data", }); internal_static_raft_serverpb_Done_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_raft_serverpb_Done_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_Done_descriptor, new java.lang.String[] { }); internal_static_raft_serverpb_KeyValue_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_raft_serverpb_KeyValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_KeyValue_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_raft_serverpb_RaftSnapshotData_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_raft_serverpb_RaftSnapshotData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_RaftSnapshotData_descriptor, new java.lang.String[] { "Region", "FileSize", "Data", "Version", "Meta", }); internal_static_raft_serverpb_StoreIdent_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_raft_serverpb_StoreIdent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_StoreIdent_descriptor, new java.lang.String[] { "ClusterId", "StoreId", }); internal_static_raft_serverpb_RaftLocalState_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_raft_serverpb_RaftLocalState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_RaftLocalState_descriptor, new java.lang.String[] { "HardState", "LastIndex", }); internal_static_raft_serverpb_RaftApplyState_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_raft_serverpb_RaftApplyState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_RaftApplyState_descriptor, new java.lang.String[] { "AppliedIndex", "LastCommitIndex", "CommitIndex", "CommitTerm", "TruncatedState", }); internal_static_raft_serverpb_MergeState_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_raft_serverpb_MergeState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_MergeState_descriptor, new java.lang.String[] { "MinIndex", "Target", "Commit", }); internal_static_raft_serverpb_RegionLocalState_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_raft_serverpb_RegionLocalState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_RegionLocalState_descriptor, new java.lang.String[] { "State", "Region", "MergeState", }); internal_static_raft_serverpb_ExtraMessage_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_raft_serverpb_ExtraMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_serverpb_ExtraMessage_descriptor, new java.lang.String[] { "Type", "PremergeCommit", "CheckPeers", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(rustproto.Rustproto.liteRuntimeAll); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); eraftpb.Eraftpb.getDescriptor(); org.tikv.kvproto.Metapb.getDescriptor(); rustproto.Rustproto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy