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

org.tikv.kvproto.RaftCmdpb 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_cmdpb.proto

package org.tikv.kvproto;

public final class RaftCmdpb {
  private RaftCmdpb() {}
  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_cmdpb.CmdType}
   */
  public enum CmdType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * Invalid = 0;
     */
    Invalid(0),
    /**
     * Get = 1;
     */
    Get(1),
    /**
     * Put = 3;
     */
    Put(3),
    /**
     * Delete = 4;
     */
    Delete(4),
    /**
     * Snap = 5;
     */
    Snap(5),
    /**
     * Prewrite = 6;
     */
    Prewrite(6),
    /**
     * DeleteRange = 7;
     */
    DeleteRange(7),
    /**
     * IngestSST = 8;
     */
    IngestSST(8),
    /**
     * ReadIndex = 9;
     */
    ReadIndex(9),
    UNRECOGNIZED(-1),
    ;

    /**
     * Invalid = 0;
     */
    public static final int Invalid_VALUE = 0;
    /**
     * Get = 1;
     */
    public static final int Get_VALUE = 1;
    /**
     * Put = 3;
     */
    public static final int Put_VALUE = 3;
    /**
     * Delete = 4;
     */
    public static final int Delete_VALUE = 4;
    /**
     * Snap = 5;
     */
    public static final int Snap_VALUE = 5;
    /**
     * Prewrite = 6;
     */
    public static final int Prewrite_VALUE = 6;
    /**
     * DeleteRange = 7;
     */
    public static final int DeleteRange_VALUE = 7;
    /**
     * IngestSST = 8;
     */
    public static final int IngestSST_VALUE = 8;
    /**
     * ReadIndex = 9;
     */
    public static final int ReadIndex_VALUE = 9;


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

    public static CmdType forNumber(int value) {
      switch (value) {
        case 0: return Invalid;
        case 1: return Get;
        case 3: return Put;
        case 4: return Delete;
        case 5: return Snap;
        case 6: return Prewrite;
        case 7: return DeleteRange;
        case 8: return IngestSST;
        case 9: return ReadIndex;
        default: return null;
      }
    }

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

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

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

    // @@protoc_insertion_point(enum_scope:raft_cmdpb.CmdType)
  }

  /**
   * Protobuf enum {@code raft_cmdpb.AdminCmdType}
   */
  public enum AdminCmdType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * InvalidAdmin = 0;
     */
    InvalidAdmin(0),
    /**
     * ChangePeer = 1;
     */
    ChangePeer(1),
    /**
     * 
     * Use `BatchSplit` instead.
     * 
* * Split = 2 [deprecated = true]; */ @java.lang.Deprecated Split(2), /** * CompactLog = 3; */ CompactLog(3), /** * TransferLeader = 4; */ TransferLeader(4), /** * ComputeHash = 5; */ ComputeHash(5), /** * VerifyHash = 6; */ VerifyHash(6), /** * PrepareMerge = 7; */ PrepareMerge(7), /** * CommitMerge = 8; */ CommitMerge(8), /** * RollbackMerge = 9; */ RollbackMerge(9), /** * BatchSplit = 10; */ BatchSplit(10), /** * ChangePeerV2 = 11; */ ChangePeerV2(11), UNRECOGNIZED(-1), ; /** * InvalidAdmin = 0; */ public static final int InvalidAdmin_VALUE = 0; /** * ChangePeer = 1; */ public static final int ChangePeer_VALUE = 1; /** *
     * Use `BatchSplit` instead.
     * 
* * Split = 2 [deprecated = true]; */ public static final int Split_VALUE = 2; /** * CompactLog = 3; */ public static final int CompactLog_VALUE = 3; /** * TransferLeader = 4; */ public static final int TransferLeader_VALUE = 4; /** * ComputeHash = 5; */ public static final int ComputeHash_VALUE = 5; /** * VerifyHash = 6; */ public static final int VerifyHash_VALUE = 6; /** * PrepareMerge = 7; */ public static final int PrepareMerge_VALUE = 7; /** * CommitMerge = 8; */ public static final int CommitMerge_VALUE = 8; /** * RollbackMerge = 9; */ public static final int RollbackMerge_VALUE = 9; /** * BatchSplit = 10; */ public static final int BatchSplit_VALUE = 10; /** * ChangePeerV2 = 11; */ public static final int ChangePeerV2_VALUE = 11; 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 AdminCmdType valueOf(int value) { return forNumber(value); } public static AdminCmdType forNumber(int value) { switch (value) { case 0: return InvalidAdmin; case 1: return ChangePeer; case 2: return Split; case 3: return CompactLog; case 4: return TransferLeader; case 5: return ComputeHash; case 6: return VerifyHash; case 7: return PrepareMerge; case 8: return CommitMerge; case 9: return RollbackMerge; case 10: return BatchSplit; case 11: return ChangePeerV2; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AdminCmdType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AdminCmdType findValueByNumber(int number) { return AdminCmdType.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.RaftCmdpb.getDescriptor().getEnumTypes().get(1); } private static final AdminCmdType[] VALUES = values(); public static AdminCmdType 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 AdminCmdType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:raft_cmdpb.AdminCmdType) } /** * Protobuf enum {@code raft_cmdpb.StatusCmdType} */ public enum StatusCmdType implements com.google.protobuf.ProtocolMessageEnum { /** * InvalidStatus = 0; */ InvalidStatus(0), /** * RegionLeader = 1; */ RegionLeader(1), /** * RegionDetail = 2; */ RegionDetail(2), UNRECOGNIZED(-1), ; /** * InvalidStatus = 0; */ public static final int InvalidStatus_VALUE = 0; /** * RegionLeader = 1; */ public static final int RegionLeader_VALUE = 1; /** * RegionDetail = 2; */ public static final int RegionDetail_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static StatusCmdType valueOf(int value) { return forNumber(value); } public static StatusCmdType forNumber(int value) { switch (value) { case 0: return InvalidStatus; case 1: return RegionLeader; case 2: return RegionDetail; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< StatusCmdType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public StatusCmdType findValueByNumber(int number) { return StatusCmdType.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.RaftCmdpb.getDescriptor().getEnumTypes().get(2); } private static final StatusCmdType[] VALUES = values(); public static StatusCmdType 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 StatusCmdType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:raft_cmdpb.StatusCmdType) } public interface GetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.GetRequest) com.google.protobuf.MessageOrBuilder { /** * string cf = 1; */ java.lang.String getCf(); /** * string cf = 1; */ com.google.protobuf.ByteString getCfBytes(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); } /** * Protobuf type {@code raft_cmdpb.GetRequest} */ public static final class GetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.GetRequest) GetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetRequest.newBuilder() to construct. private GetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetRequest() { cf_ = ""; key_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetRequest( 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 18: { key_ = 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.RaftCmdpb.internal_static_raft_cmdpb_GetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.GetRequest.class, org.tikv.kvproto.RaftCmdpb.GetRequest.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 KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } 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 (!key_.isEmpty()) { output.writeBytes(2, key_); } 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 (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } 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.RaftCmdpb.GetRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.GetRequest other = (org.tikv.kvproto.RaftCmdpb.GetRequest) obj; boolean result = true; result = result && getCf() .equals(other.getCf()); result = result && getKey() .equals(other.getKey()); 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) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.GetRequest 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.RaftCmdpb.GetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.GetRequest 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.RaftCmdpb.GetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.GetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.GetRequest 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.RaftCmdpb.GetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.GetRequest 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.RaftCmdpb.GetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.GetRequest 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.RaftCmdpb.GetRequest 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_cmdpb.GetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.GetRequest) org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.GetRequest.class, org.tikv.kvproto.RaftCmdpb.GetRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.GetRequest.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_ = ""; key_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.GetRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.GetRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.GetRequest build() { org.tikv.kvproto.RaftCmdpb.GetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.GetRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.GetRequest result = new org.tikv.kvproto.RaftCmdpb.GetRequest(this); result.cf_ = cf_; result.key_ = key_; 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.RaftCmdpb.GetRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.GetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.GetRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.GetRequest.getDefaultInstance()) return this; if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } 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.RaftCmdpb.GetRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.GetRequest) 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 com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); 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_cmdpb.GetRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.GetRequest) private static final org.tikv.kvproto.RaftCmdpb.GetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.GetRequest(); } public static org.tikv.kvproto.RaftCmdpb.GetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetRequest(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.RaftCmdpb.GetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.GetResponse) com.google.protobuf.MessageOrBuilder { /** * bytes value = 1; */ com.google.protobuf.ByteString getValue(); } /** * Protobuf type {@code raft_cmdpb.GetResponse} */ public static final class GetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.GetResponse) GetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetResponse.newBuilder() to construct. private GetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetResponse() { value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetResponse( 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: { 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.RaftCmdpb.internal_static_raft_cmdpb_GetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.GetResponse.class, org.tikv.kvproto.RaftCmdpb.GetResponse.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString value_; /** * bytes value = 1; */ 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 (!value_.isEmpty()) { output.writeBytes(1, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, 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.RaftCmdpb.GetResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.GetResponse other = (org.tikv.kvproto.RaftCmdpb.GetResponse) obj; boolean result = true; 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) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.GetResponse 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.RaftCmdpb.GetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.GetResponse 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.RaftCmdpb.GetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.GetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.GetResponse 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.RaftCmdpb.GetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.GetResponse 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.RaftCmdpb.GetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.GetResponse 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.RaftCmdpb.GetResponse 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_cmdpb.GetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.GetResponse) org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.GetResponse.class, org.tikv.kvproto.RaftCmdpb.GetResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.GetResponse.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(); value_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_GetResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.GetResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.GetResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.GetResponse build() { org.tikv.kvproto.RaftCmdpb.GetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.GetResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.GetResponse result = new org.tikv.kvproto.RaftCmdpb.GetResponse(this); 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.RaftCmdpb.GetResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.GetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.GetResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.GetResponse.getDefaultInstance()) return this; 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.RaftCmdpb.GetResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.GetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 1; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 1; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 1; */ 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_cmdpb.GetResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.GetResponse) private static final org.tikv.kvproto.RaftCmdpb.GetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.GetResponse(); } public static org.tikv.kvproto.RaftCmdpb.GetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetResponse(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.RaftCmdpb.GetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PutRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.PutRequest) com.google.protobuf.MessageOrBuilder { /** * string cf = 1; */ java.lang.String getCf(); /** * string cf = 1; */ com.google.protobuf.ByteString getCfBytes(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * bytes value = 3; */ com.google.protobuf.ByteString getValue(); } /** * Protobuf type {@code raft_cmdpb.PutRequest} */ public static final class PutRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.PutRequest) PutRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PutRequest.newBuilder() to construct. private PutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PutRequest() { cf_ = ""; 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 PutRequest( 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 18: { key_ = input.readBytes(); break; } case 26: { 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.RaftCmdpb.internal_static_raft_cmdpb_PutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PutRequest.class, org.tikv.kvproto.RaftCmdpb.PutRequest.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 KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** * bytes value = 3; */ 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 (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cf_); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (!value_.isEmpty()) { output.writeBytes(3, value_); } 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 (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, 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.RaftCmdpb.PutRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.PutRequest other = (org.tikv.kvproto.RaftCmdpb.PutRequest) obj; boolean result = true; result = result && getCf() .equals(other.getCf()); 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) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().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.RaftCmdpb.PutRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PutRequest 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.RaftCmdpb.PutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PutRequest 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.RaftCmdpb.PutRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.PutRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PutRequest 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.RaftCmdpb.PutRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PutRequest 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.RaftCmdpb.PutRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PutRequest 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.RaftCmdpb.PutRequest 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_cmdpb.PutRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.PutRequest) org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PutRequest.class, org.tikv.kvproto.RaftCmdpb.PutRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.PutRequest.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_ = ""; 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.RaftCmdpb.internal_static_raft_cmdpb_PutRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.PutRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.PutRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.PutRequest build() { org.tikv.kvproto.RaftCmdpb.PutRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.PutRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.PutRequest result = new org.tikv.kvproto.RaftCmdpb.PutRequest(this); result.cf_ = cf_; 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.RaftCmdpb.PutRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.PutRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PutRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.PutRequest.getDefaultInstance()) return this; if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } 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.RaftCmdpb.PutRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.PutRequest) 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 com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 3; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 3; */ 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_cmdpb.PutRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.PutRequest) private static final org.tikv.kvproto.RaftCmdpb.PutRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PutRequest(); } public static org.tikv.kvproto.RaftCmdpb.PutRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PutRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PutRequest(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.RaftCmdpb.PutRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PutResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.PutResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.PutResponse} */ public static final class PutResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.PutResponse) PutResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PutResponse.newBuilder() to construct. private PutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PutResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PutResponse( 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.RaftCmdpb.internal_static_raft_cmdpb_PutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PutResponse.class, org.tikv.kvproto.RaftCmdpb.PutResponse.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.RaftCmdpb.PutResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.PutResponse other = (org.tikv.kvproto.RaftCmdpb.PutResponse) 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.RaftCmdpb.PutResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PutResponse 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.RaftCmdpb.PutResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PutResponse 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.RaftCmdpb.PutResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.PutResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PutResponse 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.RaftCmdpb.PutResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PutResponse 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.RaftCmdpb.PutResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PutResponse 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.RaftCmdpb.PutResponse 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_cmdpb.PutResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.PutResponse) org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PutResponse.class, org.tikv.kvproto.RaftCmdpb.PutResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.PutResponse.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.RaftCmdpb.internal_static_raft_cmdpb_PutResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.PutResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.PutResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.PutResponse build() { org.tikv.kvproto.RaftCmdpb.PutResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.PutResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.PutResponse result = new org.tikv.kvproto.RaftCmdpb.PutResponse(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.RaftCmdpb.PutResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.PutResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PutResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.PutResponse.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.RaftCmdpb.PutResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.PutResponse) 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_cmdpb.PutResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.PutResponse) private static final org.tikv.kvproto.RaftCmdpb.PutResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PutResponse(); } public static org.tikv.kvproto.RaftCmdpb.PutResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PutResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PutResponse(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.RaftCmdpb.PutResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.DeleteRequest) com.google.protobuf.MessageOrBuilder { /** * string cf = 1; */ java.lang.String getCf(); /** * string cf = 1; */ com.google.protobuf.ByteString getCfBytes(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); } /** * Protobuf type {@code raft_cmdpb.DeleteRequest} */ public static final class DeleteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.DeleteRequest) DeleteRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteRequest.newBuilder() to construct. private DeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteRequest() { cf_ = ""; key_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteRequest( 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 18: { key_ = 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.RaftCmdpb.internal_static_raft_cmdpb_DeleteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.DeleteRequest.class, org.tikv.kvproto.RaftCmdpb.DeleteRequest.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 KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } 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 (!key_.isEmpty()) { output.writeBytes(2, key_); } 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 (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } 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.RaftCmdpb.DeleteRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.DeleteRequest other = (org.tikv.kvproto.RaftCmdpb.DeleteRequest) obj; boolean result = true; result = result && getCf() .equals(other.getCf()); result = result && getKey() .equals(other.getKey()); 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) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteRequest 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.RaftCmdpb.DeleteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteRequest 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.RaftCmdpb.DeleteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.DeleteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteRequest 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.RaftCmdpb.DeleteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteRequest 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.RaftCmdpb.DeleteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteRequest 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.RaftCmdpb.DeleteRequest 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_cmdpb.DeleteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.DeleteRequest) org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.DeleteRequest.class, org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.DeleteRequest.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_ = ""; key_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.DeleteRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.DeleteRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.DeleteRequest build() { org.tikv.kvproto.RaftCmdpb.DeleteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.DeleteRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.DeleteRequest result = new org.tikv.kvproto.RaftCmdpb.DeleteRequest(this); result.cf_ = cf_; result.key_ = key_; 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.RaftCmdpb.DeleteRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.DeleteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.DeleteRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.DeleteRequest.getDefaultInstance()) return this; if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } 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.RaftCmdpb.DeleteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.DeleteRequest) 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 com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); 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_cmdpb.DeleteRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.DeleteRequest) private static final org.tikv.kvproto.RaftCmdpb.DeleteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.DeleteRequest(); } public static org.tikv.kvproto.RaftCmdpb.DeleteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeleteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteRequest(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.RaftCmdpb.DeleteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.DeleteResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.DeleteResponse} */ public static final class DeleteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.DeleteResponse) DeleteResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteResponse.newBuilder() to construct. private DeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteResponse( 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.RaftCmdpb.internal_static_raft_cmdpb_DeleteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.DeleteResponse.class, org.tikv.kvproto.RaftCmdpb.DeleteResponse.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.RaftCmdpb.DeleteResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.DeleteResponse other = (org.tikv.kvproto.RaftCmdpb.DeleteResponse) 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.RaftCmdpb.DeleteResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteResponse 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.RaftCmdpb.DeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteResponse 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.RaftCmdpb.DeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.DeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteResponse 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.RaftCmdpb.DeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteResponse 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.RaftCmdpb.DeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteResponse 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.RaftCmdpb.DeleteResponse 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_cmdpb.DeleteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.DeleteResponse) org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.DeleteResponse.class, org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.DeleteResponse.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.RaftCmdpb.internal_static_raft_cmdpb_DeleteResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.DeleteResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.DeleteResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.DeleteResponse build() { org.tikv.kvproto.RaftCmdpb.DeleteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.DeleteResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.DeleteResponse result = new org.tikv.kvproto.RaftCmdpb.DeleteResponse(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.RaftCmdpb.DeleteResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.DeleteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.DeleteResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.DeleteResponse.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.RaftCmdpb.DeleteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.DeleteResponse) 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_cmdpb.DeleteResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.DeleteResponse) private static final org.tikv.kvproto.RaftCmdpb.DeleteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.DeleteResponse(); } public static org.tikv.kvproto.RaftCmdpb.DeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeleteResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteResponse(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.RaftCmdpb.DeleteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteRangeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.DeleteRangeRequest) com.google.protobuf.MessageOrBuilder { /** * string cf = 1; */ java.lang.String getCf(); /** * string cf = 1; */ com.google.protobuf.ByteString getCfBytes(); /** * bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 3; */ com.google.protobuf.ByteString getEndKey(); /** * bool notify_only = 4; */ boolean getNotifyOnly(); } /** * Protobuf type {@code raft_cmdpb.DeleteRangeRequest} */ public static final class DeleteRangeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.DeleteRangeRequest) DeleteRangeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteRangeRequest.newBuilder() to construct. private DeleteRangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteRangeRequest() { cf_ = ""; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; notifyOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteRangeRequest( 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 18: { startKey_ = input.readBytes(); break; } case 26: { endKey_ = input.readBytes(); break; } case 32: { notifyOnly_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.class, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.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 START_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int NOTIFY_ONLY_FIELD_NUMBER = 4; private boolean notifyOnly_; /** * bool notify_only = 4; */ public boolean getNotifyOnly() { return notifyOnly_; } 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 (!startKey_.isEmpty()) { output.writeBytes(2, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(3, endKey_); } if (notifyOnly_ != false) { output.writeBool(4, notifyOnly_); } 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 (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, endKey_); } if (notifyOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, notifyOnly_); } 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.RaftCmdpb.DeleteRangeRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest other = (org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest) obj; boolean result = true; result = result && getCf() .equals(other.getCf()); result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); result = result && (getNotifyOnly() == other.getNotifyOnly()); 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) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (37 * hash) + NOTIFY_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNotifyOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest 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.RaftCmdpb.DeleteRangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest 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.RaftCmdpb.DeleteRangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest 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.RaftCmdpb.DeleteRangeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest 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.RaftCmdpb.DeleteRangeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest 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.RaftCmdpb.DeleteRangeRequest 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_cmdpb.DeleteRangeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.DeleteRangeRequest) org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.class, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.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_ = ""; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; notifyOnly_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest build() { org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest result = new org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest(this); result.cf_ = cf_; result.startKey_ = startKey_; result.endKey_ = endKey_; result.notifyOnly_ = notifyOnly_; 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.RaftCmdpb.DeleteRangeRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.getDefaultInstance()) return this; if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } if (other.getNotifyOnly() != false) { setNotifyOnly(other.getNotifyOnly()); } 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.RaftCmdpb.DeleteRangeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest) 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 com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 2; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 2; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 3; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 3; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private boolean notifyOnly_ ; /** * bool notify_only = 4; */ public boolean getNotifyOnly() { return notifyOnly_; } /** * bool notify_only = 4; */ public Builder setNotifyOnly(boolean value) { notifyOnly_ = value; onChanged(); return this; } /** * bool notify_only = 4; */ public Builder clearNotifyOnly() { notifyOnly_ = 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_cmdpb.DeleteRangeRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.DeleteRangeRequest) private static final org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest(); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeleteRangeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteRangeRequest(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.RaftCmdpb.DeleteRangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteRangeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.DeleteRangeResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.DeleteRangeResponse} */ public static final class DeleteRangeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.DeleteRangeResponse) DeleteRangeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteRangeResponse.newBuilder() to construct. private DeleteRangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteRangeResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteRangeResponse( 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.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.class, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.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.RaftCmdpb.DeleteRangeResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse other = (org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse) 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.RaftCmdpb.DeleteRangeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse 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.RaftCmdpb.DeleteRangeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse 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.RaftCmdpb.DeleteRangeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse 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.RaftCmdpb.DeleteRangeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse 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.RaftCmdpb.DeleteRangeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse 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.RaftCmdpb.DeleteRangeResponse 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_cmdpb.DeleteRangeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.DeleteRangeResponse) org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.class, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.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.RaftCmdpb.internal_static_raft_cmdpb_DeleteRangeResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse build() { org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse result = new org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse(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.RaftCmdpb.DeleteRangeResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.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.RaftCmdpb.DeleteRangeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse) 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_cmdpb.DeleteRangeResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.DeleteRangeResponse) private static final org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse(); } public static org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeleteRangeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteRangeResponse(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.RaftCmdpb.DeleteRangeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SnapRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.SnapRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.SnapRequest} */ public static final class SnapRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.SnapRequest) SnapRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SnapRequest.newBuilder() to construct. private SnapRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SnapRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapRequest( 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.RaftCmdpb.internal_static_raft_cmdpb_SnapRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.SnapRequest.class, org.tikv.kvproto.RaftCmdpb.SnapRequest.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.RaftCmdpb.SnapRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.SnapRequest other = (org.tikv.kvproto.RaftCmdpb.SnapRequest) 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.RaftCmdpb.SnapRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SnapRequest 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.RaftCmdpb.SnapRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SnapRequest 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.RaftCmdpb.SnapRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.SnapRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SnapRequest 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.RaftCmdpb.SnapRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SnapRequest 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.RaftCmdpb.SnapRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SnapRequest 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.RaftCmdpb.SnapRequest 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_cmdpb.SnapRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.SnapRequest) org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.SnapRequest.class, org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.SnapRequest.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.RaftCmdpb.internal_static_raft_cmdpb_SnapRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.SnapRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.SnapRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.SnapRequest build() { org.tikv.kvproto.RaftCmdpb.SnapRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.SnapRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.SnapRequest result = new org.tikv.kvproto.RaftCmdpb.SnapRequest(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.RaftCmdpb.SnapRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.SnapRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.SnapRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.SnapRequest.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.RaftCmdpb.SnapRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.SnapRequest) 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_cmdpb.SnapRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.SnapRequest) private static final org.tikv.kvproto.RaftCmdpb.SnapRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.SnapRequest(); } public static org.tikv.kvproto.RaftCmdpb.SnapRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SnapRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SnapRequest(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.RaftCmdpb.SnapRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SnapResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.SnapResponse) 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(); } /** * Protobuf type {@code raft_cmdpb.SnapResponse} */ public static final class SnapResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.SnapResponse) SnapResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SnapResponse.newBuilder() to construct. private SnapResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SnapResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SnapResponse( 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; } } } } 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.RaftCmdpb.internal_static_raft_cmdpb_SnapResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.SnapResponse.class, org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder.class); } 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(); } 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()); } 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()); } 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.RaftCmdpb.SnapResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.SnapResponse other = (org.tikv.kvproto.RaftCmdpb.SnapResponse) obj; boolean result = true; result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SnapResponse 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.RaftCmdpb.SnapResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SnapResponse 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.RaftCmdpb.SnapResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.SnapResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SnapResponse 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.RaftCmdpb.SnapResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SnapResponse 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.RaftCmdpb.SnapResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SnapResponse 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.RaftCmdpb.SnapResponse 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_cmdpb.SnapResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.SnapResponse) org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.SnapResponse.class, org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.SnapResponse.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 (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SnapResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.SnapResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.SnapResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.SnapResponse build() { org.tikv.kvproto.RaftCmdpb.SnapResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.SnapResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.SnapResponse result = new org.tikv.kvproto.RaftCmdpb.SnapResponse(this); if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.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.RaftCmdpb.SnapResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.SnapResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.SnapResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.SnapResponse.getDefaultInstance()) return this; if (other.hasRegion()) { mergeRegion(other.getRegion()); } 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.RaftCmdpb.SnapResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.SnapResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 = 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_; } 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_cmdpb.SnapResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.SnapResponse) private static final org.tikv.kvproto.RaftCmdpb.SnapResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.SnapResponse(); } public static org.tikv.kvproto.RaftCmdpb.SnapResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SnapResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SnapResponse(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.RaftCmdpb.SnapResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrewriteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.PrewriteRequest) com.google.protobuf.MessageOrBuilder { /** * bytes key = 1; */ com.google.protobuf.ByteString getKey(); /** * bytes value = 2; */ com.google.protobuf.ByteString getValue(); /** * bytes lock = 3; */ com.google.protobuf.ByteString getLock(); } /** * Protobuf type {@code raft_cmdpb.PrewriteRequest} */ public static final class PrewriteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.PrewriteRequest) PrewriteRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PrewriteRequest.newBuilder() to construct. private PrewriteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrewriteRequest() { key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; lock_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrewriteRequest( 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; } case 26: { lock_ = 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.RaftCmdpb.internal_static_raft_cmdpb_PrewriteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PrewriteRequest.class, org.tikv.kvproto.RaftCmdpb.PrewriteRequest.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_; } public static final int LOCK_FIELD_NUMBER = 3; private com.google.protobuf.ByteString lock_; /** * bytes lock = 3; */ public com.google.protobuf.ByteString getLock() { return lock_; } 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_); } if (!lock_.isEmpty()) { output.writeBytes(3, lock_); } 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_); } if (!lock_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, lock_); } 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.RaftCmdpb.PrewriteRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.PrewriteRequest other = (org.tikv.kvproto.RaftCmdpb.PrewriteRequest) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); result = result && getLock() .equals(other.getLock()); 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 = (37 * hash) + LOCK_FIELD_NUMBER; hash = (53 * hash) + getLock().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest 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.RaftCmdpb.PrewriteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest 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.RaftCmdpb.PrewriteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest 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.RaftCmdpb.PrewriteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest 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.RaftCmdpb.PrewriteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest 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.RaftCmdpb.PrewriteRequest 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_cmdpb.PrewriteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.PrewriteRequest) org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PrewriteRequest.class, org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.PrewriteRequest.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; lock_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.PrewriteRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.PrewriteRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.PrewriteRequest build() { org.tikv.kvproto.RaftCmdpb.PrewriteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.PrewriteRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.PrewriteRequest result = new org.tikv.kvproto.RaftCmdpb.PrewriteRequest(this); result.key_ = key_; result.value_ = value_; result.lock_ = lock_; 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.RaftCmdpb.PrewriteRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.PrewriteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PrewriteRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.PrewriteRequest.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()); } if (other.getLock() != com.google.protobuf.ByteString.EMPTY) { setLock(other.getLock()); } 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.RaftCmdpb.PrewriteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.PrewriteRequest) 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; } private com.google.protobuf.ByteString lock_ = com.google.protobuf.ByteString.EMPTY; /** * bytes lock = 3; */ public com.google.protobuf.ByteString getLock() { return lock_; } /** * bytes lock = 3; */ public Builder setLock(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } lock_ = value; onChanged(); return this; } /** * bytes lock = 3; */ public Builder clearLock() { lock_ = getDefaultInstance().getLock(); 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_cmdpb.PrewriteRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.PrewriteRequest) private static final org.tikv.kvproto.RaftCmdpb.PrewriteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PrewriteRequest(); } public static org.tikv.kvproto.RaftCmdpb.PrewriteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PrewriteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrewriteRequest(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.RaftCmdpb.PrewriteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrewriteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.PrewriteResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.PrewriteResponse} */ public static final class PrewriteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.PrewriteResponse) PrewriteResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PrewriteResponse.newBuilder() to construct. private PrewriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrewriteResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrewriteResponse( 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.RaftCmdpb.internal_static_raft_cmdpb_PrewriteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PrewriteResponse.class, org.tikv.kvproto.RaftCmdpb.PrewriteResponse.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.RaftCmdpb.PrewriteResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.PrewriteResponse other = (org.tikv.kvproto.RaftCmdpb.PrewriteResponse) 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.RaftCmdpb.PrewriteResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse 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.RaftCmdpb.PrewriteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse 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.RaftCmdpb.PrewriteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse 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.RaftCmdpb.PrewriteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse 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.RaftCmdpb.PrewriteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse 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.RaftCmdpb.PrewriteResponse 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_cmdpb.PrewriteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.PrewriteResponse) org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrewriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PrewriteResponse.class, org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.PrewriteResponse.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.RaftCmdpb.internal_static_raft_cmdpb_PrewriteResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.PrewriteResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.PrewriteResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.PrewriteResponse build() { org.tikv.kvproto.RaftCmdpb.PrewriteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.PrewriteResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.PrewriteResponse result = new org.tikv.kvproto.RaftCmdpb.PrewriteResponse(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.RaftCmdpb.PrewriteResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.PrewriteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PrewriteResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.PrewriteResponse.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.RaftCmdpb.PrewriteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.PrewriteResponse) 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_cmdpb.PrewriteResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.PrewriteResponse) private static final org.tikv.kvproto.RaftCmdpb.PrewriteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PrewriteResponse(); } public static org.tikv.kvproto.RaftCmdpb.PrewriteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PrewriteResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrewriteResponse(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.RaftCmdpb.PrewriteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IngestSSTRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.IngestSSTRequest) com.google.protobuf.MessageOrBuilder { /** * .import_sstpb.SSTMeta sst = 1; */ boolean hasSst(); /** * .import_sstpb.SSTMeta sst = 1; */ org.tikv.kvproto.ImportSstpb.SSTMeta getSst(); /** * .import_sstpb.SSTMeta sst = 1; */ org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.IngestSSTRequest} */ public static final class IngestSSTRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.IngestSSTRequest) IngestSSTRequestOrBuilder { private static final long serialVersionUID = 0L; // Use IngestSSTRequest.newBuilder() to construct. private IngestSSTRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IngestSSTRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IngestSSTRequest( 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.ImportSstpb.SSTMeta.Builder subBuilder = null; if (sst_ != null) { subBuilder = sst_.toBuilder(); } sst_ = input.readMessage(org.tikv.kvproto.ImportSstpb.SSTMeta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sst_); sst_ = 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.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.class, org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder.class); } public static final int SST_FIELD_NUMBER = 1; private org.tikv.kvproto.ImportSstpb.SSTMeta sst_; /** * .import_sstpb.SSTMeta sst = 1; */ public boolean hasSst() { return sst_ != null; } /** * .import_sstpb.SSTMeta sst = 1; */ public org.tikv.kvproto.ImportSstpb.SSTMeta getSst() { return sst_ == null ? org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_; } /** * .import_sstpb.SSTMeta sst = 1; */ public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder() { return getSst(); } 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 (sst_ != null) { output.writeMessage(1, getSst()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sst_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSst()); } 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.RaftCmdpb.IngestSSTRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.IngestSSTRequest other = (org.tikv.kvproto.RaftCmdpb.IngestSSTRequest) obj; boolean result = true; result = result && (hasSst() == other.hasSst()); if (hasSst()) { result = result && getSst() .equals(other.getSst()); } 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 (hasSst()) { hash = (37 * hash) + SST_FIELD_NUMBER; hash = (53 * hash) + getSst().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest 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.RaftCmdpb.IngestSSTRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest 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.RaftCmdpb.IngestSSTRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest 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.RaftCmdpb.IngestSSTRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest 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.RaftCmdpb.IngestSSTRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest 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.RaftCmdpb.IngestSSTRequest 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_cmdpb.IngestSSTRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.IngestSSTRequest) org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.class, org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.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 (sstBuilder_ == null) { sst_ = null; } else { sst_ = null; sstBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest build() { org.tikv.kvproto.RaftCmdpb.IngestSSTRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.IngestSSTRequest result = new org.tikv.kvproto.RaftCmdpb.IngestSSTRequest(this); if (sstBuilder_ == null) { result.sst_ = sst_; } else { result.sst_ = sstBuilder_.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.RaftCmdpb.IngestSSTRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.IngestSSTRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.IngestSSTRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.getDefaultInstance()) return this; if (other.hasSst()) { mergeSst(other.getSst()); } 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.RaftCmdpb.IngestSSTRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.IngestSSTRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.ImportSstpb.SSTMeta sst_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder> sstBuilder_; /** * .import_sstpb.SSTMeta sst = 1; */ public boolean hasSst() { return sstBuilder_ != null || sst_ != null; } /** * .import_sstpb.SSTMeta sst = 1; */ public org.tikv.kvproto.ImportSstpb.SSTMeta getSst() { if (sstBuilder_ == null) { return sst_ == null ? org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_; } else { return sstBuilder_.getMessage(); } } /** * .import_sstpb.SSTMeta sst = 1; */ public Builder setSst(org.tikv.kvproto.ImportSstpb.SSTMeta value) { if (sstBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sst_ = value; onChanged(); } else { sstBuilder_.setMessage(value); } return this; } /** * .import_sstpb.SSTMeta sst = 1; */ public Builder setSst( org.tikv.kvproto.ImportSstpb.SSTMeta.Builder builderForValue) { if (sstBuilder_ == null) { sst_ = builderForValue.build(); onChanged(); } else { sstBuilder_.setMessage(builderForValue.build()); } return this; } /** * .import_sstpb.SSTMeta sst = 1; */ public Builder mergeSst(org.tikv.kvproto.ImportSstpb.SSTMeta value) { if (sstBuilder_ == null) { if (sst_ != null) { sst_ = org.tikv.kvproto.ImportSstpb.SSTMeta.newBuilder(sst_).mergeFrom(value).buildPartial(); } else { sst_ = value; } onChanged(); } else { sstBuilder_.mergeFrom(value); } return this; } /** * .import_sstpb.SSTMeta sst = 1; */ public Builder clearSst() { if (sstBuilder_ == null) { sst_ = null; onChanged(); } else { sst_ = null; sstBuilder_ = null; } return this; } /** * .import_sstpb.SSTMeta sst = 1; */ public org.tikv.kvproto.ImportSstpb.SSTMeta.Builder getSstBuilder() { onChanged(); return getSstFieldBuilder().getBuilder(); } /** * .import_sstpb.SSTMeta sst = 1; */ public org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder getSstOrBuilder() { if (sstBuilder_ != null) { return sstBuilder_.getMessageOrBuilder(); } else { return sst_ == null ? org.tikv.kvproto.ImportSstpb.SSTMeta.getDefaultInstance() : sst_; } } /** * .import_sstpb.SSTMeta sst = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder> getSstFieldBuilder() { if (sstBuilder_ == null) { sstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.ImportSstpb.SSTMeta, org.tikv.kvproto.ImportSstpb.SSTMeta.Builder, org.tikv.kvproto.ImportSstpb.SSTMetaOrBuilder>( getSst(), getParentForChildren(), isClean()); sst_ = null; } return sstBuilder_; } 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_cmdpb.IngestSSTRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.IngestSSTRequest) private static final org.tikv.kvproto.RaftCmdpb.IngestSSTRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.IngestSSTRequest(); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IngestSSTRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IngestSSTRequest(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.RaftCmdpb.IngestSSTRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IngestSSTResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.IngestSSTResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.IngestSSTResponse} */ public static final class IngestSSTResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.IngestSSTResponse) IngestSSTResponseOrBuilder { private static final long serialVersionUID = 0L; // Use IngestSSTResponse.newBuilder() to construct. private IngestSSTResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IngestSSTResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private IngestSSTResponse( 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.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.class, org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.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.RaftCmdpb.IngestSSTResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.IngestSSTResponse other = (org.tikv.kvproto.RaftCmdpb.IngestSSTResponse) 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.RaftCmdpb.IngestSSTResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse 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.RaftCmdpb.IngestSSTResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse 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.RaftCmdpb.IngestSSTResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse 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.RaftCmdpb.IngestSSTResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse 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.RaftCmdpb.IngestSSTResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse 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.RaftCmdpb.IngestSSTResponse 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_cmdpb.IngestSSTResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.IngestSSTResponse) org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.class, org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.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.RaftCmdpb.internal_static_raft_cmdpb_IngestSSTResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse build() { org.tikv.kvproto.RaftCmdpb.IngestSSTResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.IngestSSTResponse result = new org.tikv.kvproto.RaftCmdpb.IngestSSTResponse(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.RaftCmdpb.IngestSSTResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.IngestSSTResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.IngestSSTResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.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.RaftCmdpb.IngestSSTResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.IngestSSTResponse) 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_cmdpb.IngestSSTResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.IngestSSTResponse) private static final org.tikv.kvproto.RaftCmdpb.IngestSSTResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.IngestSSTResponse(); } public static org.tikv.kvproto.RaftCmdpb.IngestSSTResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public IngestSSTResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IngestSSTResponse(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.RaftCmdpb.IngestSSTResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadIndexRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.ReadIndexRequest) com.google.protobuf.MessageOrBuilder { /** *
     * In replica read, leader uses start_ts and key_ranges to check memory locks.
     * 
* * uint64 start_ts = 1; */ long getStartTs(); /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ java.util.List getKeyRangesList(); /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ org.tikv.kvproto.Kvrpcpb.KeyRange getKeyRanges(int index); /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ int getKeyRangesCount(); /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ java.util.List getKeyRangesOrBuilderList(); /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getKeyRangesOrBuilder( int index); } /** * Protobuf type {@code raft_cmdpb.ReadIndexRequest} */ public static final class ReadIndexRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.ReadIndexRequest) ReadIndexRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ReadIndexRequest.newBuilder() to construct. private ReadIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadIndexRequest() { startTs_ = 0L; keyRanges_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadIndexRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { startTs_ = input.readUInt64(); break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { keyRanges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } keyRanges_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyRange.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_ & 0x00000002) == 0x00000002)) { keyRanges_ = java.util.Collections.unmodifiableList(keyRanges_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.class, org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder.class); } private int bitField0_; public static final int START_TS_FIELD_NUMBER = 1; private long startTs_; /** *
     * In replica read, leader uses start_ts and key_ranges to check memory locks.
     * 
* * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } public static final int KEY_RANGES_FIELD_NUMBER = 2; private java.util.List keyRanges_; /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public java.util.List getKeyRangesList() { return keyRanges_; } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public java.util.List getKeyRangesOrBuilderList() { return keyRanges_; } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public int getKeyRangesCount() { return keyRanges_.size(); } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRange getKeyRanges(int index) { return keyRanges_.get(index); } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getKeyRangesOrBuilder( int index) { return keyRanges_.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 (startTs_ != 0L) { output.writeUInt64(1, startTs_); } for (int i = 0; i < keyRanges_.size(); i++) { output.writeMessage(2, keyRanges_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startTs_); } for (int i = 0; i < keyRanges_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, keyRanges_.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.RaftCmdpb.ReadIndexRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.ReadIndexRequest other = (org.tikv.kvproto.RaftCmdpb.ReadIndexRequest) obj; boolean result = true; result = result && (getStartTs() == other.getStartTs()); result = result && getKeyRangesList() .equals(other.getKeyRangesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); if (getKeyRangesCount() > 0) { hash = (37 * hash) + KEY_RANGES_FIELD_NUMBER; hash = (53 * hash) + getKeyRangesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest 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.RaftCmdpb.ReadIndexRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest 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.RaftCmdpb.ReadIndexRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest 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.RaftCmdpb.ReadIndexRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest 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.RaftCmdpb.ReadIndexRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest 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.RaftCmdpb.ReadIndexRequest 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_cmdpb.ReadIndexRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.ReadIndexRequest) org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.class, org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKeyRangesFieldBuilder(); } } public Builder clear() { super.clear(); startTs_ = 0L; if (keyRangesBuilder_ == null) { keyRanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { keyRangesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest build() { org.tikv.kvproto.RaftCmdpb.ReadIndexRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.ReadIndexRequest result = new org.tikv.kvproto.RaftCmdpb.ReadIndexRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.startTs_ = startTs_; if (keyRangesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { keyRanges_ = java.util.Collections.unmodifiableList(keyRanges_); bitField0_ = (bitField0_ & ~0x00000002); } result.keyRanges_ = keyRanges_; } else { result.keyRanges_ = keyRangesBuilder_.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.RaftCmdpb.ReadIndexRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.ReadIndexRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ReadIndexRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.getDefaultInstance()) return this; if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (keyRangesBuilder_ == null) { if (!other.keyRanges_.isEmpty()) { if (keyRanges_.isEmpty()) { keyRanges_ = other.keyRanges_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeyRangesIsMutable(); keyRanges_.addAll(other.keyRanges_); } onChanged(); } } else { if (!other.keyRanges_.isEmpty()) { if (keyRangesBuilder_.isEmpty()) { keyRangesBuilder_.dispose(); keyRangesBuilder_ = null; keyRanges_ = other.keyRanges_; bitField0_ = (bitField0_ & ~0x00000002); keyRangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKeyRangesFieldBuilder() : null; } else { keyRangesBuilder_.addAllMessages(other.keyRanges_); } } } 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.RaftCmdpb.ReadIndexRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.ReadIndexRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long startTs_ ; /** *
       * In replica read, leader uses start_ts and key_ranges to check memory locks.
       * 
* * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } /** *
       * In replica read, leader uses start_ts and key_ranges to check memory locks.
       * 
* * uint64 start_ts = 1; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** *
       * In replica read, leader uses start_ts and key_ranges to check memory locks.
       * 
* * uint64 start_ts = 1; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private java.util.List keyRanges_ = java.util.Collections.emptyList(); private void ensureKeyRangesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { keyRanges_ = new java.util.ArrayList(keyRanges_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder> keyRangesBuilder_; /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public java.util.List getKeyRangesList() { if (keyRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(keyRanges_); } else { return keyRangesBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public int getKeyRangesCount() { if (keyRangesBuilder_ == null) { return keyRanges_.size(); } else { return keyRangesBuilder_.getCount(); } } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRange getKeyRanges(int index) { if (keyRangesBuilder_ == null) { return keyRanges_.get(index); } else { return keyRangesBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public Builder setKeyRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange value) { if (keyRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyRangesIsMutable(); keyRanges_.set(index, value); onChanged(); } else { keyRangesBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public Builder setKeyRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) { if (keyRangesBuilder_ == null) { ensureKeyRangesIsMutable(); keyRanges_.set(index, builderForValue.build()); onChanged(); } else { keyRangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public Builder addKeyRanges(org.tikv.kvproto.Kvrpcpb.KeyRange value) { if (keyRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyRangesIsMutable(); keyRanges_.add(value); onChanged(); } else { keyRangesBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public Builder addKeyRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange value) { if (keyRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeyRangesIsMutable(); keyRanges_.add(index, value); onChanged(); } else { keyRangesBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public Builder addKeyRanges( org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) { if (keyRangesBuilder_ == null) { ensureKeyRangesIsMutable(); keyRanges_.add(builderForValue.build()); onChanged(); } else { keyRangesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public Builder addKeyRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) { if (keyRangesBuilder_ == null) { ensureKeyRangesIsMutable(); keyRanges_.add(index, builderForValue.build()); onChanged(); } else { keyRangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public Builder addAllKeyRanges( java.lang.Iterable values) { if (keyRangesBuilder_ == null) { ensureKeyRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keyRanges_); onChanged(); } else { keyRangesBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public Builder clearKeyRanges() { if (keyRangesBuilder_ == null) { keyRanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { keyRangesBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public Builder removeKeyRanges(int index) { if (keyRangesBuilder_ == null) { ensureKeyRangesIsMutable(); keyRanges_.remove(index); onChanged(); } else { keyRangesBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder getKeyRangesBuilder( int index) { return getKeyRangesFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getKeyRangesOrBuilder( int index) { if (keyRangesBuilder_ == null) { return keyRanges_.get(index); } else { return keyRangesBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public java.util.List getKeyRangesOrBuilderList() { if (keyRangesBuilder_ != null) { return keyRangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(keyRanges_); } } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder addKeyRangesBuilder() { return getKeyRangesFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KeyRange.getDefaultInstance()); } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder addKeyRangesBuilder( int index) { return getKeyRangesFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KeyRange.getDefaultInstance()); } /** * repeated .kvrpcpb.KeyRange key_ranges = 2; */ public java.util.List getKeyRangesBuilderList() { return getKeyRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder> getKeyRangesFieldBuilder() { if (keyRangesBuilder_ == null) { keyRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder>( keyRanges_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); keyRanges_ = null; } return keyRangesBuilder_; } 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_cmdpb.ReadIndexRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.ReadIndexRequest) private static final org.tikv.kvproto.RaftCmdpb.ReadIndexRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ReadIndexRequest(); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReadIndexRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadIndexRequest(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.RaftCmdpb.ReadIndexRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadIndexResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.ReadIndexResponse) com.google.protobuf.MessageOrBuilder { /** * uint64 read_index = 1; */ long getReadIndex(); /** *
     * The memory lock blocking this read at the leader
     * 
* * .kvrpcpb.LockInfo locked = 2; */ boolean hasLocked(); /** *
     * The memory lock blocking this read at the leader
     * 
* * .kvrpcpb.LockInfo locked = 2; */ org.tikv.kvproto.Kvrpcpb.LockInfo getLocked(); /** *
     * The memory lock blocking this read at the leader
     * 
* * .kvrpcpb.LockInfo locked = 2; */ org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.ReadIndexResponse} */ public static final class ReadIndexResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.ReadIndexResponse) ReadIndexResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ReadIndexResponse.newBuilder() to construct. private ReadIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadIndexResponse() { readIndex_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadIndexResponse( 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: { readIndex_ = input.readUInt64(); break; } case 18: { org.tikv.kvproto.Kvrpcpb.LockInfo.Builder subBuilder = null; if (locked_ != null) { subBuilder = locked_.toBuilder(); } locked_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.LockInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(locked_); locked_ = 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.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.class, org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder.class); } public static final int READ_INDEX_FIELD_NUMBER = 1; private long readIndex_; /** * uint64 read_index = 1; */ public long getReadIndex() { return readIndex_; } public static final int LOCKED_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.LockInfo locked_; /** *
     * The memory lock blocking this read at the leader
     * 
* * .kvrpcpb.LockInfo locked = 2; */ public boolean hasLocked() { return locked_ != null; } /** *
     * The memory lock blocking this read at the leader
     * 
* * .kvrpcpb.LockInfo locked = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocked() { return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_; } /** *
     * The memory lock blocking this read at the leader
     * 
* * .kvrpcpb.LockInfo locked = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder() { return getLocked(); } 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 (readIndex_ != 0L) { output.writeUInt64(1, readIndex_); } if (locked_ != null) { output.writeMessage(2, getLocked()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (readIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, readIndex_); } if (locked_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLocked()); } 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.RaftCmdpb.ReadIndexResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.ReadIndexResponse other = (org.tikv.kvproto.RaftCmdpb.ReadIndexResponse) obj; boolean result = true; result = result && (getReadIndex() == other.getReadIndex()); result = result && (hasLocked() == other.hasLocked()); if (hasLocked()) { result = result && getLocked() .equals(other.getLocked()); } 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) + READ_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getReadIndex()); if (hasLocked()) { hash = (37 * hash) + LOCKED_FIELD_NUMBER; hash = (53 * hash) + getLocked().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse 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.RaftCmdpb.ReadIndexResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse 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.RaftCmdpb.ReadIndexResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse 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.RaftCmdpb.ReadIndexResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse 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.RaftCmdpb.ReadIndexResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse 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.RaftCmdpb.ReadIndexResponse 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_cmdpb.ReadIndexResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.ReadIndexResponse) org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.class, org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.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(); readIndex_ = 0L; if (lockedBuilder_ == null) { locked_ = null; } else { locked_ = null; lockedBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ReadIndexResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse build() { org.tikv.kvproto.RaftCmdpb.ReadIndexResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.ReadIndexResponse result = new org.tikv.kvproto.RaftCmdpb.ReadIndexResponse(this); result.readIndex_ = readIndex_; if (lockedBuilder_ == null) { result.locked_ = locked_; } else { result.locked_ = lockedBuilder_.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.RaftCmdpb.ReadIndexResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.ReadIndexResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ReadIndexResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.getDefaultInstance()) return this; if (other.getReadIndex() != 0L) { setReadIndex(other.getReadIndex()); } if (other.hasLocked()) { mergeLocked(other.getLocked()); } 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.RaftCmdpb.ReadIndexResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.ReadIndexResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long readIndex_ ; /** * uint64 read_index = 1; */ public long getReadIndex() { return readIndex_; } /** * uint64 read_index = 1; */ public Builder setReadIndex(long value) { readIndex_ = value; onChanged(); return this; } /** * uint64 read_index = 1; */ public Builder clearReadIndex() { readIndex_ = 0L; onChanged(); return this; } private org.tikv.kvproto.Kvrpcpb.LockInfo locked_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> lockedBuilder_; /** *
       * The memory lock blocking this read at the leader
       * 
* * .kvrpcpb.LockInfo locked = 2; */ public boolean hasLocked() { return lockedBuilder_ != null || locked_ != null; } /** *
       * The memory lock blocking this read at the leader
       * 
* * .kvrpcpb.LockInfo locked = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocked() { if (lockedBuilder_ == null) { return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_; } else { return lockedBuilder_.getMessage(); } } /** *
       * The memory lock blocking this read at the leader
       * 
* * .kvrpcpb.LockInfo locked = 2; */ public Builder setLocked(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (lockedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } locked_ = value; onChanged(); } else { lockedBuilder_.setMessage(value); } return this; } /** *
       * The memory lock blocking this read at the leader
       * 
* * .kvrpcpb.LockInfo locked = 2; */ public Builder setLocked( org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (lockedBuilder_ == null) { locked_ = builderForValue.build(); onChanged(); } else { lockedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The memory lock blocking this read at the leader
       * 
* * .kvrpcpb.LockInfo locked = 2; */ public Builder mergeLocked(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (lockedBuilder_ == null) { if (locked_ != null) { locked_ = org.tikv.kvproto.Kvrpcpb.LockInfo.newBuilder(locked_).mergeFrom(value).buildPartial(); } else { locked_ = value; } onChanged(); } else { lockedBuilder_.mergeFrom(value); } return this; } /** *
       * The memory lock blocking this read at the leader
       * 
* * .kvrpcpb.LockInfo locked = 2; */ public Builder clearLocked() { if (lockedBuilder_ == null) { locked_ = null; onChanged(); } else { locked_ = null; lockedBuilder_ = null; } return this; } /** *
       * The memory lock blocking this read at the leader
       * 
* * .kvrpcpb.LockInfo locked = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder getLockedBuilder() { onChanged(); return getLockedFieldBuilder().getBuilder(); } /** *
       * The memory lock blocking this read at the leader
       * 
* * .kvrpcpb.LockInfo locked = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder() { if (lockedBuilder_ != null) { return lockedBuilder_.getMessageOrBuilder(); } else { return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_; } } /** *
       * The memory lock blocking this read at the leader
       * 
* * .kvrpcpb.LockInfo locked = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> getLockedFieldBuilder() { if (lockedBuilder_ == null) { lockedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>( getLocked(), getParentForChildren(), isClean()); locked_ = null; } return lockedBuilder_; } 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_cmdpb.ReadIndexResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.ReadIndexResponse) private static final org.tikv.kvproto.RaftCmdpb.ReadIndexResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ReadIndexResponse(); } public static org.tikv.kvproto.RaftCmdpb.ReadIndexResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReadIndexResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadIndexResponse(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.RaftCmdpb.ReadIndexResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.Request) com.google.protobuf.MessageOrBuilder { /** * .raft_cmdpb.CmdType cmd_type = 1; */ int getCmdTypeValue(); /** * .raft_cmdpb.CmdType cmd_type = 1; */ org.tikv.kvproto.RaftCmdpb.CmdType getCmdType(); /** * .raft_cmdpb.GetRequest get = 2; */ boolean hasGet(); /** * .raft_cmdpb.GetRequest get = 2; */ org.tikv.kvproto.RaftCmdpb.GetRequest getGet(); /** * .raft_cmdpb.GetRequest get = 2; */ org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder getGetOrBuilder(); /** * .raft_cmdpb.PutRequest put = 4; */ boolean hasPut(); /** * .raft_cmdpb.PutRequest put = 4; */ org.tikv.kvproto.RaftCmdpb.PutRequest getPut(); /** * .raft_cmdpb.PutRequest put = 4; */ org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder getPutOrBuilder(); /** * .raft_cmdpb.DeleteRequest delete = 5; */ boolean hasDelete(); /** * .raft_cmdpb.DeleteRequest delete = 5; */ org.tikv.kvproto.RaftCmdpb.DeleteRequest getDelete(); /** * .raft_cmdpb.DeleteRequest delete = 5; */ org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder getDeleteOrBuilder(); /** * .raft_cmdpb.SnapRequest snap = 6; */ boolean hasSnap(); /** * .raft_cmdpb.SnapRequest snap = 6; */ org.tikv.kvproto.RaftCmdpb.SnapRequest getSnap(); /** * .raft_cmdpb.SnapRequest snap = 6; */ org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder getSnapOrBuilder(); /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ boolean hasPrewrite(); /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ org.tikv.kvproto.RaftCmdpb.PrewriteRequest getPrewrite(); /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder getPrewriteOrBuilder(); /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ boolean hasDeleteRange(); /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest getDeleteRange(); /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder getDeleteRangeOrBuilder(); /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ boolean hasIngestSst(); /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ org.tikv.kvproto.RaftCmdpb.IngestSSTRequest getIngestSst(); /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder getIngestSstOrBuilder(); /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ boolean hasReadIndex(); /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ org.tikv.kvproto.RaftCmdpb.ReadIndexRequest getReadIndex(); /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder getReadIndexOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { cmdType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Request( 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(); cmdType_ = rawValue; break; } case 18: { org.tikv.kvproto.RaftCmdpb.GetRequest.Builder subBuilder = null; if (get_ != null) { subBuilder = get_.toBuilder(); } get_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.GetRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(get_); get_ = subBuilder.buildPartial(); } break; } case 34: { org.tikv.kvproto.RaftCmdpb.PutRequest.Builder subBuilder = null; if (put_ != null) { subBuilder = put_.toBuilder(); } put_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.PutRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(put_); put_ = subBuilder.buildPartial(); } break; } case 42: { org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder subBuilder = null; if (delete_ != null) { subBuilder = delete_.toBuilder(); } delete_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.DeleteRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(delete_); delete_ = subBuilder.buildPartial(); } break; } case 50: { org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder subBuilder = null; if (snap_ != null) { subBuilder = snap_.toBuilder(); } snap_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.SnapRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(snap_); snap_ = subBuilder.buildPartial(); } break; } case 58: { org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder subBuilder = null; if (prewrite_ != null) { subBuilder = prewrite_.toBuilder(); } prewrite_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.PrewriteRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(prewrite_); prewrite_ = subBuilder.buildPartial(); } break; } case 66: { org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder subBuilder = null; if (deleteRange_ != null) { subBuilder = deleteRange_.toBuilder(); } deleteRange_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deleteRange_); deleteRange_ = subBuilder.buildPartial(); } break; } case 74: { org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder subBuilder = null; if (ingestSst_ != null) { subBuilder = ingestSst_.toBuilder(); } ingestSst_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ingestSst_); ingestSst_ = subBuilder.buildPartial(); } break; } case 82: { org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder subBuilder = null; if (readIndex_ != null) { subBuilder = readIndex_.toBuilder(); } readIndex_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(readIndex_); readIndex_ = 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.RaftCmdpb.internal_static_raft_cmdpb_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.Request.class, org.tikv.kvproto.RaftCmdpb.Request.Builder.class); } public static final int CMD_TYPE_FIELD_NUMBER = 1; private int cmdType_; /** * .raft_cmdpb.CmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.CmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.CmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.CmdType result = org.tikv.kvproto.RaftCmdpb.CmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.CmdType.UNRECOGNIZED : result; } public static final int GET_FIELD_NUMBER = 2; private org.tikv.kvproto.RaftCmdpb.GetRequest get_; /** * .raft_cmdpb.GetRequest get = 2; */ public boolean hasGet() { return get_ != null; } /** * .raft_cmdpb.GetRequest get = 2; */ public org.tikv.kvproto.RaftCmdpb.GetRequest getGet() { return get_ == null ? org.tikv.kvproto.RaftCmdpb.GetRequest.getDefaultInstance() : get_; } /** * .raft_cmdpb.GetRequest get = 2; */ public org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder getGetOrBuilder() { return getGet(); } public static final int PUT_FIELD_NUMBER = 4; private org.tikv.kvproto.RaftCmdpb.PutRequest put_; /** * .raft_cmdpb.PutRequest put = 4; */ public boolean hasPut() { return put_ != null; } /** * .raft_cmdpb.PutRequest put = 4; */ public org.tikv.kvproto.RaftCmdpb.PutRequest getPut() { return put_ == null ? org.tikv.kvproto.RaftCmdpb.PutRequest.getDefaultInstance() : put_; } /** * .raft_cmdpb.PutRequest put = 4; */ public org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder getPutOrBuilder() { return getPut(); } public static final int DELETE_FIELD_NUMBER = 5; private org.tikv.kvproto.RaftCmdpb.DeleteRequest delete_; /** * .raft_cmdpb.DeleteRequest delete = 5; */ public boolean hasDelete() { return delete_ != null; } /** * .raft_cmdpb.DeleteRequest delete = 5; */ public org.tikv.kvproto.RaftCmdpb.DeleteRequest getDelete() { return delete_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRequest.getDefaultInstance() : delete_; } /** * .raft_cmdpb.DeleteRequest delete = 5; */ public org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder getDeleteOrBuilder() { return getDelete(); } public static final int SNAP_FIELD_NUMBER = 6; private org.tikv.kvproto.RaftCmdpb.SnapRequest snap_; /** * .raft_cmdpb.SnapRequest snap = 6; */ public boolean hasSnap() { return snap_ != null; } /** * .raft_cmdpb.SnapRequest snap = 6; */ public org.tikv.kvproto.RaftCmdpb.SnapRequest getSnap() { return snap_ == null ? org.tikv.kvproto.RaftCmdpb.SnapRequest.getDefaultInstance() : snap_; } /** * .raft_cmdpb.SnapRequest snap = 6; */ public org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder getSnapOrBuilder() { return getSnap(); } public static final int PREWRITE_FIELD_NUMBER = 7; private org.tikv.kvproto.RaftCmdpb.PrewriteRequest prewrite_; /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ public boolean hasPrewrite() { return prewrite_ != null; } /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ public org.tikv.kvproto.RaftCmdpb.PrewriteRequest getPrewrite() { return prewrite_ == null ? org.tikv.kvproto.RaftCmdpb.PrewriteRequest.getDefaultInstance() : prewrite_; } /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ public org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder getPrewriteOrBuilder() { return getPrewrite(); } public static final int DELETE_RANGE_FIELD_NUMBER = 8; private org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest deleteRange_; /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ public boolean hasDeleteRange() { return deleteRange_ != null; } /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest getDeleteRange() { return deleteRange_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.getDefaultInstance() : deleteRange_; } /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder getDeleteRangeOrBuilder() { return getDeleteRange(); } public static final int INGEST_SST_FIELD_NUMBER = 9; private org.tikv.kvproto.RaftCmdpb.IngestSSTRequest ingestSst_; /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ public boolean hasIngestSst() { return ingestSst_ != null; } /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest getIngestSst() { return ingestSst_ == null ? org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.getDefaultInstance() : ingestSst_; } /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ public org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder getIngestSstOrBuilder() { return getIngestSst(); } public static final int READ_INDEX_FIELD_NUMBER = 10; private org.tikv.kvproto.RaftCmdpb.ReadIndexRequest readIndex_; /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ public boolean hasReadIndex() { return readIndex_ != null; } /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest getReadIndex() { return readIndex_ == null ? org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.getDefaultInstance() : readIndex_; } /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ public org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder getReadIndexOrBuilder() { return getReadIndex(); } 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 (cmdType_ != org.tikv.kvproto.RaftCmdpb.CmdType.Invalid.getNumber()) { output.writeEnum(1, cmdType_); } if (get_ != null) { output.writeMessage(2, getGet()); } if (put_ != null) { output.writeMessage(4, getPut()); } if (delete_ != null) { output.writeMessage(5, getDelete()); } if (snap_ != null) { output.writeMessage(6, getSnap()); } if (prewrite_ != null) { output.writeMessage(7, getPrewrite()); } if (deleteRange_ != null) { output.writeMessage(8, getDeleteRange()); } if (ingestSst_ != null) { output.writeMessage(9, getIngestSst()); } if (readIndex_ != null) { output.writeMessage(10, getReadIndex()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cmdType_ != org.tikv.kvproto.RaftCmdpb.CmdType.Invalid.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, cmdType_); } if (get_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getGet()); } if (put_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPut()); } if (delete_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getDelete()); } if (snap_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSnap()); } if (prewrite_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getPrewrite()); } if (deleteRange_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getDeleteRange()); } if (ingestSst_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getIngestSst()); } if (readIndex_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getReadIndex()); } 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.RaftCmdpb.Request)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.Request other = (org.tikv.kvproto.RaftCmdpb.Request) obj; boolean result = true; result = result && cmdType_ == other.cmdType_; result = result && (hasGet() == other.hasGet()); if (hasGet()) { result = result && getGet() .equals(other.getGet()); } result = result && (hasPut() == other.hasPut()); if (hasPut()) { result = result && getPut() .equals(other.getPut()); } result = result && (hasDelete() == other.hasDelete()); if (hasDelete()) { result = result && getDelete() .equals(other.getDelete()); } result = result && (hasSnap() == other.hasSnap()); if (hasSnap()) { result = result && getSnap() .equals(other.getSnap()); } result = result && (hasPrewrite() == other.hasPrewrite()); if (hasPrewrite()) { result = result && getPrewrite() .equals(other.getPrewrite()); } result = result && (hasDeleteRange() == other.hasDeleteRange()); if (hasDeleteRange()) { result = result && getDeleteRange() .equals(other.getDeleteRange()); } result = result && (hasIngestSst() == other.hasIngestSst()); if (hasIngestSst()) { result = result && getIngestSst() .equals(other.getIngestSst()); } result = result && (hasReadIndex() == other.hasReadIndex()); if (hasReadIndex()) { result = result && getReadIndex() .equals(other.getReadIndex()); } 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) + CMD_TYPE_FIELD_NUMBER; hash = (53 * hash) + cmdType_; if (hasGet()) { hash = (37 * hash) + GET_FIELD_NUMBER; hash = (53 * hash) + getGet().hashCode(); } if (hasPut()) { hash = (37 * hash) + PUT_FIELD_NUMBER; hash = (53 * hash) + getPut().hashCode(); } if (hasDelete()) { hash = (37 * hash) + DELETE_FIELD_NUMBER; hash = (53 * hash) + getDelete().hashCode(); } if (hasSnap()) { hash = (37 * hash) + SNAP_FIELD_NUMBER; hash = (53 * hash) + getSnap().hashCode(); } if (hasPrewrite()) { hash = (37 * hash) + PREWRITE_FIELD_NUMBER; hash = (53 * hash) + getPrewrite().hashCode(); } if (hasDeleteRange()) { hash = (37 * hash) + DELETE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getDeleteRange().hashCode(); } if (hasIngestSst()) { hash = (37 * hash) + INGEST_SST_FIELD_NUMBER; hash = (53 * hash) + getIngestSst().hashCode(); } if (hasReadIndex()) { hash = (37 * hash) + READ_INDEX_FIELD_NUMBER; hash = (53 * hash) + getReadIndex().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.Request 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.RaftCmdpb.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.Request 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.RaftCmdpb.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.Request 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.RaftCmdpb.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.Request 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.RaftCmdpb.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.Request 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.RaftCmdpb.Request 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_cmdpb.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.Request) org.tikv.kvproto.RaftCmdpb.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.Request.class, org.tikv.kvproto.RaftCmdpb.Request.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.Request.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(); cmdType_ = 0; if (getBuilder_ == null) { get_ = null; } else { get_ = null; getBuilder_ = null; } if (putBuilder_ == null) { put_ = null; } else { put_ = null; putBuilder_ = null; } if (deleteBuilder_ == null) { delete_ = null; } else { delete_ = null; deleteBuilder_ = null; } if (snapBuilder_ == null) { snap_ = null; } else { snap_ = null; snapBuilder_ = null; } if (prewriteBuilder_ == null) { prewrite_ = null; } else { prewrite_ = null; prewriteBuilder_ = null; } if (deleteRangeBuilder_ == null) { deleteRange_ = null; } else { deleteRange_ = null; deleteRangeBuilder_ = null; } if (ingestSstBuilder_ == null) { ingestSst_ = null; } else { ingestSst_ = null; ingestSstBuilder_ = null; } if (readIndexBuilder_ == null) { readIndex_ = null; } else { readIndex_ = null; readIndexBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Request_descriptor; } public org.tikv.kvproto.RaftCmdpb.Request getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.Request.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.Request build() { org.tikv.kvproto.RaftCmdpb.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.Request buildPartial() { org.tikv.kvproto.RaftCmdpb.Request result = new org.tikv.kvproto.RaftCmdpb.Request(this); result.cmdType_ = cmdType_; if (getBuilder_ == null) { result.get_ = get_; } else { result.get_ = getBuilder_.build(); } if (putBuilder_ == null) { result.put_ = put_; } else { result.put_ = putBuilder_.build(); } if (deleteBuilder_ == null) { result.delete_ = delete_; } else { result.delete_ = deleteBuilder_.build(); } if (snapBuilder_ == null) { result.snap_ = snap_; } else { result.snap_ = snapBuilder_.build(); } if (prewriteBuilder_ == null) { result.prewrite_ = prewrite_; } else { result.prewrite_ = prewriteBuilder_.build(); } if (deleteRangeBuilder_ == null) { result.deleteRange_ = deleteRange_; } else { result.deleteRange_ = deleteRangeBuilder_.build(); } if (ingestSstBuilder_ == null) { result.ingestSst_ = ingestSst_; } else { result.ingestSst_ = ingestSstBuilder_.build(); } if (readIndexBuilder_ == null) { result.readIndex_ = readIndex_; } else { result.readIndex_ = readIndexBuilder_.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.RaftCmdpb.Request) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.Request other) { if (other == org.tikv.kvproto.RaftCmdpb.Request.getDefaultInstance()) return this; if (other.cmdType_ != 0) { setCmdTypeValue(other.getCmdTypeValue()); } if (other.hasGet()) { mergeGet(other.getGet()); } if (other.hasPut()) { mergePut(other.getPut()); } if (other.hasDelete()) { mergeDelete(other.getDelete()); } if (other.hasSnap()) { mergeSnap(other.getSnap()); } if (other.hasPrewrite()) { mergePrewrite(other.getPrewrite()); } if (other.hasDeleteRange()) { mergeDeleteRange(other.getDeleteRange()); } if (other.hasIngestSst()) { mergeIngestSst(other.getIngestSst()); } if (other.hasReadIndex()) { mergeReadIndex(other.getReadIndex()); } 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.RaftCmdpb.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cmdType_ = 0; /** * .raft_cmdpb.CmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.CmdType cmd_type = 1; */ public Builder setCmdTypeValue(int value) { cmdType_ = value; onChanged(); return this; } /** * .raft_cmdpb.CmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.CmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.CmdType result = org.tikv.kvproto.RaftCmdpb.CmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.CmdType.UNRECOGNIZED : result; } /** * .raft_cmdpb.CmdType cmd_type = 1; */ public Builder setCmdType(org.tikv.kvproto.RaftCmdpb.CmdType value) { if (value == null) { throw new NullPointerException(); } cmdType_ = value.getNumber(); onChanged(); return this; } /** * .raft_cmdpb.CmdType cmd_type = 1; */ public Builder clearCmdType() { cmdType_ = 0; onChanged(); return this; } private org.tikv.kvproto.RaftCmdpb.GetRequest get_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.GetRequest, org.tikv.kvproto.RaftCmdpb.GetRequest.Builder, org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder> getBuilder_; /** * .raft_cmdpb.GetRequest get = 2; */ public boolean hasGet() { return getBuilder_ != null || get_ != null; } /** * .raft_cmdpb.GetRequest get = 2; */ public org.tikv.kvproto.RaftCmdpb.GetRequest getGet() { if (getBuilder_ == null) { return get_ == null ? org.tikv.kvproto.RaftCmdpb.GetRequest.getDefaultInstance() : get_; } else { return getBuilder_.getMessage(); } } /** * .raft_cmdpb.GetRequest get = 2; */ public Builder setGet(org.tikv.kvproto.RaftCmdpb.GetRequest value) { if (getBuilder_ == null) { if (value == null) { throw new NullPointerException(); } get_ = value; onChanged(); } else { getBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.GetRequest get = 2; */ public Builder setGet( org.tikv.kvproto.RaftCmdpb.GetRequest.Builder builderForValue) { if (getBuilder_ == null) { get_ = builderForValue.build(); onChanged(); } else { getBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.GetRequest get = 2; */ public Builder mergeGet(org.tikv.kvproto.RaftCmdpb.GetRequest value) { if (getBuilder_ == null) { if (get_ != null) { get_ = org.tikv.kvproto.RaftCmdpb.GetRequest.newBuilder(get_).mergeFrom(value).buildPartial(); } else { get_ = value; } onChanged(); } else { getBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.GetRequest get = 2; */ public Builder clearGet() { if (getBuilder_ == null) { get_ = null; onChanged(); } else { get_ = null; getBuilder_ = null; } return this; } /** * .raft_cmdpb.GetRequest get = 2; */ public org.tikv.kvproto.RaftCmdpb.GetRequest.Builder getGetBuilder() { onChanged(); return getGetFieldBuilder().getBuilder(); } /** * .raft_cmdpb.GetRequest get = 2; */ public org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder getGetOrBuilder() { if (getBuilder_ != null) { return getBuilder_.getMessageOrBuilder(); } else { return get_ == null ? org.tikv.kvproto.RaftCmdpb.GetRequest.getDefaultInstance() : get_; } } /** * .raft_cmdpb.GetRequest get = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.GetRequest, org.tikv.kvproto.RaftCmdpb.GetRequest.Builder, org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder> getGetFieldBuilder() { if (getBuilder_ == null) { getBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.GetRequest, org.tikv.kvproto.RaftCmdpb.GetRequest.Builder, org.tikv.kvproto.RaftCmdpb.GetRequestOrBuilder>( getGet(), getParentForChildren(), isClean()); get_ = null; } return getBuilder_; } private org.tikv.kvproto.RaftCmdpb.PutRequest put_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PutRequest, org.tikv.kvproto.RaftCmdpb.PutRequest.Builder, org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder> putBuilder_; /** * .raft_cmdpb.PutRequest put = 4; */ public boolean hasPut() { return putBuilder_ != null || put_ != null; } /** * .raft_cmdpb.PutRequest put = 4; */ public org.tikv.kvproto.RaftCmdpb.PutRequest getPut() { if (putBuilder_ == null) { return put_ == null ? org.tikv.kvproto.RaftCmdpb.PutRequest.getDefaultInstance() : put_; } else { return putBuilder_.getMessage(); } } /** * .raft_cmdpb.PutRequest put = 4; */ public Builder setPut(org.tikv.kvproto.RaftCmdpb.PutRequest value) { if (putBuilder_ == null) { if (value == null) { throw new NullPointerException(); } put_ = value; onChanged(); } else { putBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.PutRequest put = 4; */ public Builder setPut( org.tikv.kvproto.RaftCmdpb.PutRequest.Builder builderForValue) { if (putBuilder_ == null) { put_ = builderForValue.build(); onChanged(); } else { putBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.PutRequest put = 4; */ public Builder mergePut(org.tikv.kvproto.RaftCmdpb.PutRequest value) { if (putBuilder_ == null) { if (put_ != null) { put_ = org.tikv.kvproto.RaftCmdpb.PutRequest.newBuilder(put_).mergeFrom(value).buildPartial(); } else { put_ = value; } onChanged(); } else { putBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.PutRequest put = 4; */ public Builder clearPut() { if (putBuilder_ == null) { put_ = null; onChanged(); } else { put_ = null; putBuilder_ = null; } return this; } /** * .raft_cmdpb.PutRequest put = 4; */ public org.tikv.kvproto.RaftCmdpb.PutRequest.Builder getPutBuilder() { onChanged(); return getPutFieldBuilder().getBuilder(); } /** * .raft_cmdpb.PutRequest put = 4; */ public org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder getPutOrBuilder() { if (putBuilder_ != null) { return putBuilder_.getMessageOrBuilder(); } else { return put_ == null ? org.tikv.kvproto.RaftCmdpb.PutRequest.getDefaultInstance() : put_; } } /** * .raft_cmdpb.PutRequest put = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PutRequest, org.tikv.kvproto.RaftCmdpb.PutRequest.Builder, org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder> getPutFieldBuilder() { if (putBuilder_ == null) { putBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PutRequest, org.tikv.kvproto.RaftCmdpb.PutRequest.Builder, org.tikv.kvproto.RaftCmdpb.PutRequestOrBuilder>( getPut(), getParentForChildren(), isClean()); put_ = null; } return putBuilder_; } private org.tikv.kvproto.RaftCmdpb.DeleteRequest delete_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteRequest, org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder> deleteBuilder_; /** * .raft_cmdpb.DeleteRequest delete = 5; */ public boolean hasDelete() { return deleteBuilder_ != null || delete_ != null; } /** * .raft_cmdpb.DeleteRequest delete = 5; */ public org.tikv.kvproto.RaftCmdpb.DeleteRequest getDelete() { if (deleteBuilder_ == null) { return delete_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRequest.getDefaultInstance() : delete_; } else { return deleteBuilder_.getMessage(); } } /** * .raft_cmdpb.DeleteRequest delete = 5; */ public Builder setDelete(org.tikv.kvproto.RaftCmdpb.DeleteRequest value) { if (deleteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } delete_ = value; onChanged(); } else { deleteBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.DeleteRequest delete = 5; */ public Builder setDelete( org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder builderForValue) { if (deleteBuilder_ == null) { delete_ = builderForValue.build(); onChanged(); } else { deleteBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.DeleteRequest delete = 5; */ public Builder mergeDelete(org.tikv.kvproto.RaftCmdpb.DeleteRequest value) { if (deleteBuilder_ == null) { if (delete_ != null) { delete_ = org.tikv.kvproto.RaftCmdpb.DeleteRequest.newBuilder(delete_).mergeFrom(value).buildPartial(); } else { delete_ = value; } onChanged(); } else { deleteBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.DeleteRequest delete = 5; */ public Builder clearDelete() { if (deleteBuilder_ == null) { delete_ = null; onChanged(); } else { delete_ = null; deleteBuilder_ = null; } return this; } /** * .raft_cmdpb.DeleteRequest delete = 5; */ public org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder getDeleteBuilder() { onChanged(); return getDeleteFieldBuilder().getBuilder(); } /** * .raft_cmdpb.DeleteRequest delete = 5; */ public org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder getDeleteOrBuilder() { if (deleteBuilder_ != null) { return deleteBuilder_.getMessageOrBuilder(); } else { return delete_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRequest.getDefaultInstance() : delete_; } } /** * .raft_cmdpb.DeleteRequest delete = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteRequest, org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder> getDeleteFieldBuilder() { if (deleteBuilder_ == null) { deleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteRequest, org.tikv.kvproto.RaftCmdpb.DeleteRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRequestOrBuilder>( getDelete(), getParentForChildren(), isClean()); delete_ = null; } return deleteBuilder_; } private org.tikv.kvproto.RaftCmdpb.SnapRequest snap_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SnapRequest, org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder, org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder> snapBuilder_; /** * .raft_cmdpb.SnapRequest snap = 6; */ public boolean hasSnap() { return snapBuilder_ != null || snap_ != null; } /** * .raft_cmdpb.SnapRequest snap = 6; */ public org.tikv.kvproto.RaftCmdpb.SnapRequest getSnap() { if (snapBuilder_ == null) { return snap_ == null ? org.tikv.kvproto.RaftCmdpb.SnapRequest.getDefaultInstance() : snap_; } else { return snapBuilder_.getMessage(); } } /** * .raft_cmdpb.SnapRequest snap = 6; */ public Builder setSnap(org.tikv.kvproto.RaftCmdpb.SnapRequest value) { if (snapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } snap_ = value; onChanged(); } else { snapBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.SnapRequest snap = 6; */ public Builder setSnap( org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder builderForValue) { if (snapBuilder_ == null) { snap_ = builderForValue.build(); onChanged(); } else { snapBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.SnapRequest snap = 6; */ public Builder mergeSnap(org.tikv.kvproto.RaftCmdpb.SnapRequest value) { if (snapBuilder_ == null) { if (snap_ != null) { snap_ = org.tikv.kvproto.RaftCmdpb.SnapRequest.newBuilder(snap_).mergeFrom(value).buildPartial(); } else { snap_ = value; } onChanged(); } else { snapBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.SnapRequest snap = 6; */ public Builder clearSnap() { if (snapBuilder_ == null) { snap_ = null; onChanged(); } else { snap_ = null; snapBuilder_ = null; } return this; } /** * .raft_cmdpb.SnapRequest snap = 6; */ public org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder getSnapBuilder() { onChanged(); return getSnapFieldBuilder().getBuilder(); } /** * .raft_cmdpb.SnapRequest snap = 6; */ public org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder getSnapOrBuilder() { if (snapBuilder_ != null) { return snapBuilder_.getMessageOrBuilder(); } else { return snap_ == null ? org.tikv.kvproto.RaftCmdpb.SnapRequest.getDefaultInstance() : snap_; } } /** * .raft_cmdpb.SnapRequest snap = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SnapRequest, org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder, org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder> getSnapFieldBuilder() { if (snapBuilder_ == null) { snapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SnapRequest, org.tikv.kvproto.RaftCmdpb.SnapRequest.Builder, org.tikv.kvproto.RaftCmdpb.SnapRequestOrBuilder>( getSnap(), getParentForChildren(), isClean()); snap_ = null; } return snapBuilder_; } private org.tikv.kvproto.RaftCmdpb.PrewriteRequest prewrite_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrewriteRequest, org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder> prewriteBuilder_; /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ public boolean hasPrewrite() { return prewriteBuilder_ != null || prewrite_ != null; } /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ public org.tikv.kvproto.RaftCmdpb.PrewriteRequest getPrewrite() { if (prewriteBuilder_ == null) { return prewrite_ == null ? org.tikv.kvproto.RaftCmdpb.PrewriteRequest.getDefaultInstance() : prewrite_; } else { return prewriteBuilder_.getMessage(); } } /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ public Builder setPrewrite(org.tikv.kvproto.RaftCmdpb.PrewriteRequest value) { if (prewriteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } prewrite_ = value; onChanged(); } else { prewriteBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ public Builder setPrewrite( org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder builderForValue) { if (prewriteBuilder_ == null) { prewrite_ = builderForValue.build(); onChanged(); } else { prewriteBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ public Builder mergePrewrite(org.tikv.kvproto.RaftCmdpb.PrewriteRequest value) { if (prewriteBuilder_ == null) { if (prewrite_ != null) { prewrite_ = org.tikv.kvproto.RaftCmdpb.PrewriteRequest.newBuilder(prewrite_).mergeFrom(value).buildPartial(); } else { prewrite_ = value; } onChanged(); } else { prewriteBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ public Builder clearPrewrite() { if (prewriteBuilder_ == null) { prewrite_ = null; onChanged(); } else { prewrite_ = null; prewriteBuilder_ = null; } return this; } /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ public org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder getPrewriteBuilder() { onChanged(); return getPrewriteFieldBuilder().getBuilder(); } /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ public org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder getPrewriteOrBuilder() { if (prewriteBuilder_ != null) { return prewriteBuilder_.getMessageOrBuilder(); } else { return prewrite_ == null ? org.tikv.kvproto.RaftCmdpb.PrewriteRequest.getDefaultInstance() : prewrite_; } } /** * .raft_cmdpb.PrewriteRequest prewrite = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrewriteRequest, org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder> getPrewriteFieldBuilder() { if (prewriteBuilder_ == null) { prewriteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrewriteRequest, org.tikv.kvproto.RaftCmdpb.PrewriteRequest.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteRequestOrBuilder>( getPrewrite(), getParentForChildren(), isClean()); prewrite_ = null; } return prewriteBuilder_; } private org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest deleteRange_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder> deleteRangeBuilder_; /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ public boolean hasDeleteRange() { return deleteRangeBuilder_ != null || deleteRange_ != null; } /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest getDeleteRange() { if (deleteRangeBuilder_ == null) { return deleteRange_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.getDefaultInstance() : deleteRange_; } else { return deleteRangeBuilder_.getMessage(); } } /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ public Builder setDeleteRange(org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest value) { if (deleteRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deleteRange_ = value; onChanged(); } else { deleteRangeBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ public Builder setDeleteRange( org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder builderForValue) { if (deleteRangeBuilder_ == null) { deleteRange_ = builderForValue.build(); onChanged(); } else { deleteRangeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ public Builder mergeDeleteRange(org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest value) { if (deleteRangeBuilder_ == null) { if (deleteRange_ != null) { deleteRange_ = org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.newBuilder(deleteRange_).mergeFrom(value).buildPartial(); } else { deleteRange_ = value; } onChanged(); } else { deleteRangeBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ public Builder clearDeleteRange() { if (deleteRangeBuilder_ == null) { deleteRange_ = null; onChanged(); } else { deleteRange_ = null; deleteRangeBuilder_ = null; } return this; } /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder getDeleteRangeBuilder() { onChanged(); return getDeleteRangeFieldBuilder().getBuilder(); } /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ public org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder getDeleteRangeOrBuilder() { if (deleteRangeBuilder_ != null) { return deleteRangeBuilder_.getMessageOrBuilder(); } else { return deleteRange_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.getDefaultInstance() : deleteRange_; } } /** * .raft_cmdpb.DeleteRangeRequest delete_range = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder> getDeleteRangeFieldBuilder() { if (deleteRangeBuilder_ == null) { deleteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequest.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeRequestOrBuilder>( getDeleteRange(), getParentForChildren(), isClean()); deleteRange_ = null; } return deleteRangeBuilder_; } private org.tikv.kvproto.RaftCmdpb.IngestSSTRequest ingestSst_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.IngestSSTRequest, org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder> ingestSstBuilder_; /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ public boolean hasIngestSst() { return ingestSstBuilder_ != null || ingestSst_ != null; } /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest getIngestSst() { if (ingestSstBuilder_ == null) { return ingestSst_ == null ? org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.getDefaultInstance() : ingestSst_; } else { return ingestSstBuilder_.getMessage(); } } /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ public Builder setIngestSst(org.tikv.kvproto.RaftCmdpb.IngestSSTRequest value) { if (ingestSstBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ingestSst_ = value; onChanged(); } else { ingestSstBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ public Builder setIngestSst( org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder builderForValue) { if (ingestSstBuilder_ == null) { ingestSst_ = builderForValue.build(); onChanged(); } else { ingestSstBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ public Builder mergeIngestSst(org.tikv.kvproto.RaftCmdpb.IngestSSTRequest value) { if (ingestSstBuilder_ == null) { if (ingestSst_ != null) { ingestSst_ = org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.newBuilder(ingestSst_).mergeFrom(value).buildPartial(); } else { ingestSst_ = value; } onChanged(); } else { ingestSstBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ public Builder clearIngestSst() { if (ingestSstBuilder_ == null) { ingestSst_ = null; onChanged(); } else { ingestSst_ = null; ingestSstBuilder_ = null; } return this; } /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ public org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder getIngestSstBuilder() { onChanged(); return getIngestSstFieldBuilder().getBuilder(); } /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ public org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder getIngestSstOrBuilder() { if (ingestSstBuilder_ != null) { return ingestSstBuilder_.getMessageOrBuilder(); } else { return ingestSst_ == null ? org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.getDefaultInstance() : ingestSst_; } } /** * .raft_cmdpb.IngestSSTRequest ingest_sst = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.IngestSSTRequest, org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder> getIngestSstFieldBuilder() { if (ingestSstBuilder_ == null) { ingestSstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.IngestSSTRequest, org.tikv.kvproto.RaftCmdpb.IngestSSTRequest.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTRequestOrBuilder>( getIngestSst(), getParentForChildren(), isClean()); ingestSst_ = null; } return ingestSstBuilder_; } private org.tikv.kvproto.RaftCmdpb.ReadIndexRequest readIndex_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ReadIndexRequest, org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder> readIndexBuilder_; /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ public boolean hasReadIndex() { return readIndexBuilder_ != null || readIndex_ != null; } /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest getReadIndex() { if (readIndexBuilder_ == null) { return readIndex_ == null ? org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.getDefaultInstance() : readIndex_; } else { return readIndexBuilder_.getMessage(); } } /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ public Builder setReadIndex(org.tikv.kvproto.RaftCmdpb.ReadIndexRequest value) { if (readIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readIndex_ = value; onChanged(); } else { readIndexBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ public Builder setReadIndex( org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder builderForValue) { if (readIndexBuilder_ == null) { readIndex_ = builderForValue.build(); onChanged(); } else { readIndexBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ public Builder mergeReadIndex(org.tikv.kvproto.RaftCmdpb.ReadIndexRequest value) { if (readIndexBuilder_ == null) { if (readIndex_ != null) { readIndex_ = org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.newBuilder(readIndex_).mergeFrom(value).buildPartial(); } else { readIndex_ = value; } onChanged(); } else { readIndexBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ public Builder clearReadIndex() { if (readIndexBuilder_ == null) { readIndex_ = null; onChanged(); } else { readIndex_ = null; readIndexBuilder_ = null; } return this; } /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ public org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder getReadIndexBuilder() { onChanged(); return getReadIndexFieldBuilder().getBuilder(); } /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ public org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder getReadIndexOrBuilder() { if (readIndexBuilder_ != null) { return readIndexBuilder_.getMessageOrBuilder(); } else { return readIndex_ == null ? org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.getDefaultInstance() : readIndex_; } } /** * .raft_cmdpb.ReadIndexRequest read_index = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ReadIndexRequest, org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder> getReadIndexFieldBuilder() { if (readIndexBuilder_ == null) { readIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ReadIndexRequest, org.tikv.kvproto.RaftCmdpb.ReadIndexRequest.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexRequestOrBuilder>( getReadIndex(), getParentForChildren(), isClean()); readIndex_ = null; } return readIndexBuilder_; } 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_cmdpb.Request) } // @@protoc_insertion_point(class_scope:raft_cmdpb.Request) private static final org.tikv.kvproto.RaftCmdpb.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.Request(); } public static org.tikv.kvproto.RaftCmdpb.Request getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Request parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Request(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.RaftCmdpb.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.Response) com.google.protobuf.MessageOrBuilder { /** * .raft_cmdpb.CmdType cmd_type = 1; */ int getCmdTypeValue(); /** * .raft_cmdpb.CmdType cmd_type = 1; */ org.tikv.kvproto.RaftCmdpb.CmdType getCmdType(); /** * .raft_cmdpb.GetResponse get = 2; */ boolean hasGet(); /** * .raft_cmdpb.GetResponse get = 2; */ org.tikv.kvproto.RaftCmdpb.GetResponse getGet(); /** * .raft_cmdpb.GetResponse get = 2; */ org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder getGetOrBuilder(); /** * .raft_cmdpb.PutResponse put = 4; */ boolean hasPut(); /** * .raft_cmdpb.PutResponse put = 4; */ org.tikv.kvproto.RaftCmdpb.PutResponse getPut(); /** * .raft_cmdpb.PutResponse put = 4; */ org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder getPutOrBuilder(); /** * .raft_cmdpb.DeleteResponse delete = 5; */ boolean hasDelete(); /** * .raft_cmdpb.DeleteResponse delete = 5; */ org.tikv.kvproto.RaftCmdpb.DeleteResponse getDelete(); /** * .raft_cmdpb.DeleteResponse delete = 5; */ org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder getDeleteOrBuilder(); /** * .raft_cmdpb.SnapResponse snap = 6; */ boolean hasSnap(); /** * .raft_cmdpb.SnapResponse snap = 6; */ org.tikv.kvproto.RaftCmdpb.SnapResponse getSnap(); /** * .raft_cmdpb.SnapResponse snap = 6; */ org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder getSnapOrBuilder(); /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ boolean hasPrewrite(); /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ org.tikv.kvproto.RaftCmdpb.PrewriteResponse getPrewrite(); /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder getPrewriteOrBuilder(); /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ boolean hasDelteRange(); /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse getDelteRange(); /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder getDelteRangeOrBuilder(); /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ boolean hasIngestSst(); /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ org.tikv.kvproto.RaftCmdpb.IngestSSTResponse getIngestSst(); /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder getIngestSstOrBuilder(); /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ boolean hasReadIndex(); /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ org.tikv.kvproto.RaftCmdpb.ReadIndexResponse getReadIndex(); /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder getReadIndexOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.Response) ResponseOrBuilder { private static final long serialVersionUID = 0L; // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Response() { cmdType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Response( 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(); cmdType_ = rawValue; break; } case 18: { org.tikv.kvproto.RaftCmdpb.GetResponse.Builder subBuilder = null; if (get_ != null) { subBuilder = get_.toBuilder(); } get_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.GetResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(get_); get_ = subBuilder.buildPartial(); } break; } case 34: { org.tikv.kvproto.RaftCmdpb.PutResponse.Builder subBuilder = null; if (put_ != null) { subBuilder = put_.toBuilder(); } put_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.PutResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(put_); put_ = subBuilder.buildPartial(); } break; } case 42: { org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder subBuilder = null; if (delete_ != null) { subBuilder = delete_.toBuilder(); } delete_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.DeleteResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(delete_); delete_ = subBuilder.buildPartial(); } break; } case 50: { org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder subBuilder = null; if (snap_ != null) { subBuilder = snap_.toBuilder(); } snap_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.SnapResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(snap_); snap_ = subBuilder.buildPartial(); } break; } case 58: { org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder subBuilder = null; if (prewrite_ != null) { subBuilder = prewrite_.toBuilder(); } prewrite_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.PrewriteResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(prewrite_); prewrite_ = subBuilder.buildPartial(); } break; } case 66: { org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder subBuilder = null; if (delteRange_ != null) { subBuilder = delteRange_.toBuilder(); } delteRange_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(delteRange_); delteRange_ = subBuilder.buildPartial(); } break; } case 74: { org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder subBuilder = null; if (ingestSst_ != null) { subBuilder = ingestSst_.toBuilder(); } ingestSst_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ingestSst_); ingestSst_ = subBuilder.buildPartial(); } break; } case 82: { org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder subBuilder = null; if (readIndex_ != null) { subBuilder = readIndex_.toBuilder(); } readIndex_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(readIndex_); readIndex_ = 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.RaftCmdpb.internal_static_raft_cmdpb_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.Response.class, org.tikv.kvproto.RaftCmdpb.Response.Builder.class); } public static final int CMD_TYPE_FIELD_NUMBER = 1; private int cmdType_; /** * .raft_cmdpb.CmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.CmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.CmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.CmdType result = org.tikv.kvproto.RaftCmdpb.CmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.CmdType.UNRECOGNIZED : result; } public static final int GET_FIELD_NUMBER = 2; private org.tikv.kvproto.RaftCmdpb.GetResponse get_; /** * .raft_cmdpb.GetResponse get = 2; */ public boolean hasGet() { return get_ != null; } /** * .raft_cmdpb.GetResponse get = 2; */ public org.tikv.kvproto.RaftCmdpb.GetResponse getGet() { return get_ == null ? org.tikv.kvproto.RaftCmdpb.GetResponse.getDefaultInstance() : get_; } /** * .raft_cmdpb.GetResponse get = 2; */ public org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder getGetOrBuilder() { return getGet(); } public static final int PUT_FIELD_NUMBER = 4; private org.tikv.kvproto.RaftCmdpb.PutResponse put_; /** * .raft_cmdpb.PutResponse put = 4; */ public boolean hasPut() { return put_ != null; } /** * .raft_cmdpb.PutResponse put = 4; */ public org.tikv.kvproto.RaftCmdpb.PutResponse getPut() { return put_ == null ? org.tikv.kvproto.RaftCmdpb.PutResponse.getDefaultInstance() : put_; } /** * .raft_cmdpb.PutResponse put = 4; */ public org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder getPutOrBuilder() { return getPut(); } public static final int DELETE_FIELD_NUMBER = 5; private org.tikv.kvproto.RaftCmdpb.DeleteResponse delete_; /** * .raft_cmdpb.DeleteResponse delete = 5; */ public boolean hasDelete() { return delete_ != null; } /** * .raft_cmdpb.DeleteResponse delete = 5; */ public org.tikv.kvproto.RaftCmdpb.DeleteResponse getDelete() { return delete_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteResponse.getDefaultInstance() : delete_; } /** * .raft_cmdpb.DeleteResponse delete = 5; */ public org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder getDeleteOrBuilder() { return getDelete(); } public static final int SNAP_FIELD_NUMBER = 6; private org.tikv.kvproto.RaftCmdpb.SnapResponse snap_; /** * .raft_cmdpb.SnapResponse snap = 6; */ public boolean hasSnap() { return snap_ != null; } /** * .raft_cmdpb.SnapResponse snap = 6; */ public org.tikv.kvproto.RaftCmdpb.SnapResponse getSnap() { return snap_ == null ? org.tikv.kvproto.RaftCmdpb.SnapResponse.getDefaultInstance() : snap_; } /** * .raft_cmdpb.SnapResponse snap = 6; */ public org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder getSnapOrBuilder() { return getSnap(); } public static final int PREWRITE_FIELD_NUMBER = 7; private org.tikv.kvproto.RaftCmdpb.PrewriteResponse prewrite_; /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ public boolean hasPrewrite() { return prewrite_ != null; } /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ public org.tikv.kvproto.RaftCmdpb.PrewriteResponse getPrewrite() { return prewrite_ == null ? org.tikv.kvproto.RaftCmdpb.PrewriteResponse.getDefaultInstance() : prewrite_; } /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ public org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder getPrewriteOrBuilder() { return getPrewrite(); } public static final int DELTE_RANGE_FIELD_NUMBER = 8; private org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse delteRange_; /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ public boolean hasDelteRange() { return delteRange_ != null; } /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse getDelteRange() { return delteRange_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.getDefaultInstance() : delteRange_; } /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder getDelteRangeOrBuilder() { return getDelteRange(); } public static final int INGEST_SST_FIELD_NUMBER = 9; private org.tikv.kvproto.RaftCmdpb.IngestSSTResponse ingestSst_; /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ public boolean hasIngestSst() { return ingestSst_ != null; } /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse getIngestSst() { return ingestSst_ == null ? org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.getDefaultInstance() : ingestSst_; } /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ public org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder getIngestSstOrBuilder() { return getIngestSst(); } public static final int READ_INDEX_FIELD_NUMBER = 10; private org.tikv.kvproto.RaftCmdpb.ReadIndexResponse readIndex_; /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ public boolean hasReadIndex() { return readIndex_ != null; } /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse getReadIndex() { return readIndex_ == null ? org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.getDefaultInstance() : readIndex_; } /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ public org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder getReadIndexOrBuilder() { return getReadIndex(); } 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 (cmdType_ != org.tikv.kvproto.RaftCmdpb.CmdType.Invalid.getNumber()) { output.writeEnum(1, cmdType_); } if (get_ != null) { output.writeMessage(2, getGet()); } if (put_ != null) { output.writeMessage(4, getPut()); } if (delete_ != null) { output.writeMessage(5, getDelete()); } if (snap_ != null) { output.writeMessage(6, getSnap()); } if (prewrite_ != null) { output.writeMessage(7, getPrewrite()); } if (delteRange_ != null) { output.writeMessage(8, getDelteRange()); } if (ingestSst_ != null) { output.writeMessage(9, getIngestSst()); } if (readIndex_ != null) { output.writeMessage(10, getReadIndex()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cmdType_ != org.tikv.kvproto.RaftCmdpb.CmdType.Invalid.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, cmdType_); } if (get_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getGet()); } if (put_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPut()); } if (delete_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getDelete()); } if (snap_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSnap()); } if (prewrite_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getPrewrite()); } if (delteRange_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getDelteRange()); } if (ingestSst_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getIngestSst()); } if (readIndex_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getReadIndex()); } 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.RaftCmdpb.Response)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.Response other = (org.tikv.kvproto.RaftCmdpb.Response) obj; boolean result = true; result = result && cmdType_ == other.cmdType_; result = result && (hasGet() == other.hasGet()); if (hasGet()) { result = result && getGet() .equals(other.getGet()); } result = result && (hasPut() == other.hasPut()); if (hasPut()) { result = result && getPut() .equals(other.getPut()); } result = result && (hasDelete() == other.hasDelete()); if (hasDelete()) { result = result && getDelete() .equals(other.getDelete()); } result = result && (hasSnap() == other.hasSnap()); if (hasSnap()) { result = result && getSnap() .equals(other.getSnap()); } result = result && (hasPrewrite() == other.hasPrewrite()); if (hasPrewrite()) { result = result && getPrewrite() .equals(other.getPrewrite()); } result = result && (hasDelteRange() == other.hasDelteRange()); if (hasDelteRange()) { result = result && getDelteRange() .equals(other.getDelteRange()); } result = result && (hasIngestSst() == other.hasIngestSst()); if (hasIngestSst()) { result = result && getIngestSst() .equals(other.getIngestSst()); } result = result && (hasReadIndex() == other.hasReadIndex()); if (hasReadIndex()) { result = result && getReadIndex() .equals(other.getReadIndex()); } 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) + CMD_TYPE_FIELD_NUMBER; hash = (53 * hash) + cmdType_; if (hasGet()) { hash = (37 * hash) + GET_FIELD_NUMBER; hash = (53 * hash) + getGet().hashCode(); } if (hasPut()) { hash = (37 * hash) + PUT_FIELD_NUMBER; hash = (53 * hash) + getPut().hashCode(); } if (hasDelete()) { hash = (37 * hash) + DELETE_FIELD_NUMBER; hash = (53 * hash) + getDelete().hashCode(); } if (hasSnap()) { hash = (37 * hash) + SNAP_FIELD_NUMBER; hash = (53 * hash) + getSnap().hashCode(); } if (hasPrewrite()) { hash = (37 * hash) + PREWRITE_FIELD_NUMBER; hash = (53 * hash) + getPrewrite().hashCode(); } if (hasDelteRange()) { hash = (37 * hash) + DELTE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getDelteRange().hashCode(); } if (hasIngestSst()) { hash = (37 * hash) + INGEST_SST_FIELD_NUMBER; hash = (53 * hash) + getIngestSst().hashCode(); } if (hasReadIndex()) { hash = (37 * hash) + READ_INDEX_FIELD_NUMBER; hash = (53 * hash) + getReadIndex().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.Response 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.RaftCmdpb.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.Response 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.RaftCmdpb.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.Response 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.RaftCmdpb.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.Response 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.RaftCmdpb.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.Response 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.RaftCmdpb.Response 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_cmdpb.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.Response) org.tikv.kvproto.RaftCmdpb.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.Response.class, org.tikv.kvproto.RaftCmdpb.Response.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.Response.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(); cmdType_ = 0; if (getBuilder_ == null) { get_ = null; } else { get_ = null; getBuilder_ = null; } if (putBuilder_ == null) { put_ = null; } else { put_ = null; putBuilder_ = null; } if (deleteBuilder_ == null) { delete_ = null; } else { delete_ = null; deleteBuilder_ = null; } if (snapBuilder_ == null) { snap_ = null; } else { snap_ = null; snapBuilder_ = null; } if (prewriteBuilder_ == null) { prewrite_ = null; } else { prewrite_ = null; prewriteBuilder_ = null; } if (delteRangeBuilder_ == null) { delteRange_ = null; } else { delteRange_ = null; delteRangeBuilder_ = null; } if (ingestSstBuilder_ == null) { ingestSst_ = null; } else { ingestSst_ = null; ingestSstBuilder_ = null; } if (readIndexBuilder_ == null) { readIndex_ = null; } else { readIndex_ = null; readIndexBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_Response_descriptor; } public org.tikv.kvproto.RaftCmdpb.Response getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.Response.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.Response build() { org.tikv.kvproto.RaftCmdpb.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.Response buildPartial() { org.tikv.kvproto.RaftCmdpb.Response result = new org.tikv.kvproto.RaftCmdpb.Response(this); result.cmdType_ = cmdType_; if (getBuilder_ == null) { result.get_ = get_; } else { result.get_ = getBuilder_.build(); } if (putBuilder_ == null) { result.put_ = put_; } else { result.put_ = putBuilder_.build(); } if (deleteBuilder_ == null) { result.delete_ = delete_; } else { result.delete_ = deleteBuilder_.build(); } if (snapBuilder_ == null) { result.snap_ = snap_; } else { result.snap_ = snapBuilder_.build(); } if (prewriteBuilder_ == null) { result.prewrite_ = prewrite_; } else { result.prewrite_ = prewriteBuilder_.build(); } if (delteRangeBuilder_ == null) { result.delteRange_ = delteRange_; } else { result.delteRange_ = delteRangeBuilder_.build(); } if (ingestSstBuilder_ == null) { result.ingestSst_ = ingestSst_; } else { result.ingestSst_ = ingestSstBuilder_.build(); } if (readIndexBuilder_ == null) { result.readIndex_ = readIndex_; } else { result.readIndex_ = readIndexBuilder_.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.RaftCmdpb.Response) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.Response other) { if (other == org.tikv.kvproto.RaftCmdpb.Response.getDefaultInstance()) return this; if (other.cmdType_ != 0) { setCmdTypeValue(other.getCmdTypeValue()); } if (other.hasGet()) { mergeGet(other.getGet()); } if (other.hasPut()) { mergePut(other.getPut()); } if (other.hasDelete()) { mergeDelete(other.getDelete()); } if (other.hasSnap()) { mergeSnap(other.getSnap()); } if (other.hasPrewrite()) { mergePrewrite(other.getPrewrite()); } if (other.hasDelteRange()) { mergeDelteRange(other.getDelteRange()); } if (other.hasIngestSst()) { mergeIngestSst(other.getIngestSst()); } if (other.hasReadIndex()) { mergeReadIndex(other.getReadIndex()); } 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.RaftCmdpb.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cmdType_ = 0; /** * .raft_cmdpb.CmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.CmdType cmd_type = 1; */ public Builder setCmdTypeValue(int value) { cmdType_ = value; onChanged(); return this; } /** * .raft_cmdpb.CmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.CmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.CmdType result = org.tikv.kvproto.RaftCmdpb.CmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.CmdType.UNRECOGNIZED : result; } /** * .raft_cmdpb.CmdType cmd_type = 1; */ public Builder setCmdType(org.tikv.kvproto.RaftCmdpb.CmdType value) { if (value == null) { throw new NullPointerException(); } cmdType_ = value.getNumber(); onChanged(); return this; } /** * .raft_cmdpb.CmdType cmd_type = 1; */ public Builder clearCmdType() { cmdType_ = 0; onChanged(); return this; } private org.tikv.kvproto.RaftCmdpb.GetResponse get_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.GetResponse, org.tikv.kvproto.RaftCmdpb.GetResponse.Builder, org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder> getBuilder_; /** * .raft_cmdpb.GetResponse get = 2; */ public boolean hasGet() { return getBuilder_ != null || get_ != null; } /** * .raft_cmdpb.GetResponse get = 2; */ public org.tikv.kvproto.RaftCmdpb.GetResponse getGet() { if (getBuilder_ == null) { return get_ == null ? org.tikv.kvproto.RaftCmdpb.GetResponse.getDefaultInstance() : get_; } else { return getBuilder_.getMessage(); } } /** * .raft_cmdpb.GetResponse get = 2; */ public Builder setGet(org.tikv.kvproto.RaftCmdpb.GetResponse value) { if (getBuilder_ == null) { if (value == null) { throw new NullPointerException(); } get_ = value; onChanged(); } else { getBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.GetResponse get = 2; */ public Builder setGet( org.tikv.kvproto.RaftCmdpb.GetResponse.Builder builderForValue) { if (getBuilder_ == null) { get_ = builderForValue.build(); onChanged(); } else { getBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.GetResponse get = 2; */ public Builder mergeGet(org.tikv.kvproto.RaftCmdpb.GetResponse value) { if (getBuilder_ == null) { if (get_ != null) { get_ = org.tikv.kvproto.RaftCmdpb.GetResponse.newBuilder(get_).mergeFrom(value).buildPartial(); } else { get_ = value; } onChanged(); } else { getBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.GetResponse get = 2; */ public Builder clearGet() { if (getBuilder_ == null) { get_ = null; onChanged(); } else { get_ = null; getBuilder_ = null; } return this; } /** * .raft_cmdpb.GetResponse get = 2; */ public org.tikv.kvproto.RaftCmdpb.GetResponse.Builder getGetBuilder() { onChanged(); return getGetFieldBuilder().getBuilder(); } /** * .raft_cmdpb.GetResponse get = 2; */ public org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder getGetOrBuilder() { if (getBuilder_ != null) { return getBuilder_.getMessageOrBuilder(); } else { return get_ == null ? org.tikv.kvproto.RaftCmdpb.GetResponse.getDefaultInstance() : get_; } } /** * .raft_cmdpb.GetResponse get = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.GetResponse, org.tikv.kvproto.RaftCmdpb.GetResponse.Builder, org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder> getGetFieldBuilder() { if (getBuilder_ == null) { getBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.GetResponse, org.tikv.kvproto.RaftCmdpb.GetResponse.Builder, org.tikv.kvproto.RaftCmdpb.GetResponseOrBuilder>( getGet(), getParentForChildren(), isClean()); get_ = null; } return getBuilder_; } private org.tikv.kvproto.RaftCmdpb.PutResponse put_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PutResponse, org.tikv.kvproto.RaftCmdpb.PutResponse.Builder, org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder> putBuilder_; /** * .raft_cmdpb.PutResponse put = 4; */ public boolean hasPut() { return putBuilder_ != null || put_ != null; } /** * .raft_cmdpb.PutResponse put = 4; */ public org.tikv.kvproto.RaftCmdpb.PutResponse getPut() { if (putBuilder_ == null) { return put_ == null ? org.tikv.kvproto.RaftCmdpb.PutResponse.getDefaultInstance() : put_; } else { return putBuilder_.getMessage(); } } /** * .raft_cmdpb.PutResponse put = 4; */ public Builder setPut(org.tikv.kvproto.RaftCmdpb.PutResponse value) { if (putBuilder_ == null) { if (value == null) { throw new NullPointerException(); } put_ = value; onChanged(); } else { putBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.PutResponse put = 4; */ public Builder setPut( org.tikv.kvproto.RaftCmdpb.PutResponse.Builder builderForValue) { if (putBuilder_ == null) { put_ = builderForValue.build(); onChanged(); } else { putBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.PutResponse put = 4; */ public Builder mergePut(org.tikv.kvproto.RaftCmdpb.PutResponse value) { if (putBuilder_ == null) { if (put_ != null) { put_ = org.tikv.kvproto.RaftCmdpb.PutResponse.newBuilder(put_).mergeFrom(value).buildPartial(); } else { put_ = value; } onChanged(); } else { putBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.PutResponse put = 4; */ public Builder clearPut() { if (putBuilder_ == null) { put_ = null; onChanged(); } else { put_ = null; putBuilder_ = null; } return this; } /** * .raft_cmdpb.PutResponse put = 4; */ public org.tikv.kvproto.RaftCmdpb.PutResponse.Builder getPutBuilder() { onChanged(); return getPutFieldBuilder().getBuilder(); } /** * .raft_cmdpb.PutResponse put = 4; */ public org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder getPutOrBuilder() { if (putBuilder_ != null) { return putBuilder_.getMessageOrBuilder(); } else { return put_ == null ? org.tikv.kvproto.RaftCmdpb.PutResponse.getDefaultInstance() : put_; } } /** * .raft_cmdpb.PutResponse put = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PutResponse, org.tikv.kvproto.RaftCmdpb.PutResponse.Builder, org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder> getPutFieldBuilder() { if (putBuilder_ == null) { putBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PutResponse, org.tikv.kvproto.RaftCmdpb.PutResponse.Builder, org.tikv.kvproto.RaftCmdpb.PutResponseOrBuilder>( getPut(), getParentForChildren(), isClean()); put_ = null; } return putBuilder_; } private org.tikv.kvproto.RaftCmdpb.DeleteResponse delete_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteResponse, org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder> deleteBuilder_; /** * .raft_cmdpb.DeleteResponse delete = 5; */ public boolean hasDelete() { return deleteBuilder_ != null || delete_ != null; } /** * .raft_cmdpb.DeleteResponse delete = 5; */ public org.tikv.kvproto.RaftCmdpb.DeleteResponse getDelete() { if (deleteBuilder_ == null) { return delete_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteResponse.getDefaultInstance() : delete_; } else { return deleteBuilder_.getMessage(); } } /** * .raft_cmdpb.DeleteResponse delete = 5; */ public Builder setDelete(org.tikv.kvproto.RaftCmdpb.DeleteResponse value) { if (deleteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } delete_ = value; onChanged(); } else { deleteBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.DeleteResponse delete = 5; */ public Builder setDelete( org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder builderForValue) { if (deleteBuilder_ == null) { delete_ = builderForValue.build(); onChanged(); } else { deleteBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.DeleteResponse delete = 5; */ public Builder mergeDelete(org.tikv.kvproto.RaftCmdpb.DeleteResponse value) { if (deleteBuilder_ == null) { if (delete_ != null) { delete_ = org.tikv.kvproto.RaftCmdpb.DeleteResponse.newBuilder(delete_).mergeFrom(value).buildPartial(); } else { delete_ = value; } onChanged(); } else { deleteBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.DeleteResponse delete = 5; */ public Builder clearDelete() { if (deleteBuilder_ == null) { delete_ = null; onChanged(); } else { delete_ = null; deleteBuilder_ = null; } return this; } /** * .raft_cmdpb.DeleteResponse delete = 5; */ public org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder getDeleteBuilder() { onChanged(); return getDeleteFieldBuilder().getBuilder(); } /** * .raft_cmdpb.DeleteResponse delete = 5; */ public org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder getDeleteOrBuilder() { if (deleteBuilder_ != null) { return deleteBuilder_.getMessageOrBuilder(); } else { return delete_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteResponse.getDefaultInstance() : delete_; } } /** * .raft_cmdpb.DeleteResponse delete = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteResponse, org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder> getDeleteFieldBuilder() { if (deleteBuilder_ == null) { deleteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteResponse, org.tikv.kvproto.RaftCmdpb.DeleteResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteResponseOrBuilder>( getDelete(), getParentForChildren(), isClean()); delete_ = null; } return deleteBuilder_; } private org.tikv.kvproto.RaftCmdpb.SnapResponse snap_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SnapResponse, org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder, org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder> snapBuilder_; /** * .raft_cmdpb.SnapResponse snap = 6; */ public boolean hasSnap() { return snapBuilder_ != null || snap_ != null; } /** * .raft_cmdpb.SnapResponse snap = 6; */ public org.tikv.kvproto.RaftCmdpb.SnapResponse getSnap() { if (snapBuilder_ == null) { return snap_ == null ? org.tikv.kvproto.RaftCmdpb.SnapResponse.getDefaultInstance() : snap_; } else { return snapBuilder_.getMessage(); } } /** * .raft_cmdpb.SnapResponse snap = 6; */ public Builder setSnap(org.tikv.kvproto.RaftCmdpb.SnapResponse value) { if (snapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } snap_ = value; onChanged(); } else { snapBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.SnapResponse snap = 6; */ public Builder setSnap( org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder builderForValue) { if (snapBuilder_ == null) { snap_ = builderForValue.build(); onChanged(); } else { snapBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.SnapResponse snap = 6; */ public Builder mergeSnap(org.tikv.kvproto.RaftCmdpb.SnapResponse value) { if (snapBuilder_ == null) { if (snap_ != null) { snap_ = org.tikv.kvproto.RaftCmdpb.SnapResponse.newBuilder(snap_).mergeFrom(value).buildPartial(); } else { snap_ = value; } onChanged(); } else { snapBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.SnapResponse snap = 6; */ public Builder clearSnap() { if (snapBuilder_ == null) { snap_ = null; onChanged(); } else { snap_ = null; snapBuilder_ = null; } return this; } /** * .raft_cmdpb.SnapResponse snap = 6; */ public org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder getSnapBuilder() { onChanged(); return getSnapFieldBuilder().getBuilder(); } /** * .raft_cmdpb.SnapResponse snap = 6; */ public org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder getSnapOrBuilder() { if (snapBuilder_ != null) { return snapBuilder_.getMessageOrBuilder(); } else { return snap_ == null ? org.tikv.kvproto.RaftCmdpb.SnapResponse.getDefaultInstance() : snap_; } } /** * .raft_cmdpb.SnapResponse snap = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SnapResponse, org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder, org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder> getSnapFieldBuilder() { if (snapBuilder_ == null) { snapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SnapResponse, org.tikv.kvproto.RaftCmdpb.SnapResponse.Builder, org.tikv.kvproto.RaftCmdpb.SnapResponseOrBuilder>( getSnap(), getParentForChildren(), isClean()); snap_ = null; } return snapBuilder_; } private org.tikv.kvproto.RaftCmdpb.PrewriteResponse prewrite_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrewriteResponse, org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder> prewriteBuilder_; /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ public boolean hasPrewrite() { return prewriteBuilder_ != null || prewrite_ != null; } /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ public org.tikv.kvproto.RaftCmdpb.PrewriteResponse getPrewrite() { if (prewriteBuilder_ == null) { return prewrite_ == null ? org.tikv.kvproto.RaftCmdpb.PrewriteResponse.getDefaultInstance() : prewrite_; } else { return prewriteBuilder_.getMessage(); } } /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ public Builder setPrewrite(org.tikv.kvproto.RaftCmdpb.PrewriteResponse value) { if (prewriteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } prewrite_ = value; onChanged(); } else { prewriteBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ public Builder setPrewrite( org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder builderForValue) { if (prewriteBuilder_ == null) { prewrite_ = builderForValue.build(); onChanged(); } else { prewriteBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ public Builder mergePrewrite(org.tikv.kvproto.RaftCmdpb.PrewriteResponse value) { if (prewriteBuilder_ == null) { if (prewrite_ != null) { prewrite_ = org.tikv.kvproto.RaftCmdpb.PrewriteResponse.newBuilder(prewrite_).mergeFrom(value).buildPartial(); } else { prewrite_ = value; } onChanged(); } else { prewriteBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ public Builder clearPrewrite() { if (prewriteBuilder_ == null) { prewrite_ = null; onChanged(); } else { prewrite_ = null; prewriteBuilder_ = null; } return this; } /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ public org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder getPrewriteBuilder() { onChanged(); return getPrewriteFieldBuilder().getBuilder(); } /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ public org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder getPrewriteOrBuilder() { if (prewriteBuilder_ != null) { return prewriteBuilder_.getMessageOrBuilder(); } else { return prewrite_ == null ? org.tikv.kvproto.RaftCmdpb.PrewriteResponse.getDefaultInstance() : prewrite_; } } /** * .raft_cmdpb.PrewriteResponse prewrite = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrewriteResponse, org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder> getPrewriteFieldBuilder() { if (prewriteBuilder_ == null) { prewriteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrewriteResponse, org.tikv.kvproto.RaftCmdpb.PrewriteResponse.Builder, org.tikv.kvproto.RaftCmdpb.PrewriteResponseOrBuilder>( getPrewrite(), getParentForChildren(), isClean()); prewrite_ = null; } return prewriteBuilder_; } private org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse delteRange_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder> delteRangeBuilder_; /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ public boolean hasDelteRange() { return delteRangeBuilder_ != null || delteRange_ != null; } /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse getDelteRange() { if (delteRangeBuilder_ == null) { return delteRange_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.getDefaultInstance() : delteRange_; } else { return delteRangeBuilder_.getMessage(); } } /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ public Builder setDelteRange(org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse value) { if (delteRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } delteRange_ = value; onChanged(); } else { delteRangeBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ public Builder setDelteRange( org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder builderForValue) { if (delteRangeBuilder_ == null) { delteRange_ = builderForValue.build(); onChanged(); } else { delteRangeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ public Builder mergeDelteRange(org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse value) { if (delteRangeBuilder_ == null) { if (delteRange_ != null) { delteRange_ = org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.newBuilder(delteRange_).mergeFrom(value).buildPartial(); } else { delteRange_ = value; } onChanged(); } else { delteRangeBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ public Builder clearDelteRange() { if (delteRangeBuilder_ == null) { delteRange_ = null; onChanged(); } else { delteRange_ = null; delteRangeBuilder_ = null; } return this; } /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder getDelteRangeBuilder() { onChanged(); return getDelteRangeFieldBuilder().getBuilder(); } /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ public org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder getDelteRangeOrBuilder() { if (delteRangeBuilder_ != null) { return delteRangeBuilder_.getMessageOrBuilder(); } else { return delteRange_ == null ? org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.getDefaultInstance() : delteRange_; } } /** * .raft_cmdpb.DeleteRangeResponse delte_range = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder> getDelteRangeFieldBuilder() { if (delteRangeBuilder_ == null) { delteRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponse.Builder, org.tikv.kvproto.RaftCmdpb.DeleteRangeResponseOrBuilder>( getDelteRange(), getParentForChildren(), isClean()); delteRange_ = null; } return delteRangeBuilder_; } private org.tikv.kvproto.RaftCmdpb.IngestSSTResponse ingestSst_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.IngestSSTResponse, org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder> ingestSstBuilder_; /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ public boolean hasIngestSst() { return ingestSstBuilder_ != null || ingestSst_ != null; } /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse getIngestSst() { if (ingestSstBuilder_ == null) { return ingestSst_ == null ? org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.getDefaultInstance() : ingestSst_; } else { return ingestSstBuilder_.getMessage(); } } /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ public Builder setIngestSst(org.tikv.kvproto.RaftCmdpb.IngestSSTResponse value) { if (ingestSstBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ingestSst_ = value; onChanged(); } else { ingestSstBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ public Builder setIngestSst( org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder builderForValue) { if (ingestSstBuilder_ == null) { ingestSst_ = builderForValue.build(); onChanged(); } else { ingestSstBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ public Builder mergeIngestSst(org.tikv.kvproto.RaftCmdpb.IngestSSTResponse value) { if (ingestSstBuilder_ == null) { if (ingestSst_ != null) { ingestSst_ = org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.newBuilder(ingestSst_).mergeFrom(value).buildPartial(); } else { ingestSst_ = value; } onChanged(); } else { ingestSstBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ public Builder clearIngestSst() { if (ingestSstBuilder_ == null) { ingestSst_ = null; onChanged(); } else { ingestSst_ = null; ingestSstBuilder_ = null; } return this; } /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ public org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder getIngestSstBuilder() { onChanged(); return getIngestSstFieldBuilder().getBuilder(); } /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ public org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder getIngestSstOrBuilder() { if (ingestSstBuilder_ != null) { return ingestSstBuilder_.getMessageOrBuilder(); } else { return ingestSst_ == null ? org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.getDefaultInstance() : ingestSst_; } } /** * .raft_cmdpb.IngestSSTResponse ingest_sst = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.IngestSSTResponse, org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder> getIngestSstFieldBuilder() { if (ingestSstBuilder_ == null) { ingestSstBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.IngestSSTResponse, org.tikv.kvproto.RaftCmdpb.IngestSSTResponse.Builder, org.tikv.kvproto.RaftCmdpb.IngestSSTResponseOrBuilder>( getIngestSst(), getParentForChildren(), isClean()); ingestSst_ = null; } return ingestSstBuilder_; } private org.tikv.kvproto.RaftCmdpb.ReadIndexResponse readIndex_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ReadIndexResponse, org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder> readIndexBuilder_; /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ public boolean hasReadIndex() { return readIndexBuilder_ != null || readIndex_ != null; } /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse getReadIndex() { if (readIndexBuilder_ == null) { return readIndex_ == null ? org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.getDefaultInstance() : readIndex_; } else { return readIndexBuilder_.getMessage(); } } /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ public Builder setReadIndex(org.tikv.kvproto.RaftCmdpb.ReadIndexResponse value) { if (readIndexBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readIndex_ = value; onChanged(); } else { readIndexBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ public Builder setReadIndex( org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder builderForValue) { if (readIndexBuilder_ == null) { readIndex_ = builderForValue.build(); onChanged(); } else { readIndexBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ public Builder mergeReadIndex(org.tikv.kvproto.RaftCmdpb.ReadIndexResponse value) { if (readIndexBuilder_ == null) { if (readIndex_ != null) { readIndex_ = org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.newBuilder(readIndex_).mergeFrom(value).buildPartial(); } else { readIndex_ = value; } onChanged(); } else { readIndexBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ public Builder clearReadIndex() { if (readIndexBuilder_ == null) { readIndex_ = null; onChanged(); } else { readIndex_ = null; readIndexBuilder_ = null; } return this; } /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ public org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder getReadIndexBuilder() { onChanged(); return getReadIndexFieldBuilder().getBuilder(); } /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ public org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder getReadIndexOrBuilder() { if (readIndexBuilder_ != null) { return readIndexBuilder_.getMessageOrBuilder(); } else { return readIndex_ == null ? org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.getDefaultInstance() : readIndex_; } } /** * .raft_cmdpb.ReadIndexResponse read_index = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ReadIndexResponse, org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder> getReadIndexFieldBuilder() { if (readIndexBuilder_ == null) { readIndexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ReadIndexResponse, org.tikv.kvproto.RaftCmdpb.ReadIndexResponse.Builder, org.tikv.kvproto.RaftCmdpb.ReadIndexResponseOrBuilder>( getReadIndex(), getParentForChildren(), isClean()); readIndex_ = null; } return readIndexBuilder_; } 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_cmdpb.Response) } // @@protoc_insertion_point(class_scope:raft_cmdpb.Response) private static final org.tikv.kvproto.RaftCmdpb.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.Response(); } public static org.tikv.kvproto.RaftCmdpb.Response getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Response(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.RaftCmdpb.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChangePeerRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.ChangePeerRequest) com.google.protobuf.MessageOrBuilder { /** *
     * This can be only called in internal RaftStore now.
     * 
* * .eraftpb.ConfChangeType change_type = 1; */ int getChangeTypeValue(); /** *
     * This can be only called in internal RaftStore now.
     * 
* * .eraftpb.ConfChangeType change_type = 1; */ eraftpb.Eraftpb.ConfChangeType getChangeType(); /** * .metapb.Peer peer = 2; */ boolean hasPeer(); /** * .metapb.Peer peer = 2; */ org.tikv.kvproto.Metapb.Peer getPeer(); /** * .metapb.Peer peer = 2; */ org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.ChangePeerRequest} */ public static final class ChangePeerRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.ChangePeerRequest) ChangePeerRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ChangePeerRequest.newBuilder() to construct. private ChangePeerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChangePeerRequest() { changeType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangePeerRequest( 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(); changeType_ = rawValue; break; } case 18: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (peer_ != null) { subBuilder = peer_.toBuilder(); } peer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(peer_); peer_ = 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.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.class, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder.class); } public static final int CHANGE_TYPE_FIELD_NUMBER = 1; private int changeType_; /** *
     * This can be only called in internal RaftStore now.
     * 
* * .eraftpb.ConfChangeType change_type = 1; */ public int getChangeTypeValue() { return changeType_; } /** *
     * This can be only called in internal RaftStore now.
     * 
* * .eraftpb.ConfChangeType change_type = 1; */ public eraftpb.Eraftpb.ConfChangeType getChangeType() { eraftpb.Eraftpb.ConfChangeType result = eraftpb.Eraftpb.ConfChangeType.valueOf(changeType_); return result == null ? eraftpb.Eraftpb.ConfChangeType.UNRECOGNIZED : result; } public static final int PEER_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Peer peer_; /** * .metapb.Peer peer = 2; */ public boolean hasPeer() { return peer_ != null; } /** * .metapb.Peer peer = 2; */ public org.tikv.kvproto.Metapb.Peer getPeer() { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } /** * .metapb.Peer peer = 2; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { return getPeer(); } 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 (changeType_ != eraftpb.Eraftpb.ConfChangeType.AddNode.getNumber()) { output.writeEnum(1, changeType_); } if (peer_ != null) { output.writeMessage(2, getPeer()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (changeType_ != eraftpb.Eraftpb.ConfChangeType.AddNode.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, changeType_); } if (peer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPeer()); } 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.RaftCmdpb.ChangePeerRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.ChangePeerRequest other = (org.tikv.kvproto.RaftCmdpb.ChangePeerRequest) obj; boolean result = true; result = result && changeType_ == other.changeType_; result = result && (hasPeer() == other.hasPeer()); if (hasPeer()) { result = result && getPeer() .equals(other.getPeer()); } 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) + CHANGE_TYPE_FIELD_NUMBER; hash = (53 * hash) + changeType_; if (hasPeer()) { hash = (37 * hash) + PEER_FIELD_NUMBER; hash = (53 * hash) + getPeer().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest 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.RaftCmdpb.ChangePeerRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest 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.RaftCmdpb.ChangePeerRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest 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.RaftCmdpb.ChangePeerRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest 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.RaftCmdpb.ChangePeerRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest 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.RaftCmdpb.ChangePeerRequest 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_cmdpb.ChangePeerRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.ChangePeerRequest) org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.class, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.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(); changeType_ = 0; if (peerBuilder_ == null) { peer_ = null; } else { peer_ = null; peerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest build() { org.tikv.kvproto.RaftCmdpb.ChangePeerRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.ChangePeerRequest result = new org.tikv.kvproto.RaftCmdpb.ChangePeerRequest(this); result.changeType_ = changeType_; if (peerBuilder_ == null) { result.peer_ = peer_; } else { result.peer_ = peerBuilder_.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.RaftCmdpb.ChangePeerRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.ChangePeerRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ChangePeerRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance()) return this; if (other.changeType_ != 0) { setChangeTypeValue(other.getChangeTypeValue()); } if (other.hasPeer()) { mergePeer(other.getPeer()); } 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.RaftCmdpb.ChangePeerRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.ChangePeerRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int changeType_ = 0; /** *
       * This can be only called in internal RaftStore now.
       * 
* * .eraftpb.ConfChangeType change_type = 1; */ public int getChangeTypeValue() { return changeType_; } /** *
       * This can be only called in internal RaftStore now.
       * 
* * .eraftpb.ConfChangeType change_type = 1; */ public Builder setChangeTypeValue(int value) { changeType_ = value; onChanged(); return this; } /** *
       * This can be only called in internal RaftStore now.
       * 
* * .eraftpb.ConfChangeType change_type = 1; */ public eraftpb.Eraftpb.ConfChangeType getChangeType() { eraftpb.Eraftpb.ConfChangeType result = eraftpb.Eraftpb.ConfChangeType.valueOf(changeType_); return result == null ? eraftpb.Eraftpb.ConfChangeType.UNRECOGNIZED : result; } /** *
       * This can be only called in internal RaftStore now.
       * 
* * .eraftpb.ConfChangeType change_type = 1; */ public Builder setChangeType(eraftpb.Eraftpb.ConfChangeType value) { if (value == null) { throw new NullPointerException(); } changeType_ = value.getNumber(); onChanged(); return this; } /** *
       * This can be only called in internal RaftStore now.
       * 
* * .eraftpb.ConfChangeType change_type = 1; */ public Builder clearChangeType() { changeType_ = 0; onChanged(); return this; } private org.tikv.kvproto.Metapb.Peer peer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> peerBuilder_; /** * .metapb.Peer peer = 2; */ public boolean hasPeer() { return peerBuilder_ != null || peer_ != null; } /** * .metapb.Peer peer = 2; */ public org.tikv.kvproto.Metapb.Peer getPeer() { if (peerBuilder_ == null) { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } else { return peerBuilder_.getMessage(); } } /** * .metapb.Peer peer = 2; */ public Builder setPeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } peer_ = value; onChanged(); } else { peerBuilder_.setMessage(value); } return this; } /** * .metapb.Peer peer = 2; */ public Builder setPeer( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (peerBuilder_ == null) { peer_ = builderForValue.build(); onChanged(); } else { peerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer peer = 2; */ public Builder mergePeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (peer_ != null) { peer_ = org.tikv.kvproto.Metapb.Peer.newBuilder(peer_).mergeFrom(value).buildPartial(); } else { peer_ = value; } onChanged(); } else { peerBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer peer = 2; */ public Builder clearPeer() { if (peerBuilder_ == null) { peer_ = null; onChanged(); } else { peer_ = null; peerBuilder_ = null; } return this; } /** * .metapb.Peer peer = 2; */ public org.tikv.kvproto.Metapb.Peer.Builder getPeerBuilder() { onChanged(); return getPeerFieldBuilder().getBuilder(); } /** * .metapb.Peer peer = 2; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { if (peerBuilder_ != null) { return peerBuilder_.getMessageOrBuilder(); } else { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } } /** * .metapb.Peer peer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getPeerFieldBuilder() { if (peerBuilder_ == null) { peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getPeer(), getParentForChildren(), isClean()); peer_ = null; } return peerBuilder_; } 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_cmdpb.ChangePeerRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.ChangePeerRequest) private static final org.tikv.kvproto.RaftCmdpb.ChangePeerRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ChangePeerRequest(); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChangePeerRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChangePeerRequest(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.RaftCmdpb.ChangePeerRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChangePeerResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.ChangePeerResponse) 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(); } /** * Protobuf type {@code raft_cmdpb.ChangePeerResponse} */ public static final class ChangePeerResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.ChangePeerResponse) ChangePeerResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ChangePeerResponse.newBuilder() to construct. private ChangePeerResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChangePeerResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangePeerResponse( 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; } } } } 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.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.class, org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.Builder.class); } 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(); } 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()); } 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()); } 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.RaftCmdpb.ChangePeerResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.ChangePeerResponse other = (org.tikv.kvproto.RaftCmdpb.ChangePeerResponse) obj; boolean result = true; result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse 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.RaftCmdpb.ChangePeerResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse 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.RaftCmdpb.ChangePeerResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse 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.RaftCmdpb.ChangePeerResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse 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.RaftCmdpb.ChangePeerResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse 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.RaftCmdpb.ChangePeerResponse 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_cmdpb.ChangePeerResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.ChangePeerResponse) org.tikv.kvproto.RaftCmdpb.ChangePeerResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.class, org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.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 (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.ChangePeerResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.ChangePeerResponse build() { org.tikv.kvproto.RaftCmdpb.ChangePeerResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.ChangePeerResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.ChangePeerResponse result = new org.tikv.kvproto.RaftCmdpb.ChangePeerResponse(this); if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.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.RaftCmdpb.ChangePeerResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.ChangePeerResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ChangePeerResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.getDefaultInstance()) return this; if (other.hasRegion()) { mergeRegion(other.getRegion()); } 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.RaftCmdpb.ChangePeerResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.ChangePeerResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 = 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_; } 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_cmdpb.ChangePeerResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.ChangePeerResponse) private static final org.tikv.kvproto.RaftCmdpb.ChangePeerResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ChangePeerResponse(); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChangePeerResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChangePeerResponse(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.RaftCmdpb.ChangePeerResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChangePeerV2RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.ChangePeerV2Request) com.google.protobuf.MessageOrBuilder { /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ java.util.List getChangesList(); /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getChanges(int index); /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ int getChangesCount(); /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ java.util.List getChangesOrBuilderList(); /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder getChangesOrBuilder( int index); } /** * Protobuf type {@code raft_cmdpb.ChangePeerV2Request} */ public static final class ChangePeerV2Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.ChangePeerV2Request) ChangePeerV2RequestOrBuilder { private static final long serialVersionUID = 0L; // Use ChangePeerV2Request.newBuilder() to construct. private ChangePeerV2Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChangePeerV2Request() { changes_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangePeerV2Request( 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)) { changes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } changes_.add( input.readMessage(org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { changes_ = java.util.Collections.unmodifiableList(changes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.class, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.Builder.class); } public static final int CHANGES_FIELD_NUMBER = 1; private java.util.List changes_; /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public java.util.List getChangesList() { return changes_; } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public java.util.List getChangesOrBuilderList() { return changes_; } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public int getChangesCount() { return changes_.size(); } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getChanges(int index) { return changes_.get(index); } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder getChangesOrBuilder( int index) { return changes_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < changes_.size(); i++) { output.writeMessage(1, changes_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < changes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, changes_.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.RaftCmdpb.ChangePeerV2Request)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request other = (org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request) obj; boolean result = true; result = result && getChangesList() .equals(other.getChangesList()); 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 (getChangesCount() > 0) { hash = (37 * hash) + CHANGES_FIELD_NUMBER; hash = (53 * hash) + getChangesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request 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.RaftCmdpb.ChangePeerV2Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request 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.RaftCmdpb.ChangePeerV2Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request 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.RaftCmdpb.ChangePeerV2Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request 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.RaftCmdpb.ChangePeerV2Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request 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.RaftCmdpb.ChangePeerV2Request 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_cmdpb.ChangePeerV2Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.ChangePeerV2Request) org.tikv.kvproto.RaftCmdpb.ChangePeerV2RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Request_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.class, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getChangesFieldBuilder(); } } public Builder clear() { super.clear(); if (changesBuilder_ == null) { changes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { changesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Request_descriptor; } public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request build() { org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request buildPartial() { org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request result = new org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request(this); int from_bitField0_ = bitField0_; if (changesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { changes_ = java.util.Collections.unmodifiableList(changes_); bitField0_ = (bitField0_ & ~0x00000001); } result.changes_ = changes_; } else { result.changes_ = changesBuilder_.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.RaftCmdpb.ChangePeerV2Request) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request other) { if (other == org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.getDefaultInstance()) return this; if (changesBuilder_ == null) { if (!other.changes_.isEmpty()) { if (changes_.isEmpty()) { changes_ = other.changes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureChangesIsMutable(); changes_.addAll(other.changes_); } onChanged(); } } else { if (!other.changes_.isEmpty()) { if (changesBuilder_.isEmpty()) { changesBuilder_.dispose(); changesBuilder_ = null; changes_ = other.changes_; bitField0_ = (bitField0_ & ~0x00000001); changesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChangesFieldBuilder() : null; } else { changesBuilder_.addAllMessages(other.changes_); } } } 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.RaftCmdpb.ChangePeerV2Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List changes_ = java.util.Collections.emptyList(); private void ensureChangesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { changes_ = new java.util.ArrayList(changes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerRequest, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder> changesBuilder_; /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public java.util.List getChangesList() { if (changesBuilder_ == null) { return java.util.Collections.unmodifiableList(changes_); } else { return changesBuilder_.getMessageList(); } } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public int getChangesCount() { if (changesBuilder_ == null) { return changes_.size(); } else { return changesBuilder_.getCount(); } } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getChanges(int index) { if (changesBuilder_ == null) { return changes_.get(index); } else { return changesBuilder_.getMessage(index); } } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public Builder setChanges( int index, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest value) { if (changesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChangesIsMutable(); changes_.set(index, value); onChanged(); } else { changesBuilder_.setMessage(index, value); } return this; } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public Builder setChanges( int index, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder builderForValue) { if (changesBuilder_ == null) { ensureChangesIsMutable(); changes_.set(index, builderForValue.build()); onChanged(); } else { changesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public Builder addChanges(org.tikv.kvproto.RaftCmdpb.ChangePeerRequest value) { if (changesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChangesIsMutable(); changes_.add(value); onChanged(); } else { changesBuilder_.addMessage(value); } return this; } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public Builder addChanges( int index, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest value) { if (changesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChangesIsMutable(); changes_.add(index, value); onChanged(); } else { changesBuilder_.addMessage(index, value); } return this; } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public Builder addChanges( org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder builderForValue) { if (changesBuilder_ == null) { ensureChangesIsMutable(); changes_.add(builderForValue.build()); onChanged(); } else { changesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public Builder addChanges( int index, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder builderForValue) { if (changesBuilder_ == null) { ensureChangesIsMutable(); changes_.add(index, builderForValue.build()); onChanged(); } else { changesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public Builder addAllChanges( java.lang.Iterable values) { if (changesBuilder_ == null) { ensureChangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, changes_); onChanged(); } else { changesBuilder_.addAllMessages(values); } return this; } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public Builder clearChanges() { if (changesBuilder_ == null) { changes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { changesBuilder_.clear(); } return this; } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public Builder removeChanges(int index) { if (changesBuilder_ == null) { ensureChangesIsMutable(); changes_.remove(index); onChanged(); } else { changesBuilder_.remove(index); } return this; } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder getChangesBuilder( int index) { return getChangesFieldBuilder().getBuilder(index); } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder getChangesOrBuilder( int index) { if (changesBuilder_ == null) { return changes_.get(index); } else { return changesBuilder_.getMessageOrBuilder(index); } } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public java.util.List getChangesOrBuilderList() { if (changesBuilder_ != null) { return changesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(changes_); } } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder addChangesBuilder() { return getChangesFieldBuilder().addBuilder( org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance()); } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder addChangesBuilder( int index) { return getChangesFieldBuilder().addBuilder( index, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance()); } /** * repeated .raft_cmdpb.ChangePeerRequest changes = 1; */ public java.util.List getChangesBuilderList() { return getChangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerRequest, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder> getChangesFieldBuilder() { if (changesBuilder_ == null) { changesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerRequest, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder>( changes_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); changes_ = null; } return changesBuilder_; } 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_cmdpb.ChangePeerV2Request) } // @@protoc_insertion_point(class_scope:raft_cmdpb.ChangePeerV2Request) private static final org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request(); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChangePeerV2Request parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChangePeerV2Request(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.RaftCmdpb.ChangePeerV2Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChangePeerV2ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.ChangePeerV2Response) 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(); } /** * Protobuf type {@code raft_cmdpb.ChangePeerV2Response} */ public static final class ChangePeerV2Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.ChangePeerV2Response) ChangePeerV2ResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ChangePeerV2Response.newBuilder() to construct. private ChangePeerV2Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChangePeerV2Response() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ChangePeerV2Response( 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; } } } } 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.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.class, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.Builder.class); } 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(); } 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()); } 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()); } 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.RaftCmdpb.ChangePeerV2Response)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response other = (org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response) obj; boolean result = true; result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response 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.RaftCmdpb.ChangePeerV2Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response 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.RaftCmdpb.ChangePeerV2Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response 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.RaftCmdpb.ChangePeerV2Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response 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.RaftCmdpb.ChangePeerV2Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response 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.RaftCmdpb.ChangePeerV2Response 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_cmdpb.ChangePeerV2Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.ChangePeerV2Response) org.tikv.kvproto.RaftCmdpb.ChangePeerV2ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Response_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.class, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.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 (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ChangePeerV2Response_descriptor; } public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response build() { org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response buildPartial() { org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response result = new org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response(this); if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.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.RaftCmdpb.ChangePeerV2Response) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response other) { if (other == org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.getDefaultInstance()) return this; if (other.hasRegion()) { mergeRegion(other.getRegion()); } 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.RaftCmdpb.ChangePeerV2Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 = 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_; } 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_cmdpb.ChangePeerV2Response) } // @@protoc_insertion_point(class_scope:raft_cmdpb.ChangePeerV2Response) private static final org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response(); } public static org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ChangePeerV2Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ChangePeerV2Response(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.RaftCmdpb.ChangePeerV2Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.SplitRequest) com.google.protobuf.MessageOrBuilder { /** *
     * This can be only called in internal RaftStore now.
     * The split_key must be in the been splitting region.
     * 
* * bytes split_key = 1; */ com.google.protobuf.ByteString getSplitKey(); /** *
     * We split the region into two, first uses the origin 
     * parent region id, and the second uses the new_region_id.
     * We must guarantee that the new_region_id is global unique.
     * 
* * uint64 new_region_id = 2; */ long getNewRegionId(); /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ java.util.List getNewPeerIdsList(); /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ int getNewPeerIdsCount(); /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ long getNewPeerIds(int index); /** *
     * If true, right region derive the origin region_id, 
     * left region use new_region_id.
     * Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
     * 
* * bool right_derive = 4 [deprecated = true]; */ @java.lang.Deprecated boolean getRightDerive(); } /** * Protobuf type {@code raft_cmdpb.SplitRequest} */ public static final class SplitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.SplitRequest) SplitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SplitRequest.newBuilder() to construct. private SplitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitRequest() { splitKey_ = com.google.protobuf.ByteString.EMPTY; newRegionId_ = 0L; newPeerIds_ = java.util.Collections.emptyList(); rightDerive_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SplitRequest( 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: { splitKey_ = input.readBytes(); break; } case 16: { newRegionId_ = input.readUInt64(); break; } case 24: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { newPeerIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } newPeerIds_.add(input.readUInt64()); break; } case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { newPeerIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } while (input.getBytesUntilLimit() > 0) { newPeerIds_.add(input.readUInt64()); } input.popLimit(limit); break; } case 32: { rightDerive_ = 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_ & 0x00000004) == 0x00000004)) { newPeerIds_ = java.util.Collections.unmodifiableList(newPeerIds_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.SplitRequest.class, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder.class); } private int bitField0_; public static final int SPLIT_KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString splitKey_; /** *
     * This can be only called in internal RaftStore now.
     * The split_key must be in the been splitting region.
     * 
* * bytes split_key = 1; */ public com.google.protobuf.ByteString getSplitKey() { return splitKey_; } public static final int NEW_REGION_ID_FIELD_NUMBER = 2; private long newRegionId_; /** *
     * We split the region into two, first uses the origin 
     * parent region id, and the second uses the new_region_id.
     * We must guarantee that the new_region_id is global unique.
     * 
* * uint64 new_region_id = 2; */ public long getNewRegionId() { return newRegionId_; } public static final int NEW_PEER_IDS_FIELD_NUMBER = 3; private java.util.List newPeerIds_; /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ public java.util.List getNewPeerIdsList() { return newPeerIds_; } /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ public int getNewPeerIdsCount() { return newPeerIds_.size(); } /** *
     * The peer ids for the new split region.
     * 
* * repeated uint64 new_peer_ids = 3; */ public long getNewPeerIds(int index) { return newPeerIds_.get(index); } private int newPeerIdsMemoizedSerializedSize = -1; public static final int RIGHT_DERIVE_FIELD_NUMBER = 4; private boolean rightDerive_; /** *
     * If true, right region derive the origin region_id, 
     * left region use new_region_id.
     * Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
     * 
* * bool right_derive = 4 [deprecated = true]; */ @java.lang.Deprecated public boolean getRightDerive() { return rightDerive_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!splitKey_.isEmpty()) { output.writeBytes(1, splitKey_); } if (newRegionId_ != 0L) { output.writeUInt64(2, newRegionId_); } if (getNewPeerIdsList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(newPeerIdsMemoizedSerializedSize); } for (int i = 0; i < newPeerIds_.size(); i++) { output.writeUInt64NoTag(newPeerIds_.get(i)); } if (rightDerive_ != false) { output.writeBool(4, rightDerive_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!splitKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, splitKey_); } if (newRegionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, newRegionId_); } { int dataSize = 0; for (int i = 0; i < newPeerIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(newPeerIds_.get(i)); } size += dataSize; if (!getNewPeerIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } newPeerIdsMemoizedSerializedSize = dataSize; } if (rightDerive_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, rightDerive_); } 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.RaftCmdpb.SplitRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.SplitRequest other = (org.tikv.kvproto.RaftCmdpb.SplitRequest) obj; boolean result = true; result = result && getSplitKey() .equals(other.getSplitKey()); result = result && (getNewRegionId() == other.getNewRegionId()); result = result && getNewPeerIdsList() .equals(other.getNewPeerIdsList()); result = result && (getRightDerive() == other.getRightDerive()); 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) + SPLIT_KEY_FIELD_NUMBER; hash = (53 * hash) + getSplitKey().hashCode(); hash = (37 * hash) + NEW_REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNewRegionId()); if (getNewPeerIdsCount() > 0) { hash = (37 * hash) + NEW_PEER_IDS_FIELD_NUMBER; hash = (53 * hash) + getNewPeerIdsList().hashCode(); } hash = (37 * hash) + RIGHT_DERIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRightDerive()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SplitRequest 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.RaftCmdpb.SplitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SplitRequest 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.RaftCmdpb.SplitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.SplitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SplitRequest 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.RaftCmdpb.SplitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SplitRequest 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.RaftCmdpb.SplitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SplitRequest 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.RaftCmdpb.SplitRequest 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_cmdpb.SplitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.SplitRequest) org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.SplitRequest.class, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.SplitRequest.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(); splitKey_ = com.google.protobuf.ByteString.EMPTY; newRegionId_ = 0L; newPeerIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); rightDerive_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.SplitRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.SplitRequest build() { org.tikv.kvproto.RaftCmdpb.SplitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.SplitRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.SplitRequest result = new org.tikv.kvproto.RaftCmdpb.SplitRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.splitKey_ = splitKey_; result.newRegionId_ = newRegionId_; if (((bitField0_ & 0x00000004) == 0x00000004)) { newPeerIds_ = java.util.Collections.unmodifiableList(newPeerIds_); bitField0_ = (bitField0_ & ~0x00000004); } result.newPeerIds_ = newPeerIds_; result.rightDerive_ = rightDerive_; 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.RaftCmdpb.SplitRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.SplitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.SplitRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance()) return this; if (other.getSplitKey() != com.google.protobuf.ByteString.EMPTY) { setSplitKey(other.getSplitKey()); } if (other.getNewRegionId() != 0L) { setNewRegionId(other.getNewRegionId()); } if (!other.newPeerIds_.isEmpty()) { if (newPeerIds_.isEmpty()) { newPeerIds_ = other.newPeerIds_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureNewPeerIdsIsMutable(); newPeerIds_.addAll(other.newPeerIds_); } onChanged(); } if (other.getRightDerive() != false) { setRightDerive(other.getRightDerive()); } 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.RaftCmdpb.SplitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.SplitRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString splitKey_ = com.google.protobuf.ByteString.EMPTY; /** *
       * This can be only called in internal RaftStore now.
       * The split_key must be in the been splitting region.
       * 
* * bytes split_key = 1; */ public com.google.protobuf.ByteString getSplitKey() { return splitKey_; } /** *
       * This can be only called in internal RaftStore now.
       * The split_key must be in the been splitting region.
       * 
* * bytes split_key = 1; */ public Builder setSplitKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } splitKey_ = value; onChanged(); return this; } /** *
       * This can be only called in internal RaftStore now.
       * The split_key must be in the been splitting region.
       * 
* * bytes split_key = 1; */ public Builder clearSplitKey() { splitKey_ = getDefaultInstance().getSplitKey(); onChanged(); return this; } private long newRegionId_ ; /** *
       * We split the region into two, first uses the origin 
       * parent region id, and the second uses the new_region_id.
       * We must guarantee that the new_region_id is global unique.
       * 
* * uint64 new_region_id = 2; */ public long getNewRegionId() { return newRegionId_; } /** *
       * We split the region into two, first uses the origin 
       * parent region id, and the second uses the new_region_id.
       * We must guarantee that the new_region_id is global unique.
       * 
* * uint64 new_region_id = 2; */ public Builder setNewRegionId(long value) { newRegionId_ = value; onChanged(); return this; } /** *
       * We split the region into two, first uses the origin 
       * parent region id, and the second uses the new_region_id.
       * We must guarantee that the new_region_id is global unique.
       * 
* * uint64 new_region_id = 2; */ public Builder clearNewRegionId() { newRegionId_ = 0L; onChanged(); return this; } private java.util.List newPeerIds_ = java.util.Collections.emptyList(); private void ensureNewPeerIdsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { newPeerIds_ = new java.util.ArrayList(newPeerIds_); bitField0_ |= 0x00000004; } } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public java.util.List getNewPeerIdsList() { return java.util.Collections.unmodifiableList(newPeerIds_); } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public int getNewPeerIdsCount() { return newPeerIds_.size(); } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public long getNewPeerIds(int index) { return newPeerIds_.get(index); } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public Builder setNewPeerIds( int index, long value) { ensureNewPeerIdsIsMutable(); newPeerIds_.set(index, value); onChanged(); return this; } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public Builder addNewPeerIds(long value) { ensureNewPeerIdsIsMutable(); newPeerIds_.add(value); onChanged(); return this; } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public Builder addAllNewPeerIds( java.lang.Iterable values) { ensureNewPeerIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, newPeerIds_); onChanged(); return this; } /** *
       * The peer ids for the new split region.
       * 
* * repeated uint64 new_peer_ids = 3; */ public Builder clearNewPeerIds() { newPeerIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private boolean rightDerive_ ; /** *
       * If true, right region derive the origin region_id, 
       * left region use new_region_id.
       * Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
       * 
* * bool right_derive = 4 [deprecated = true]; */ @java.lang.Deprecated public boolean getRightDerive() { return rightDerive_; } /** *
       * If true, right region derive the origin region_id, 
       * left region use new_region_id.
       * Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
       * 
* * bool right_derive = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder setRightDerive(boolean value) { rightDerive_ = value; onChanged(); return this; } /** *
       * If true, right region derive the origin region_id, 
       * left region use new_region_id.
       * Will be ignored in batch split, use `BatchSplitRequest::right_derive` instead.
       * 
* * bool right_derive = 4 [deprecated = true]; */ @java.lang.Deprecated public Builder clearRightDerive() { rightDerive_ = 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_cmdpb.SplitRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.SplitRequest) private static final org.tikv.kvproto.RaftCmdpb.SplitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.SplitRequest(); } public static org.tikv.kvproto.RaftCmdpb.SplitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SplitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SplitRequest(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.RaftCmdpb.SplitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.SplitResponse) com.google.protobuf.MessageOrBuilder { /** * .metapb.Region left = 1; */ boolean hasLeft(); /** * .metapb.Region left = 1; */ org.tikv.kvproto.Metapb.Region getLeft(); /** * .metapb.Region left = 1; */ org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder(); /** * .metapb.Region right = 2; */ boolean hasRight(); /** * .metapb.Region right = 2; */ org.tikv.kvproto.Metapb.Region getRight(); /** * .metapb.Region right = 2; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.SplitResponse} */ public static final class SplitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.SplitResponse) SplitResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SplitResponse.newBuilder() to construct. private SplitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SplitResponse( 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 (left_ != null) { subBuilder = left_.toBuilder(); } left_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(left_); left_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (right_ != null) { subBuilder = right_.toBuilder(); } right_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(right_); right_ = 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.RaftCmdpb.internal_static_raft_cmdpb_SplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.SplitResponse.class, org.tikv.kvproto.RaftCmdpb.SplitResponse.Builder.class); } public static final int LEFT_FIELD_NUMBER = 1; private org.tikv.kvproto.Metapb.Region left_; /** * .metapb.Region left = 1; */ public boolean hasLeft() { return left_ != null; } /** * .metapb.Region left = 1; */ public org.tikv.kvproto.Metapb.Region getLeft() { return left_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_; } /** * .metapb.Region left = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder() { return getLeft(); } public static final int RIGHT_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Region right_; /** * .metapb.Region right = 2; */ public boolean hasRight() { return right_ != null; } /** * .metapb.Region right = 2; */ public org.tikv.kvproto.Metapb.Region getRight() { return right_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_; } /** * .metapb.Region right = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder() { return getRight(); } 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 (left_ != null) { output.writeMessage(1, getLeft()); } if (right_ != null) { output.writeMessage(2, getRight()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (left_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLeft()); } if (right_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRight()); } 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.RaftCmdpb.SplitResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.SplitResponse other = (org.tikv.kvproto.RaftCmdpb.SplitResponse) obj; boolean result = true; result = result && (hasLeft() == other.hasLeft()); if (hasLeft()) { result = result && getLeft() .equals(other.getLeft()); } result = result && (hasRight() == other.hasRight()); if (hasRight()) { result = result && getRight() .equals(other.getRight()); } 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 (hasLeft()) { hash = (37 * hash) + LEFT_FIELD_NUMBER; hash = (53 * hash) + getLeft().hashCode(); } if (hasRight()) { hash = (37 * hash) + RIGHT_FIELD_NUMBER; hash = (53 * hash) + getRight().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SplitResponse 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.RaftCmdpb.SplitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SplitResponse 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.RaftCmdpb.SplitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.SplitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SplitResponse 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.RaftCmdpb.SplitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SplitResponse 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.RaftCmdpb.SplitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.SplitResponse 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.RaftCmdpb.SplitResponse 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_cmdpb.SplitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.SplitResponse) org.tikv.kvproto.RaftCmdpb.SplitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.SplitResponse.class, org.tikv.kvproto.RaftCmdpb.SplitResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.SplitResponse.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 (leftBuilder_ == null) { left_ = null; } else { left_ = null; leftBuilder_ = null; } if (rightBuilder_ == null) { right_ = null; } else { right_ = null; rightBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_SplitResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.SplitResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.SplitResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.SplitResponse build() { org.tikv.kvproto.RaftCmdpb.SplitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.SplitResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.SplitResponse result = new org.tikv.kvproto.RaftCmdpb.SplitResponse(this); if (leftBuilder_ == null) { result.left_ = left_; } else { result.left_ = leftBuilder_.build(); } if (rightBuilder_ == null) { result.right_ = right_; } else { result.right_ = rightBuilder_.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.RaftCmdpb.SplitResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.SplitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.SplitResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.SplitResponse.getDefaultInstance()) return this; if (other.hasLeft()) { mergeLeft(other.getLeft()); } if (other.hasRight()) { mergeRight(other.getRight()); } 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.RaftCmdpb.SplitResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.SplitResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Metapb.Region left_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> leftBuilder_; /** * .metapb.Region left = 1; */ public boolean hasLeft() { return leftBuilder_ != null || left_ != null; } /** * .metapb.Region left = 1; */ public org.tikv.kvproto.Metapb.Region getLeft() { if (leftBuilder_ == null) { return left_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_; } else { return leftBuilder_.getMessage(); } } /** * .metapb.Region left = 1; */ public Builder setLeft(org.tikv.kvproto.Metapb.Region value) { if (leftBuilder_ == null) { if (value == null) { throw new NullPointerException(); } left_ = value; onChanged(); } else { leftBuilder_.setMessage(value); } return this; } /** * .metapb.Region left = 1; */ public Builder setLeft( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (leftBuilder_ == null) { left_ = builderForValue.build(); onChanged(); } else { leftBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region left = 1; */ public Builder mergeLeft(org.tikv.kvproto.Metapb.Region value) { if (leftBuilder_ == null) { if (left_ != null) { left_ = org.tikv.kvproto.Metapb.Region.newBuilder(left_).mergeFrom(value).buildPartial(); } else { left_ = value; } onChanged(); } else { leftBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region left = 1; */ public Builder clearLeft() { if (leftBuilder_ == null) { left_ = null; onChanged(); } else { left_ = null; leftBuilder_ = null; } return this; } /** * .metapb.Region left = 1; */ public org.tikv.kvproto.Metapb.Region.Builder getLeftBuilder() { onChanged(); return getLeftFieldBuilder().getBuilder(); } /** * .metapb.Region left = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder() { if (leftBuilder_ != null) { return leftBuilder_.getMessageOrBuilder(); } else { return left_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_; } } /** * .metapb.Region left = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getLeftFieldBuilder() { if (leftBuilder_ == null) { leftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getLeft(), getParentForChildren(), isClean()); left_ = null; } return leftBuilder_; } private org.tikv.kvproto.Metapb.Region right_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> rightBuilder_; /** * .metapb.Region right = 2; */ public boolean hasRight() { return rightBuilder_ != null || right_ != null; } /** * .metapb.Region right = 2; */ public org.tikv.kvproto.Metapb.Region getRight() { if (rightBuilder_ == null) { return right_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_; } else { return rightBuilder_.getMessage(); } } /** * .metapb.Region right = 2; */ public Builder setRight(org.tikv.kvproto.Metapb.Region value) { if (rightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } right_ = value; onChanged(); } else { rightBuilder_.setMessage(value); } return this; } /** * .metapb.Region right = 2; */ public Builder setRight( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (rightBuilder_ == null) { right_ = builderForValue.build(); onChanged(); } else { rightBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region right = 2; */ public Builder mergeRight(org.tikv.kvproto.Metapb.Region value) { if (rightBuilder_ == null) { if (right_ != null) { right_ = org.tikv.kvproto.Metapb.Region.newBuilder(right_).mergeFrom(value).buildPartial(); } else { right_ = value; } onChanged(); } else { rightBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region right = 2; */ public Builder clearRight() { if (rightBuilder_ == null) { right_ = null; onChanged(); } else { right_ = null; rightBuilder_ = null; } return this; } /** * .metapb.Region right = 2; */ public org.tikv.kvproto.Metapb.Region.Builder getRightBuilder() { onChanged(); return getRightFieldBuilder().getBuilder(); } /** * .metapb.Region right = 2; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder() { if (rightBuilder_ != null) { return rightBuilder_.getMessageOrBuilder(); } else { return right_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_; } } /** * .metapb.Region right = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRightFieldBuilder() { if (rightBuilder_ == null) { rightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRight(), getParentForChildren(), isClean()); right_ = null; } return rightBuilder_; } 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_cmdpb.SplitResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.SplitResponse) private static final org.tikv.kvproto.RaftCmdpb.SplitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.SplitResponse(); } public static org.tikv.kvproto.RaftCmdpb.SplitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SplitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SplitResponse(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.RaftCmdpb.SplitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchSplitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.BatchSplitRequest) com.google.protobuf.MessageOrBuilder { /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ java.util.List getRequestsList(); /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ org.tikv.kvproto.RaftCmdpb.SplitRequest getRequests(int index); /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ int getRequestsCount(); /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ java.util.List getRequestsOrBuilderList(); /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder getRequestsOrBuilder( int index); /** *
     * If true, the last region derive the origin region_id, 
     * other regions use new ids.
     * 
* * bool right_derive = 2; */ boolean getRightDerive(); } /** * Protobuf type {@code raft_cmdpb.BatchSplitRequest} */ public static final class BatchSplitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.BatchSplitRequest) BatchSplitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BatchSplitRequest.newBuilder() to construct. private BatchSplitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchSplitRequest() { requests_ = java.util.Collections.emptyList(); rightDerive_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BatchSplitRequest( 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)) { requests_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } requests_.add( input.readMessage(org.tikv.kvproto.RaftCmdpb.SplitRequest.parser(), extensionRegistry)); break; } case 16: { rightDerive_ = 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)) { requests_ = java.util.Collections.unmodifiableList(requests_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.class, org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.Builder.class); } private int bitField0_; public static final int REQUESTS_FIELD_NUMBER = 1; private java.util.List requests_; /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public java.util.List getRequestsList() { return requests_; } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public java.util.List getRequestsOrBuilderList() { return requests_; } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public int getRequestsCount() { return requests_.size(); } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public org.tikv.kvproto.RaftCmdpb.SplitRequest getRequests(int index) { return requests_.get(index); } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder getRequestsOrBuilder( int index) { return requests_.get(index); } public static final int RIGHT_DERIVE_FIELD_NUMBER = 2; private boolean rightDerive_; /** *
     * If true, the last region derive the origin region_id, 
     * other regions use new ids.
     * 
* * bool right_derive = 2; */ public boolean getRightDerive() { return rightDerive_; } 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 < requests_.size(); i++) { output.writeMessage(1, requests_.get(i)); } if (rightDerive_ != false) { output.writeBool(2, rightDerive_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < requests_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, requests_.get(i)); } if (rightDerive_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, rightDerive_); } 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.RaftCmdpb.BatchSplitRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.BatchSplitRequest other = (org.tikv.kvproto.RaftCmdpb.BatchSplitRequest) obj; boolean result = true; result = result && getRequestsList() .equals(other.getRequestsList()); result = result && (getRightDerive() == other.getRightDerive()); 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 (getRequestsCount() > 0) { hash = (37 * hash) + REQUESTS_FIELD_NUMBER; hash = (53 * hash) + getRequestsList().hashCode(); } hash = (37 * hash) + RIGHT_DERIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRightDerive()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest 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.RaftCmdpb.BatchSplitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest 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.RaftCmdpb.BatchSplitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest 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.RaftCmdpb.BatchSplitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest 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.RaftCmdpb.BatchSplitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest 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.RaftCmdpb.BatchSplitRequest 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_cmdpb.BatchSplitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.BatchSplitRequest) org.tikv.kvproto.RaftCmdpb.BatchSplitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.class, org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } public Builder clear() { super.clear(); if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { requestsBuilder_.clear(); } rightDerive_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.BatchSplitRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.BatchSplitRequest build() { org.tikv.kvproto.RaftCmdpb.BatchSplitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.BatchSplitRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.BatchSplitRequest result = new org.tikv.kvproto.RaftCmdpb.BatchSplitRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { requests_ = java.util.Collections.unmodifiableList(requests_); bitField0_ = (bitField0_ & ~0x00000001); } result.requests_ = requests_; } else { result.requests_ = requestsBuilder_.build(); } result.rightDerive_ = rightDerive_; 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.RaftCmdpb.BatchSplitRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.BatchSplitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.BatchSplitRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.getDefaultInstance()) return this; if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRequestsIsMutable(); requests_.addAll(other.requests_); } onChanged(); } } else { if (!other.requests_.isEmpty()) { if (requestsBuilder_.isEmpty()) { requestsBuilder_.dispose(); requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000001); requestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } } } if (other.getRightDerive() != false) { setRightDerive(other.getRightDerive()); } 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.RaftCmdpb.BatchSplitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.BatchSplitRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List requests_ = java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SplitRequest, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder> requestsBuilder_; /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { return requestsBuilder_.getMessageList(); } } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public int getRequestsCount() { if (requestsBuilder_ == null) { return requests_.size(); } else { return requestsBuilder_.getCount(); } } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public org.tikv.kvproto.RaftCmdpb.SplitRequest getRequests(int index) { if (requestsBuilder_ == null) { return requests_.get(index); } else { return requestsBuilder_.getMessage(index); } } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public Builder setRequests( int index, org.tikv.kvproto.RaftCmdpb.SplitRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestsIsMutable(); requests_.set(index, value); onChanged(); } else { requestsBuilder_.setMessage(index, value); } return this; } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public Builder setRequests( int index, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.set(index, builderForValue.build()); onChanged(); } else { requestsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public Builder addRequests(org.tikv.kvproto.RaftCmdpb.SplitRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestsIsMutable(); requests_.add(value); onChanged(); } else { requestsBuilder_.addMessage(value); } return this; } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public Builder addRequests( int index, org.tikv.kvproto.RaftCmdpb.SplitRequest value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestsIsMutable(); requests_.add(index, value); onChanged(); } else { requestsBuilder_.addMessage(index, value); } return this; } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public Builder addRequests( org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(builderForValue.build()); onChanged(); } else { requestsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public Builder addRequests( int index, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(index, builderForValue.build()); onChanged(); } else { requestsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public Builder addAllRequests( java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); } return this; } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public Builder clearRequests() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { requestsBuilder_.clear(); } return this; } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.remove(index); onChanged(); } else { requestsBuilder_.remove(index); } return this; } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public java.util.List getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(requests_); } } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder addRequestsBuilder() { return getRequestsFieldBuilder().addBuilder( org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance()); } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder addRequestsBuilder( int index) { return getRequestsFieldBuilder().addBuilder( index, org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance()); } /** * repeated .raft_cmdpb.SplitRequest requests = 1; */ public java.util.List getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SplitRequest, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SplitRequest, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder>( requests_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } private boolean rightDerive_ ; /** *
       * If true, the last region derive the origin region_id, 
       * other regions use new ids.
       * 
* * bool right_derive = 2; */ public boolean getRightDerive() { return rightDerive_; } /** *
       * If true, the last region derive the origin region_id, 
       * other regions use new ids.
       * 
* * bool right_derive = 2; */ public Builder setRightDerive(boolean value) { rightDerive_ = value; onChanged(); return this; } /** *
       * If true, the last region derive the origin region_id, 
       * other regions use new ids.
       * 
* * bool right_derive = 2; */ public Builder clearRightDerive() { rightDerive_ = 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_cmdpb.BatchSplitRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.BatchSplitRequest) private static final org.tikv.kvproto.RaftCmdpb.BatchSplitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.BatchSplitRequest(); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchSplitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchSplitRequest(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.RaftCmdpb.BatchSplitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchSplitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.BatchSplitResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .metapb.Region regions = 1; */ java.util.List getRegionsList(); /** * repeated .metapb.Region regions = 1; */ org.tikv.kvproto.Metapb.Region getRegions(int index); /** * repeated .metapb.Region regions = 1; */ int getRegionsCount(); /** * repeated .metapb.Region regions = 1; */ java.util.List getRegionsOrBuilderList(); /** * repeated .metapb.Region regions = 1; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder( int index); } /** * Protobuf type {@code raft_cmdpb.BatchSplitResponse} */ public static final class BatchSplitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.BatchSplitResponse) BatchSplitResponseOrBuilder { private static final long serialVersionUID = 0L; // Use BatchSplitResponse.newBuilder() to construct. private BatchSplitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchSplitResponse() { regions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BatchSplitResponse( 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)) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } regions_.add( input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { regions_ = java.util.Collections.unmodifiableList(regions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.class, org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.Builder.class); } public static final int REGIONS_FIELD_NUMBER = 1; private java.util.List regions_; /** * repeated .metapb.Region regions = 1; */ public java.util.List getRegionsList() { return regions_; } /** * repeated .metapb.Region regions = 1; */ public java.util.List getRegionsOrBuilderList() { return regions_; } /** * repeated .metapb.Region regions = 1; */ public int getRegionsCount() { return regions_.size(); } /** * repeated .metapb.Region regions = 1; */ public org.tikv.kvproto.Metapb.Region getRegions(int index) { return regions_.get(index); } /** * repeated .metapb.Region regions = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder( int index) { return regions_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < regions_.size(); i++) { output.writeMessage(1, regions_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < regions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, regions_.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.RaftCmdpb.BatchSplitResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.BatchSplitResponse other = (org.tikv.kvproto.RaftCmdpb.BatchSplitResponse) obj; boolean result = true; result = result && getRegionsList() .equals(other.getRegionsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRegionsCount() > 0) { hash = (37 * hash) + REGIONS_FIELD_NUMBER; hash = (53 * hash) + getRegionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse 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.RaftCmdpb.BatchSplitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse 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.RaftCmdpb.BatchSplitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse 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.RaftCmdpb.BatchSplitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse 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.RaftCmdpb.BatchSplitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse 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.RaftCmdpb.BatchSplitResponse 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_cmdpb.BatchSplitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.BatchSplitResponse) org.tikv.kvproto.RaftCmdpb.BatchSplitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.class, org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRegionsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { regionsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_BatchSplitResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.BatchSplitResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.BatchSplitResponse build() { org.tikv.kvproto.RaftCmdpb.BatchSplitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.BatchSplitResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.BatchSplitResponse result = new org.tikv.kvproto.RaftCmdpb.BatchSplitResponse(this); int from_bitField0_ = bitField0_; if (regionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { regions_ = java.util.Collections.unmodifiableList(regions_); bitField0_ = (bitField0_ & ~0x00000001); } result.regions_ = regions_; } else { result.regions_ = regionsBuilder_.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.RaftCmdpb.BatchSplitResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.BatchSplitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.BatchSplitResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.getDefaultInstance()) return this; if (regionsBuilder_ == null) { if (!other.regions_.isEmpty()) { if (regions_.isEmpty()) { regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRegionsIsMutable(); regions_.addAll(other.regions_); } onChanged(); } } else { if (!other.regions_.isEmpty()) { if (regionsBuilder_.isEmpty()) { regionsBuilder_.dispose(); regionsBuilder_ = null; regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000001); regionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRegionsFieldBuilder() : null; } else { regionsBuilder_.addAllMessages(other.regions_); } } } 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.RaftCmdpb.BatchSplitResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.BatchSplitResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List regions_ = java.util.Collections.emptyList(); private void ensureRegionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { regions_ = new java.util.ArrayList(regions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionsBuilder_; /** * repeated .metapb.Region regions = 1; */ public java.util.List getRegionsList() { if (regionsBuilder_ == null) { return java.util.Collections.unmodifiableList(regions_); } else { return regionsBuilder_.getMessageList(); } } /** * repeated .metapb.Region regions = 1; */ public int getRegionsCount() { if (regionsBuilder_ == null) { return regions_.size(); } else { return regionsBuilder_.getCount(); } } /** * repeated .metapb.Region regions = 1; */ public org.tikv.kvproto.Metapb.Region getRegions(int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessage(index); } } /** * repeated .metapb.Region regions = 1; */ public Builder setRegions( int index, org.tikv.kvproto.Metapb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.set(index, value); onChanged(); } else { regionsBuilder_.setMessage(index, value); } return this; } /** * repeated .metapb.Region regions = 1; */ public Builder setRegions( int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.set(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Region regions = 1; */ public Builder addRegions(org.tikv.kvproto.Metapb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(value); onChanged(); } else { regionsBuilder_.addMessage(value); } return this; } /** * repeated .metapb.Region regions = 1; */ public Builder addRegions( int index, org.tikv.kvproto.Metapb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(index, value); onChanged(); } else { regionsBuilder_.addMessage(index, value); } return this; } /** * repeated .metapb.Region regions = 1; */ public Builder addRegions( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .metapb.Region regions = 1; */ public Builder addRegions( int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .metapb.Region regions = 1; */ public Builder addAllRegions( java.lang.Iterable values) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regions_); onChanged(); } else { regionsBuilder_.addAllMessages(values); } return this; } /** * repeated .metapb.Region regions = 1; */ public Builder clearRegions() { if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { regionsBuilder_.clear(); } return this; } /** * repeated .metapb.Region regions = 1; */ public Builder removeRegions(int index) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.remove(index); onChanged(); } else { regionsBuilder_.remove(index); } return this; } /** * repeated .metapb.Region regions = 1; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionsBuilder( int index) { return getRegionsFieldBuilder().getBuilder(index); } /** * repeated .metapb.Region regions = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder( int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .metapb.Region regions = 1; */ public java.util.List getRegionsOrBuilderList() { if (regionsBuilder_ != null) { return regionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regions_); } } /** * repeated .metapb.Region regions = 1; */ public org.tikv.kvproto.Metapb.Region.Builder addRegionsBuilder() { return getRegionsFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** * repeated .metapb.Region regions = 1; */ public org.tikv.kvproto.Metapb.Region.Builder addRegionsBuilder( int index) { return getRegionsFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** * repeated .metapb.Region regions = 1; */ public java.util.List getRegionsBuilderList() { return getRegionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionsFieldBuilder() { if (regionsBuilder_ == null) { regionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( regions_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); regions_ = null; } return regionsBuilder_; } 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_cmdpb.BatchSplitResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.BatchSplitResponse) private static final org.tikv.kvproto.RaftCmdpb.BatchSplitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.BatchSplitResponse(); } public static org.tikv.kvproto.RaftCmdpb.BatchSplitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchSplitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchSplitResponse(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.RaftCmdpb.BatchSplitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CompactLogRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.CompactLogRequest) com.google.protobuf.MessageOrBuilder { /** * uint64 compact_index = 1; */ long getCompactIndex(); /** * uint64 compact_term = 2; */ long getCompactTerm(); } /** * Protobuf type {@code raft_cmdpb.CompactLogRequest} */ public static final class CompactLogRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.CompactLogRequest) CompactLogRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CompactLogRequest.newBuilder() to construct. private CompactLogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompactLogRequest() { compactIndex_ = 0L; compactTerm_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CompactLogRequest( 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: { compactIndex_ = input.readUInt64(); break; } case 16: { compactTerm_ = 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.RaftCmdpb.internal_static_raft_cmdpb_CompactLogRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.CompactLogRequest.class, org.tikv.kvproto.RaftCmdpb.CompactLogRequest.Builder.class); } public static final int COMPACT_INDEX_FIELD_NUMBER = 1; private long compactIndex_; /** * uint64 compact_index = 1; */ public long getCompactIndex() { return compactIndex_; } public static final int COMPACT_TERM_FIELD_NUMBER = 2; private long compactTerm_; /** * uint64 compact_term = 2; */ public long getCompactTerm() { return compactTerm_; } 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 (compactIndex_ != 0L) { output.writeUInt64(1, compactIndex_); } if (compactTerm_ != 0L) { output.writeUInt64(2, compactTerm_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (compactIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, compactIndex_); } if (compactTerm_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, compactTerm_); } 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.RaftCmdpb.CompactLogRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.CompactLogRequest other = (org.tikv.kvproto.RaftCmdpb.CompactLogRequest) obj; boolean result = true; result = result && (getCompactIndex() == other.getCompactIndex()); result = result && (getCompactTerm() == other.getCompactTerm()); 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) + COMPACT_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCompactIndex()); hash = (37 * hash) + COMPACT_TERM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCompactTerm()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest 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.RaftCmdpb.CompactLogRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest 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.RaftCmdpb.CompactLogRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest 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.RaftCmdpb.CompactLogRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest 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.RaftCmdpb.CompactLogRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest 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.RaftCmdpb.CompactLogRequest 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_cmdpb.CompactLogRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.CompactLogRequest) org.tikv.kvproto.RaftCmdpb.CompactLogRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.CompactLogRequest.class, org.tikv.kvproto.RaftCmdpb.CompactLogRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.CompactLogRequest.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(); compactIndex_ = 0L; compactTerm_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.CompactLogRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.CompactLogRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.CompactLogRequest build() { org.tikv.kvproto.RaftCmdpb.CompactLogRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.CompactLogRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.CompactLogRequest result = new org.tikv.kvproto.RaftCmdpb.CompactLogRequest(this); result.compactIndex_ = compactIndex_; result.compactTerm_ = compactTerm_; 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.RaftCmdpb.CompactLogRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.CompactLogRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.CompactLogRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.CompactLogRequest.getDefaultInstance()) return this; if (other.getCompactIndex() != 0L) { setCompactIndex(other.getCompactIndex()); } if (other.getCompactTerm() != 0L) { setCompactTerm(other.getCompactTerm()); } 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.RaftCmdpb.CompactLogRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.CompactLogRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long compactIndex_ ; /** * uint64 compact_index = 1; */ public long getCompactIndex() { return compactIndex_; } /** * uint64 compact_index = 1; */ public Builder setCompactIndex(long value) { compactIndex_ = value; onChanged(); return this; } /** * uint64 compact_index = 1; */ public Builder clearCompactIndex() { compactIndex_ = 0L; onChanged(); return this; } private long compactTerm_ ; /** * uint64 compact_term = 2; */ public long getCompactTerm() { return compactTerm_; } /** * uint64 compact_term = 2; */ public Builder setCompactTerm(long value) { compactTerm_ = value; onChanged(); return this; } /** * uint64 compact_term = 2; */ public Builder clearCompactTerm() { compactTerm_ = 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_cmdpb.CompactLogRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.CompactLogRequest) private static final org.tikv.kvproto.RaftCmdpb.CompactLogRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.CompactLogRequest(); } public static org.tikv.kvproto.RaftCmdpb.CompactLogRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CompactLogRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CompactLogRequest(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.RaftCmdpb.CompactLogRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CompactLogResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.CompactLogResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.CompactLogResponse} */ public static final class CompactLogResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.CompactLogResponse) CompactLogResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CompactLogResponse.newBuilder() to construct. private CompactLogResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompactLogResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CompactLogResponse( 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.RaftCmdpb.internal_static_raft_cmdpb_CompactLogResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.CompactLogResponse.class, org.tikv.kvproto.RaftCmdpb.CompactLogResponse.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.RaftCmdpb.CompactLogResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.CompactLogResponse other = (org.tikv.kvproto.RaftCmdpb.CompactLogResponse) 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.RaftCmdpb.CompactLogResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse 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.RaftCmdpb.CompactLogResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse 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.RaftCmdpb.CompactLogResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse 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.RaftCmdpb.CompactLogResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse 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.RaftCmdpb.CompactLogResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse 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.RaftCmdpb.CompactLogResponse 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_cmdpb.CompactLogResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.CompactLogResponse) org.tikv.kvproto.RaftCmdpb.CompactLogResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CompactLogResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.CompactLogResponse.class, org.tikv.kvproto.RaftCmdpb.CompactLogResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.CompactLogResponse.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.RaftCmdpb.internal_static_raft_cmdpb_CompactLogResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.CompactLogResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.CompactLogResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.CompactLogResponse build() { org.tikv.kvproto.RaftCmdpb.CompactLogResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.CompactLogResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.CompactLogResponse result = new org.tikv.kvproto.RaftCmdpb.CompactLogResponse(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.RaftCmdpb.CompactLogResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.CompactLogResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.CompactLogResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.CompactLogResponse.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.RaftCmdpb.CompactLogResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.CompactLogResponse) 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_cmdpb.CompactLogResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.CompactLogResponse) private static final org.tikv.kvproto.RaftCmdpb.CompactLogResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.CompactLogResponse(); } public static org.tikv.kvproto.RaftCmdpb.CompactLogResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CompactLogResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CompactLogResponse(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.RaftCmdpb.CompactLogResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransferLeaderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.TransferLeaderRequest) com.google.protobuf.MessageOrBuilder { /** * .metapb.Peer peer = 1; */ boolean hasPeer(); /** * .metapb.Peer peer = 1; */ org.tikv.kvproto.Metapb.Peer getPeer(); /** * .metapb.Peer peer = 1; */ org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.TransferLeaderRequest} */ public static final class TransferLeaderRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.TransferLeaderRequest) TransferLeaderRequestOrBuilder { private static final long serialVersionUID = 0L; // Use TransferLeaderRequest.newBuilder() to construct. private TransferLeaderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransferLeaderRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransferLeaderRequest( 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.Peer.Builder subBuilder = null; if (peer_ != null) { subBuilder = peer_.toBuilder(); } peer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(peer_); peer_ = 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.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.class, org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.Builder.class); } public static final int PEER_FIELD_NUMBER = 1; private org.tikv.kvproto.Metapb.Peer peer_; /** * .metapb.Peer peer = 1; */ public boolean hasPeer() { return peer_ != null; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer getPeer() { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { return getPeer(); } 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 (peer_ != null) { output.writeMessage(1, getPeer()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (peer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPeer()); } 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.RaftCmdpb.TransferLeaderRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest other = (org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest) obj; boolean result = true; result = result && (hasPeer() == other.hasPeer()); if (hasPeer()) { result = result && getPeer() .equals(other.getPeer()); } 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 (hasPeer()) { hash = (37 * hash) + PEER_FIELD_NUMBER; hash = (53 * hash) + getPeer().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest 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.RaftCmdpb.TransferLeaderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest 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.RaftCmdpb.TransferLeaderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest 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.RaftCmdpb.TransferLeaderRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest 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.RaftCmdpb.TransferLeaderRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest 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.RaftCmdpb.TransferLeaderRequest 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_cmdpb.TransferLeaderRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.TransferLeaderRequest) org.tikv.kvproto.RaftCmdpb.TransferLeaderRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.class, org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.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 (peerBuilder_ == null) { peer_ = null; } else { peer_ = null; peerBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest build() { org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest result = new org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest(this); if (peerBuilder_ == null) { result.peer_ = peer_; } else { result.peer_ = peerBuilder_.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.RaftCmdpb.TransferLeaderRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.getDefaultInstance()) return this; if (other.hasPeer()) { mergePeer(other.getPeer()); } 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.RaftCmdpb.TransferLeaderRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Metapb.Peer peer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> peerBuilder_; /** * .metapb.Peer peer = 1; */ public boolean hasPeer() { return peerBuilder_ != null || peer_ != null; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer getPeer() { if (peerBuilder_ == null) { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } else { return peerBuilder_.getMessage(); } } /** * .metapb.Peer peer = 1; */ public Builder setPeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } peer_ = value; onChanged(); } else { peerBuilder_.setMessage(value); } return this; } /** * .metapb.Peer peer = 1; */ public Builder setPeer( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (peerBuilder_ == null) { peer_ = builderForValue.build(); onChanged(); } else { peerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer peer = 1; */ public Builder mergePeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (peer_ != null) { peer_ = org.tikv.kvproto.Metapb.Peer.newBuilder(peer_).mergeFrom(value).buildPartial(); } else { peer_ = value; } onChanged(); } else { peerBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer peer = 1; */ public Builder clearPeer() { if (peerBuilder_ == null) { peer_ = null; onChanged(); } else { peer_ = null; peerBuilder_ = null; } return this; } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.Peer.Builder getPeerBuilder() { onChanged(); return getPeerFieldBuilder().getBuilder(); } /** * .metapb.Peer peer = 1; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { if (peerBuilder_ != null) { return peerBuilder_.getMessageOrBuilder(); } else { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } } /** * .metapb.Peer peer = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getPeerFieldBuilder() { if (peerBuilder_ == null) { peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getPeer(), getParentForChildren(), isClean()); peer_ = null; } return peerBuilder_; } 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_cmdpb.TransferLeaderRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.TransferLeaderRequest) private static final org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest(); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransferLeaderRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransferLeaderRequest(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.RaftCmdpb.TransferLeaderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransferLeaderResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.TransferLeaderResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.TransferLeaderResponse} */ public static final class TransferLeaderResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.TransferLeaderResponse) TransferLeaderResponseOrBuilder { private static final long serialVersionUID = 0L; // Use TransferLeaderResponse.newBuilder() to construct. private TransferLeaderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransferLeaderResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransferLeaderResponse( 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.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.class, org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.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.RaftCmdpb.TransferLeaderResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse other = (org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse) 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.RaftCmdpb.TransferLeaderResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse 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.RaftCmdpb.TransferLeaderResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse 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.RaftCmdpb.TransferLeaderResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse 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.RaftCmdpb.TransferLeaderResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse 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.RaftCmdpb.TransferLeaderResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse 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.RaftCmdpb.TransferLeaderResponse 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_cmdpb.TransferLeaderResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.TransferLeaderResponse) org.tikv.kvproto.RaftCmdpb.TransferLeaderResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.class, org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.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.RaftCmdpb.internal_static_raft_cmdpb_TransferLeaderResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse build() { org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse result = new org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse(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.RaftCmdpb.TransferLeaderResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.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.RaftCmdpb.TransferLeaderResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse) 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_cmdpb.TransferLeaderResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.TransferLeaderResponse) private static final org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse(); } public static org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TransferLeaderResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransferLeaderResponse(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.RaftCmdpb.TransferLeaderResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ComputeHashRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.ComputeHashRequest) com.google.protobuf.MessageOrBuilder { /** * bytes context = 1; */ com.google.protobuf.ByteString getContext(); } /** * Protobuf type {@code raft_cmdpb.ComputeHashRequest} */ public static final class ComputeHashRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.ComputeHashRequest) ComputeHashRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ComputeHashRequest.newBuilder() to construct. private ComputeHashRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ComputeHashRequest() { context_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ComputeHashRequest( 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: { context_ = 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.RaftCmdpb.internal_static_raft_cmdpb_ComputeHashRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ComputeHashRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.class, org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private com.google.protobuf.ByteString context_; /** * bytes context = 1; */ public com.google.protobuf.ByteString getContext() { return context_; } 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 (!context_.isEmpty()) { output.writeBytes(1, context_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!context_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, context_); } 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.RaftCmdpb.ComputeHashRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.ComputeHashRequest other = (org.tikv.kvproto.RaftCmdpb.ComputeHashRequest) obj; boolean result = true; result = result && getContext() .equals(other.getContext()); 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) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest 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.RaftCmdpb.ComputeHashRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest 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.RaftCmdpb.ComputeHashRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest 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.RaftCmdpb.ComputeHashRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest 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.RaftCmdpb.ComputeHashRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest 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.RaftCmdpb.ComputeHashRequest 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_cmdpb.ComputeHashRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.ComputeHashRequest) org.tikv.kvproto.RaftCmdpb.ComputeHashRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ComputeHashRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ComputeHashRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.class, org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.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(); context_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_ComputeHashRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.ComputeHashRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.ComputeHashRequest build() { org.tikv.kvproto.RaftCmdpb.ComputeHashRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.ComputeHashRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.ComputeHashRequest result = new org.tikv.kvproto.RaftCmdpb.ComputeHashRequest(this); result.context_ = context_; 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.RaftCmdpb.ComputeHashRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.ComputeHashRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.ComputeHashRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.getDefaultInstance()) return this; if (other.getContext() != com.google.protobuf.ByteString.EMPTY) { setContext(other.getContext()); } 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.RaftCmdpb.ComputeHashRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.ComputeHashRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString context_ = com.google.protobuf.ByteString.EMPTY; /** * bytes context = 1; */ public com.google.protobuf.ByteString getContext() { return context_; } /** * bytes context = 1; */ public Builder setContext(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); return this; } /** * bytes context = 1; */ public Builder clearContext() { context_ = getDefaultInstance().getContext(); 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_cmdpb.ComputeHashRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.ComputeHashRequest) private static final org.tikv.kvproto.RaftCmdpb.ComputeHashRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.ComputeHashRequest(); } public static org.tikv.kvproto.RaftCmdpb.ComputeHashRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ComputeHashRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ComputeHashRequest(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.RaftCmdpb.ComputeHashRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerifyHashRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.VerifyHashRequest) com.google.protobuf.MessageOrBuilder { /** * uint64 index = 1; */ long getIndex(); /** * bytes hash = 2; */ com.google.protobuf.ByteString getHash(); /** * bytes context = 3; */ com.google.protobuf.ByteString getContext(); } /** * Protobuf type {@code raft_cmdpb.VerifyHashRequest} */ public static final class VerifyHashRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.VerifyHashRequest) VerifyHashRequestOrBuilder { private static final long serialVersionUID = 0L; // Use VerifyHashRequest.newBuilder() to construct. private VerifyHashRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerifyHashRequest() { index_ = 0L; hash_ = com.google.protobuf.ByteString.EMPTY; context_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerifyHashRequest( 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 18: { hash_ = input.readBytes(); break; } case 26: { context_ = 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.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.class, org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.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 HASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString hash_; /** * bytes hash = 2; */ public com.google.protobuf.ByteString getHash() { return hash_; } public static final int CONTEXT_FIELD_NUMBER = 3; private com.google.protobuf.ByteString context_; /** * bytes context = 3; */ public com.google.protobuf.ByteString getContext() { return context_; } 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 (!hash_.isEmpty()) { output.writeBytes(2, hash_); } if (!context_.isEmpty()) { output.writeBytes(3, context_); } 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 (!hash_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, hash_); } if (!context_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, context_); } 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.RaftCmdpb.VerifyHashRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.VerifyHashRequest other = (org.tikv.kvproto.RaftCmdpb.VerifyHashRequest) obj; boolean result = true; result = result && (getIndex() == other.getIndex()); result = result && getHash() .equals(other.getHash()); result = result && getContext() .equals(other.getContext()); 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) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest 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.RaftCmdpb.VerifyHashRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest 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.RaftCmdpb.VerifyHashRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest 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.RaftCmdpb.VerifyHashRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest 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.RaftCmdpb.VerifyHashRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest 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.RaftCmdpb.VerifyHashRequest 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_cmdpb.VerifyHashRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.VerifyHashRequest) org.tikv.kvproto.RaftCmdpb.VerifyHashRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.class, org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.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; hash_ = com.google.protobuf.ByteString.EMPTY; context_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.VerifyHashRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.VerifyHashRequest build() { org.tikv.kvproto.RaftCmdpb.VerifyHashRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.VerifyHashRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.VerifyHashRequest result = new org.tikv.kvproto.RaftCmdpb.VerifyHashRequest(this); result.index_ = index_; result.hash_ = hash_; result.context_ = context_; 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.RaftCmdpb.VerifyHashRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.VerifyHashRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.VerifyHashRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.getDefaultInstance()) return this; if (other.getIndex() != 0L) { setIndex(other.getIndex()); } if (other.getHash() != com.google.protobuf.ByteString.EMPTY) { setHash(other.getHash()); } if (other.getContext() != com.google.protobuf.ByteString.EMPTY) { setContext(other.getContext()); } 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.RaftCmdpb.VerifyHashRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.VerifyHashRequest) 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 com.google.protobuf.ByteString hash_ = com.google.protobuf.ByteString.EMPTY; /** * bytes hash = 2; */ public com.google.protobuf.ByteString getHash() { return hash_; } /** * bytes hash = 2; */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); return this; } /** * bytes hash = 2; */ public Builder clearHash() { hash_ = getDefaultInstance().getHash(); onChanged(); return this; } private com.google.protobuf.ByteString context_ = com.google.protobuf.ByteString.EMPTY; /** * bytes context = 3; */ public com.google.protobuf.ByteString getContext() { return context_; } /** * bytes context = 3; */ public Builder setContext(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); return this; } /** * bytes context = 3; */ public Builder clearContext() { context_ = getDefaultInstance().getContext(); 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_cmdpb.VerifyHashRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.VerifyHashRequest) private static final org.tikv.kvproto.RaftCmdpb.VerifyHashRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.VerifyHashRequest(); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerifyHashRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerifyHashRequest(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.RaftCmdpb.VerifyHashRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerifyHashResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.VerifyHashResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.VerifyHashResponse} */ public static final class VerifyHashResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.VerifyHashResponse) VerifyHashResponseOrBuilder { private static final long serialVersionUID = 0L; // Use VerifyHashResponse.newBuilder() to construct. private VerifyHashResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerifyHashResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerifyHashResponse( 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.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.class, org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.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.RaftCmdpb.VerifyHashResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.VerifyHashResponse other = (org.tikv.kvproto.RaftCmdpb.VerifyHashResponse) 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.RaftCmdpb.VerifyHashResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse 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.RaftCmdpb.VerifyHashResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse 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.RaftCmdpb.VerifyHashResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse 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.RaftCmdpb.VerifyHashResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse 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.RaftCmdpb.VerifyHashResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse 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.RaftCmdpb.VerifyHashResponse 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_cmdpb.VerifyHashResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.VerifyHashResponse) org.tikv.kvproto.RaftCmdpb.VerifyHashResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.class, org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.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.RaftCmdpb.internal_static_raft_cmdpb_VerifyHashResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.VerifyHashResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.VerifyHashResponse build() { org.tikv.kvproto.RaftCmdpb.VerifyHashResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.VerifyHashResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.VerifyHashResponse result = new org.tikv.kvproto.RaftCmdpb.VerifyHashResponse(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.RaftCmdpb.VerifyHashResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.VerifyHashResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.VerifyHashResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.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.RaftCmdpb.VerifyHashResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.VerifyHashResponse) 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_cmdpb.VerifyHashResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.VerifyHashResponse) private static final org.tikv.kvproto.RaftCmdpb.VerifyHashResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.VerifyHashResponse(); } public static org.tikv.kvproto.RaftCmdpb.VerifyHashResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerifyHashResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerifyHashResponse(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.RaftCmdpb.VerifyHashResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrepareMergeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.PrepareMergeRequest) 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(); } /** * Protobuf type {@code raft_cmdpb.PrepareMergeRequest} */ public static final class PrepareMergeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.PrepareMergeRequest) PrepareMergeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PrepareMergeRequest.newBuilder() to construct. private PrepareMergeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrepareMergeRequest() { minIndex_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrepareMergeRequest( 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; } } } } 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.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.class, org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.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(); } 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()); } 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()); } 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.RaftCmdpb.PrepareMergeRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest other = (org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest) obj; boolean result = true; result = result && (getMinIndex() == other.getMinIndex()); result = result && (hasTarget() == other.hasTarget()); if (hasTarget()) { result = result && getTarget() .equals(other.getTarget()); } 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest 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.RaftCmdpb.PrepareMergeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest 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.RaftCmdpb.PrepareMergeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest 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.RaftCmdpb.PrepareMergeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest 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.RaftCmdpb.PrepareMergeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest 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.RaftCmdpb.PrepareMergeRequest 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_cmdpb.PrepareMergeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.PrepareMergeRequest) org.tikv.kvproto.RaftCmdpb.PrepareMergeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.class, org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.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; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest build() { org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest result = new org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest(this); result.minIndex_ = minIndex_; if (targetBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetBuilder_.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.RaftCmdpb.PrepareMergeRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.getDefaultInstance()) return this; if (other.getMinIndex() != 0L) { setMinIndex(other.getMinIndex()); } if (other.hasTarget()) { mergeTarget(other.getTarget()); } 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.RaftCmdpb.PrepareMergeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest) 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_; } 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_cmdpb.PrepareMergeRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.PrepareMergeRequest) private static final org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest(); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PrepareMergeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrepareMergeRequest(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.RaftCmdpb.PrepareMergeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrepareMergeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.PrepareMergeResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.PrepareMergeResponse} */ public static final class PrepareMergeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.PrepareMergeResponse) PrepareMergeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PrepareMergeResponse.newBuilder() to construct. private PrepareMergeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrepareMergeResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrepareMergeResponse( 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.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.class, org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.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.RaftCmdpb.PrepareMergeResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse other = (org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse) 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.RaftCmdpb.PrepareMergeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse 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.RaftCmdpb.PrepareMergeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse 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.RaftCmdpb.PrepareMergeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse 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.RaftCmdpb.PrepareMergeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse 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.RaftCmdpb.PrepareMergeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse 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.RaftCmdpb.PrepareMergeResponse 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_cmdpb.PrepareMergeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.PrepareMergeResponse) org.tikv.kvproto.RaftCmdpb.PrepareMergeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.class, org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.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.RaftCmdpb.internal_static_raft_cmdpb_PrepareMergeResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse build() { org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse result = new org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse(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.RaftCmdpb.PrepareMergeResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.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.RaftCmdpb.PrepareMergeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse) 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_cmdpb.PrepareMergeResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.PrepareMergeResponse) private static final org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse(); } public static org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PrepareMergeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrepareMergeResponse(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.RaftCmdpb.PrepareMergeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitMergeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.CommitMergeRequest) com.google.protobuf.MessageOrBuilder { /** * .metapb.Region source = 1; */ boolean hasSource(); /** * .metapb.Region source = 1; */ org.tikv.kvproto.Metapb.Region getSource(); /** * .metapb.Region source = 1; */ org.tikv.kvproto.Metapb.RegionOrBuilder getSourceOrBuilder(); /** * uint64 commit = 2; */ long getCommit(); /** * repeated .eraftpb.Entry entries = 3; */ java.util.List getEntriesList(); /** * repeated .eraftpb.Entry entries = 3; */ eraftpb.Eraftpb.Entry getEntries(int index); /** * repeated .eraftpb.Entry entries = 3; */ int getEntriesCount(); /** * repeated .eraftpb.Entry entries = 3; */ java.util.List getEntriesOrBuilderList(); /** * repeated .eraftpb.Entry entries = 3; */ eraftpb.Eraftpb.EntryOrBuilder getEntriesOrBuilder( int index); } /** * Protobuf type {@code raft_cmdpb.CommitMergeRequest} */ public static final class CommitMergeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.CommitMergeRequest) CommitMergeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CommitMergeRequest.newBuilder() to construct. private CommitMergeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitMergeRequest() { commit_ = 0L; entries_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommitMergeRequest( 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 (source_ != null) { subBuilder = source_.toBuilder(); } source_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(source_); source_ = subBuilder.buildPartial(); } break; } case 16: { commit_ = input.readUInt64(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { entries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } entries_.add( input.readMessage(eraftpb.Eraftpb.Entry.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)) { entries_ = java.util.Collections.unmodifiableList(entries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.class, org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.Builder.class); } private int bitField0_; public static final int SOURCE_FIELD_NUMBER = 1; private org.tikv.kvproto.Metapb.Region source_; /** * .metapb.Region source = 1; */ public boolean hasSource() { return source_ != null; } /** * .metapb.Region source = 1; */ public org.tikv.kvproto.Metapb.Region getSource() { return source_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : source_; } /** * .metapb.Region source = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getSourceOrBuilder() { return getSource(); } public static final int COMMIT_FIELD_NUMBER = 2; private long commit_; /** * uint64 commit = 2; */ public long getCommit() { return commit_; } public static final int ENTRIES_FIELD_NUMBER = 3; private java.util.List entries_; /** * repeated .eraftpb.Entry entries = 3; */ public java.util.List getEntriesList() { return entries_; } /** * repeated .eraftpb.Entry entries = 3; */ public java.util.List getEntriesOrBuilderList() { return entries_; } /** * repeated .eraftpb.Entry entries = 3; */ public int getEntriesCount() { return entries_.size(); } /** * repeated .eraftpb.Entry entries = 3; */ public eraftpb.Eraftpb.Entry getEntries(int index) { return entries_.get(index); } /** * repeated .eraftpb.Entry entries = 3; */ public eraftpb.Eraftpb.EntryOrBuilder getEntriesOrBuilder( int index) { return entries_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (source_ != null) { output.writeMessage(1, getSource()); } if (commit_ != 0L) { output.writeUInt64(2, commit_); } for (int i = 0; i < entries_.size(); i++) { output.writeMessage(3, entries_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (source_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getSource()); } if (commit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, commit_); } for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, entries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.RaftCmdpb.CommitMergeRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.CommitMergeRequest other = (org.tikv.kvproto.RaftCmdpb.CommitMergeRequest) obj; boolean result = true; result = result && (hasSource() == other.hasSource()); if (hasSource()) { result = result && getSource() .equals(other.getSource()); } result = result && (getCommit() == other.getCommit()); result = result && getEntriesList() .equals(other.getEntriesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } hash = (37 * hash) + COMMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommit()); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest 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.RaftCmdpb.CommitMergeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest 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.RaftCmdpb.CommitMergeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest 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.RaftCmdpb.CommitMergeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest 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.RaftCmdpb.CommitMergeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest 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.RaftCmdpb.CommitMergeRequest 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_cmdpb.CommitMergeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.CommitMergeRequest) org.tikv.kvproto.RaftCmdpb.CommitMergeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.class, org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } public Builder clear() { super.clear(); if (sourceBuilder_ == null) { source_ = null; } else { source_ = null; sourceBuilder_ = null; } commit_ = 0L; if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { entriesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.CommitMergeRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.CommitMergeRequest build() { org.tikv.kvproto.RaftCmdpb.CommitMergeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.CommitMergeRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.CommitMergeRequest result = new org.tikv.kvproto.RaftCmdpb.CommitMergeRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (sourceBuilder_ == null) { result.source_ = source_; } else { result.source_ = sourceBuilder_.build(); } result.commit_ = commit_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000004); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.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.RaftCmdpb.CommitMergeRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.CommitMergeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.CommitMergeRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.getDefaultInstance()) return this; if (other.hasSource()) { mergeSource(other.getSource()); } if (other.getCommit() != 0L) { setCommit(other.getCommit()); } if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000004); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.RaftCmdpb.CommitMergeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.CommitMergeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Metapb.Region source_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> sourceBuilder_; /** * .metapb.Region source = 1; */ public boolean hasSource() { return sourceBuilder_ != null || source_ != null; } /** * .metapb.Region source = 1; */ public org.tikv.kvproto.Metapb.Region getSource() { if (sourceBuilder_ == null) { return source_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : source_; } else { return sourceBuilder_.getMessage(); } } /** * .metapb.Region source = 1; */ public Builder setSource(org.tikv.kvproto.Metapb.Region value) { if (sourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { sourceBuilder_.setMessage(value); } return this; } /** * .metapb.Region source = 1; */ public Builder setSource( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Region source = 1; */ public Builder mergeSource(org.tikv.kvproto.Metapb.Region value) { if (sourceBuilder_ == null) { if (source_ != null) { source_ = org.tikv.kvproto.Metapb.Region.newBuilder(source_).mergeFrom(value).buildPartial(); } else { source_ = value; } onChanged(); } else { sourceBuilder_.mergeFrom(value); } return this; } /** * .metapb.Region source = 1; */ public Builder clearSource() { if (sourceBuilder_ == null) { source_ = null; onChanged(); } else { source_ = null; sourceBuilder_ = null; } return this; } /** * .metapb.Region source = 1; */ public org.tikv.kvproto.Metapb.Region.Builder getSourceBuilder() { onChanged(); return getSourceFieldBuilder().getBuilder(); } /** * .metapb.Region source = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { return sourceBuilder_.getMessageOrBuilder(); } else { return source_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : source_; } } /** * .metapb.Region source = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getSourceFieldBuilder() { if (sourceBuilder_ == null) { sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getSource(), getParentForChildren(), isClean()); source_ = null; } return sourceBuilder_; } private long commit_ ; /** * uint64 commit = 2; */ public long getCommit() { return commit_; } /** * uint64 commit = 2; */ public Builder setCommit(long value) { commit_ = value; onChanged(); return this; } /** * uint64 commit = 2; */ public Builder clearCommit() { commit_ = 0L; onChanged(); return this; } private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< eraftpb.Eraftpb.Entry, eraftpb.Eraftpb.Entry.Builder, eraftpb.Eraftpb.EntryOrBuilder> entriesBuilder_; /** * repeated .eraftpb.Entry entries = 3; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** * repeated .eraftpb.Entry entries = 3; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** * repeated .eraftpb.Entry entries = 3; */ public eraftpb.Eraftpb.Entry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** * repeated .eraftpb.Entry entries = 3; */ public Builder setEntries( int index, eraftpb.Eraftpb.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** * repeated .eraftpb.Entry entries = 3; */ public Builder setEntries( int index, eraftpb.Eraftpb.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .eraftpb.Entry entries = 3; */ public Builder addEntries(eraftpb.Eraftpb.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** * repeated .eraftpb.Entry entries = 3; */ public Builder addEntries( int index, eraftpb.Eraftpb.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** * repeated .eraftpb.Entry entries = 3; */ public Builder addEntries( eraftpb.Eraftpb.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .eraftpb.Entry entries = 3; */ public Builder addEntries( int index, eraftpb.Eraftpb.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .eraftpb.Entry entries = 3; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** * repeated .eraftpb.Entry entries = 3; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** * repeated .eraftpb.Entry entries = 3; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** * repeated .eraftpb.Entry entries = 3; */ public eraftpb.Eraftpb.Entry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** * repeated .eraftpb.Entry entries = 3; */ public eraftpb.Eraftpb.EntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .eraftpb.Entry entries = 3; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** * repeated .eraftpb.Entry entries = 3; */ public eraftpb.Eraftpb.Entry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( eraftpb.Eraftpb.Entry.getDefaultInstance()); } /** * repeated .eraftpb.Entry entries = 3; */ public eraftpb.Eraftpb.Entry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, eraftpb.Eraftpb.Entry.getDefaultInstance()); } /** * repeated .eraftpb.Entry entries = 3; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< eraftpb.Eraftpb.Entry, eraftpb.Eraftpb.Entry.Builder, eraftpb.Eraftpb.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< eraftpb.Eraftpb.Entry, eraftpb.Eraftpb.Entry.Builder, eraftpb.Eraftpb.EntryOrBuilder>( entries_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:raft_cmdpb.CommitMergeRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.CommitMergeRequest) private static final org.tikv.kvproto.RaftCmdpb.CommitMergeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.CommitMergeRequest(); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CommitMergeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitMergeRequest(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.RaftCmdpb.CommitMergeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitMergeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.CommitMergeResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.CommitMergeResponse} */ public static final class CommitMergeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.CommitMergeResponse) CommitMergeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CommitMergeResponse.newBuilder() to construct. private CommitMergeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitMergeResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommitMergeResponse( 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.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.class, org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.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.RaftCmdpb.CommitMergeResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.CommitMergeResponse other = (org.tikv.kvproto.RaftCmdpb.CommitMergeResponse) 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.RaftCmdpb.CommitMergeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse 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.RaftCmdpb.CommitMergeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse 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.RaftCmdpb.CommitMergeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse 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.RaftCmdpb.CommitMergeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse 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.RaftCmdpb.CommitMergeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse 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.RaftCmdpb.CommitMergeResponse 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_cmdpb.CommitMergeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.CommitMergeResponse) org.tikv.kvproto.RaftCmdpb.CommitMergeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.class, org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.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.RaftCmdpb.internal_static_raft_cmdpb_CommitMergeResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.CommitMergeResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.CommitMergeResponse build() { org.tikv.kvproto.RaftCmdpb.CommitMergeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.CommitMergeResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.CommitMergeResponse result = new org.tikv.kvproto.RaftCmdpb.CommitMergeResponse(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.RaftCmdpb.CommitMergeResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.CommitMergeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.CommitMergeResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.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.RaftCmdpb.CommitMergeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.CommitMergeResponse) 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_cmdpb.CommitMergeResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.CommitMergeResponse) private static final org.tikv.kvproto.RaftCmdpb.CommitMergeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.CommitMergeResponse(); } public static org.tikv.kvproto.RaftCmdpb.CommitMergeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CommitMergeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitMergeResponse(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.RaftCmdpb.CommitMergeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollbackMergeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.RollbackMergeRequest) com.google.protobuf.MessageOrBuilder { /** * uint64 commit = 1; */ long getCommit(); } /** * Protobuf type {@code raft_cmdpb.RollbackMergeRequest} */ public static final class RollbackMergeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.RollbackMergeRequest) RollbackMergeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RollbackMergeRequest.newBuilder() to construct. private RollbackMergeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RollbackMergeRequest() { commit_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RollbackMergeRequest( 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: { 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.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.class, org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.Builder.class); } public static final int COMMIT_FIELD_NUMBER = 1; private long commit_; /** * uint64 commit = 1; */ 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 (commit_ != 0L) { output.writeUInt64(1, commit_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (commit_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, 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.RaftCmdpb.RollbackMergeRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest other = (org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest) obj; boolean result = true; 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) + 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.RaftCmdpb.RollbackMergeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest 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.RaftCmdpb.RollbackMergeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest 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.RaftCmdpb.RollbackMergeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest 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.RaftCmdpb.RollbackMergeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest 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.RaftCmdpb.RollbackMergeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest 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.RaftCmdpb.RollbackMergeRequest 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_cmdpb.RollbackMergeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.RollbackMergeRequest) org.tikv.kvproto.RaftCmdpb.RollbackMergeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.class, org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.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(); commit_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest build() { org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest result = new org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest(this); 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.RaftCmdpb.RollbackMergeRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.getDefaultInstance()) return this; 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.RaftCmdpb.RollbackMergeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long commit_ ; /** * uint64 commit = 1; */ public long getCommit() { return commit_; } /** * uint64 commit = 1; */ public Builder setCommit(long value) { commit_ = value; onChanged(); return this; } /** * uint64 commit = 1; */ 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_cmdpb.RollbackMergeRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.RollbackMergeRequest) private static final org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest(); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RollbackMergeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RollbackMergeRequest(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.RaftCmdpb.RollbackMergeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RollbackMergeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.RollbackMergeResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code raft_cmdpb.RollbackMergeResponse} */ public static final class RollbackMergeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.RollbackMergeResponse) RollbackMergeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RollbackMergeResponse.newBuilder() to construct. private RollbackMergeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RollbackMergeResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RollbackMergeResponse( 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.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.class, org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.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.RaftCmdpb.RollbackMergeResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse other = (org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse) 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.RaftCmdpb.RollbackMergeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse 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.RaftCmdpb.RollbackMergeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse 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.RaftCmdpb.RollbackMergeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse 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.RaftCmdpb.RollbackMergeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse 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.RaftCmdpb.RollbackMergeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse 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.RaftCmdpb.RollbackMergeResponse 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_cmdpb.RollbackMergeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.RollbackMergeResponse) org.tikv.kvproto.RaftCmdpb.RollbackMergeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.class, org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.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.RaftCmdpb.internal_static_raft_cmdpb_RollbackMergeResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse build() { org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse result = new org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse(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.RaftCmdpb.RollbackMergeResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.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.RaftCmdpb.RollbackMergeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse) 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_cmdpb.RollbackMergeResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.RollbackMergeResponse) private static final org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse(); } public static org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RollbackMergeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RollbackMergeResponse(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.RaftCmdpb.RollbackMergeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AdminRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.AdminRequest) com.google.protobuf.MessageOrBuilder { /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ int getCmdTypeValue(); /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ org.tikv.kvproto.RaftCmdpb.AdminCmdType getCmdType(); /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ boolean hasChangePeer(); /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getChangePeer(); /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder getChangePeerOrBuilder(); /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated boolean hasSplit(); /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated org.tikv.kvproto.RaftCmdpb.SplitRequest getSplit(); /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder getSplitOrBuilder(); /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ boolean hasCompactLog(); /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ org.tikv.kvproto.RaftCmdpb.CompactLogRequest getCompactLog(); /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ org.tikv.kvproto.RaftCmdpb.CompactLogRequestOrBuilder getCompactLogOrBuilder(); /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ boolean hasTransferLeader(); /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest getTransferLeader(); /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ org.tikv.kvproto.RaftCmdpb.TransferLeaderRequestOrBuilder getTransferLeaderOrBuilder(); /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ boolean hasVerifyHash(); /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ org.tikv.kvproto.RaftCmdpb.VerifyHashRequest getVerifyHash(); /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ org.tikv.kvproto.RaftCmdpb.VerifyHashRequestOrBuilder getVerifyHashOrBuilder(); /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ boolean hasPrepareMerge(); /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest getPrepareMerge(); /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ org.tikv.kvproto.RaftCmdpb.PrepareMergeRequestOrBuilder getPrepareMergeOrBuilder(); /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ boolean hasCommitMerge(); /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ org.tikv.kvproto.RaftCmdpb.CommitMergeRequest getCommitMerge(); /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ org.tikv.kvproto.RaftCmdpb.CommitMergeRequestOrBuilder getCommitMergeOrBuilder(); /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ boolean hasRollbackMerge(); /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest getRollbackMerge(); /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ org.tikv.kvproto.RaftCmdpb.RollbackMergeRequestOrBuilder getRollbackMergeOrBuilder(); /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ boolean hasSplits(); /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ org.tikv.kvproto.RaftCmdpb.BatchSplitRequest getSplits(); /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ org.tikv.kvproto.RaftCmdpb.BatchSplitRequestOrBuilder getSplitsOrBuilder(); /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ boolean hasChangePeerV2(); /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request getChangePeerV2(); /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ org.tikv.kvproto.RaftCmdpb.ChangePeerV2RequestOrBuilder getChangePeerV2OrBuilder(); /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ boolean hasComputeHash(); /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ org.tikv.kvproto.RaftCmdpb.ComputeHashRequest getComputeHash(); /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ org.tikv.kvproto.RaftCmdpb.ComputeHashRequestOrBuilder getComputeHashOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.AdminRequest} */ public static final class AdminRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.AdminRequest) AdminRequestOrBuilder { private static final long serialVersionUID = 0L; // Use AdminRequest.newBuilder() to construct. private AdminRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AdminRequest() { cmdType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AdminRequest( 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(); cmdType_ = rawValue; break; } case 18: { org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder subBuilder = null; if (changePeer_ != null) { subBuilder = changePeer_.toBuilder(); } changePeer_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(changePeer_); changePeer_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder subBuilder = null; if (split_ != null) { subBuilder = split_.toBuilder(); } split_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.SplitRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(split_); split_ = subBuilder.buildPartial(); } break; } case 34: { org.tikv.kvproto.RaftCmdpb.CompactLogRequest.Builder subBuilder = null; if (compactLog_ != null) { subBuilder = compactLog_.toBuilder(); } compactLog_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.CompactLogRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(compactLog_); compactLog_ = subBuilder.buildPartial(); } break; } case 42: { org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.Builder subBuilder = null; if (transferLeader_ != null) { subBuilder = transferLeader_.toBuilder(); } transferLeader_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transferLeader_); transferLeader_ = subBuilder.buildPartial(); } break; } case 50: { org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.Builder subBuilder = null; if (verifyHash_ != null) { subBuilder = verifyHash_.toBuilder(); } verifyHash_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(verifyHash_); verifyHash_ = subBuilder.buildPartial(); } break; } case 58: { org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.Builder subBuilder = null; if (prepareMerge_ != null) { subBuilder = prepareMerge_.toBuilder(); } prepareMerge_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(prepareMerge_); prepareMerge_ = subBuilder.buildPartial(); } break; } case 66: { org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.Builder subBuilder = null; if (commitMerge_ != null) { subBuilder = commitMerge_.toBuilder(); } commitMerge_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(commitMerge_); commitMerge_ = subBuilder.buildPartial(); } break; } case 74: { org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.Builder subBuilder = null; if (rollbackMerge_ != null) { subBuilder = rollbackMerge_.toBuilder(); } rollbackMerge_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rollbackMerge_); rollbackMerge_ = subBuilder.buildPartial(); } break; } case 82: { org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.Builder subBuilder = null; if (splits_ != null) { subBuilder = splits_.toBuilder(); } splits_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(splits_); splits_ = subBuilder.buildPartial(); } break; } case 90: { org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.Builder subBuilder = null; if (changePeerV2_ != null) { subBuilder = changePeerV2_.toBuilder(); } changePeerV2_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(changePeerV2_); changePeerV2_ = subBuilder.buildPartial(); } break; } case 98: { org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.Builder subBuilder = null; if (computeHash_ != null) { subBuilder = computeHash_.toBuilder(); } computeHash_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(computeHash_); computeHash_ = 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.RaftCmdpb.internal_static_raft_cmdpb_AdminRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.AdminRequest.class, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder.class); } public static final int CMD_TYPE_FIELD_NUMBER = 1; private int cmdType_; /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.AdminCmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.AdminCmdType result = org.tikv.kvproto.RaftCmdpb.AdminCmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.AdminCmdType.UNRECOGNIZED : result; } public static final int CHANGE_PEER_FIELD_NUMBER = 2; private org.tikv.kvproto.RaftCmdpb.ChangePeerRequest changePeer_; /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ public boolean hasChangePeer() { return changePeer_ != null; } /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getChangePeer() { return changePeer_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance() : changePeer_; } /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder getChangePeerOrBuilder() { return getChangePeer(); } public static final int SPLIT_FIELD_NUMBER = 3; private org.tikv.kvproto.RaftCmdpb.SplitRequest split_; /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated public boolean hasSplit() { return split_ != null; } /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitRequest getSplit() { return split_ == null ? org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance() : split_; } /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder getSplitOrBuilder() { return getSplit(); } public static final int COMPACT_LOG_FIELD_NUMBER = 4; private org.tikv.kvproto.RaftCmdpb.CompactLogRequest compactLog_; /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ public boolean hasCompactLog() { return compactLog_ != null; } /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ public org.tikv.kvproto.RaftCmdpb.CompactLogRequest getCompactLog() { return compactLog_ == null ? org.tikv.kvproto.RaftCmdpb.CompactLogRequest.getDefaultInstance() : compactLog_; } /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ public org.tikv.kvproto.RaftCmdpb.CompactLogRequestOrBuilder getCompactLogOrBuilder() { return getCompactLog(); } public static final int TRANSFER_LEADER_FIELD_NUMBER = 5; private org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest transferLeader_; /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ public boolean hasTransferLeader() { return transferLeader_ != null; } /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest getTransferLeader() { return transferLeader_ == null ? org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.getDefaultInstance() : transferLeader_; } /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequestOrBuilder getTransferLeaderOrBuilder() { return getTransferLeader(); } public static final int VERIFY_HASH_FIELD_NUMBER = 6; private org.tikv.kvproto.RaftCmdpb.VerifyHashRequest verifyHash_; /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ public boolean hasVerifyHash() { return verifyHash_ != null; } /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ public org.tikv.kvproto.RaftCmdpb.VerifyHashRequest getVerifyHash() { return verifyHash_ == null ? org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.getDefaultInstance() : verifyHash_; } /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ public org.tikv.kvproto.RaftCmdpb.VerifyHashRequestOrBuilder getVerifyHashOrBuilder() { return getVerifyHash(); } public static final int PREPARE_MERGE_FIELD_NUMBER = 7; private org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest prepareMerge_; /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ public boolean hasPrepareMerge() { return prepareMerge_ != null; } /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest getPrepareMerge() { return prepareMerge_ == null ? org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.getDefaultInstance() : prepareMerge_; } /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequestOrBuilder getPrepareMergeOrBuilder() { return getPrepareMerge(); } public static final int COMMIT_MERGE_FIELD_NUMBER = 8; private org.tikv.kvproto.RaftCmdpb.CommitMergeRequest commitMerge_; /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ public boolean hasCommitMerge() { return commitMerge_ != null; } /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ public org.tikv.kvproto.RaftCmdpb.CommitMergeRequest getCommitMerge() { return commitMerge_ == null ? org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.getDefaultInstance() : commitMerge_; } /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ public org.tikv.kvproto.RaftCmdpb.CommitMergeRequestOrBuilder getCommitMergeOrBuilder() { return getCommitMerge(); } public static final int ROLLBACK_MERGE_FIELD_NUMBER = 9; private org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest rollbackMerge_; /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ public boolean hasRollbackMerge() { return rollbackMerge_ != null; } /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest getRollbackMerge() { return rollbackMerge_ == null ? org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.getDefaultInstance() : rollbackMerge_; } /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequestOrBuilder getRollbackMergeOrBuilder() { return getRollbackMerge(); } public static final int SPLITS_FIELD_NUMBER = 10; private org.tikv.kvproto.RaftCmdpb.BatchSplitRequest splits_; /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ public boolean hasSplits() { return splits_ != null; } /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ public org.tikv.kvproto.RaftCmdpb.BatchSplitRequest getSplits() { return splits_ == null ? org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.getDefaultInstance() : splits_; } /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ public org.tikv.kvproto.RaftCmdpb.BatchSplitRequestOrBuilder getSplitsOrBuilder() { return getSplits(); } public static final int CHANGE_PEER_V2_FIELD_NUMBER = 11; private org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request changePeerV2_; /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ public boolean hasChangePeerV2() { return changePeerV2_ != null; } /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request getChangePeerV2() { return changePeerV2_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.getDefaultInstance() : changePeerV2_; } /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerV2RequestOrBuilder getChangePeerV2OrBuilder() { return getChangePeerV2(); } public static final int COMPUTE_HASH_FIELD_NUMBER = 12; private org.tikv.kvproto.RaftCmdpb.ComputeHashRequest computeHash_; /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ public boolean hasComputeHash() { return computeHash_ != null; } /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ public org.tikv.kvproto.RaftCmdpb.ComputeHashRequest getComputeHash() { return computeHash_ == null ? org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.getDefaultInstance() : computeHash_; } /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ public org.tikv.kvproto.RaftCmdpb.ComputeHashRequestOrBuilder getComputeHashOrBuilder() { return getComputeHash(); } 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 (cmdType_ != org.tikv.kvproto.RaftCmdpb.AdminCmdType.InvalidAdmin.getNumber()) { output.writeEnum(1, cmdType_); } if (changePeer_ != null) { output.writeMessage(2, getChangePeer()); } if (split_ != null) { output.writeMessage(3, getSplit()); } if (compactLog_ != null) { output.writeMessage(4, getCompactLog()); } if (transferLeader_ != null) { output.writeMessage(5, getTransferLeader()); } if (verifyHash_ != null) { output.writeMessage(6, getVerifyHash()); } if (prepareMerge_ != null) { output.writeMessage(7, getPrepareMerge()); } if (commitMerge_ != null) { output.writeMessage(8, getCommitMerge()); } if (rollbackMerge_ != null) { output.writeMessage(9, getRollbackMerge()); } if (splits_ != null) { output.writeMessage(10, getSplits()); } if (changePeerV2_ != null) { output.writeMessage(11, getChangePeerV2()); } if (computeHash_ != null) { output.writeMessage(12, getComputeHash()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cmdType_ != org.tikv.kvproto.RaftCmdpb.AdminCmdType.InvalidAdmin.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, cmdType_); } if (changePeer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChangePeer()); } if (split_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSplit()); } if (compactLog_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCompactLog()); } if (transferLeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTransferLeader()); } if (verifyHash_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getVerifyHash()); } if (prepareMerge_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getPrepareMerge()); } if (commitMerge_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCommitMerge()); } if (rollbackMerge_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRollbackMerge()); } if (splits_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getSplits()); } if (changePeerV2_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getChangePeerV2()); } if (computeHash_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getComputeHash()); } 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.RaftCmdpb.AdminRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.AdminRequest other = (org.tikv.kvproto.RaftCmdpb.AdminRequest) obj; boolean result = true; result = result && cmdType_ == other.cmdType_; result = result && (hasChangePeer() == other.hasChangePeer()); if (hasChangePeer()) { result = result && getChangePeer() .equals(other.getChangePeer()); } result = result && (hasSplit() == other.hasSplit()); if (hasSplit()) { result = result && getSplit() .equals(other.getSplit()); } result = result && (hasCompactLog() == other.hasCompactLog()); if (hasCompactLog()) { result = result && getCompactLog() .equals(other.getCompactLog()); } result = result && (hasTransferLeader() == other.hasTransferLeader()); if (hasTransferLeader()) { result = result && getTransferLeader() .equals(other.getTransferLeader()); } result = result && (hasVerifyHash() == other.hasVerifyHash()); if (hasVerifyHash()) { result = result && getVerifyHash() .equals(other.getVerifyHash()); } result = result && (hasPrepareMerge() == other.hasPrepareMerge()); if (hasPrepareMerge()) { result = result && getPrepareMerge() .equals(other.getPrepareMerge()); } result = result && (hasCommitMerge() == other.hasCommitMerge()); if (hasCommitMerge()) { result = result && getCommitMerge() .equals(other.getCommitMerge()); } result = result && (hasRollbackMerge() == other.hasRollbackMerge()); if (hasRollbackMerge()) { result = result && getRollbackMerge() .equals(other.getRollbackMerge()); } result = result && (hasSplits() == other.hasSplits()); if (hasSplits()) { result = result && getSplits() .equals(other.getSplits()); } result = result && (hasChangePeerV2() == other.hasChangePeerV2()); if (hasChangePeerV2()) { result = result && getChangePeerV2() .equals(other.getChangePeerV2()); } result = result && (hasComputeHash() == other.hasComputeHash()); if (hasComputeHash()) { result = result && getComputeHash() .equals(other.getComputeHash()); } 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) + CMD_TYPE_FIELD_NUMBER; hash = (53 * hash) + cmdType_; if (hasChangePeer()) { hash = (37 * hash) + CHANGE_PEER_FIELD_NUMBER; hash = (53 * hash) + getChangePeer().hashCode(); } if (hasSplit()) { hash = (37 * hash) + SPLIT_FIELD_NUMBER; hash = (53 * hash) + getSplit().hashCode(); } if (hasCompactLog()) { hash = (37 * hash) + COMPACT_LOG_FIELD_NUMBER; hash = (53 * hash) + getCompactLog().hashCode(); } if (hasTransferLeader()) { hash = (37 * hash) + TRANSFER_LEADER_FIELD_NUMBER; hash = (53 * hash) + getTransferLeader().hashCode(); } if (hasVerifyHash()) { hash = (37 * hash) + VERIFY_HASH_FIELD_NUMBER; hash = (53 * hash) + getVerifyHash().hashCode(); } if (hasPrepareMerge()) { hash = (37 * hash) + PREPARE_MERGE_FIELD_NUMBER; hash = (53 * hash) + getPrepareMerge().hashCode(); } if (hasCommitMerge()) { hash = (37 * hash) + COMMIT_MERGE_FIELD_NUMBER; hash = (53 * hash) + getCommitMerge().hashCode(); } if (hasRollbackMerge()) { hash = (37 * hash) + ROLLBACK_MERGE_FIELD_NUMBER; hash = (53 * hash) + getRollbackMerge().hashCode(); } if (hasSplits()) { hash = (37 * hash) + SPLITS_FIELD_NUMBER; hash = (53 * hash) + getSplits().hashCode(); } if (hasChangePeerV2()) { hash = (37 * hash) + CHANGE_PEER_V2_FIELD_NUMBER; hash = (53 * hash) + getChangePeerV2().hashCode(); } if (hasComputeHash()) { hash = (37 * hash) + COMPUTE_HASH_FIELD_NUMBER; hash = (53 * hash) + getComputeHash().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.AdminRequest 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.RaftCmdpb.AdminRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.AdminRequest 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.RaftCmdpb.AdminRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.AdminRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.AdminRequest 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.RaftCmdpb.AdminRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.AdminRequest 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.RaftCmdpb.AdminRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.AdminRequest 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.RaftCmdpb.AdminRequest 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_cmdpb.AdminRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.AdminRequest) org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.AdminRequest.class, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.AdminRequest.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(); cmdType_ = 0; if (changePeerBuilder_ == null) { changePeer_ = null; } else { changePeer_ = null; changePeerBuilder_ = null; } if (splitBuilder_ == null) { split_ = null; } else { split_ = null; splitBuilder_ = null; } if (compactLogBuilder_ == null) { compactLog_ = null; } else { compactLog_ = null; compactLogBuilder_ = null; } if (transferLeaderBuilder_ == null) { transferLeader_ = null; } else { transferLeader_ = null; transferLeaderBuilder_ = null; } if (verifyHashBuilder_ == null) { verifyHash_ = null; } else { verifyHash_ = null; verifyHashBuilder_ = null; } if (prepareMergeBuilder_ == null) { prepareMerge_ = null; } else { prepareMerge_ = null; prepareMergeBuilder_ = null; } if (commitMergeBuilder_ == null) { commitMerge_ = null; } else { commitMerge_ = null; commitMergeBuilder_ = null; } if (rollbackMergeBuilder_ == null) { rollbackMerge_ = null; } else { rollbackMerge_ = null; rollbackMergeBuilder_ = null; } if (splitsBuilder_ == null) { splits_ = null; } else { splits_ = null; splitsBuilder_ = null; } if (changePeerV2Builder_ == null) { changePeerV2_ = null; } else { changePeerV2_ = null; changePeerV2Builder_ = null; } if (computeHashBuilder_ == null) { computeHash_ = null; } else { computeHash_ = null; computeHashBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.AdminRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.AdminRequest build() { org.tikv.kvproto.RaftCmdpb.AdminRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.AdminRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.AdminRequest result = new org.tikv.kvproto.RaftCmdpb.AdminRequest(this); result.cmdType_ = cmdType_; if (changePeerBuilder_ == null) { result.changePeer_ = changePeer_; } else { result.changePeer_ = changePeerBuilder_.build(); } if (splitBuilder_ == null) { result.split_ = split_; } else { result.split_ = splitBuilder_.build(); } if (compactLogBuilder_ == null) { result.compactLog_ = compactLog_; } else { result.compactLog_ = compactLogBuilder_.build(); } if (transferLeaderBuilder_ == null) { result.transferLeader_ = transferLeader_; } else { result.transferLeader_ = transferLeaderBuilder_.build(); } if (verifyHashBuilder_ == null) { result.verifyHash_ = verifyHash_; } else { result.verifyHash_ = verifyHashBuilder_.build(); } if (prepareMergeBuilder_ == null) { result.prepareMerge_ = prepareMerge_; } else { result.prepareMerge_ = prepareMergeBuilder_.build(); } if (commitMergeBuilder_ == null) { result.commitMerge_ = commitMerge_; } else { result.commitMerge_ = commitMergeBuilder_.build(); } if (rollbackMergeBuilder_ == null) { result.rollbackMerge_ = rollbackMerge_; } else { result.rollbackMerge_ = rollbackMergeBuilder_.build(); } if (splitsBuilder_ == null) { result.splits_ = splits_; } else { result.splits_ = splitsBuilder_.build(); } if (changePeerV2Builder_ == null) { result.changePeerV2_ = changePeerV2_; } else { result.changePeerV2_ = changePeerV2Builder_.build(); } if (computeHashBuilder_ == null) { result.computeHash_ = computeHash_; } else { result.computeHash_ = computeHashBuilder_.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.RaftCmdpb.AdminRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.AdminRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.AdminRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance()) return this; if (other.cmdType_ != 0) { setCmdTypeValue(other.getCmdTypeValue()); } if (other.hasChangePeer()) { mergeChangePeer(other.getChangePeer()); } if (other.hasSplit()) { mergeSplit(other.getSplit()); } if (other.hasCompactLog()) { mergeCompactLog(other.getCompactLog()); } if (other.hasTransferLeader()) { mergeTransferLeader(other.getTransferLeader()); } if (other.hasVerifyHash()) { mergeVerifyHash(other.getVerifyHash()); } if (other.hasPrepareMerge()) { mergePrepareMerge(other.getPrepareMerge()); } if (other.hasCommitMerge()) { mergeCommitMerge(other.getCommitMerge()); } if (other.hasRollbackMerge()) { mergeRollbackMerge(other.getRollbackMerge()); } if (other.hasSplits()) { mergeSplits(other.getSplits()); } if (other.hasChangePeerV2()) { mergeChangePeerV2(other.getChangePeerV2()); } if (other.hasComputeHash()) { mergeComputeHash(other.getComputeHash()); } 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.RaftCmdpb.AdminRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.AdminRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cmdType_ = 0; /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public Builder setCmdTypeValue(int value) { cmdType_ = value; onChanged(); return this; } /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.AdminCmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.AdminCmdType result = org.tikv.kvproto.RaftCmdpb.AdminCmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.AdminCmdType.UNRECOGNIZED : result; } /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public Builder setCmdType(org.tikv.kvproto.RaftCmdpb.AdminCmdType value) { if (value == null) { throw new NullPointerException(); } cmdType_ = value.getNumber(); onChanged(); return this; } /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public Builder clearCmdType() { cmdType_ = 0; onChanged(); return this; } private org.tikv.kvproto.RaftCmdpb.ChangePeerRequest changePeer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerRequest, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder> changePeerBuilder_; /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ public boolean hasChangePeer() { return changePeerBuilder_ != null || changePeer_ != null; } /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest getChangePeer() { if (changePeerBuilder_ == null) { return changePeer_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance() : changePeer_; } else { return changePeerBuilder_.getMessage(); } } /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ public Builder setChangePeer(org.tikv.kvproto.RaftCmdpb.ChangePeerRequest value) { if (changePeerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } changePeer_ = value; onChanged(); } else { changePeerBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ public Builder setChangePeer( org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder builderForValue) { if (changePeerBuilder_ == null) { changePeer_ = builderForValue.build(); onChanged(); } else { changePeerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ public Builder mergeChangePeer(org.tikv.kvproto.RaftCmdpb.ChangePeerRequest value) { if (changePeerBuilder_ == null) { if (changePeer_ != null) { changePeer_ = org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.newBuilder(changePeer_).mergeFrom(value).buildPartial(); } else { changePeer_ = value; } onChanged(); } else { changePeerBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ public Builder clearChangePeer() { if (changePeerBuilder_ == null) { changePeer_ = null; onChanged(); } else { changePeer_ = null; changePeerBuilder_ = null; } return this; } /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder getChangePeerBuilder() { onChanged(); return getChangePeerFieldBuilder().getBuilder(); } /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder getChangePeerOrBuilder() { if (changePeerBuilder_ != null) { return changePeerBuilder_.getMessageOrBuilder(); } else { return changePeer_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.getDefaultInstance() : changePeer_; } } /** * .raft_cmdpb.ChangePeerRequest change_peer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerRequest, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder> getChangePeerFieldBuilder() { if (changePeerBuilder_ == null) { changePeerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerRequest, org.tikv.kvproto.RaftCmdpb.ChangePeerRequest.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerRequestOrBuilder>( getChangePeer(), getParentForChildren(), isClean()); changePeer_ = null; } return changePeerBuilder_; } private org.tikv.kvproto.RaftCmdpb.SplitRequest split_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SplitRequest, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder> splitBuilder_; /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated public boolean hasSplit() { return splitBuilder_ != null || split_ != null; } /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitRequest getSplit() { if (splitBuilder_ == null) { return split_ == null ? org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance() : split_; } else { return splitBuilder_.getMessage(); } } /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder setSplit(org.tikv.kvproto.RaftCmdpb.SplitRequest value) { if (splitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } split_ = value; onChanged(); } else { splitBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder setSplit( org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder builderForValue) { if (splitBuilder_ == null) { split_ = builderForValue.build(); onChanged(); } else { splitBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeSplit(org.tikv.kvproto.RaftCmdpb.SplitRequest value) { if (splitBuilder_ == null) { if (split_ != null) { split_ = org.tikv.kvproto.RaftCmdpb.SplitRequest.newBuilder(split_).mergeFrom(value).buildPartial(); } else { split_ = value; } onChanged(); } else { splitBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder clearSplit() { if (splitBuilder_ == null) { split_ = null; onChanged(); } else { split_ = null; splitBuilder_ = null; } return this; } /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder getSplitBuilder() { onChanged(); return getSplitFieldBuilder().getBuilder(); } /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder getSplitOrBuilder() { if (splitBuilder_ != null) { return splitBuilder_.getMessageOrBuilder(); } else { return split_ == null ? org.tikv.kvproto.RaftCmdpb.SplitRequest.getDefaultInstance() : split_; } } /** * .raft_cmdpb.SplitRequest split = 3 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SplitRequest, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder> getSplitFieldBuilder() { if (splitBuilder_ == null) { splitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SplitRequest, org.tikv.kvproto.RaftCmdpb.SplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.SplitRequestOrBuilder>( getSplit(), getParentForChildren(), isClean()); split_ = null; } return splitBuilder_; } private org.tikv.kvproto.RaftCmdpb.CompactLogRequest compactLog_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CompactLogRequest, org.tikv.kvproto.RaftCmdpb.CompactLogRequest.Builder, org.tikv.kvproto.RaftCmdpb.CompactLogRequestOrBuilder> compactLogBuilder_; /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ public boolean hasCompactLog() { return compactLogBuilder_ != null || compactLog_ != null; } /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ public org.tikv.kvproto.RaftCmdpb.CompactLogRequest getCompactLog() { if (compactLogBuilder_ == null) { return compactLog_ == null ? org.tikv.kvproto.RaftCmdpb.CompactLogRequest.getDefaultInstance() : compactLog_; } else { return compactLogBuilder_.getMessage(); } } /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ public Builder setCompactLog(org.tikv.kvproto.RaftCmdpb.CompactLogRequest value) { if (compactLogBuilder_ == null) { if (value == null) { throw new NullPointerException(); } compactLog_ = value; onChanged(); } else { compactLogBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ public Builder setCompactLog( org.tikv.kvproto.RaftCmdpb.CompactLogRequest.Builder builderForValue) { if (compactLogBuilder_ == null) { compactLog_ = builderForValue.build(); onChanged(); } else { compactLogBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ public Builder mergeCompactLog(org.tikv.kvproto.RaftCmdpb.CompactLogRequest value) { if (compactLogBuilder_ == null) { if (compactLog_ != null) { compactLog_ = org.tikv.kvproto.RaftCmdpb.CompactLogRequest.newBuilder(compactLog_).mergeFrom(value).buildPartial(); } else { compactLog_ = value; } onChanged(); } else { compactLogBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ public Builder clearCompactLog() { if (compactLogBuilder_ == null) { compactLog_ = null; onChanged(); } else { compactLog_ = null; compactLogBuilder_ = null; } return this; } /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ public org.tikv.kvproto.RaftCmdpb.CompactLogRequest.Builder getCompactLogBuilder() { onChanged(); return getCompactLogFieldBuilder().getBuilder(); } /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ public org.tikv.kvproto.RaftCmdpb.CompactLogRequestOrBuilder getCompactLogOrBuilder() { if (compactLogBuilder_ != null) { return compactLogBuilder_.getMessageOrBuilder(); } else { return compactLog_ == null ? org.tikv.kvproto.RaftCmdpb.CompactLogRequest.getDefaultInstance() : compactLog_; } } /** * .raft_cmdpb.CompactLogRequest compact_log = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CompactLogRequest, org.tikv.kvproto.RaftCmdpb.CompactLogRequest.Builder, org.tikv.kvproto.RaftCmdpb.CompactLogRequestOrBuilder> getCompactLogFieldBuilder() { if (compactLogBuilder_ == null) { compactLogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CompactLogRequest, org.tikv.kvproto.RaftCmdpb.CompactLogRequest.Builder, org.tikv.kvproto.RaftCmdpb.CompactLogRequestOrBuilder>( getCompactLog(), getParentForChildren(), isClean()); compactLog_ = null; } return compactLogBuilder_; } private org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest transferLeader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest, org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.Builder, org.tikv.kvproto.RaftCmdpb.TransferLeaderRequestOrBuilder> transferLeaderBuilder_; /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ public boolean hasTransferLeader() { return transferLeaderBuilder_ != null || transferLeader_ != null; } /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest getTransferLeader() { if (transferLeaderBuilder_ == null) { return transferLeader_ == null ? org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.getDefaultInstance() : transferLeader_; } else { return transferLeaderBuilder_.getMessage(); } } /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ public Builder setTransferLeader(org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest value) { if (transferLeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transferLeader_ = value; onChanged(); } else { transferLeaderBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ public Builder setTransferLeader( org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.Builder builderForValue) { if (transferLeaderBuilder_ == null) { transferLeader_ = builderForValue.build(); onChanged(); } else { transferLeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ public Builder mergeTransferLeader(org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest value) { if (transferLeaderBuilder_ == null) { if (transferLeader_ != null) { transferLeader_ = org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.newBuilder(transferLeader_).mergeFrom(value).buildPartial(); } else { transferLeader_ = value; } onChanged(); } else { transferLeaderBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ public Builder clearTransferLeader() { if (transferLeaderBuilder_ == null) { transferLeader_ = null; onChanged(); } else { transferLeader_ = null; transferLeaderBuilder_ = null; } return this; } /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.Builder getTransferLeaderBuilder() { onChanged(); return getTransferLeaderFieldBuilder().getBuilder(); } /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ public org.tikv.kvproto.RaftCmdpb.TransferLeaderRequestOrBuilder getTransferLeaderOrBuilder() { if (transferLeaderBuilder_ != null) { return transferLeaderBuilder_.getMessageOrBuilder(); } else { return transferLeader_ == null ? org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.getDefaultInstance() : transferLeader_; } } /** * .raft_cmdpb.TransferLeaderRequest transfer_leader = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest, org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.Builder, org.tikv.kvproto.RaftCmdpb.TransferLeaderRequestOrBuilder> getTransferLeaderFieldBuilder() { if (transferLeaderBuilder_ == null) { transferLeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest, org.tikv.kvproto.RaftCmdpb.TransferLeaderRequest.Builder, org.tikv.kvproto.RaftCmdpb.TransferLeaderRequestOrBuilder>( getTransferLeader(), getParentForChildren(), isClean()); transferLeader_ = null; } return transferLeaderBuilder_; } private org.tikv.kvproto.RaftCmdpb.VerifyHashRequest verifyHash_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.VerifyHashRequest, org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.Builder, org.tikv.kvproto.RaftCmdpb.VerifyHashRequestOrBuilder> verifyHashBuilder_; /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ public boolean hasVerifyHash() { return verifyHashBuilder_ != null || verifyHash_ != null; } /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ public org.tikv.kvproto.RaftCmdpb.VerifyHashRequest getVerifyHash() { if (verifyHashBuilder_ == null) { return verifyHash_ == null ? org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.getDefaultInstance() : verifyHash_; } else { return verifyHashBuilder_.getMessage(); } } /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ public Builder setVerifyHash(org.tikv.kvproto.RaftCmdpb.VerifyHashRequest value) { if (verifyHashBuilder_ == null) { if (value == null) { throw new NullPointerException(); } verifyHash_ = value; onChanged(); } else { verifyHashBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ public Builder setVerifyHash( org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.Builder builderForValue) { if (verifyHashBuilder_ == null) { verifyHash_ = builderForValue.build(); onChanged(); } else { verifyHashBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ public Builder mergeVerifyHash(org.tikv.kvproto.RaftCmdpb.VerifyHashRequest value) { if (verifyHashBuilder_ == null) { if (verifyHash_ != null) { verifyHash_ = org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.newBuilder(verifyHash_).mergeFrom(value).buildPartial(); } else { verifyHash_ = value; } onChanged(); } else { verifyHashBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ public Builder clearVerifyHash() { if (verifyHashBuilder_ == null) { verifyHash_ = null; onChanged(); } else { verifyHash_ = null; verifyHashBuilder_ = null; } return this; } /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ public org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.Builder getVerifyHashBuilder() { onChanged(); return getVerifyHashFieldBuilder().getBuilder(); } /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ public org.tikv.kvproto.RaftCmdpb.VerifyHashRequestOrBuilder getVerifyHashOrBuilder() { if (verifyHashBuilder_ != null) { return verifyHashBuilder_.getMessageOrBuilder(); } else { return verifyHash_ == null ? org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.getDefaultInstance() : verifyHash_; } } /** * .raft_cmdpb.VerifyHashRequest verify_hash = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.VerifyHashRequest, org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.Builder, org.tikv.kvproto.RaftCmdpb.VerifyHashRequestOrBuilder> getVerifyHashFieldBuilder() { if (verifyHashBuilder_ == null) { verifyHashBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.VerifyHashRequest, org.tikv.kvproto.RaftCmdpb.VerifyHashRequest.Builder, org.tikv.kvproto.RaftCmdpb.VerifyHashRequestOrBuilder>( getVerifyHash(), getParentForChildren(), isClean()); verifyHash_ = null; } return verifyHashBuilder_; } private org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest prepareMerge_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest, org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.Builder, org.tikv.kvproto.RaftCmdpb.PrepareMergeRequestOrBuilder> prepareMergeBuilder_; /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ public boolean hasPrepareMerge() { return prepareMergeBuilder_ != null || prepareMerge_ != null; } /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest getPrepareMerge() { if (prepareMergeBuilder_ == null) { return prepareMerge_ == null ? org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.getDefaultInstance() : prepareMerge_; } else { return prepareMergeBuilder_.getMessage(); } } /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ public Builder setPrepareMerge(org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest value) { if (prepareMergeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } prepareMerge_ = value; onChanged(); } else { prepareMergeBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ public Builder setPrepareMerge( org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.Builder builderForValue) { if (prepareMergeBuilder_ == null) { prepareMerge_ = builderForValue.build(); onChanged(); } else { prepareMergeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ public Builder mergePrepareMerge(org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest value) { if (prepareMergeBuilder_ == null) { if (prepareMerge_ != null) { prepareMerge_ = org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.newBuilder(prepareMerge_).mergeFrom(value).buildPartial(); } else { prepareMerge_ = value; } onChanged(); } else { prepareMergeBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ public Builder clearPrepareMerge() { if (prepareMergeBuilder_ == null) { prepareMerge_ = null; onChanged(); } else { prepareMerge_ = null; prepareMergeBuilder_ = null; } return this; } /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.Builder getPrepareMergeBuilder() { onChanged(); return getPrepareMergeFieldBuilder().getBuilder(); } /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ public org.tikv.kvproto.RaftCmdpb.PrepareMergeRequestOrBuilder getPrepareMergeOrBuilder() { if (prepareMergeBuilder_ != null) { return prepareMergeBuilder_.getMessageOrBuilder(); } else { return prepareMerge_ == null ? org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.getDefaultInstance() : prepareMerge_; } } /** * .raft_cmdpb.PrepareMergeRequest prepare_merge = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest, org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.Builder, org.tikv.kvproto.RaftCmdpb.PrepareMergeRequestOrBuilder> getPrepareMergeFieldBuilder() { if (prepareMergeBuilder_ == null) { prepareMergeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest, org.tikv.kvproto.RaftCmdpb.PrepareMergeRequest.Builder, org.tikv.kvproto.RaftCmdpb.PrepareMergeRequestOrBuilder>( getPrepareMerge(), getParentForChildren(), isClean()); prepareMerge_ = null; } return prepareMergeBuilder_; } private org.tikv.kvproto.RaftCmdpb.CommitMergeRequest commitMerge_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CommitMergeRequest, org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.Builder, org.tikv.kvproto.RaftCmdpb.CommitMergeRequestOrBuilder> commitMergeBuilder_; /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ public boolean hasCommitMerge() { return commitMergeBuilder_ != null || commitMerge_ != null; } /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ public org.tikv.kvproto.RaftCmdpb.CommitMergeRequest getCommitMerge() { if (commitMergeBuilder_ == null) { return commitMerge_ == null ? org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.getDefaultInstance() : commitMerge_; } else { return commitMergeBuilder_.getMessage(); } } /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ public Builder setCommitMerge(org.tikv.kvproto.RaftCmdpb.CommitMergeRequest value) { if (commitMergeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commitMerge_ = value; onChanged(); } else { commitMergeBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ public Builder setCommitMerge( org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.Builder builderForValue) { if (commitMergeBuilder_ == null) { commitMerge_ = builderForValue.build(); onChanged(); } else { commitMergeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ public Builder mergeCommitMerge(org.tikv.kvproto.RaftCmdpb.CommitMergeRequest value) { if (commitMergeBuilder_ == null) { if (commitMerge_ != null) { commitMerge_ = org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.newBuilder(commitMerge_).mergeFrom(value).buildPartial(); } else { commitMerge_ = value; } onChanged(); } else { commitMergeBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ public Builder clearCommitMerge() { if (commitMergeBuilder_ == null) { commitMerge_ = null; onChanged(); } else { commitMerge_ = null; commitMergeBuilder_ = null; } return this; } /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ public org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.Builder getCommitMergeBuilder() { onChanged(); return getCommitMergeFieldBuilder().getBuilder(); } /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ public org.tikv.kvproto.RaftCmdpb.CommitMergeRequestOrBuilder getCommitMergeOrBuilder() { if (commitMergeBuilder_ != null) { return commitMergeBuilder_.getMessageOrBuilder(); } else { return commitMerge_ == null ? org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.getDefaultInstance() : commitMerge_; } } /** * .raft_cmdpb.CommitMergeRequest commit_merge = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CommitMergeRequest, org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.Builder, org.tikv.kvproto.RaftCmdpb.CommitMergeRequestOrBuilder> getCommitMergeFieldBuilder() { if (commitMergeBuilder_ == null) { commitMergeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CommitMergeRequest, org.tikv.kvproto.RaftCmdpb.CommitMergeRequest.Builder, org.tikv.kvproto.RaftCmdpb.CommitMergeRequestOrBuilder>( getCommitMerge(), getParentForChildren(), isClean()); commitMerge_ = null; } return commitMergeBuilder_; } private org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest rollbackMerge_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest, org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.Builder, org.tikv.kvproto.RaftCmdpb.RollbackMergeRequestOrBuilder> rollbackMergeBuilder_; /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ public boolean hasRollbackMerge() { return rollbackMergeBuilder_ != null || rollbackMerge_ != null; } /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest getRollbackMerge() { if (rollbackMergeBuilder_ == null) { return rollbackMerge_ == null ? org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.getDefaultInstance() : rollbackMerge_; } else { return rollbackMergeBuilder_.getMessage(); } } /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ public Builder setRollbackMerge(org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest value) { if (rollbackMergeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rollbackMerge_ = value; onChanged(); } else { rollbackMergeBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ public Builder setRollbackMerge( org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.Builder builderForValue) { if (rollbackMergeBuilder_ == null) { rollbackMerge_ = builderForValue.build(); onChanged(); } else { rollbackMergeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ public Builder mergeRollbackMerge(org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest value) { if (rollbackMergeBuilder_ == null) { if (rollbackMerge_ != null) { rollbackMerge_ = org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.newBuilder(rollbackMerge_).mergeFrom(value).buildPartial(); } else { rollbackMerge_ = value; } onChanged(); } else { rollbackMergeBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ public Builder clearRollbackMerge() { if (rollbackMergeBuilder_ == null) { rollbackMerge_ = null; onChanged(); } else { rollbackMerge_ = null; rollbackMergeBuilder_ = null; } return this; } /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.Builder getRollbackMergeBuilder() { onChanged(); return getRollbackMergeFieldBuilder().getBuilder(); } /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ public org.tikv.kvproto.RaftCmdpb.RollbackMergeRequestOrBuilder getRollbackMergeOrBuilder() { if (rollbackMergeBuilder_ != null) { return rollbackMergeBuilder_.getMessageOrBuilder(); } else { return rollbackMerge_ == null ? org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.getDefaultInstance() : rollbackMerge_; } } /** * .raft_cmdpb.RollbackMergeRequest rollback_merge = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest, org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.Builder, org.tikv.kvproto.RaftCmdpb.RollbackMergeRequestOrBuilder> getRollbackMergeFieldBuilder() { if (rollbackMergeBuilder_ == null) { rollbackMergeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest, org.tikv.kvproto.RaftCmdpb.RollbackMergeRequest.Builder, org.tikv.kvproto.RaftCmdpb.RollbackMergeRequestOrBuilder>( getRollbackMerge(), getParentForChildren(), isClean()); rollbackMerge_ = null; } return rollbackMergeBuilder_; } private org.tikv.kvproto.RaftCmdpb.BatchSplitRequest splits_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.BatchSplitRequest, org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.BatchSplitRequestOrBuilder> splitsBuilder_; /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ public boolean hasSplits() { return splitsBuilder_ != null || splits_ != null; } /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ public org.tikv.kvproto.RaftCmdpb.BatchSplitRequest getSplits() { if (splitsBuilder_ == null) { return splits_ == null ? org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.getDefaultInstance() : splits_; } else { return splitsBuilder_.getMessage(); } } /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ public Builder setSplits(org.tikv.kvproto.RaftCmdpb.BatchSplitRequest value) { if (splitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } splits_ = value; onChanged(); } else { splitsBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ public Builder setSplits( org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.Builder builderForValue) { if (splitsBuilder_ == null) { splits_ = builderForValue.build(); onChanged(); } else { splitsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ public Builder mergeSplits(org.tikv.kvproto.RaftCmdpb.BatchSplitRequest value) { if (splitsBuilder_ == null) { if (splits_ != null) { splits_ = org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.newBuilder(splits_).mergeFrom(value).buildPartial(); } else { splits_ = value; } onChanged(); } else { splitsBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ public Builder clearSplits() { if (splitsBuilder_ == null) { splits_ = null; onChanged(); } else { splits_ = null; splitsBuilder_ = null; } return this; } /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ public org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.Builder getSplitsBuilder() { onChanged(); return getSplitsFieldBuilder().getBuilder(); } /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ public org.tikv.kvproto.RaftCmdpb.BatchSplitRequestOrBuilder getSplitsOrBuilder() { if (splitsBuilder_ != null) { return splitsBuilder_.getMessageOrBuilder(); } else { return splits_ == null ? org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.getDefaultInstance() : splits_; } } /** * .raft_cmdpb.BatchSplitRequest splits = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.BatchSplitRequest, org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.BatchSplitRequestOrBuilder> getSplitsFieldBuilder() { if (splitsBuilder_ == null) { splitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.BatchSplitRequest, org.tikv.kvproto.RaftCmdpb.BatchSplitRequest.Builder, org.tikv.kvproto.RaftCmdpb.BatchSplitRequestOrBuilder>( getSplits(), getParentForChildren(), isClean()); splits_ = null; } return splitsBuilder_; } private org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request changePeerV2_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerV2RequestOrBuilder> changePeerV2Builder_; /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ public boolean hasChangePeerV2() { return changePeerV2Builder_ != null || changePeerV2_ != null; } /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request getChangePeerV2() { if (changePeerV2Builder_ == null) { return changePeerV2_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.getDefaultInstance() : changePeerV2_; } else { return changePeerV2Builder_.getMessage(); } } /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ public Builder setChangePeerV2(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request value) { if (changePeerV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } changePeerV2_ = value; onChanged(); } else { changePeerV2Builder_.setMessage(value); } return this; } /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ public Builder setChangePeerV2( org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.Builder builderForValue) { if (changePeerV2Builder_ == null) { changePeerV2_ = builderForValue.build(); onChanged(); } else { changePeerV2Builder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ public Builder mergeChangePeerV2(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request value) { if (changePeerV2Builder_ == null) { if (changePeerV2_ != null) { changePeerV2_ = org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.newBuilder(changePeerV2_).mergeFrom(value).buildPartial(); } else { changePeerV2_ = value; } onChanged(); } else { changePeerV2Builder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ public Builder clearChangePeerV2() { if (changePeerV2Builder_ == null) { changePeerV2_ = null; onChanged(); } else { changePeerV2_ = null; changePeerV2Builder_ = null; } return this; } /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.Builder getChangePeerV2Builder() { onChanged(); return getChangePeerV2FieldBuilder().getBuilder(); } /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerV2RequestOrBuilder getChangePeerV2OrBuilder() { if (changePeerV2Builder_ != null) { return changePeerV2Builder_.getMessageOrBuilder(); } else { return changePeerV2_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.getDefaultInstance() : changePeerV2_; } } /** * .raft_cmdpb.ChangePeerV2Request change_peer_v2 = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerV2RequestOrBuilder> getChangePeerV2FieldBuilder() { if (changePeerV2Builder_ == null) { changePeerV2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Request.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerV2RequestOrBuilder>( getChangePeerV2(), getParentForChildren(), isClean()); changePeerV2_ = null; } return changePeerV2Builder_; } private org.tikv.kvproto.RaftCmdpb.ComputeHashRequest computeHash_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ComputeHashRequest, org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.Builder, org.tikv.kvproto.RaftCmdpb.ComputeHashRequestOrBuilder> computeHashBuilder_; /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ public boolean hasComputeHash() { return computeHashBuilder_ != null || computeHash_ != null; } /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ public org.tikv.kvproto.RaftCmdpb.ComputeHashRequest getComputeHash() { if (computeHashBuilder_ == null) { return computeHash_ == null ? org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.getDefaultInstance() : computeHash_; } else { return computeHashBuilder_.getMessage(); } } /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ public Builder setComputeHash(org.tikv.kvproto.RaftCmdpb.ComputeHashRequest value) { if (computeHashBuilder_ == null) { if (value == null) { throw new NullPointerException(); } computeHash_ = value; onChanged(); } else { computeHashBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ public Builder setComputeHash( org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.Builder builderForValue) { if (computeHashBuilder_ == null) { computeHash_ = builderForValue.build(); onChanged(); } else { computeHashBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ public Builder mergeComputeHash(org.tikv.kvproto.RaftCmdpb.ComputeHashRequest value) { if (computeHashBuilder_ == null) { if (computeHash_ != null) { computeHash_ = org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.newBuilder(computeHash_).mergeFrom(value).buildPartial(); } else { computeHash_ = value; } onChanged(); } else { computeHashBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ public Builder clearComputeHash() { if (computeHashBuilder_ == null) { computeHash_ = null; onChanged(); } else { computeHash_ = null; computeHashBuilder_ = null; } return this; } /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ public org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.Builder getComputeHashBuilder() { onChanged(); return getComputeHashFieldBuilder().getBuilder(); } /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ public org.tikv.kvproto.RaftCmdpb.ComputeHashRequestOrBuilder getComputeHashOrBuilder() { if (computeHashBuilder_ != null) { return computeHashBuilder_.getMessageOrBuilder(); } else { return computeHash_ == null ? org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.getDefaultInstance() : computeHash_; } } /** * .raft_cmdpb.ComputeHashRequest compute_hash = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ComputeHashRequest, org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.Builder, org.tikv.kvproto.RaftCmdpb.ComputeHashRequestOrBuilder> getComputeHashFieldBuilder() { if (computeHashBuilder_ == null) { computeHashBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ComputeHashRequest, org.tikv.kvproto.RaftCmdpb.ComputeHashRequest.Builder, org.tikv.kvproto.RaftCmdpb.ComputeHashRequestOrBuilder>( getComputeHash(), getParentForChildren(), isClean()); computeHash_ = null; } return computeHashBuilder_; } 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_cmdpb.AdminRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.AdminRequest) private static final org.tikv.kvproto.RaftCmdpb.AdminRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.AdminRequest(); } public static org.tikv.kvproto.RaftCmdpb.AdminRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AdminRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AdminRequest(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.RaftCmdpb.AdminRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AdminResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.AdminResponse) com.google.protobuf.MessageOrBuilder { /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ int getCmdTypeValue(); /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ org.tikv.kvproto.RaftCmdpb.AdminCmdType getCmdType(); /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ boolean hasChangePeer(); /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ org.tikv.kvproto.RaftCmdpb.ChangePeerResponse getChangePeer(); /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ org.tikv.kvproto.RaftCmdpb.ChangePeerResponseOrBuilder getChangePeerOrBuilder(); /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated boolean hasSplit(); /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated org.tikv.kvproto.RaftCmdpb.SplitResponse getSplit(); /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated org.tikv.kvproto.RaftCmdpb.SplitResponseOrBuilder getSplitOrBuilder(); /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ boolean hasCompactLog(); /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ org.tikv.kvproto.RaftCmdpb.CompactLogResponse getCompactLog(); /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ org.tikv.kvproto.RaftCmdpb.CompactLogResponseOrBuilder getCompactLogOrBuilder(); /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ boolean hasTransferLeader(); /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse getTransferLeader(); /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ org.tikv.kvproto.RaftCmdpb.TransferLeaderResponseOrBuilder getTransferLeaderOrBuilder(); /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ boolean hasVerifyHash(); /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ org.tikv.kvproto.RaftCmdpb.VerifyHashResponse getVerifyHash(); /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ org.tikv.kvproto.RaftCmdpb.VerifyHashResponseOrBuilder getVerifyHashOrBuilder(); /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ boolean hasPrepareMerge(); /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse getPrepareMerge(); /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ org.tikv.kvproto.RaftCmdpb.PrepareMergeResponseOrBuilder getPrepareMergeOrBuilder(); /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ boolean hasCommitMerge(); /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ org.tikv.kvproto.RaftCmdpb.CommitMergeResponse getCommitMerge(); /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ org.tikv.kvproto.RaftCmdpb.CommitMergeResponseOrBuilder getCommitMergeOrBuilder(); /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ boolean hasRollbackMerge(); /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse getRollbackMerge(); /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ org.tikv.kvproto.RaftCmdpb.RollbackMergeResponseOrBuilder getRollbackMergeOrBuilder(); /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ boolean hasSplits(); /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ org.tikv.kvproto.RaftCmdpb.BatchSplitResponse getSplits(); /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ org.tikv.kvproto.RaftCmdpb.BatchSplitResponseOrBuilder getSplitsOrBuilder(); /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ boolean hasChangePeerV2(); /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response getChangePeerV2(); /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ org.tikv.kvproto.RaftCmdpb.ChangePeerV2ResponseOrBuilder getChangePeerV2OrBuilder(); } /** * Protobuf type {@code raft_cmdpb.AdminResponse} */ public static final class AdminResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.AdminResponse) AdminResponseOrBuilder { private static final long serialVersionUID = 0L; // Use AdminResponse.newBuilder() to construct. private AdminResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AdminResponse() { cmdType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AdminResponse( 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(); cmdType_ = rawValue; break; } case 18: { org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.Builder subBuilder = null; if (changePeer_ != null) { subBuilder = changePeer_.toBuilder(); } changePeer_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(changePeer_); changePeer_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.RaftCmdpb.SplitResponse.Builder subBuilder = null; if (split_ != null) { subBuilder = split_.toBuilder(); } split_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.SplitResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(split_); split_ = subBuilder.buildPartial(); } break; } case 34: { org.tikv.kvproto.RaftCmdpb.CompactLogResponse.Builder subBuilder = null; if (compactLog_ != null) { subBuilder = compactLog_.toBuilder(); } compactLog_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.CompactLogResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(compactLog_); compactLog_ = subBuilder.buildPartial(); } break; } case 42: { org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.Builder subBuilder = null; if (transferLeader_ != null) { subBuilder = transferLeader_.toBuilder(); } transferLeader_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transferLeader_); transferLeader_ = subBuilder.buildPartial(); } break; } case 50: { org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.Builder subBuilder = null; if (verifyHash_ != null) { subBuilder = verifyHash_.toBuilder(); } verifyHash_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(verifyHash_); verifyHash_ = subBuilder.buildPartial(); } break; } case 58: { org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.Builder subBuilder = null; if (prepareMerge_ != null) { subBuilder = prepareMerge_.toBuilder(); } prepareMerge_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(prepareMerge_); prepareMerge_ = subBuilder.buildPartial(); } break; } case 66: { org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.Builder subBuilder = null; if (commitMerge_ != null) { subBuilder = commitMerge_.toBuilder(); } commitMerge_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(commitMerge_); commitMerge_ = subBuilder.buildPartial(); } break; } case 74: { org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.Builder subBuilder = null; if (rollbackMerge_ != null) { subBuilder = rollbackMerge_.toBuilder(); } rollbackMerge_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(rollbackMerge_); rollbackMerge_ = subBuilder.buildPartial(); } break; } case 82: { org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.Builder subBuilder = null; if (splits_ != null) { subBuilder = splits_.toBuilder(); } splits_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(splits_); splits_ = subBuilder.buildPartial(); } break; } case 90: { org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.Builder subBuilder = null; if (changePeerV2_ != null) { subBuilder = changePeerV2_.toBuilder(); } changePeerV2_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(changePeerV2_); changePeerV2_ = 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.RaftCmdpb.internal_static_raft_cmdpb_AdminResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.AdminResponse.class, org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder.class); } public static final int CMD_TYPE_FIELD_NUMBER = 1; private int cmdType_; /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.AdminCmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.AdminCmdType result = org.tikv.kvproto.RaftCmdpb.AdminCmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.AdminCmdType.UNRECOGNIZED : result; } public static final int CHANGE_PEER_FIELD_NUMBER = 2; private org.tikv.kvproto.RaftCmdpb.ChangePeerResponse changePeer_; /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ public boolean hasChangePeer() { return changePeer_ != null; } /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerResponse getChangePeer() { return changePeer_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.getDefaultInstance() : changePeer_; } /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerResponseOrBuilder getChangePeerOrBuilder() { return getChangePeer(); } public static final int SPLIT_FIELD_NUMBER = 3; private org.tikv.kvproto.RaftCmdpb.SplitResponse split_; /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated public boolean hasSplit() { return split_ != null; } /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitResponse getSplit() { return split_ == null ? org.tikv.kvproto.RaftCmdpb.SplitResponse.getDefaultInstance() : split_; } /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitResponseOrBuilder getSplitOrBuilder() { return getSplit(); } public static final int COMPACT_LOG_FIELD_NUMBER = 4; private org.tikv.kvproto.RaftCmdpb.CompactLogResponse compactLog_; /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ public boolean hasCompactLog() { return compactLog_ != null; } /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ public org.tikv.kvproto.RaftCmdpb.CompactLogResponse getCompactLog() { return compactLog_ == null ? org.tikv.kvproto.RaftCmdpb.CompactLogResponse.getDefaultInstance() : compactLog_; } /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ public org.tikv.kvproto.RaftCmdpb.CompactLogResponseOrBuilder getCompactLogOrBuilder() { return getCompactLog(); } public static final int TRANSFER_LEADER_FIELD_NUMBER = 5; private org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse transferLeader_; /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ public boolean hasTransferLeader() { return transferLeader_ != null; } /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse getTransferLeader() { return transferLeader_ == null ? org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.getDefaultInstance() : transferLeader_; } /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponseOrBuilder getTransferLeaderOrBuilder() { return getTransferLeader(); } public static final int VERIFY_HASH_FIELD_NUMBER = 6; private org.tikv.kvproto.RaftCmdpb.VerifyHashResponse verifyHash_; /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ public boolean hasVerifyHash() { return verifyHash_ != null; } /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ public org.tikv.kvproto.RaftCmdpb.VerifyHashResponse getVerifyHash() { return verifyHash_ == null ? org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.getDefaultInstance() : verifyHash_; } /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ public org.tikv.kvproto.RaftCmdpb.VerifyHashResponseOrBuilder getVerifyHashOrBuilder() { return getVerifyHash(); } public static final int PREPARE_MERGE_FIELD_NUMBER = 7; private org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse prepareMerge_; /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ public boolean hasPrepareMerge() { return prepareMerge_ != null; } /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse getPrepareMerge() { return prepareMerge_ == null ? org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.getDefaultInstance() : prepareMerge_; } /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponseOrBuilder getPrepareMergeOrBuilder() { return getPrepareMerge(); } public static final int COMMIT_MERGE_FIELD_NUMBER = 8; private org.tikv.kvproto.RaftCmdpb.CommitMergeResponse commitMerge_; /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ public boolean hasCommitMerge() { return commitMerge_ != null; } /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ public org.tikv.kvproto.RaftCmdpb.CommitMergeResponse getCommitMerge() { return commitMerge_ == null ? org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.getDefaultInstance() : commitMerge_; } /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ public org.tikv.kvproto.RaftCmdpb.CommitMergeResponseOrBuilder getCommitMergeOrBuilder() { return getCommitMerge(); } public static final int ROLLBACK_MERGE_FIELD_NUMBER = 9; private org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse rollbackMerge_; /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ public boolean hasRollbackMerge() { return rollbackMerge_ != null; } /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse getRollbackMerge() { return rollbackMerge_ == null ? org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.getDefaultInstance() : rollbackMerge_; } /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponseOrBuilder getRollbackMergeOrBuilder() { return getRollbackMerge(); } public static final int SPLITS_FIELD_NUMBER = 10; private org.tikv.kvproto.RaftCmdpb.BatchSplitResponse splits_; /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ public boolean hasSplits() { return splits_ != null; } /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ public org.tikv.kvproto.RaftCmdpb.BatchSplitResponse getSplits() { return splits_ == null ? org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.getDefaultInstance() : splits_; } /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ public org.tikv.kvproto.RaftCmdpb.BatchSplitResponseOrBuilder getSplitsOrBuilder() { return getSplits(); } public static final int CHANGE_PEER_V2_FIELD_NUMBER = 11; private org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response changePeerV2_; /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ public boolean hasChangePeerV2() { return changePeerV2_ != null; } /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response getChangePeerV2() { return changePeerV2_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.getDefaultInstance() : changePeerV2_; } /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerV2ResponseOrBuilder getChangePeerV2OrBuilder() { return getChangePeerV2(); } 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 (cmdType_ != org.tikv.kvproto.RaftCmdpb.AdminCmdType.InvalidAdmin.getNumber()) { output.writeEnum(1, cmdType_); } if (changePeer_ != null) { output.writeMessage(2, getChangePeer()); } if (split_ != null) { output.writeMessage(3, getSplit()); } if (compactLog_ != null) { output.writeMessage(4, getCompactLog()); } if (transferLeader_ != null) { output.writeMessage(5, getTransferLeader()); } if (verifyHash_ != null) { output.writeMessage(6, getVerifyHash()); } if (prepareMerge_ != null) { output.writeMessage(7, getPrepareMerge()); } if (commitMerge_ != null) { output.writeMessage(8, getCommitMerge()); } if (rollbackMerge_ != null) { output.writeMessage(9, getRollbackMerge()); } if (splits_ != null) { output.writeMessage(10, getSplits()); } if (changePeerV2_ != null) { output.writeMessage(11, getChangePeerV2()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cmdType_ != org.tikv.kvproto.RaftCmdpb.AdminCmdType.InvalidAdmin.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, cmdType_); } if (changePeer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getChangePeer()); } if (split_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSplit()); } if (compactLog_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCompactLog()); } if (transferLeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTransferLeader()); } if (verifyHash_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getVerifyHash()); } if (prepareMerge_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getPrepareMerge()); } if (commitMerge_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getCommitMerge()); } if (rollbackMerge_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRollbackMerge()); } if (splits_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getSplits()); } if (changePeerV2_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getChangePeerV2()); } 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.RaftCmdpb.AdminResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.AdminResponse other = (org.tikv.kvproto.RaftCmdpb.AdminResponse) obj; boolean result = true; result = result && cmdType_ == other.cmdType_; result = result && (hasChangePeer() == other.hasChangePeer()); if (hasChangePeer()) { result = result && getChangePeer() .equals(other.getChangePeer()); } result = result && (hasSplit() == other.hasSplit()); if (hasSplit()) { result = result && getSplit() .equals(other.getSplit()); } result = result && (hasCompactLog() == other.hasCompactLog()); if (hasCompactLog()) { result = result && getCompactLog() .equals(other.getCompactLog()); } result = result && (hasTransferLeader() == other.hasTransferLeader()); if (hasTransferLeader()) { result = result && getTransferLeader() .equals(other.getTransferLeader()); } result = result && (hasVerifyHash() == other.hasVerifyHash()); if (hasVerifyHash()) { result = result && getVerifyHash() .equals(other.getVerifyHash()); } result = result && (hasPrepareMerge() == other.hasPrepareMerge()); if (hasPrepareMerge()) { result = result && getPrepareMerge() .equals(other.getPrepareMerge()); } result = result && (hasCommitMerge() == other.hasCommitMerge()); if (hasCommitMerge()) { result = result && getCommitMerge() .equals(other.getCommitMerge()); } result = result && (hasRollbackMerge() == other.hasRollbackMerge()); if (hasRollbackMerge()) { result = result && getRollbackMerge() .equals(other.getRollbackMerge()); } result = result && (hasSplits() == other.hasSplits()); if (hasSplits()) { result = result && getSplits() .equals(other.getSplits()); } result = result && (hasChangePeerV2() == other.hasChangePeerV2()); if (hasChangePeerV2()) { result = result && getChangePeerV2() .equals(other.getChangePeerV2()); } 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) + CMD_TYPE_FIELD_NUMBER; hash = (53 * hash) + cmdType_; if (hasChangePeer()) { hash = (37 * hash) + CHANGE_PEER_FIELD_NUMBER; hash = (53 * hash) + getChangePeer().hashCode(); } if (hasSplit()) { hash = (37 * hash) + SPLIT_FIELD_NUMBER; hash = (53 * hash) + getSplit().hashCode(); } if (hasCompactLog()) { hash = (37 * hash) + COMPACT_LOG_FIELD_NUMBER; hash = (53 * hash) + getCompactLog().hashCode(); } if (hasTransferLeader()) { hash = (37 * hash) + TRANSFER_LEADER_FIELD_NUMBER; hash = (53 * hash) + getTransferLeader().hashCode(); } if (hasVerifyHash()) { hash = (37 * hash) + VERIFY_HASH_FIELD_NUMBER; hash = (53 * hash) + getVerifyHash().hashCode(); } if (hasPrepareMerge()) { hash = (37 * hash) + PREPARE_MERGE_FIELD_NUMBER; hash = (53 * hash) + getPrepareMerge().hashCode(); } if (hasCommitMerge()) { hash = (37 * hash) + COMMIT_MERGE_FIELD_NUMBER; hash = (53 * hash) + getCommitMerge().hashCode(); } if (hasRollbackMerge()) { hash = (37 * hash) + ROLLBACK_MERGE_FIELD_NUMBER; hash = (53 * hash) + getRollbackMerge().hashCode(); } if (hasSplits()) { hash = (37 * hash) + SPLITS_FIELD_NUMBER; hash = (53 * hash) + getSplits().hashCode(); } if (hasChangePeerV2()) { hash = (37 * hash) + CHANGE_PEER_V2_FIELD_NUMBER; hash = (53 * hash) + getChangePeerV2().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.AdminResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.AdminResponse 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.RaftCmdpb.AdminResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.AdminResponse 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.RaftCmdpb.AdminResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.AdminResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.AdminResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.AdminResponse 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.RaftCmdpb.AdminResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.AdminResponse 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.RaftCmdpb.AdminResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.AdminResponse 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.RaftCmdpb.AdminResponse 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_cmdpb.AdminResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.AdminResponse) org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.AdminResponse.class, org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.AdminResponse.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(); cmdType_ = 0; if (changePeerBuilder_ == null) { changePeer_ = null; } else { changePeer_ = null; changePeerBuilder_ = null; } if (splitBuilder_ == null) { split_ = null; } else { split_ = null; splitBuilder_ = null; } if (compactLogBuilder_ == null) { compactLog_ = null; } else { compactLog_ = null; compactLogBuilder_ = null; } if (transferLeaderBuilder_ == null) { transferLeader_ = null; } else { transferLeader_ = null; transferLeaderBuilder_ = null; } if (verifyHashBuilder_ == null) { verifyHash_ = null; } else { verifyHash_ = null; verifyHashBuilder_ = null; } if (prepareMergeBuilder_ == null) { prepareMerge_ = null; } else { prepareMerge_ = null; prepareMergeBuilder_ = null; } if (commitMergeBuilder_ == null) { commitMerge_ = null; } else { commitMerge_ = null; commitMergeBuilder_ = null; } if (rollbackMergeBuilder_ == null) { rollbackMerge_ = null; } else { rollbackMerge_ = null; rollbackMergeBuilder_ = null; } if (splitsBuilder_ == null) { splits_ = null; } else { splits_ = null; splitsBuilder_ = null; } if (changePeerV2Builder_ == null) { changePeerV2_ = null; } else { changePeerV2_ = null; changePeerV2Builder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_AdminResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.AdminResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.AdminResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.AdminResponse build() { org.tikv.kvproto.RaftCmdpb.AdminResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.AdminResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.AdminResponse result = new org.tikv.kvproto.RaftCmdpb.AdminResponse(this); result.cmdType_ = cmdType_; if (changePeerBuilder_ == null) { result.changePeer_ = changePeer_; } else { result.changePeer_ = changePeerBuilder_.build(); } if (splitBuilder_ == null) { result.split_ = split_; } else { result.split_ = splitBuilder_.build(); } if (compactLogBuilder_ == null) { result.compactLog_ = compactLog_; } else { result.compactLog_ = compactLogBuilder_.build(); } if (transferLeaderBuilder_ == null) { result.transferLeader_ = transferLeader_; } else { result.transferLeader_ = transferLeaderBuilder_.build(); } if (verifyHashBuilder_ == null) { result.verifyHash_ = verifyHash_; } else { result.verifyHash_ = verifyHashBuilder_.build(); } if (prepareMergeBuilder_ == null) { result.prepareMerge_ = prepareMerge_; } else { result.prepareMerge_ = prepareMergeBuilder_.build(); } if (commitMergeBuilder_ == null) { result.commitMerge_ = commitMerge_; } else { result.commitMerge_ = commitMergeBuilder_.build(); } if (rollbackMergeBuilder_ == null) { result.rollbackMerge_ = rollbackMerge_; } else { result.rollbackMerge_ = rollbackMergeBuilder_.build(); } if (splitsBuilder_ == null) { result.splits_ = splits_; } else { result.splits_ = splitsBuilder_.build(); } if (changePeerV2Builder_ == null) { result.changePeerV2_ = changePeerV2_; } else { result.changePeerV2_ = changePeerV2Builder_.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.RaftCmdpb.AdminResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.AdminResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.AdminResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.AdminResponse.getDefaultInstance()) return this; if (other.cmdType_ != 0) { setCmdTypeValue(other.getCmdTypeValue()); } if (other.hasChangePeer()) { mergeChangePeer(other.getChangePeer()); } if (other.hasSplit()) { mergeSplit(other.getSplit()); } if (other.hasCompactLog()) { mergeCompactLog(other.getCompactLog()); } if (other.hasTransferLeader()) { mergeTransferLeader(other.getTransferLeader()); } if (other.hasVerifyHash()) { mergeVerifyHash(other.getVerifyHash()); } if (other.hasPrepareMerge()) { mergePrepareMerge(other.getPrepareMerge()); } if (other.hasCommitMerge()) { mergeCommitMerge(other.getCommitMerge()); } if (other.hasRollbackMerge()) { mergeRollbackMerge(other.getRollbackMerge()); } if (other.hasSplits()) { mergeSplits(other.getSplits()); } if (other.hasChangePeerV2()) { mergeChangePeerV2(other.getChangePeerV2()); } 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.RaftCmdpb.AdminResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.AdminResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cmdType_ = 0; /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public Builder setCmdTypeValue(int value) { cmdType_ = value; onChanged(); return this; } /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.AdminCmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.AdminCmdType result = org.tikv.kvproto.RaftCmdpb.AdminCmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.AdminCmdType.UNRECOGNIZED : result; } /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public Builder setCmdType(org.tikv.kvproto.RaftCmdpb.AdminCmdType value) { if (value == null) { throw new NullPointerException(); } cmdType_ = value.getNumber(); onChanged(); return this; } /** * .raft_cmdpb.AdminCmdType cmd_type = 1; */ public Builder clearCmdType() { cmdType_ = 0; onChanged(); return this; } private org.tikv.kvproto.RaftCmdpb.ChangePeerResponse changePeer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerResponse, org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerResponseOrBuilder> changePeerBuilder_; /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ public boolean hasChangePeer() { return changePeerBuilder_ != null || changePeer_ != null; } /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerResponse getChangePeer() { if (changePeerBuilder_ == null) { return changePeer_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.getDefaultInstance() : changePeer_; } else { return changePeerBuilder_.getMessage(); } } /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ public Builder setChangePeer(org.tikv.kvproto.RaftCmdpb.ChangePeerResponse value) { if (changePeerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } changePeer_ = value; onChanged(); } else { changePeerBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ public Builder setChangePeer( org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.Builder builderForValue) { if (changePeerBuilder_ == null) { changePeer_ = builderForValue.build(); onChanged(); } else { changePeerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ public Builder mergeChangePeer(org.tikv.kvproto.RaftCmdpb.ChangePeerResponse value) { if (changePeerBuilder_ == null) { if (changePeer_ != null) { changePeer_ = org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.newBuilder(changePeer_).mergeFrom(value).buildPartial(); } else { changePeer_ = value; } onChanged(); } else { changePeerBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ public Builder clearChangePeer() { if (changePeerBuilder_ == null) { changePeer_ = null; onChanged(); } else { changePeer_ = null; changePeerBuilder_ = null; } return this; } /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.Builder getChangePeerBuilder() { onChanged(); return getChangePeerFieldBuilder().getBuilder(); } /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerResponseOrBuilder getChangePeerOrBuilder() { if (changePeerBuilder_ != null) { return changePeerBuilder_.getMessageOrBuilder(); } else { return changePeer_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.getDefaultInstance() : changePeer_; } } /** * .raft_cmdpb.ChangePeerResponse change_peer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerResponse, org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerResponseOrBuilder> getChangePeerFieldBuilder() { if (changePeerBuilder_ == null) { changePeerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerResponse, org.tikv.kvproto.RaftCmdpb.ChangePeerResponse.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerResponseOrBuilder>( getChangePeer(), getParentForChildren(), isClean()); changePeer_ = null; } return changePeerBuilder_; } private org.tikv.kvproto.RaftCmdpb.SplitResponse split_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SplitResponse, org.tikv.kvproto.RaftCmdpb.SplitResponse.Builder, org.tikv.kvproto.RaftCmdpb.SplitResponseOrBuilder> splitBuilder_; /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated public boolean hasSplit() { return splitBuilder_ != null || split_ != null; } /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitResponse getSplit() { if (splitBuilder_ == null) { return split_ == null ? org.tikv.kvproto.RaftCmdpb.SplitResponse.getDefaultInstance() : split_; } else { return splitBuilder_.getMessage(); } } /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder setSplit(org.tikv.kvproto.RaftCmdpb.SplitResponse value) { if (splitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } split_ = value; onChanged(); } else { splitBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder setSplit( org.tikv.kvproto.RaftCmdpb.SplitResponse.Builder builderForValue) { if (splitBuilder_ == null) { split_ = builderForValue.build(); onChanged(); } else { splitBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeSplit(org.tikv.kvproto.RaftCmdpb.SplitResponse value) { if (splitBuilder_ == null) { if (split_ != null) { split_ = org.tikv.kvproto.RaftCmdpb.SplitResponse.newBuilder(split_).mergeFrom(value).buildPartial(); } else { split_ = value; } onChanged(); } else { splitBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder clearSplit() { if (splitBuilder_ == null) { split_ = null; onChanged(); } else { split_ = null; splitBuilder_ = null; } return this; } /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitResponse.Builder getSplitBuilder() { onChanged(); return getSplitFieldBuilder().getBuilder(); } /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.RaftCmdpb.SplitResponseOrBuilder getSplitOrBuilder() { if (splitBuilder_ != null) { return splitBuilder_.getMessageOrBuilder(); } else { return split_ == null ? org.tikv.kvproto.RaftCmdpb.SplitResponse.getDefaultInstance() : split_; } } /** * .raft_cmdpb.SplitResponse split = 3 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SplitResponse, org.tikv.kvproto.RaftCmdpb.SplitResponse.Builder, org.tikv.kvproto.RaftCmdpb.SplitResponseOrBuilder> getSplitFieldBuilder() { if (splitBuilder_ == null) { splitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.SplitResponse, org.tikv.kvproto.RaftCmdpb.SplitResponse.Builder, org.tikv.kvproto.RaftCmdpb.SplitResponseOrBuilder>( getSplit(), getParentForChildren(), isClean()); split_ = null; } return splitBuilder_; } private org.tikv.kvproto.RaftCmdpb.CompactLogResponse compactLog_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CompactLogResponse, org.tikv.kvproto.RaftCmdpb.CompactLogResponse.Builder, org.tikv.kvproto.RaftCmdpb.CompactLogResponseOrBuilder> compactLogBuilder_; /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ public boolean hasCompactLog() { return compactLogBuilder_ != null || compactLog_ != null; } /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ public org.tikv.kvproto.RaftCmdpb.CompactLogResponse getCompactLog() { if (compactLogBuilder_ == null) { return compactLog_ == null ? org.tikv.kvproto.RaftCmdpb.CompactLogResponse.getDefaultInstance() : compactLog_; } else { return compactLogBuilder_.getMessage(); } } /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ public Builder setCompactLog(org.tikv.kvproto.RaftCmdpb.CompactLogResponse value) { if (compactLogBuilder_ == null) { if (value == null) { throw new NullPointerException(); } compactLog_ = value; onChanged(); } else { compactLogBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ public Builder setCompactLog( org.tikv.kvproto.RaftCmdpb.CompactLogResponse.Builder builderForValue) { if (compactLogBuilder_ == null) { compactLog_ = builderForValue.build(); onChanged(); } else { compactLogBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ public Builder mergeCompactLog(org.tikv.kvproto.RaftCmdpb.CompactLogResponse value) { if (compactLogBuilder_ == null) { if (compactLog_ != null) { compactLog_ = org.tikv.kvproto.RaftCmdpb.CompactLogResponse.newBuilder(compactLog_).mergeFrom(value).buildPartial(); } else { compactLog_ = value; } onChanged(); } else { compactLogBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ public Builder clearCompactLog() { if (compactLogBuilder_ == null) { compactLog_ = null; onChanged(); } else { compactLog_ = null; compactLogBuilder_ = null; } return this; } /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ public org.tikv.kvproto.RaftCmdpb.CompactLogResponse.Builder getCompactLogBuilder() { onChanged(); return getCompactLogFieldBuilder().getBuilder(); } /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ public org.tikv.kvproto.RaftCmdpb.CompactLogResponseOrBuilder getCompactLogOrBuilder() { if (compactLogBuilder_ != null) { return compactLogBuilder_.getMessageOrBuilder(); } else { return compactLog_ == null ? org.tikv.kvproto.RaftCmdpb.CompactLogResponse.getDefaultInstance() : compactLog_; } } /** * .raft_cmdpb.CompactLogResponse compact_log = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CompactLogResponse, org.tikv.kvproto.RaftCmdpb.CompactLogResponse.Builder, org.tikv.kvproto.RaftCmdpb.CompactLogResponseOrBuilder> getCompactLogFieldBuilder() { if (compactLogBuilder_ == null) { compactLogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CompactLogResponse, org.tikv.kvproto.RaftCmdpb.CompactLogResponse.Builder, org.tikv.kvproto.RaftCmdpb.CompactLogResponseOrBuilder>( getCompactLog(), getParentForChildren(), isClean()); compactLog_ = null; } return compactLogBuilder_; } private org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse transferLeader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse, org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.Builder, org.tikv.kvproto.RaftCmdpb.TransferLeaderResponseOrBuilder> transferLeaderBuilder_; /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ public boolean hasTransferLeader() { return transferLeaderBuilder_ != null || transferLeader_ != null; } /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse getTransferLeader() { if (transferLeaderBuilder_ == null) { return transferLeader_ == null ? org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.getDefaultInstance() : transferLeader_; } else { return transferLeaderBuilder_.getMessage(); } } /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ public Builder setTransferLeader(org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse value) { if (transferLeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transferLeader_ = value; onChanged(); } else { transferLeaderBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ public Builder setTransferLeader( org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.Builder builderForValue) { if (transferLeaderBuilder_ == null) { transferLeader_ = builderForValue.build(); onChanged(); } else { transferLeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ public Builder mergeTransferLeader(org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse value) { if (transferLeaderBuilder_ == null) { if (transferLeader_ != null) { transferLeader_ = org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.newBuilder(transferLeader_).mergeFrom(value).buildPartial(); } else { transferLeader_ = value; } onChanged(); } else { transferLeaderBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ public Builder clearTransferLeader() { if (transferLeaderBuilder_ == null) { transferLeader_ = null; onChanged(); } else { transferLeader_ = null; transferLeaderBuilder_ = null; } return this; } /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.Builder getTransferLeaderBuilder() { onChanged(); return getTransferLeaderFieldBuilder().getBuilder(); } /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ public org.tikv.kvproto.RaftCmdpb.TransferLeaderResponseOrBuilder getTransferLeaderOrBuilder() { if (transferLeaderBuilder_ != null) { return transferLeaderBuilder_.getMessageOrBuilder(); } else { return transferLeader_ == null ? org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.getDefaultInstance() : transferLeader_; } } /** * .raft_cmdpb.TransferLeaderResponse transfer_leader = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse, org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.Builder, org.tikv.kvproto.RaftCmdpb.TransferLeaderResponseOrBuilder> getTransferLeaderFieldBuilder() { if (transferLeaderBuilder_ == null) { transferLeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse, org.tikv.kvproto.RaftCmdpb.TransferLeaderResponse.Builder, org.tikv.kvproto.RaftCmdpb.TransferLeaderResponseOrBuilder>( getTransferLeader(), getParentForChildren(), isClean()); transferLeader_ = null; } return transferLeaderBuilder_; } private org.tikv.kvproto.RaftCmdpb.VerifyHashResponse verifyHash_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.VerifyHashResponse, org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.Builder, org.tikv.kvproto.RaftCmdpb.VerifyHashResponseOrBuilder> verifyHashBuilder_; /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ public boolean hasVerifyHash() { return verifyHashBuilder_ != null || verifyHash_ != null; } /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ public org.tikv.kvproto.RaftCmdpb.VerifyHashResponse getVerifyHash() { if (verifyHashBuilder_ == null) { return verifyHash_ == null ? org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.getDefaultInstance() : verifyHash_; } else { return verifyHashBuilder_.getMessage(); } } /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ public Builder setVerifyHash(org.tikv.kvproto.RaftCmdpb.VerifyHashResponse value) { if (verifyHashBuilder_ == null) { if (value == null) { throw new NullPointerException(); } verifyHash_ = value; onChanged(); } else { verifyHashBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ public Builder setVerifyHash( org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.Builder builderForValue) { if (verifyHashBuilder_ == null) { verifyHash_ = builderForValue.build(); onChanged(); } else { verifyHashBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ public Builder mergeVerifyHash(org.tikv.kvproto.RaftCmdpb.VerifyHashResponse value) { if (verifyHashBuilder_ == null) { if (verifyHash_ != null) { verifyHash_ = org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.newBuilder(verifyHash_).mergeFrom(value).buildPartial(); } else { verifyHash_ = value; } onChanged(); } else { verifyHashBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ public Builder clearVerifyHash() { if (verifyHashBuilder_ == null) { verifyHash_ = null; onChanged(); } else { verifyHash_ = null; verifyHashBuilder_ = null; } return this; } /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ public org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.Builder getVerifyHashBuilder() { onChanged(); return getVerifyHashFieldBuilder().getBuilder(); } /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ public org.tikv.kvproto.RaftCmdpb.VerifyHashResponseOrBuilder getVerifyHashOrBuilder() { if (verifyHashBuilder_ != null) { return verifyHashBuilder_.getMessageOrBuilder(); } else { return verifyHash_ == null ? org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.getDefaultInstance() : verifyHash_; } } /** * .raft_cmdpb.VerifyHashResponse verify_hash = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.VerifyHashResponse, org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.Builder, org.tikv.kvproto.RaftCmdpb.VerifyHashResponseOrBuilder> getVerifyHashFieldBuilder() { if (verifyHashBuilder_ == null) { verifyHashBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.VerifyHashResponse, org.tikv.kvproto.RaftCmdpb.VerifyHashResponse.Builder, org.tikv.kvproto.RaftCmdpb.VerifyHashResponseOrBuilder>( getVerifyHash(), getParentForChildren(), isClean()); verifyHash_ = null; } return verifyHashBuilder_; } private org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse prepareMerge_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse, org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.Builder, org.tikv.kvproto.RaftCmdpb.PrepareMergeResponseOrBuilder> prepareMergeBuilder_; /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ public boolean hasPrepareMerge() { return prepareMergeBuilder_ != null || prepareMerge_ != null; } /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse getPrepareMerge() { if (prepareMergeBuilder_ == null) { return prepareMerge_ == null ? org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.getDefaultInstance() : prepareMerge_; } else { return prepareMergeBuilder_.getMessage(); } } /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ public Builder setPrepareMerge(org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse value) { if (prepareMergeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } prepareMerge_ = value; onChanged(); } else { prepareMergeBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ public Builder setPrepareMerge( org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.Builder builderForValue) { if (prepareMergeBuilder_ == null) { prepareMerge_ = builderForValue.build(); onChanged(); } else { prepareMergeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ public Builder mergePrepareMerge(org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse value) { if (prepareMergeBuilder_ == null) { if (prepareMerge_ != null) { prepareMerge_ = org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.newBuilder(prepareMerge_).mergeFrom(value).buildPartial(); } else { prepareMerge_ = value; } onChanged(); } else { prepareMergeBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ public Builder clearPrepareMerge() { if (prepareMergeBuilder_ == null) { prepareMerge_ = null; onChanged(); } else { prepareMerge_ = null; prepareMergeBuilder_ = null; } return this; } /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.Builder getPrepareMergeBuilder() { onChanged(); return getPrepareMergeFieldBuilder().getBuilder(); } /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ public org.tikv.kvproto.RaftCmdpb.PrepareMergeResponseOrBuilder getPrepareMergeOrBuilder() { if (prepareMergeBuilder_ != null) { return prepareMergeBuilder_.getMessageOrBuilder(); } else { return prepareMerge_ == null ? org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.getDefaultInstance() : prepareMerge_; } } /** * .raft_cmdpb.PrepareMergeResponse prepare_merge = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse, org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.Builder, org.tikv.kvproto.RaftCmdpb.PrepareMergeResponseOrBuilder> getPrepareMergeFieldBuilder() { if (prepareMergeBuilder_ == null) { prepareMergeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse, org.tikv.kvproto.RaftCmdpb.PrepareMergeResponse.Builder, org.tikv.kvproto.RaftCmdpb.PrepareMergeResponseOrBuilder>( getPrepareMerge(), getParentForChildren(), isClean()); prepareMerge_ = null; } return prepareMergeBuilder_; } private org.tikv.kvproto.RaftCmdpb.CommitMergeResponse commitMerge_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CommitMergeResponse, org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.Builder, org.tikv.kvproto.RaftCmdpb.CommitMergeResponseOrBuilder> commitMergeBuilder_; /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ public boolean hasCommitMerge() { return commitMergeBuilder_ != null || commitMerge_ != null; } /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ public org.tikv.kvproto.RaftCmdpb.CommitMergeResponse getCommitMerge() { if (commitMergeBuilder_ == null) { return commitMerge_ == null ? org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.getDefaultInstance() : commitMerge_; } else { return commitMergeBuilder_.getMessage(); } } /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ public Builder setCommitMerge(org.tikv.kvproto.RaftCmdpb.CommitMergeResponse value) { if (commitMergeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commitMerge_ = value; onChanged(); } else { commitMergeBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ public Builder setCommitMerge( org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.Builder builderForValue) { if (commitMergeBuilder_ == null) { commitMerge_ = builderForValue.build(); onChanged(); } else { commitMergeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ public Builder mergeCommitMerge(org.tikv.kvproto.RaftCmdpb.CommitMergeResponse value) { if (commitMergeBuilder_ == null) { if (commitMerge_ != null) { commitMerge_ = org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.newBuilder(commitMerge_).mergeFrom(value).buildPartial(); } else { commitMerge_ = value; } onChanged(); } else { commitMergeBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ public Builder clearCommitMerge() { if (commitMergeBuilder_ == null) { commitMerge_ = null; onChanged(); } else { commitMerge_ = null; commitMergeBuilder_ = null; } return this; } /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ public org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.Builder getCommitMergeBuilder() { onChanged(); return getCommitMergeFieldBuilder().getBuilder(); } /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ public org.tikv.kvproto.RaftCmdpb.CommitMergeResponseOrBuilder getCommitMergeOrBuilder() { if (commitMergeBuilder_ != null) { return commitMergeBuilder_.getMessageOrBuilder(); } else { return commitMerge_ == null ? org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.getDefaultInstance() : commitMerge_; } } /** * .raft_cmdpb.CommitMergeResponse commit_merge = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CommitMergeResponse, org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.Builder, org.tikv.kvproto.RaftCmdpb.CommitMergeResponseOrBuilder> getCommitMergeFieldBuilder() { if (commitMergeBuilder_ == null) { commitMergeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.CommitMergeResponse, org.tikv.kvproto.RaftCmdpb.CommitMergeResponse.Builder, org.tikv.kvproto.RaftCmdpb.CommitMergeResponseOrBuilder>( getCommitMerge(), getParentForChildren(), isClean()); commitMerge_ = null; } return commitMergeBuilder_; } private org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse rollbackMerge_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse, org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.Builder, org.tikv.kvproto.RaftCmdpb.RollbackMergeResponseOrBuilder> rollbackMergeBuilder_; /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ public boolean hasRollbackMerge() { return rollbackMergeBuilder_ != null || rollbackMerge_ != null; } /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse getRollbackMerge() { if (rollbackMergeBuilder_ == null) { return rollbackMerge_ == null ? org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.getDefaultInstance() : rollbackMerge_; } else { return rollbackMergeBuilder_.getMessage(); } } /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ public Builder setRollbackMerge(org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse value) { if (rollbackMergeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rollbackMerge_ = value; onChanged(); } else { rollbackMergeBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ public Builder setRollbackMerge( org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.Builder builderForValue) { if (rollbackMergeBuilder_ == null) { rollbackMerge_ = builderForValue.build(); onChanged(); } else { rollbackMergeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ public Builder mergeRollbackMerge(org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse value) { if (rollbackMergeBuilder_ == null) { if (rollbackMerge_ != null) { rollbackMerge_ = org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.newBuilder(rollbackMerge_).mergeFrom(value).buildPartial(); } else { rollbackMerge_ = value; } onChanged(); } else { rollbackMergeBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ public Builder clearRollbackMerge() { if (rollbackMergeBuilder_ == null) { rollbackMerge_ = null; onChanged(); } else { rollbackMerge_ = null; rollbackMergeBuilder_ = null; } return this; } /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.Builder getRollbackMergeBuilder() { onChanged(); return getRollbackMergeFieldBuilder().getBuilder(); } /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ public org.tikv.kvproto.RaftCmdpb.RollbackMergeResponseOrBuilder getRollbackMergeOrBuilder() { if (rollbackMergeBuilder_ != null) { return rollbackMergeBuilder_.getMessageOrBuilder(); } else { return rollbackMerge_ == null ? org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.getDefaultInstance() : rollbackMerge_; } } /** * .raft_cmdpb.RollbackMergeResponse rollback_merge = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse, org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.Builder, org.tikv.kvproto.RaftCmdpb.RollbackMergeResponseOrBuilder> getRollbackMergeFieldBuilder() { if (rollbackMergeBuilder_ == null) { rollbackMergeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse, org.tikv.kvproto.RaftCmdpb.RollbackMergeResponse.Builder, org.tikv.kvproto.RaftCmdpb.RollbackMergeResponseOrBuilder>( getRollbackMerge(), getParentForChildren(), isClean()); rollbackMerge_ = null; } return rollbackMergeBuilder_; } private org.tikv.kvproto.RaftCmdpb.BatchSplitResponse splits_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.BatchSplitResponse, org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.Builder, org.tikv.kvproto.RaftCmdpb.BatchSplitResponseOrBuilder> splitsBuilder_; /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ public boolean hasSplits() { return splitsBuilder_ != null || splits_ != null; } /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ public org.tikv.kvproto.RaftCmdpb.BatchSplitResponse getSplits() { if (splitsBuilder_ == null) { return splits_ == null ? org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.getDefaultInstance() : splits_; } else { return splitsBuilder_.getMessage(); } } /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ public Builder setSplits(org.tikv.kvproto.RaftCmdpb.BatchSplitResponse value) { if (splitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } splits_ = value; onChanged(); } else { splitsBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ public Builder setSplits( org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.Builder builderForValue) { if (splitsBuilder_ == null) { splits_ = builderForValue.build(); onChanged(); } else { splitsBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ public Builder mergeSplits(org.tikv.kvproto.RaftCmdpb.BatchSplitResponse value) { if (splitsBuilder_ == null) { if (splits_ != null) { splits_ = org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.newBuilder(splits_).mergeFrom(value).buildPartial(); } else { splits_ = value; } onChanged(); } else { splitsBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ public Builder clearSplits() { if (splitsBuilder_ == null) { splits_ = null; onChanged(); } else { splits_ = null; splitsBuilder_ = null; } return this; } /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ public org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.Builder getSplitsBuilder() { onChanged(); return getSplitsFieldBuilder().getBuilder(); } /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ public org.tikv.kvproto.RaftCmdpb.BatchSplitResponseOrBuilder getSplitsOrBuilder() { if (splitsBuilder_ != null) { return splitsBuilder_.getMessageOrBuilder(); } else { return splits_ == null ? org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.getDefaultInstance() : splits_; } } /** * .raft_cmdpb.BatchSplitResponse splits = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.BatchSplitResponse, org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.Builder, org.tikv.kvproto.RaftCmdpb.BatchSplitResponseOrBuilder> getSplitsFieldBuilder() { if (splitsBuilder_ == null) { splitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.BatchSplitResponse, org.tikv.kvproto.RaftCmdpb.BatchSplitResponse.Builder, org.tikv.kvproto.RaftCmdpb.BatchSplitResponseOrBuilder>( getSplits(), getParentForChildren(), isClean()); splits_ = null; } return splitsBuilder_; } private org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response changePeerV2_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerV2ResponseOrBuilder> changePeerV2Builder_; /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ public boolean hasChangePeerV2() { return changePeerV2Builder_ != null || changePeerV2_ != null; } /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response getChangePeerV2() { if (changePeerV2Builder_ == null) { return changePeerV2_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.getDefaultInstance() : changePeerV2_; } else { return changePeerV2Builder_.getMessage(); } } /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ public Builder setChangePeerV2(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response value) { if (changePeerV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } changePeerV2_ = value; onChanged(); } else { changePeerV2Builder_.setMessage(value); } return this; } /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ public Builder setChangePeerV2( org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.Builder builderForValue) { if (changePeerV2Builder_ == null) { changePeerV2_ = builderForValue.build(); onChanged(); } else { changePeerV2Builder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ public Builder mergeChangePeerV2(org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response value) { if (changePeerV2Builder_ == null) { if (changePeerV2_ != null) { changePeerV2_ = org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.newBuilder(changePeerV2_).mergeFrom(value).buildPartial(); } else { changePeerV2_ = value; } onChanged(); } else { changePeerV2Builder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ public Builder clearChangePeerV2() { if (changePeerV2Builder_ == null) { changePeerV2_ = null; onChanged(); } else { changePeerV2_ = null; changePeerV2Builder_ = null; } return this; } /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.Builder getChangePeerV2Builder() { onChanged(); return getChangePeerV2FieldBuilder().getBuilder(); } /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ public org.tikv.kvproto.RaftCmdpb.ChangePeerV2ResponseOrBuilder getChangePeerV2OrBuilder() { if (changePeerV2Builder_ != null) { return changePeerV2Builder_.getMessageOrBuilder(); } else { return changePeerV2_ == null ? org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.getDefaultInstance() : changePeerV2_; } } /** * .raft_cmdpb.ChangePeerV2Response change_peer_v2 = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerV2ResponseOrBuilder> getChangePeerV2FieldBuilder() { if (changePeerV2Builder_ == null) { changePeerV2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response, org.tikv.kvproto.RaftCmdpb.ChangePeerV2Response.Builder, org.tikv.kvproto.RaftCmdpb.ChangePeerV2ResponseOrBuilder>( getChangePeerV2(), getParentForChildren(), isClean()); changePeerV2_ = null; } return changePeerV2Builder_; } 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_cmdpb.AdminResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.AdminResponse) private static final org.tikv.kvproto.RaftCmdpb.AdminResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.AdminResponse(); } public static org.tikv.kvproto.RaftCmdpb.AdminResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AdminResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AdminResponse(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.RaftCmdpb.AdminResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegionLeaderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.RegionLeaderRequest) com.google.protobuf.MessageOrBuilder { } /** *
   * For get the leader of the region.
   * 
* * Protobuf type {@code raft_cmdpb.RegionLeaderRequest} */ public static final class RegionLeaderRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.RegionLeaderRequest) RegionLeaderRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RegionLeaderRequest.newBuilder() to construct. private RegionLeaderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegionLeaderRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegionLeaderRequest( 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.RaftCmdpb.internal_static_raft_cmdpb_RegionLeaderRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionLeaderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.class, org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.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.RaftCmdpb.RegionLeaderRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest other = (org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest) 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.RaftCmdpb.RegionLeaderRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest 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.RaftCmdpb.RegionLeaderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest 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.RaftCmdpb.RegionLeaderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest 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.RaftCmdpb.RegionLeaderRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest 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.RaftCmdpb.RegionLeaderRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest 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.RaftCmdpb.RegionLeaderRequest 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; } /** *
     * For get the leader of the region.
     * 
* * Protobuf type {@code raft_cmdpb.RegionLeaderRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.RegionLeaderRequest) org.tikv.kvproto.RaftCmdpb.RegionLeaderRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionLeaderRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionLeaderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.class, org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.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.RaftCmdpb.internal_static_raft_cmdpb_RegionLeaderRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest build() { org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest result = new org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest(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.RaftCmdpb.RegionLeaderRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.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.RaftCmdpb.RegionLeaderRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest) 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_cmdpb.RegionLeaderRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.RegionLeaderRequest) private static final org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest(); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegionLeaderRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegionLeaderRequest(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.RaftCmdpb.RegionLeaderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegionLeaderResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.RegionLeaderResponse) com.google.protobuf.MessageOrBuilder { /** * .metapb.Peer leader = 1; */ boolean hasLeader(); /** * .metapb.Peer leader = 1; */ org.tikv.kvproto.Metapb.Peer getLeader(); /** * .metapb.Peer leader = 1; */ org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.RegionLeaderResponse} */ public static final class RegionLeaderResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.RegionLeaderResponse) RegionLeaderResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RegionLeaderResponse.newBuilder() to construct. private RegionLeaderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegionLeaderResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegionLeaderResponse( 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.Peer.Builder subBuilder = null; if (leader_ != null) { subBuilder = leader_.toBuilder(); } leader_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(leader_); leader_ = 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.RaftCmdpb.internal_static_raft_cmdpb_RegionLeaderResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionLeaderResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.class, org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.Builder.class); } public static final int LEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.Metapb.Peer leader_; /** * .metapb.Peer leader = 1; */ public boolean hasLeader() { return leader_ != null; } /** * .metapb.Peer leader = 1; */ public org.tikv.kvproto.Metapb.Peer getLeader() { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } /** * .metapb.Peer leader = 1; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { return getLeader(); } 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 (leader_ != null) { output.writeMessage(1, getLeader()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (leader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLeader()); } 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.RaftCmdpb.RegionLeaderResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse other = (org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse) obj; boolean result = true; result = result && (hasLeader() == other.hasLeader()); if (hasLeader()) { result = result && getLeader() .equals(other.getLeader()); } 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 (hasLeader()) { hash = (37 * hash) + LEADER_FIELD_NUMBER; hash = (53 * hash) + getLeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse 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.RaftCmdpb.RegionLeaderResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse 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.RaftCmdpb.RegionLeaderResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse 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.RaftCmdpb.RegionLeaderResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse 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.RaftCmdpb.RegionLeaderResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse 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.RaftCmdpb.RegionLeaderResponse 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_cmdpb.RegionLeaderResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.RegionLeaderResponse) org.tikv.kvproto.RaftCmdpb.RegionLeaderResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionLeaderResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionLeaderResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.class, org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.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 (leaderBuilder_ == null) { leader_ = null; } else { leader_ = null; leaderBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionLeaderResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse build() { org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse result = new org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse(this); if (leaderBuilder_ == null) { result.leader_ = leader_; } else { result.leader_ = leaderBuilder_.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.RaftCmdpb.RegionLeaderResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.getDefaultInstance()) return this; if (other.hasLeader()) { mergeLeader(other.getLeader()); } 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.RaftCmdpb.RegionLeaderResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Metapb.Peer leader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> leaderBuilder_; /** * .metapb.Peer leader = 1; */ public boolean hasLeader() { return leaderBuilder_ != null || leader_ != null; } /** * .metapb.Peer leader = 1; */ public org.tikv.kvproto.Metapb.Peer getLeader() { if (leaderBuilder_ == null) { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } else { return leaderBuilder_.getMessage(); } } /** * .metapb.Peer leader = 1; */ public Builder setLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } leader_ = value; onChanged(); } else { leaderBuilder_.setMessage(value); } return this; } /** * .metapb.Peer leader = 1; */ public Builder setLeader( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (leaderBuilder_ == null) { leader_ = builderForValue.build(); onChanged(); } else { leaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer leader = 1; */ public Builder mergeLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (leader_ != null) { leader_ = org.tikv.kvproto.Metapb.Peer.newBuilder(leader_).mergeFrom(value).buildPartial(); } else { leader_ = value; } onChanged(); } else { leaderBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer leader = 1; */ public Builder clearLeader() { if (leaderBuilder_ == null) { leader_ = null; onChanged(); } else { leader_ = null; leaderBuilder_ = null; } return this; } /** * .metapb.Peer leader = 1; */ public org.tikv.kvproto.Metapb.Peer.Builder getLeaderBuilder() { onChanged(); return getLeaderFieldBuilder().getBuilder(); } /** * .metapb.Peer leader = 1; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { if (leaderBuilder_ != null) { return leaderBuilder_.getMessageOrBuilder(); } else { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } } /** * .metapb.Peer leader = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getLeaderFieldBuilder() { if (leaderBuilder_ == null) { leaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getLeader(), getParentForChildren(), isClean()); leader_ = null; } return leaderBuilder_; } 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_cmdpb.RegionLeaderResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.RegionLeaderResponse) private static final org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse(); } public static org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegionLeaderResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegionLeaderResponse(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.RaftCmdpb.RegionLeaderResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegionDetailRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.RegionDetailRequest) com.google.protobuf.MessageOrBuilder { } /** *
   * For getting more information of the region.
   * We add some admin operations (ChangePeer, Split...) into the pb job list,
   * then pd server will peek the first one, handle it and then pop it from the job lib. 
   * But sometimes, the pd server may crash before popping. When another pd server
   * starts and finds the job is running but not finished, it will first check whether
   * the raft server already has handled this job.
   * E,g, for ChangePeer, if we add Peer10 into region1 and find region1 has already had
   * Peer10, we can think this ChangePeer is finished, and can pop this job from job list
   * directly.
   * 
* * Protobuf type {@code raft_cmdpb.RegionDetailRequest} */ public static final class RegionDetailRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.RegionDetailRequest) RegionDetailRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RegionDetailRequest.newBuilder() to construct. private RegionDetailRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegionDetailRequest() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegionDetailRequest( 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.RaftCmdpb.internal_static_raft_cmdpb_RegionDetailRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionDetailRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.class, org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.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.RaftCmdpb.RegionDetailRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.RegionDetailRequest other = (org.tikv.kvproto.RaftCmdpb.RegionDetailRequest) 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.RaftCmdpb.RegionDetailRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailRequest 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.RaftCmdpb.RegionDetailRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailRequest 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.RaftCmdpb.RegionDetailRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailRequest 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.RaftCmdpb.RegionDetailRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailRequest 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.RaftCmdpb.RegionDetailRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailRequest 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.RaftCmdpb.RegionDetailRequest 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; } /** *
     * For getting more information of the region.
     * We add some admin operations (ChangePeer, Split...) into the pb job list,
     * then pd server will peek the first one, handle it and then pop it from the job lib. 
     * But sometimes, the pd server may crash before popping. When another pd server
     * starts and finds the job is running but not finished, it will first check whether
     * the raft server already has handled this job.
     * E,g, for ChangePeer, if we add Peer10 into region1 and find region1 has already had
     * Peer10, we can think this ChangePeer is finished, and can pop this job from job list
     * directly.
     * 
* * Protobuf type {@code raft_cmdpb.RegionDetailRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.RegionDetailRequest) org.tikv.kvproto.RaftCmdpb.RegionDetailRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionDetailRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionDetailRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.class, org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.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.RaftCmdpb.internal_static_raft_cmdpb_RegionDetailRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.RegionDetailRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.RegionDetailRequest build() { org.tikv.kvproto.RaftCmdpb.RegionDetailRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.RegionDetailRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.RegionDetailRequest result = new org.tikv.kvproto.RaftCmdpb.RegionDetailRequest(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.RaftCmdpb.RegionDetailRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.RegionDetailRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RegionDetailRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.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.RaftCmdpb.RegionDetailRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.RegionDetailRequest) 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_cmdpb.RegionDetailRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.RegionDetailRequest) private static final org.tikv.kvproto.RaftCmdpb.RegionDetailRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RegionDetailRequest(); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegionDetailRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegionDetailRequest(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.RaftCmdpb.RegionDetailRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegionDetailResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.RegionDetailResponse) 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(); /** * .metapb.Peer leader = 2; */ boolean hasLeader(); /** * .metapb.Peer leader = 2; */ org.tikv.kvproto.Metapb.Peer getLeader(); /** * .metapb.Peer leader = 2; */ org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.RegionDetailResponse} */ public static final class RegionDetailResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.RegionDetailResponse) RegionDetailResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RegionDetailResponse.newBuilder() to construct. private RegionDetailResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegionDetailResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegionDetailResponse( 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 18: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (leader_ != null) { subBuilder = leader_.toBuilder(); } leader_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(leader_); leader_ = 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.RaftCmdpb.internal_static_raft_cmdpb_RegionDetailResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionDetailResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.class, org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.Builder.class); } 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 LEADER_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Peer leader_; /** * .metapb.Peer leader = 2; */ public boolean hasLeader() { return leader_ != null; } /** * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.Peer getLeader() { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } /** * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { return getLeader(); } 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 (leader_ != null) { output.writeMessage(2, getLeader()); } 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 (leader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLeader()); } 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.RaftCmdpb.RegionDetailResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.RegionDetailResponse other = (org.tikv.kvproto.RaftCmdpb.RegionDetailResponse) obj; boolean result = true; result = result && (hasRegion() == other.hasRegion()); if (hasRegion()) { result = result && getRegion() .equals(other.getRegion()); } result = result && (hasLeader() == other.hasLeader()); if (hasLeader()) { result = result && getLeader() .equals(other.getLeader()); } 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(); } if (hasLeader()) { hash = (37 * hash) + LEADER_FIELD_NUMBER; hash = (53 * hash) + getLeader().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.RegionDetailResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailResponse 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.RaftCmdpb.RegionDetailResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailResponse 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.RaftCmdpb.RegionDetailResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailResponse 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.RaftCmdpb.RegionDetailResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailResponse 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.RaftCmdpb.RegionDetailResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailResponse 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.RaftCmdpb.RegionDetailResponse 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_cmdpb.RegionDetailResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.RegionDetailResponse) org.tikv.kvproto.RaftCmdpb.RegionDetailResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionDetailResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionDetailResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.class, org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.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 (regionBuilder_ == null) { region_ = null; } else { region_ = null; regionBuilder_ = null; } if (leaderBuilder_ == null) { leader_ = null; } else { leader_ = null; leaderBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RegionDetailResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.RegionDetailResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.RegionDetailResponse build() { org.tikv.kvproto.RaftCmdpb.RegionDetailResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.RegionDetailResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.RegionDetailResponse result = new org.tikv.kvproto.RaftCmdpb.RegionDetailResponse(this); if (regionBuilder_ == null) { result.region_ = region_; } else { result.region_ = regionBuilder_.build(); } if (leaderBuilder_ == null) { result.leader_ = leader_; } else { result.leader_ = leaderBuilder_.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.RaftCmdpb.RegionDetailResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.RegionDetailResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RegionDetailResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.getDefaultInstance()) return this; if (other.hasRegion()) { mergeRegion(other.getRegion()); } if (other.hasLeader()) { mergeLeader(other.getLeader()); } 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.RaftCmdpb.RegionDetailResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.RegionDetailResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 = 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 org.tikv.kvproto.Metapb.Peer leader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> leaderBuilder_; /** * .metapb.Peer leader = 2; */ public boolean hasLeader() { return leaderBuilder_ != null || leader_ != null; } /** * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.Peer getLeader() { if (leaderBuilder_ == null) { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } else { return leaderBuilder_.getMessage(); } } /** * .metapb.Peer leader = 2; */ public Builder setLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } leader_ = value; onChanged(); } else { leaderBuilder_.setMessage(value); } return this; } /** * .metapb.Peer leader = 2; */ public Builder setLeader( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (leaderBuilder_ == null) { leader_ = builderForValue.build(); onChanged(); } else { leaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer leader = 2; */ public Builder mergeLeader(org.tikv.kvproto.Metapb.Peer value) { if (leaderBuilder_ == null) { if (leader_ != null) { leader_ = org.tikv.kvproto.Metapb.Peer.newBuilder(leader_).mergeFrom(value).buildPartial(); } else { leader_ = value; } onChanged(); } else { leaderBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer leader = 2; */ public Builder clearLeader() { if (leaderBuilder_ == null) { leader_ = null; onChanged(); } else { leader_ = null; leaderBuilder_ = null; } return this; } /** * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.Peer.Builder getLeaderBuilder() { onChanged(); return getLeaderFieldBuilder().getBuilder(); } /** * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder() { if (leaderBuilder_ != null) { return leaderBuilder_.getMessageOrBuilder(); } else { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } } /** * .metapb.Peer leader = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getLeaderFieldBuilder() { if (leaderBuilder_ == null) { leaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getLeader(), getParentForChildren(), isClean()); leader_ = null; } return leaderBuilder_; } 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_cmdpb.RegionDetailResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.RegionDetailResponse) private static final org.tikv.kvproto.RaftCmdpb.RegionDetailResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RegionDetailResponse(); } public static org.tikv.kvproto.RaftCmdpb.RegionDetailResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegionDetailResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegionDetailResponse(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.RaftCmdpb.RegionDetailResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StatusRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.StatusRequest) com.google.protobuf.MessageOrBuilder { /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ int getCmdTypeValue(); /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ org.tikv.kvproto.RaftCmdpb.StatusCmdType getCmdType(); /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ boolean hasRegionLeader(); /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest getRegionLeader(); /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ org.tikv.kvproto.RaftCmdpb.RegionLeaderRequestOrBuilder getRegionLeaderOrBuilder(); /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ boolean hasRegionDetail(); /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ org.tikv.kvproto.RaftCmdpb.RegionDetailRequest getRegionDetail(); /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ org.tikv.kvproto.RaftCmdpb.RegionDetailRequestOrBuilder getRegionDetailOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.StatusRequest} */ public static final class StatusRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.StatusRequest) StatusRequestOrBuilder { private static final long serialVersionUID = 0L; // Use StatusRequest.newBuilder() to construct. private StatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StatusRequest() { cmdType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StatusRequest( 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(); cmdType_ = rawValue; break; } case 18: { org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.Builder subBuilder = null; if (regionLeader_ != null) { subBuilder = regionLeader_.toBuilder(); } regionLeader_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionLeader_); regionLeader_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.Builder subBuilder = null; if (regionDetail_ != null) { subBuilder = regionDetail_.toBuilder(); } regionDetail_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionDetail_); regionDetail_ = 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.RaftCmdpb.internal_static_raft_cmdpb_StatusRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_StatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.StatusRequest.class, org.tikv.kvproto.RaftCmdpb.StatusRequest.Builder.class); } public static final int CMD_TYPE_FIELD_NUMBER = 1; private int cmdType_; /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.StatusCmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.StatusCmdType result = org.tikv.kvproto.RaftCmdpb.StatusCmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.StatusCmdType.UNRECOGNIZED : result; } public static final int REGION_LEADER_FIELD_NUMBER = 2; private org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest regionLeader_; /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ public boolean hasRegionLeader() { return regionLeader_ != null; } /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ public org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest getRegionLeader() { return regionLeader_ == null ? org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.getDefaultInstance() : regionLeader_; } /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ public org.tikv.kvproto.RaftCmdpb.RegionLeaderRequestOrBuilder getRegionLeaderOrBuilder() { return getRegionLeader(); } public static final int REGION_DETAIL_FIELD_NUMBER = 3; private org.tikv.kvproto.RaftCmdpb.RegionDetailRequest regionDetail_; /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ public boolean hasRegionDetail() { return regionDetail_ != null; } /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ public org.tikv.kvproto.RaftCmdpb.RegionDetailRequest getRegionDetail() { return regionDetail_ == null ? org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.getDefaultInstance() : regionDetail_; } /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ public org.tikv.kvproto.RaftCmdpb.RegionDetailRequestOrBuilder getRegionDetailOrBuilder() { return getRegionDetail(); } 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 (cmdType_ != org.tikv.kvproto.RaftCmdpb.StatusCmdType.InvalidStatus.getNumber()) { output.writeEnum(1, cmdType_); } if (regionLeader_ != null) { output.writeMessage(2, getRegionLeader()); } if (regionDetail_ != null) { output.writeMessage(3, getRegionDetail()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cmdType_ != org.tikv.kvproto.RaftCmdpb.StatusCmdType.InvalidStatus.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, cmdType_); } if (regionLeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRegionLeader()); } if (regionDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRegionDetail()); } 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.RaftCmdpb.StatusRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.StatusRequest other = (org.tikv.kvproto.RaftCmdpb.StatusRequest) obj; boolean result = true; result = result && cmdType_ == other.cmdType_; result = result && (hasRegionLeader() == other.hasRegionLeader()); if (hasRegionLeader()) { result = result && getRegionLeader() .equals(other.getRegionLeader()); } result = result && (hasRegionDetail() == other.hasRegionDetail()); if (hasRegionDetail()) { result = result && getRegionDetail() .equals(other.getRegionDetail()); } 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) + CMD_TYPE_FIELD_NUMBER; hash = (53 * hash) + cmdType_; if (hasRegionLeader()) { hash = (37 * hash) + REGION_LEADER_FIELD_NUMBER; hash = (53 * hash) + getRegionLeader().hashCode(); } if (hasRegionDetail()) { hash = (37 * hash) + REGION_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getRegionDetail().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.StatusRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.StatusRequest 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.RaftCmdpb.StatusRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.StatusRequest 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.RaftCmdpb.StatusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.StatusRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.StatusRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.StatusRequest 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.RaftCmdpb.StatusRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.StatusRequest 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.RaftCmdpb.StatusRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.StatusRequest 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.RaftCmdpb.StatusRequest 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_cmdpb.StatusRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.StatusRequest) org.tikv.kvproto.RaftCmdpb.StatusRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_StatusRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_StatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.StatusRequest.class, org.tikv.kvproto.RaftCmdpb.StatusRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.StatusRequest.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(); cmdType_ = 0; if (regionLeaderBuilder_ == null) { regionLeader_ = null; } else { regionLeader_ = null; regionLeaderBuilder_ = null; } if (regionDetailBuilder_ == null) { regionDetail_ = null; } else { regionDetail_ = null; regionDetailBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_StatusRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.StatusRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.StatusRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.StatusRequest build() { org.tikv.kvproto.RaftCmdpb.StatusRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.StatusRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.StatusRequest result = new org.tikv.kvproto.RaftCmdpb.StatusRequest(this); result.cmdType_ = cmdType_; if (regionLeaderBuilder_ == null) { result.regionLeader_ = regionLeader_; } else { result.regionLeader_ = regionLeaderBuilder_.build(); } if (regionDetailBuilder_ == null) { result.regionDetail_ = regionDetail_; } else { result.regionDetail_ = regionDetailBuilder_.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.RaftCmdpb.StatusRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.StatusRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.StatusRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.StatusRequest.getDefaultInstance()) return this; if (other.cmdType_ != 0) { setCmdTypeValue(other.getCmdTypeValue()); } if (other.hasRegionLeader()) { mergeRegionLeader(other.getRegionLeader()); } if (other.hasRegionDetail()) { mergeRegionDetail(other.getRegionDetail()); } 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.RaftCmdpb.StatusRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.StatusRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cmdType_ = 0; /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public Builder setCmdTypeValue(int value) { cmdType_ = value; onChanged(); return this; } /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.StatusCmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.StatusCmdType result = org.tikv.kvproto.RaftCmdpb.StatusCmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.StatusCmdType.UNRECOGNIZED : result; } /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public Builder setCmdType(org.tikv.kvproto.RaftCmdpb.StatusCmdType value) { if (value == null) { throw new NullPointerException(); } cmdType_ = value.getNumber(); onChanged(); return this; } /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public Builder clearCmdType() { cmdType_ = 0; onChanged(); return this; } private org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest regionLeader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest, org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.Builder, org.tikv.kvproto.RaftCmdpb.RegionLeaderRequestOrBuilder> regionLeaderBuilder_; /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ public boolean hasRegionLeader() { return regionLeaderBuilder_ != null || regionLeader_ != null; } /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ public org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest getRegionLeader() { if (regionLeaderBuilder_ == null) { return regionLeader_ == null ? org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.getDefaultInstance() : regionLeader_; } else { return regionLeaderBuilder_.getMessage(); } } /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ public Builder setRegionLeader(org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest value) { if (regionLeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionLeader_ = value; onChanged(); } else { regionLeaderBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ public Builder setRegionLeader( org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.Builder builderForValue) { if (regionLeaderBuilder_ == null) { regionLeader_ = builderForValue.build(); onChanged(); } else { regionLeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ public Builder mergeRegionLeader(org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest value) { if (regionLeaderBuilder_ == null) { if (regionLeader_ != null) { regionLeader_ = org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.newBuilder(regionLeader_).mergeFrom(value).buildPartial(); } else { regionLeader_ = value; } onChanged(); } else { regionLeaderBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ public Builder clearRegionLeader() { if (regionLeaderBuilder_ == null) { regionLeader_ = null; onChanged(); } else { regionLeader_ = null; regionLeaderBuilder_ = null; } return this; } /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ public org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.Builder getRegionLeaderBuilder() { onChanged(); return getRegionLeaderFieldBuilder().getBuilder(); } /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ public org.tikv.kvproto.RaftCmdpb.RegionLeaderRequestOrBuilder getRegionLeaderOrBuilder() { if (regionLeaderBuilder_ != null) { return regionLeaderBuilder_.getMessageOrBuilder(); } else { return regionLeader_ == null ? org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.getDefaultInstance() : regionLeader_; } } /** * .raft_cmdpb.RegionLeaderRequest region_leader = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest, org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.Builder, org.tikv.kvproto.RaftCmdpb.RegionLeaderRequestOrBuilder> getRegionLeaderFieldBuilder() { if (regionLeaderBuilder_ == null) { regionLeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest, org.tikv.kvproto.RaftCmdpb.RegionLeaderRequest.Builder, org.tikv.kvproto.RaftCmdpb.RegionLeaderRequestOrBuilder>( getRegionLeader(), getParentForChildren(), isClean()); regionLeader_ = null; } return regionLeaderBuilder_; } private org.tikv.kvproto.RaftCmdpb.RegionDetailRequest regionDetail_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionDetailRequest, org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.Builder, org.tikv.kvproto.RaftCmdpb.RegionDetailRequestOrBuilder> regionDetailBuilder_; /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ public boolean hasRegionDetail() { return regionDetailBuilder_ != null || regionDetail_ != null; } /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ public org.tikv.kvproto.RaftCmdpb.RegionDetailRequest getRegionDetail() { if (regionDetailBuilder_ == null) { return regionDetail_ == null ? org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.getDefaultInstance() : regionDetail_; } else { return regionDetailBuilder_.getMessage(); } } /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ public Builder setRegionDetail(org.tikv.kvproto.RaftCmdpb.RegionDetailRequest value) { if (regionDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionDetail_ = value; onChanged(); } else { regionDetailBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ public Builder setRegionDetail( org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.Builder builderForValue) { if (regionDetailBuilder_ == null) { regionDetail_ = builderForValue.build(); onChanged(); } else { regionDetailBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ public Builder mergeRegionDetail(org.tikv.kvproto.RaftCmdpb.RegionDetailRequest value) { if (regionDetailBuilder_ == null) { if (regionDetail_ != null) { regionDetail_ = org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.newBuilder(regionDetail_).mergeFrom(value).buildPartial(); } else { regionDetail_ = value; } onChanged(); } else { regionDetailBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ public Builder clearRegionDetail() { if (regionDetailBuilder_ == null) { regionDetail_ = null; onChanged(); } else { regionDetail_ = null; regionDetailBuilder_ = null; } return this; } /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ public org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.Builder getRegionDetailBuilder() { onChanged(); return getRegionDetailFieldBuilder().getBuilder(); } /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ public org.tikv.kvproto.RaftCmdpb.RegionDetailRequestOrBuilder getRegionDetailOrBuilder() { if (regionDetailBuilder_ != null) { return regionDetailBuilder_.getMessageOrBuilder(); } else { return regionDetail_ == null ? org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.getDefaultInstance() : regionDetail_; } } /** * .raft_cmdpb.RegionDetailRequest region_detail = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionDetailRequest, org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.Builder, org.tikv.kvproto.RaftCmdpb.RegionDetailRequestOrBuilder> getRegionDetailFieldBuilder() { if (regionDetailBuilder_ == null) { regionDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionDetailRequest, org.tikv.kvproto.RaftCmdpb.RegionDetailRequest.Builder, org.tikv.kvproto.RaftCmdpb.RegionDetailRequestOrBuilder>( getRegionDetail(), getParentForChildren(), isClean()); regionDetail_ = null; } return regionDetailBuilder_; } 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_cmdpb.StatusRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.StatusRequest) private static final org.tikv.kvproto.RaftCmdpb.StatusRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.StatusRequest(); } public static org.tikv.kvproto.RaftCmdpb.StatusRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StatusRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StatusRequest(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.RaftCmdpb.StatusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StatusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.StatusResponse) com.google.protobuf.MessageOrBuilder { /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ int getCmdTypeValue(); /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ org.tikv.kvproto.RaftCmdpb.StatusCmdType getCmdType(); /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ boolean hasRegionLeader(); /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse getRegionLeader(); /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ org.tikv.kvproto.RaftCmdpb.RegionLeaderResponseOrBuilder getRegionLeaderOrBuilder(); /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ boolean hasRegionDetail(); /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ org.tikv.kvproto.RaftCmdpb.RegionDetailResponse getRegionDetail(); /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ org.tikv.kvproto.RaftCmdpb.RegionDetailResponseOrBuilder getRegionDetailOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.StatusResponse} */ public static final class StatusResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.StatusResponse) StatusResponseOrBuilder { private static final long serialVersionUID = 0L; // Use StatusResponse.newBuilder() to construct. private StatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StatusResponse() { cmdType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StatusResponse( 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(); cmdType_ = rawValue; break; } case 18: { org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.Builder subBuilder = null; if (regionLeader_ != null) { subBuilder = regionLeader_.toBuilder(); } regionLeader_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionLeader_); regionLeader_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.Builder subBuilder = null; if (regionDetail_ != null) { subBuilder = regionDetail_.toBuilder(); } regionDetail_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionDetail_); regionDetail_ = 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.RaftCmdpb.internal_static_raft_cmdpb_StatusResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_StatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.StatusResponse.class, org.tikv.kvproto.RaftCmdpb.StatusResponse.Builder.class); } public static final int CMD_TYPE_FIELD_NUMBER = 1; private int cmdType_; /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.StatusCmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.StatusCmdType result = org.tikv.kvproto.RaftCmdpb.StatusCmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.StatusCmdType.UNRECOGNIZED : result; } public static final int REGION_LEADER_FIELD_NUMBER = 2; private org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse regionLeader_; /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ public boolean hasRegionLeader() { return regionLeader_ != null; } /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ public org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse getRegionLeader() { return regionLeader_ == null ? org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.getDefaultInstance() : regionLeader_; } /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ public org.tikv.kvproto.RaftCmdpb.RegionLeaderResponseOrBuilder getRegionLeaderOrBuilder() { return getRegionLeader(); } public static final int REGION_DETAIL_FIELD_NUMBER = 3; private org.tikv.kvproto.RaftCmdpb.RegionDetailResponse regionDetail_; /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ public boolean hasRegionDetail() { return regionDetail_ != null; } /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ public org.tikv.kvproto.RaftCmdpb.RegionDetailResponse getRegionDetail() { return regionDetail_ == null ? org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.getDefaultInstance() : regionDetail_; } /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ public org.tikv.kvproto.RaftCmdpb.RegionDetailResponseOrBuilder getRegionDetailOrBuilder() { return getRegionDetail(); } 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 (cmdType_ != org.tikv.kvproto.RaftCmdpb.StatusCmdType.InvalidStatus.getNumber()) { output.writeEnum(1, cmdType_); } if (regionLeader_ != null) { output.writeMessage(2, getRegionLeader()); } if (regionDetail_ != null) { output.writeMessage(3, getRegionDetail()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (cmdType_ != org.tikv.kvproto.RaftCmdpb.StatusCmdType.InvalidStatus.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, cmdType_); } if (regionLeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRegionLeader()); } if (regionDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRegionDetail()); } 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.RaftCmdpb.StatusResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.StatusResponse other = (org.tikv.kvproto.RaftCmdpb.StatusResponse) obj; boolean result = true; result = result && cmdType_ == other.cmdType_; result = result && (hasRegionLeader() == other.hasRegionLeader()); if (hasRegionLeader()) { result = result && getRegionLeader() .equals(other.getRegionLeader()); } result = result && (hasRegionDetail() == other.hasRegionDetail()); if (hasRegionDetail()) { result = result && getRegionDetail() .equals(other.getRegionDetail()); } 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) + CMD_TYPE_FIELD_NUMBER; hash = (53 * hash) + cmdType_; if (hasRegionLeader()) { hash = (37 * hash) + REGION_LEADER_FIELD_NUMBER; hash = (53 * hash) + getRegionLeader().hashCode(); } if (hasRegionDetail()) { hash = (37 * hash) + REGION_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getRegionDetail().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.StatusResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.StatusResponse 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.RaftCmdpb.StatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.StatusResponse 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.RaftCmdpb.StatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.StatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.StatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.StatusResponse 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.RaftCmdpb.StatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.StatusResponse 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.RaftCmdpb.StatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.StatusResponse 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.RaftCmdpb.StatusResponse 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_cmdpb.StatusResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.StatusResponse) org.tikv.kvproto.RaftCmdpb.StatusResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_StatusResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_StatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.StatusResponse.class, org.tikv.kvproto.RaftCmdpb.StatusResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.StatusResponse.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(); cmdType_ = 0; if (regionLeaderBuilder_ == null) { regionLeader_ = null; } else { regionLeader_ = null; regionLeaderBuilder_ = null; } if (regionDetailBuilder_ == null) { regionDetail_ = null; } else { regionDetail_ = null; regionDetailBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_StatusResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.StatusResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.StatusResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.StatusResponse build() { org.tikv.kvproto.RaftCmdpb.StatusResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.StatusResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.StatusResponse result = new org.tikv.kvproto.RaftCmdpb.StatusResponse(this); result.cmdType_ = cmdType_; if (regionLeaderBuilder_ == null) { result.regionLeader_ = regionLeader_; } else { result.regionLeader_ = regionLeaderBuilder_.build(); } if (regionDetailBuilder_ == null) { result.regionDetail_ = regionDetail_; } else { result.regionDetail_ = regionDetailBuilder_.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.RaftCmdpb.StatusResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.StatusResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.StatusResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.StatusResponse.getDefaultInstance()) return this; if (other.cmdType_ != 0) { setCmdTypeValue(other.getCmdTypeValue()); } if (other.hasRegionLeader()) { mergeRegionLeader(other.getRegionLeader()); } if (other.hasRegionDetail()) { mergeRegionDetail(other.getRegionDetail()); } 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.RaftCmdpb.StatusResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.StatusResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int cmdType_ = 0; /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public int getCmdTypeValue() { return cmdType_; } /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public Builder setCmdTypeValue(int value) { cmdType_ = value; onChanged(); return this; } /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public org.tikv.kvproto.RaftCmdpb.StatusCmdType getCmdType() { org.tikv.kvproto.RaftCmdpb.StatusCmdType result = org.tikv.kvproto.RaftCmdpb.StatusCmdType.valueOf(cmdType_); return result == null ? org.tikv.kvproto.RaftCmdpb.StatusCmdType.UNRECOGNIZED : result; } /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public Builder setCmdType(org.tikv.kvproto.RaftCmdpb.StatusCmdType value) { if (value == null) { throw new NullPointerException(); } cmdType_ = value.getNumber(); onChanged(); return this; } /** * .raft_cmdpb.StatusCmdType cmd_type = 1; */ public Builder clearCmdType() { cmdType_ = 0; onChanged(); return this; } private org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse regionLeader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse, org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.Builder, org.tikv.kvproto.RaftCmdpb.RegionLeaderResponseOrBuilder> regionLeaderBuilder_; /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ public boolean hasRegionLeader() { return regionLeaderBuilder_ != null || regionLeader_ != null; } /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ public org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse getRegionLeader() { if (regionLeaderBuilder_ == null) { return regionLeader_ == null ? org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.getDefaultInstance() : regionLeader_; } else { return regionLeaderBuilder_.getMessage(); } } /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ public Builder setRegionLeader(org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse value) { if (regionLeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionLeader_ = value; onChanged(); } else { regionLeaderBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ public Builder setRegionLeader( org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.Builder builderForValue) { if (regionLeaderBuilder_ == null) { regionLeader_ = builderForValue.build(); onChanged(); } else { regionLeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ public Builder mergeRegionLeader(org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse value) { if (regionLeaderBuilder_ == null) { if (regionLeader_ != null) { regionLeader_ = org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.newBuilder(regionLeader_).mergeFrom(value).buildPartial(); } else { regionLeader_ = value; } onChanged(); } else { regionLeaderBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ public Builder clearRegionLeader() { if (regionLeaderBuilder_ == null) { regionLeader_ = null; onChanged(); } else { regionLeader_ = null; regionLeaderBuilder_ = null; } return this; } /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ public org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.Builder getRegionLeaderBuilder() { onChanged(); return getRegionLeaderFieldBuilder().getBuilder(); } /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ public org.tikv.kvproto.RaftCmdpb.RegionLeaderResponseOrBuilder getRegionLeaderOrBuilder() { if (regionLeaderBuilder_ != null) { return regionLeaderBuilder_.getMessageOrBuilder(); } else { return regionLeader_ == null ? org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.getDefaultInstance() : regionLeader_; } } /** * .raft_cmdpb.RegionLeaderResponse region_leader = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse, org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.Builder, org.tikv.kvproto.RaftCmdpb.RegionLeaderResponseOrBuilder> getRegionLeaderFieldBuilder() { if (regionLeaderBuilder_ == null) { regionLeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse, org.tikv.kvproto.RaftCmdpb.RegionLeaderResponse.Builder, org.tikv.kvproto.RaftCmdpb.RegionLeaderResponseOrBuilder>( getRegionLeader(), getParentForChildren(), isClean()); regionLeader_ = null; } return regionLeaderBuilder_; } private org.tikv.kvproto.RaftCmdpb.RegionDetailResponse regionDetail_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionDetailResponse, org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.Builder, org.tikv.kvproto.RaftCmdpb.RegionDetailResponseOrBuilder> regionDetailBuilder_; /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ public boolean hasRegionDetail() { return regionDetailBuilder_ != null || regionDetail_ != null; } /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ public org.tikv.kvproto.RaftCmdpb.RegionDetailResponse getRegionDetail() { if (regionDetailBuilder_ == null) { return regionDetail_ == null ? org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.getDefaultInstance() : regionDetail_; } else { return regionDetailBuilder_.getMessage(); } } /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ public Builder setRegionDetail(org.tikv.kvproto.RaftCmdpb.RegionDetailResponse value) { if (regionDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionDetail_ = value; onChanged(); } else { regionDetailBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ public Builder setRegionDetail( org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.Builder builderForValue) { if (regionDetailBuilder_ == null) { regionDetail_ = builderForValue.build(); onChanged(); } else { regionDetailBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ public Builder mergeRegionDetail(org.tikv.kvproto.RaftCmdpb.RegionDetailResponse value) { if (regionDetailBuilder_ == null) { if (regionDetail_ != null) { regionDetail_ = org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.newBuilder(regionDetail_).mergeFrom(value).buildPartial(); } else { regionDetail_ = value; } onChanged(); } else { regionDetailBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ public Builder clearRegionDetail() { if (regionDetailBuilder_ == null) { regionDetail_ = null; onChanged(); } else { regionDetail_ = null; regionDetailBuilder_ = null; } return this; } /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ public org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.Builder getRegionDetailBuilder() { onChanged(); return getRegionDetailFieldBuilder().getBuilder(); } /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ public org.tikv.kvproto.RaftCmdpb.RegionDetailResponseOrBuilder getRegionDetailOrBuilder() { if (regionDetailBuilder_ != null) { return regionDetailBuilder_.getMessageOrBuilder(); } else { return regionDetail_ == null ? org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.getDefaultInstance() : regionDetail_; } } /** * .raft_cmdpb.RegionDetailResponse region_detail = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionDetailResponse, org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.Builder, org.tikv.kvproto.RaftCmdpb.RegionDetailResponseOrBuilder> getRegionDetailFieldBuilder() { if (regionDetailBuilder_ == null) { regionDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RegionDetailResponse, org.tikv.kvproto.RaftCmdpb.RegionDetailResponse.Builder, org.tikv.kvproto.RaftCmdpb.RegionDetailResponseOrBuilder>( getRegionDetail(), getParentForChildren(), isClean()); regionDetail_ = null; } return regionDetailBuilder_; } 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_cmdpb.StatusResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.StatusResponse) private static final org.tikv.kvproto.RaftCmdpb.StatusResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.StatusResponse(); } public static org.tikv.kvproto.RaftCmdpb.StatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StatusResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StatusResponse(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.RaftCmdpb.StatusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RaftRequestHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.RaftRequestHeader) com.google.protobuf.MessageOrBuilder { /** * uint64 region_id = 1; */ long getRegionId(); /** * .metapb.Peer peer = 2; */ boolean hasPeer(); /** * .metapb.Peer peer = 2; */ org.tikv.kvproto.Metapb.Peer getPeer(); /** * .metapb.Peer peer = 2; */ org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder(); /** *
     * true for read linearization
     * 
* * bool read_quorum = 3; */ boolean getReadQuorum(); /** *
     * 16 bytes, to distinguish request.  
     * 
* * bytes uuid = 4; */ com.google.protobuf.ByteString getUuid(); /** * .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(); /** * uint64 term = 6; */ long getTerm(); /** * bool sync_log = 7; */ boolean getSyncLog(); /** * bool replica_read = 8; */ boolean getReplicaRead(); /** *
     * Read requests can be responsed directly after the Raft applys to `applied_index`.
     * 
* * uint64 applied_index = 9; */ long getAppliedIndex(); /** *
     * Custom flags for this raft request.
     * 
* * uint64 flags = 10; */ long getFlags(); } /** * Protobuf type {@code raft_cmdpb.RaftRequestHeader} */ public static final class RaftRequestHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.RaftRequestHeader) RaftRequestHeaderOrBuilder { private static final long serialVersionUID = 0L; // Use RaftRequestHeader.newBuilder() to construct. private RaftRequestHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaftRequestHeader() { regionId_ = 0L; readQuorum_ = false; uuid_ = com.google.protobuf.ByteString.EMPTY; term_ = 0L; syncLog_ = false; replicaRead_ = false; appliedIndex_ = 0L; flags_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RaftRequestHeader( 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 (peer_ != null) { subBuilder = peer_.toBuilder(); } peer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(peer_); peer_ = subBuilder.buildPartial(); } break; } case 24: { readQuorum_ = input.readBool(); break; } case 34: { uuid_ = input.readBytes(); 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: { term_ = input.readUInt64(); break; } case 56: { syncLog_ = input.readBool(); break; } case 64: { replicaRead_ = input.readBool(); break; } case 72: { appliedIndex_ = input.readUInt64(); break; } case 80: { flags_ = 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.RaftCmdpb.internal_static_raft_cmdpb_RaftRequestHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftRequestHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.class, org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.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 PEER_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Peer peer_; /** * .metapb.Peer peer = 2; */ public boolean hasPeer() { return peer_ != null; } /** * .metapb.Peer peer = 2; */ public org.tikv.kvproto.Metapb.Peer getPeer() { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } /** * .metapb.Peer peer = 2; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { return getPeer(); } public static final int READ_QUORUM_FIELD_NUMBER = 3; private boolean readQuorum_; /** *
     * true for read linearization
     * 
* * bool read_quorum = 3; */ public boolean getReadQuorum() { return readQuorum_; } public static final int UUID_FIELD_NUMBER = 4; private com.google.protobuf.ByteString uuid_; /** *
     * 16 bytes, to distinguish request.  
     * 
* * bytes uuid = 4; */ public com.google.protobuf.ByteString getUuid() { return uuid_; } 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 TERM_FIELD_NUMBER = 6; private long term_; /** * uint64 term = 6; */ public long getTerm() { return term_; } public static final int SYNC_LOG_FIELD_NUMBER = 7; private boolean syncLog_; /** * bool sync_log = 7; */ public boolean getSyncLog() { return syncLog_; } public static final int REPLICA_READ_FIELD_NUMBER = 8; private boolean replicaRead_; /** * bool replica_read = 8; */ public boolean getReplicaRead() { return replicaRead_; } public static final int APPLIED_INDEX_FIELD_NUMBER = 9; private long appliedIndex_; /** *
     * Read requests can be responsed directly after the Raft applys to `applied_index`.
     * 
* * uint64 applied_index = 9; */ public long getAppliedIndex() { return appliedIndex_; } public static final int FLAGS_FIELD_NUMBER = 10; private long flags_; /** *
     * Custom flags for this raft request.
     * 
* * uint64 flags = 10; */ public long getFlags() { return flags_; } 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 (peer_ != null) { output.writeMessage(2, getPeer()); } if (readQuorum_ != false) { output.writeBool(3, readQuorum_); } if (!uuid_.isEmpty()) { output.writeBytes(4, uuid_); } if (regionEpoch_ != null) { output.writeMessage(5, getRegionEpoch()); } if (term_ != 0L) { output.writeUInt64(6, term_); } if (syncLog_ != false) { output.writeBool(7, syncLog_); } if (replicaRead_ != false) { output.writeBool(8, replicaRead_); } if (appliedIndex_ != 0L) { output.writeUInt64(9, appliedIndex_); } if (flags_ != 0L) { output.writeUInt64(10, flags_); } 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 (peer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPeer()); } if (readQuorum_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, readQuorum_); } if (!uuid_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, uuid_); } if (regionEpoch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRegionEpoch()); } if (term_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, term_); } if (syncLog_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, syncLog_); } if (replicaRead_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, replicaRead_); } if (appliedIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(9, appliedIndex_); } if (flags_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(10, flags_); } 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.RaftCmdpb.RaftRequestHeader)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.RaftRequestHeader other = (org.tikv.kvproto.RaftCmdpb.RaftRequestHeader) obj; boolean result = true; result = result && (getRegionId() == other.getRegionId()); result = result && (hasPeer() == other.hasPeer()); if (hasPeer()) { result = result && getPeer() .equals(other.getPeer()); } result = result && (getReadQuorum() == other.getReadQuorum()); result = result && getUuid() .equals(other.getUuid()); result = result && (hasRegionEpoch() == other.hasRegionEpoch()); if (hasRegionEpoch()) { result = result && getRegionEpoch() .equals(other.getRegionEpoch()); } result = result && (getTerm() == other.getTerm()); result = result && (getSyncLog() == other.getSyncLog()); result = result && (getReplicaRead() == other.getReplicaRead()); result = result && (getAppliedIndex() == other.getAppliedIndex()); result = result && (getFlags() == other.getFlags()); 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 (hasPeer()) { hash = (37 * hash) + PEER_FIELD_NUMBER; hash = (53 * hash) + getPeer().hashCode(); } hash = (37 * hash) + READ_QUORUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReadQuorum()); hash = (37 * hash) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); if (hasRegionEpoch()) { hash = (37 * hash) + REGION_EPOCH_FIELD_NUMBER; hash = (53 * hash) + getRegionEpoch().hashCode(); } hash = (37 * hash) + TERM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTerm()); hash = (37 * hash) + SYNC_LOG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSyncLog()); hash = (37 * hash) + REPLICA_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReplicaRead()); hash = (37 * hash) + APPLIED_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAppliedIndex()); hash = (37 * hash) + FLAGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getFlags()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.RaftRequestHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftRequestHeader 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.RaftCmdpb.RaftRequestHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftRequestHeader 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.RaftCmdpb.RaftRequestHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftRequestHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.RaftRequestHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftRequestHeader 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.RaftCmdpb.RaftRequestHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftRequestHeader 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.RaftCmdpb.RaftRequestHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftRequestHeader 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.RaftCmdpb.RaftRequestHeader 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_cmdpb.RaftRequestHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.RaftRequestHeader) org.tikv.kvproto.RaftCmdpb.RaftRequestHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftRequestHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftRequestHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.class, org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.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 (peerBuilder_ == null) { peer_ = null; } else { peer_ = null; peerBuilder_ = null; } readQuorum_ = false; uuid_ = com.google.protobuf.ByteString.EMPTY; if (regionEpochBuilder_ == null) { regionEpoch_ = null; } else { regionEpoch_ = null; regionEpochBuilder_ = null; } term_ = 0L; syncLog_ = false; replicaRead_ = false; appliedIndex_ = 0L; flags_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftRequestHeader_descriptor; } public org.tikv.kvproto.RaftCmdpb.RaftRequestHeader getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.RaftRequestHeader build() { org.tikv.kvproto.RaftCmdpb.RaftRequestHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.RaftRequestHeader buildPartial() { org.tikv.kvproto.RaftCmdpb.RaftRequestHeader result = new org.tikv.kvproto.RaftCmdpb.RaftRequestHeader(this); result.regionId_ = regionId_; if (peerBuilder_ == null) { result.peer_ = peer_; } else { result.peer_ = peerBuilder_.build(); } result.readQuorum_ = readQuorum_; result.uuid_ = uuid_; if (regionEpochBuilder_ == null) { result.regionEpoch_ = regionEpoch_; } else { result.regionEpoch_ = regionEpochBuilder_.build(); } result.term_ = term_; result.syncLog_ = syncLog_; result.replicaRead_ = replicaRead_; result.appliedIndex_ = appliedIndex_; result.flags_ = flags_; 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.RaftCmdpb.RaftRequestHeader) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.RaftRequestHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RaftRequestHeader other) { if (other == org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.getDefaultInstance()) return this; if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } if (other.hasPeer()) { mergePeer(other.getPeer()); } if (other.getReadQuorum() != false) { setReadQuorum(other.getReadQuorum()); } if (other.getUuid() != com.google.protobuf.ByteString.EMPTY) { setUuid(other.getUuid()); } if (other.hasRegionEpoch()) { mergeRegionEpoch(other.getRegionEpoch()); } if (other.getTerm() != 0L) { setTerm(other.getTerm()); } if (other.getSyncLog() != false) { setSyncLog(other.getSyncLog()); } if (other.getReplicaRead() != false) { setReplicaRead(other.getReplicaRead()); } if (other.getAppliedIndex() != 0L) { setAppliedIndex(other.getAppliedIndex()); } if (other.getFlags() != 0L) { setFlags(other.getFlags()); } 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.RaftCmdpb.RaftRequestHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.RaftRequestHeader) 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 peer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> peerBuilder_; /** * .metapb.Peer peer = 2; */ public boolean hasPeer() { return peerBuilder_ != null || peer_ != null; } /** * .metapb.Peer peer = 2; */ public org.tikv.kvproto.Metapb.Peer getPeer() { if (peerBuilder_ == null) { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } else { return peerBuilder_.getMessage(); } } /** * .metapb.Peer peer = 2; */ public Builder setPeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } peer_ = value; onChanged(); } else { peerBuilder_.setMessage(value); } return this; } /** * .metapb.Peer peer = 2; */ public Builder setPeer( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (peerBuilder_ == null) { peer_ = builderForValue.build(); onChanged(); } else { peerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer peer = 2; */ public Builder mergePeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (peer_ != null) { peer_ = org.tikv.kvproto.Metapb.Peer.newBuilder(peer_).mergeFrom(value).buildPartial(); } else { peer_ = value; } onChanged(); } else { peerBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer peer = 2; */ public Builder clearPeer() { if (peerBuilder_ == null) { peer_ = null; onChanged(); } else { peer_ = null; peerBuilder_ = null; } return this; } /** * .metapb.Peer peer = 2; */ public org.tikv.kvproto.Metapb.Peer.Builder getPeerBuilder() { onChanged(); return getPeerFieldBuilder().getBuilder(); } /** * .metapb.Peer peer = 2; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { if (peerBuilder_ != null) { return peerBuilder_.getMessageOrBuilder(); } else { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } } /** * .metapb.Peer peer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getPeerFieldBuilder() { if (peerBuilder_ == null) { peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getPeer(), getParentForChildren(), isClean()); peer_ = null; } return peerBuilder_; } private boolean readQuorum_ ; /** *
       * true for read linearization
       * 
* * bool read_quorum = 3; */ public boolean getReadQuorum() { return readQuorum_; } /** *
       * true for read linearization
       * 
* * bool read_quorum = 3; */ public Builder setReadQuorum(boolean value) { readQuorum_ = value; onChanged(); return this; } /** *
       * true for read linearization
       * 
* * bool read_quorum = 3; */ public Builder clearReadQuorum() { readQuorum_ = false; onChanged(); return this; } private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY; /** *
       * 16 bytes, to distinguish request.  
       * 
* * bytes uuid = 4; */ public com.google.protobuf.ByteString getUuid() { return uuid_; } /** *
       * 16 bytes, to distinguish request.  
       * 
* * bytes uuid = 4; */ public Builder setUuid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } uuid_ = value; onChanged(); return this; } /** *
       * 16 bytes, to distinguish request.  
       * 
* * bytes uuid = 4; */ public Builder clearUuid() { uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder> regionEpochBuilder_; /** * .metapb.RegionEpoch region_epoch = 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 long term_ ; /** * uint64 term = 6; */ public long getTerm() { return term_; } /** * uint64 term = 6; */ public Builder setTerm(long value) { term_ = value; onChanged(); return this; } /** * uint64 term = 6; */ public Builder clearTerm() { term_ = 0L; onChanged(); return this; } private boolean syncLog_ ; /** * bool sync_log = 7; */ public boolean getSyncLog() { return syncLog_; } /** * bool sync_log = 7; */ public Builder setSyncLog(boolean value) { syncLog_ = value; onChanged(); return this; } /** * bool sync_log = 7; */ public Builder clearSyncLog() { syncLog_ = false; onChanged(); return this; } private boolean replicaRead_ ; /** * bool replica_read = 8; */ public boolean getReplicaRead() { return replicaRead_; } /** * bool replica_read = 8; */ public Builder setReplicaRead(boolean value) { replicaRead_ = value; onChanged(); return this; } /** * bool replica_read = 8; */ public Builder clearReplicaRead() { replicaRead_ = false; onChanged(); return this; } private long appliedIndex_ ; /** *
       * Read requests can be responsed directly after the Raft applys to `applied_index`.
       * 
* * uint64 applied_index = 9; */ public long getAppliedIndex() { return appliedIndex_; } /** *
       * Read requests can be responsed directly after the Raft applys to `applied_index`.
       * 
* * uint64 applied_index = 9; */ public Builder setAppliedIndex(long value) { appliedIndex_ = value; onChanged(); return this; } /** *
       * Read requests can be responsed directly after the Raft applys to `applied_index`.
       * 
* * uint64 applied_index = 9; */ public Builder clearAppliedIndex() { appliedIndex_ = 0L; onChanged(); return this; } private long flags_ ; /** *
       * Custom flags for this raft request.
       * 
* * uint64 flags = 10; */ public long getFlags() { return flags_; } /** *
       * Custom flags for this raft request.
       * 
* * uint64 flags = 10; */ public Builder setFlags(long value) { flags_ = value; onChanged(); return this; } /** *
       * Custom flags for this raft request.
       * 
* * uint64 flags = 10; */ public Builder clearFlags() { flags_ = 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_cmdpb.RaftRequestHeader) } // @@protoc_insertion_point(class_scope:raft_cmdpb.RaftRequestHeader) private static final org.tikv.kvproto.RaftCmdpb.RaftRequestHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RaftRequestHeader(); } public static org.tikv.kvproto.RaftCmdpb.RaftRequestHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RaftRequestHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RaftRequestHeader(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.RaftCmdpb.RaftRequestHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RaftResponseHeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.RaftResponseHeader) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error error = 1; */ boolean hasError(); /** * .errorpb.Error error = 1; */ org.tikv.kvproto.Errorpb.Error getError(); /** * .errorpb.Error error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getErrorOrBuilder(); /** * bytes uuid = 2; */ com.google.protobuf.ByteString getUuid(); /** * uint64 current_term = 3; */ long getCurrentTerm(); } /** * Protobuf type {@code raft_cmdpb.RaftResponseHeader} */ public static final class RaftResponseHeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.RaftResponseHeader) RaftResponseHeaderOrBuilder { private static final long serialVersionUID = 0L; // Use RaftResponseHeader.newBuilder() to construct. private RaftResponseHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaftResponseHeader() { uuid_ = com.google.protobuf.ByteString.EMPTY; currentTerm_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RaftResponseHeader( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 18: { uuid_ = input.readBytes(); break; } case 24: { currentTerm_ = 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.RaftCmdpb.internal_static_raft_cmdpb_RaftResponseHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftResponseHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.class, org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error error_; /** * .errorpb.Error error = 1; */ public boolean hasError() { return error_ != null; } /** * .errorpb.Error error = 1; */ public org.tikv.kvproto.Errorpb.Error getError() { return error_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : error_; } /** * .errorpb.Error error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int UUID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString uuid_; /** * bytes uuid = 2; */ public com.google.protobuf.ByteString getUuid() { return uuid_; } public static final int CURRENT_TERM_FIELD_NUMBER = 3; private long currentTerm_; /** * uint64 current_term = 3; */ public long getCurrentTerm() { return currentTerm_; } 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 (error_ != null) { output.writeMessage(1, getError()); } if (!uuid_.isEmpty()) { output.writeBytes(2, uuid_); } if (currentTerm_ != 0L) { output.writeUInt64(3, currentTerm_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getError()); } if (!uuid_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, uuid_); } if (currentTerm_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, currentTerm_); } 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.RaftCmdpb.RaftResponseHeader)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.RaftResponseHeader other = (org.tikv.kvproto.RaftCmdpb.RaftResponseHeader) obj; boolean result = true; result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && getUuid() .equals(other.getUuid()); result = result && (getCurrentTerm() == other.getCurrentTerm()); 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 (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (37 * hash) + UUID_FIELD_NUMBER; hash = (53 * hash) + getUuid().hashCode(); hash = (37 * hash) + CURRENT_TERM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCurrentTerm()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.RaftResponseHeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftResponseHeader 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.RaftCmdpb.RaftResponseHeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftResponseHeader 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.RaftCmdpb.RaftResponseHeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftResponseHeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.RaftResponseHeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftResponseHeader 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.RaftCmdpb.RaftResponseHeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftResponseHeader 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.RaftCmdpb.RaftResponseHeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftResponseHeader 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.RaftCmdpb.RaftResponseHeader 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_cmdpb.RaftResponseHeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.RaftResponseHeader) org.tikv.kvproto.RaftCmdpb.RaftResponseHeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftResponseHeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftResponseHeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.class, org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.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 (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } uuid_ = com.google.protobuf.ByteString.EMPTY; currentTerm_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftResponseHeader_descriptor; } public org.tikv.kvproto.RaftCmdpb.RaftResponseHeader getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.RaftResponseHeader build() { org.tikv.kvproto.RaftCmdpb.RaftResponseHeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.RaftResponseHeader buildPartial() { org.tikv.kvproto.RaftCmdpb.RaftResponseHeader result = new org.tikv.kvproto.RaftCmdpb.RaftResponseHeader(this); if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.uuid_ = uuid_; result.currentTerm_ = currentTerm_; 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.RaftCmdpb.RaftResponseHeader) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.RaftResponseHeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RaftResponseHeader other) { if (other == org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } if (other.getUuid() != com.google.protobuf.ByteString.EMPTY) { setUuid(other.getUuid()); } if (other.getCurrentTerm() != 0L) { setCurrentTerm(other.getCurrentTerm()); } 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.RaftCmdpb.RaftResponseHeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.RaftResponseHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> errorBuilder_; /** * .errorpb.Error error = 1; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .errorpb.Error error = 1; */ public org.tikv.kvproto.Errorpb.Error getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .errorpb.Error error = 1; */ public Builder setError(org.tikv.kvproto.Errorpb.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error error = 1; */ public Builder setError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error error = 1; */ public Builder mergeError(org.tikv.kvproto.Errorpb.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Errorpb.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error error = 1; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .errorpb.Error error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : error_; } } /** * .errorpb.Error error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private com.google.protobuf.ByteString uuid_ = com.google.protobuf.ByteString.EMPTY; /** * bytes uuid = 2; */ public com.google.protobuf.ByteString getUuid() { return uuid_; } /** * bytes uuid = 2; */ public Builder setUuid(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } uuid_ = value; onChanged(); return this; } /** * bytes uuid = 2; */ public Builder clearUuid() { uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } private long currentTerm_ ; /** * uint64 current_term = 3; */ public long getCurrentTerm() { return currentTerm_; } /** * uint64 current_term = 3; */ public Builder setCurrentTerm(long value) { currentTerm_ = value; onChanged(); return this; } /** * uint64 current_term = 3; */ public Builder clearCurrentTerm() { currentTerm_ = 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_cmdpb.RaftResponseHeader) } // @@protoc_insertion_point(class_scope:raft_cmdpb.RaftResponseHeader) private static final org.tikv.kvproto.RaftCmdpb.RaftResponseHeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RaftResponseHeader(); } public static org.tikv.kvproto.RaftCmdpb.RaftResponseHeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RaftResponseHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RaftResponseHeader(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.RaftCmdpb.RaftResponseHeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RaftCmdRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.RaftCmdRequest) com.google.protobuf.MessageOrBuilder { /** * .raft_cmdpb.RaftRequestHeader header = 1; */ boolean hasHeader(); /** * .raft_cmdpb.RaftRequestHeader header = 1; */ org.tikv.kvproto.RaftCmdpb.RaftRequestHeader getHeader(); /** * .raft_cmdpb.RaftRequestHeader header = 1; */ org.tikv.kvproto.RaftCmdpb.RaftRequestHeaderOrBuilder getHeaderOrBuilder(); /** *
     * We can't enclose normal requests and administrator request
     * at same time. 
     * 
* * repeated .raft_cmdpb.Request requests = 2; */ java.util.List getRequestsList(); /** *
     * We can't enclose normal requests and administrator request
     * at same time. 
     * 
* * repeated .raft_cmdpb.Request requests = 2; */ org.tikv.kvproto.RaftCmdpb.Request getRequests(int index); /** *
     * We can't enclose normal requests and administrator request
     * at same time. 
     * 
* * repeated .raft_cmdpb.Request requests = 2; */ int getRequestsCount(); /** *
     * We can't enclose normal requests and administrator request
     * at same time. 
     * 
* * repeated .raft_cmdpb.Request requests = 2; */ java.util.List getRequestsOrBuilderList(); /** *
     * We can't enclose normal requests and administrator request
     * at same time. 
     * 
* * repeated .raft_cmdpb.Request requests = 2; */ org.tikv.kvproto.RaftCmdpb.RequestOrBuilder getRequestsOrBuilder( int index); /** * .raft_cmdpb.AdminRequest admin_request = 3; */ boolean hasAdminRequest(); /** * .raft_cmdpb.AdminRequest admin_request = 3; */ org.tikv.kvproto.RaftCmdpb.AdminRequest getAdminRequest(); /** * .raft_cmdpb.AdminRequest admin_request = 3; */ org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder getAdminRequestOrBuilder(); /** * .raft_cmdpb.StatusRequest status_request = 4; */ boolean hasStatusRequest(); /** * .raft_cmdpb.StatusRequest status_request = 4; */ org.tikv.kvproto.RaftCmdpb.StatusRequest getStatusRequest(); /** * .raft_cmdpb.StatusRequest status_request = 4; */ org.tikv.kvproto.RaftCmdpb.StatusRequestOrBuilder getStatusRequestOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.RaftCmdRequest} */ public static final class RaftCmdRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.RaftCmdRequest) RaftCmdRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RaftCmdRequest.newBuilder() to construct. private RaftCmdRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaftCmdRequest() { requests_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RaftCmdRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { requests_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } requests_.add( input.readMessage(org.tikv.kvproto.RaftCmdpb.Request.parser(), extensionRegistry)); break; } case 26: { org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder subBuilder = null; if (adminRequest_ != null) { subBuilder = adminRequest_.toBuilder(); } adminRequest_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.AdminRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(adminRequest_); adminRequest_ = subBuilder.buildPartial(); } break; } case 34: { org.tikv.kvproto.RaftCmdpb.StatusRequest.Builder subBuilder = null; if (statusRequest_ != null) { subBuilder = statusRequest_.toBuilder(); } statusRequest_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.StatusRequest.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(statusRequest_); statusRequest_ = 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_ & 0x00000002) == 0x00000002)) { requests_ = java.util.Collections.unmodifiableList(requests_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftCmdRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftCmdRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RaftCmdRequest.class, org.tikv.kvproto.RaftCmdpb.RaftCmdRequest.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.RaftCmdpb.RaftRequestHeader header_; /** * .raft_cmdpb.RaftRequestHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .raft_cmdpb.RaftRequestHeader header = 1; */ public org.tikv.kvproto.RaftCmdpb.RaftRequestHeader getHeader() { return header_ == null ? org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.getDefaultInstance() : header_; } /** * .raft_cmdpb.RaftRequestHeader header = 1; */ public org.tikv.kvproto.RaftCmdpb.RaftRequestHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REQUESTS_FIELD_NUMBER = 2; private java.util.List requests_; /** *
     * We can't enclose normal requests and administrator request
     * at same time. 
     * 
* * repeated .raft_cmdpb.Request requests = 2; */ public java.util.List getRequestsList() { return requests_; } /** *
     * We can't enclose normal requests and administrator request
     * at same time. 
     * 
* * repeated .raft_cmdpb.Request requests = 2; */ public java.util.List getRequestsOrBuilderList() { return requests_; } /** *
     * We can't enclose normal requests and administrator request
     * at same time. 
     * 
* * repeated .raft_cmdpb.Request requests = 2; */ public int getRequestsCount() { return requests_.size(); } /** *
     * We can't enclose normal requests and administrator request
     * at same time. 
     * 
* * repeated .raft_cmdpb.Request requests = 2; */ public org.tikv.kvproto.RaftCmdpb.Request getRequests(int index) { return requests_.get(index); } /** *
     * We can't enclose normal requests and administrator request
     * at same time. 
     * 
* * repeated .raft_cmdpb.Request requests = 2; */ public org.tikv.kvproto.RaftCmdpb.RequestOrBuilder getRequestsOrBuilder( int index) { return requests_.get(index); } public static final int ADMIN_REQUEST_FIELD_NUMBER = 3; private org.tikv.kvproto.RaftCmdpb.AdminRequest adminRequest_; /** * .raft_cmdpb.AdminRequest admin_request = 3; */ public boolean hasAdminRequest() { return adminRequest_ != null; } /** * .raft_cmdpb.AdminRequest admin_request = 3; */ public org.tikv.kvproto.RaftCmdpb.AdminRequest getAdminRequest() { return adminRequest_ == null ? org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance() : adminRequest_; } /** * .raft_cmdpb.AdminRequest admin_request = 3; */ public org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder getAdminRequestOrBuilder() { return getAdminRequest(); } public static final int STATUS_REQUEST_FIELD_NUMBER = 4; private org.tikv.kvproto.RaftCmdpb.StatusRequest statusRequest_; /** * .raft_cmdpb.StatusRequest status_request = 4; */ public boolean hasStatusRequest() { return statusRequest_ != null; } /** * .raft_cmdpb.StatusRequest status_request = 4; */ public org.tikv.kvproto.RaftCmdpb.StatusRequest getStatusRequest() { return statusRequest_ == null ? org.tikv.kvproto.RaftCmdpb.StatusRequest.getDefaultInstance() : statusRequest_; } /** * .raft_cmdpb.StatusRequest status_request = 4; */ public org.tikv.kvproto.RaftCmdpb.StatusRequestOrBuilder getStatusRequestOrBuilder() { return getStatusRequest(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < requests_.size(); i++) { output.writeMessage(2, requests_.get(i)); } if (adminRequest_ != null) { output.writeMessage(3, getAdminRequest()); } if (statusRequest_ != null) { output.writeMessage(4, getStatusRequest()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < requests_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, requests_.get(i)); } if (adminRequest_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAdminRequest()); } if (statusRequest_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getStatusRequest()); } 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.RaftCmdpb.RaftCmdRequest)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.RaftCmdRequest other = (org.tikv.kvproto.RaftCmdpb.RaftCmdRequest) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getRequestsList() .equals(other.getRequestsList()); result = result && (hasAdminRequest() == other.hasAdminRequest()); if (hasAdminRequest()) { result = result && getAdminRequest() .equals(other.getAdminRequest()); } result = result && (hasStatusRequest() == other.hasStatusRequest()); if (hasStatusRequest()) { result = result && getStatusRequest() .equals(other.getStatusRequest()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getRequestsCount() > 0) { hash = (37 * hash) + REQUESTS_FIELD_NUMBER; hash = (53 * hash) + getRequestsList().hashCode(); } if (hasAdminRequest()) { hash = (37 * hash) + ADMIN_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getAdminRequest().hashCode(); } if (hasStatusRequest()) { hash = (37 * hash) + STATUS_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getStatusRequest().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.RaftCmdRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdRequest 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.RaftCmdpb.RaftCmdRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdRequest 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.RaftCmdpb.RaftCmdRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdRequest 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.RaftCmdpb.RaftCmdRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdRequest 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.RaftCmdpb.RaftCmdRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdRequest 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.RaftCmdpb.RaftCmdRequest 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_cmdpb.RaftCmdRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.RaftCmdRequest) org.tikv.kvproto.RaftCmdpb.RaftCmdRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftCmdRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftCmdRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RaftCmdRequest.class, org.tikv.kvproto.RaftCmdpb.RaftCmdRequest.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.RaftCmdRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRequestsFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { requestsBuilder_.clear(); } if (adminRequestBuilder_ == null) { adminRequest_ = null; } else { adminRequest_ = null; adminRequestBuilder_ = null; } if (statusRequestBuilder_ == null) { statusRequest_ = null; } else { statusRequest_ = null; statusRequestBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftCmdRequest_descriptor; } public org.tikv.kvproto.RaftCmdpb.RaftCmdRequest getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.RaftCmdRequest.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.RaftCmdRequest build() { org.tikv.kvproto.RaftCmdpb.RaftCmdRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.RaftCmdRequest buildPartial() { org.tikv.kvproto.RaftCmdpb.RaftCmdRequest result = new org.tikv.kvproto.RaftCmdpb.RaftCmdRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (requestsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { requests_ = java.util.Collections.unmodifiableList(requests_); bitField0_ = (bitField0_ & ~0x00000002); } result.requests_ = requests_; } else { result.requests_ = requestsBuilder_.build(); } if (adminRequestBuilder_ == null) { result.adminRequest_ = adminRequest_; } else { result.adminRequest_ = adminRequestBuilder_.build(); } if (statusRequestBuilder_ == null) { result.statusRequest_ = statusRequest_; } else { result.statusRequest_ = statusRequestBuilder_.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.RaftCmdpb.RaftCmdRequest) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.RaftCmdRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RaftCmdRequest other) { if (other == org.tikv.kvproto.RaftCmdpb.RaftCmdRequest.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (requestsBuilder_ == null) { if (!other.requests_.isEmpty()) { if (requests_.isEmpty()) { requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRequestsIsMutable(); requests_.addAll(other.requests_); } onChanged(); } } else { if (!other.requests_.isEmpty()) { if (requestsBuilder_.isEmpty()) { requestsBuilder_.dispose(); requestsBuilder_ = null; requests_ = other.requests_; bitField0_ = (bitField0_ & ~0x00000002); requestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequestsFieldBuilder() : null; } else { requestsBuilder_.addAllMessages(other.requests_); } } } if (other.hasAdminRequest()) { mergeAdminRequest(other.getAdminRequest()); } if (other.hasStatusRequest()) { mergeStatusRequest(other.getStatusRequest()); } 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.RaftCmdpb.RaftCmdRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.RaftCmdRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.RaftCmdpb.RaftRequestHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RaftRequestHeader, org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.Builder, org.tikv.kvproto.RaftCmdpb.RaftRequestHeaderOrBuilder> headerBuilder_; /** * .raft_cmdpb.RaftRequestHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .raft_cmdpb.RaftRequestHeader header = 1; */ public org.tikv.kvproto.RaftCmdpb.RaftRequestHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .raft_cmdpb.RaftRequestHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.RaftCmdpb.RaftRequestHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.RaftRequestHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.RaftRequestHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.RaftCmdpb.RaftRequestHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.RaftRequestHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .raft_cmdpb.RaftRequestHeader header = 1; */ public org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .raft_cmdpb.RaftRequestHeader header = 1; */ public org.tikv.kvproto.RaftCmdpb.RaftRequestHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.getDefaultInstance() : header_; } } /** * .raft_cmdpb.RaftRequestHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RaftRequestHeader, org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.Builder, org.tikv.kvproto.RaftCmdpb.RaftRequestHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RaftRequestHeader, org.tikv.kvproto.RaftCmdpb.RaftRequestHeader.Builder, org.tikv.kvproto.RaftCmdpb.RaftRequestHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List requests_ = java.util.Collections.emptyList(); private void ensureRequestsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { requests_ = new java.util.ArrayList(requests_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.Request, org.tikv.kvproto.RaftCmdpb.Request.Builder, org.tikv.kvproto.RaftCmdpb.RequestOrBuilder> requestsBuilder_; /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public java.util.List getRequestsList() { if (requestsBuilder_ == null) { return java.util.Collections.unmodifiableList(requests_); } else { return requestsBuilder_.getMessageList(); } } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public int getRequestsCount() { if (requestsBuilder_ == null) { return requests_.size(); } else { return requestsBuilder_.getCount(); } } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public org.tikv.kvproto.RaftCmdpb.Request getRequests(int index) { if (requestsBuilder_ == null) { return requests_.get(index); } else { return requestsBuilder_.getMessage(index); } } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public Builder setRequests( int index, org.tikv.kvproto.RaftCmdpb.Request value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestsIsMutable(); requests_.set(index, value); onChanged(); } else { requestsBuilder_.setMessage(index, value); } return this; } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public Builder setRequests( int index, org.tikv.kvproto.RaftCmdpb.Request.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.set(index, builderForValue.build()); onChanged(); } else { requestsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public Builder addRequests(org.tikv.kvproto.RaftCmdpb.Request value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestsIsMutable(); requests_.add(value); onChanged(); } else { requestsBuilder_.addMessage(value); } return this; } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public Builder addRequests( int index, org.tikv.kvproto.RaftCmdpb.Request value) { if (requestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequestsIsMutable(); requests_.add(index, value); onChanged(); } else { requestsBuilder_.addMessage(index, value); } return this; } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public Builder addRequests( org.tikv.kvproto.RaftCmdpb.Request.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(builderForValue.build()); onChanged(); } else { requestsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public Builder addRequests( int index, org.tikv.kvproto.RaftCmdpb.Request.Builder builderForValue) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.add(index, builderForValue.build()); onChanged(); } else { requestsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public Builder addAllRequests( java.lang.Iterable values) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requests_); onChanged(); } else { requestsBuilder_.addAllMessages(values); } return this; } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public Builder clearRequests() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { requestsBuilder_.clear(); } return this; } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public Builder removeRequests(int index) { if (requestsBuilder_ == null) { ensureRequestsIsMutable(); requests_.remove(index); onChanged(); } else { requestsBuilder_.remove(index); } return this; } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public org.tikv.kvproto.RaftCmdpb.Request.Builder getRequestsBuilder( int index) { return getRequestsFieldBuilder().getBuilder(index); } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public org.tikv.kvproto.RaftCmdpb.RequestOrBuilder getRequestsOrBuilder( int index) { if (requestsBuilder_ == null) { return requests_.get(index); } else { return requestsBuilder_.getMessageOrBuilder(index); } } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public java.util.List getRequestsOrBuilderList() { if (requestsBuilder_ != null) { return requestsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(requests_); } } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public org.tikv.kvproto.RaftCmdpb.Request.Builder addRequestsBuilder() { return getRequestsFieldBuilder().addBuilder( org.tikv.kvproto.RaftCmdpb.Request.getDefaultInstance()); } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public org.tikv.kvproto.RaftCmdpb.Request.Builder addRequestsBuilder( int index) { return getRequestsFieldBuilder().addBuilder( index, org.tikv.kvproto.RaftCmdpb.Request.getDefaultInstance()); } /** *
       * We can't enclose normal requests and administrator request
       * at same time. 
       * 
* * repeated .raft_cmdpb.Request requests = 2; */ public java.util.List getRequestsBuilderList() { return getRequestsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.Request, org.tikv.kvproto.RaftCmdpb.Request.Builder, org.tikv.kvproto.RaftCmdpb.RequestOrBuilder> getRequestsFieldBuilder() { if (requestsBuilder_ == null) { requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.Request, org.tikv.kvproto.RaftCmdpb.Request.Builder, org.tikv.kvproto.RaftCmdpb.RequestOrBuilder>( requests_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); requests_ = null; } return requestsBuilder_; } private org.tikv.kvproto.RaftCmdpb.AdminRequest adminRequest_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminRequest, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder, org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder> adminRequestBuilder_; /** * .raft_cmdpb.AdminRequest admin_request = 3; */ public boolean hasAdminRequest() { return adminRequestBuilder_ != null || adminRequest_ != null; } /** * .raft_cmdpb.AdminRequest admin_request = 3; */ public org.tikv.kvproto.RaftCmdpb.AdminRequest getAdminRequest() { if (adminRequestBuilder_ == null) { return adminRequest_ == null ? org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance() : adminRequest_; } else { return adminRequestBuilder_.getMessage(); } } /** * .raft_cmdpb.AdminRequest admin_request = 3; */ public Builder setAdminRequest(org.tikv.kvproto.RaftCmdpb.AdminRequest value) { if (adminRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminRequest_ = value; onChanged(); } else { adminRequestBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.AdminRequest admin_request = 3; */ public Builder setAdminRequest( org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder builderForValue) { if (adminRequestBuilder_ == null) { adminRequest_ = builderForValue.build(); onChanged(); } else { adminRequestBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.AdminRequest admin_request = 3; */ public Builder mergeAdminRequest(org.tikv.kvproto.RaftCmdpb.AdminRequest value) { if (adminRequestBuilder_ == null) { if (adminRequest_ != null) { adminRequest_ = org.tikv.kvproto.RaftCmdpb.AdminRequest.newBuilder(adminRequest_).mergeFrom(value).buildPartial(); } else { adminRequest_ = value; } onChanged(); } else { adminRequestBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.AdminRequest admin_request = 3; */ public Builder clearAdminRequest() { if (adminRequestBuilder_ == null) { adminRequest_ = null; onChanged(); } else { adminRequest_ = null; adminRequestBuilder_ = null; } return this; } /** * .raft_cmdpb.AdminRequest admin_request = 3; */ public org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder getAdminRequestBuilder() { onChanged(); return getAdminRequestFieldBuilder().getBuilder(); } /** * .raft_cmdpb.AdminRequest admin_request = 3; */ public org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder getAdminRequestOrBuilder() { if (adminRequestBuilder_ != null) { return adminRequestBuilder_.getMessageOrBuilder(); } else { return adminRequest_ == null ? org.tikv.kvproto.RaftCmdpb.AdminRequest.getDefaultInstance() : adminRequest_; } } /** * .raft_cmdpb.AdminRequest admin_request = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminRequest, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder, org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder> getAdminRequestFieldBuilder() { if (adminRequestBuilder_ == null) { adminRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminRequest, org.tikv.kvproto.RaftCmdpb.AdminRequest.Builder, org.tikv.kvproto.RaftCmdpb.AdminRequestOrBuilder>( getAdminRequest(), getParentForChildren(), isClean()); adminRequest_ = null; } return adminRequestBuilder_; } private org.tikv.kvproto.RaftCmdpb.StatusRequest statusRequest_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.StatusRequest, org.tikv.kvproto.RaftCmdpb.StatusRequest.Builder, org.tikv.kvproto.RaftCmdpb.StatusRequestOrBuilder> statusRequestBuilder_; /** * .raft_cmdpb.StatusRequest status_request = 4; */ public boolean hasStatusRequest() { return statusRequestBuilder_ != null || statusRequest_ != null; } /** * .raft_cmdpb.StatusRequest status_request = 4; */ public org.tikv.kvproto.RaftCmdpb.StatusRequest getStatusRequest() { if (statusRequestBuilder_ == null) { return statusRequest_ == null ? org.tikv.kvproto.RaftCmdpb.StatusRequest.getDefaultInstance() : statusRequest_; } else { return statusRequestBuilder_.getMessage(); } } /** * .raft_cmdpb.StatusRequest status_request = 4; */ public Builder setStatusRequest(org.tikv.kvproto.RaftCmdpb.StatusRequest value) { if (statusRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } statusRequest_ = value; onChanged(); } else { statusRequestBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.StatusRequest status_request = 4; */ public Builder setStatusRequest( org.tikv.kvproto.RaftCmdpb.StatusRequest.Builder builderForValue) { if (statusRequestBuilder_ == null) { statusRequest_ = builderForValue.build(); onChanged(); } else { statusRequestBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.StatusRequest status_request = 4; */ public Builder mergeStatusRequest(org.tikv.kvproto.RaftCmdpb.StatusRequest value) { if (statusRequestBuilder_ == null) { if (statusRequest_ != null) { statusRequest_ = org.tikv.kvproto.RaftCmdpb.StatusRequest.newBuilder(statusRequest_).mergeFrom(value).buildPartial(); } else { statusRequest_ = value; } onChanged(); } else { statusRequestBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.StatusRequest status_request = 4; */ public Builder clearStatusRequest() { if (statusRequestBuilder_ == null) { statusRequest_ = null; onChanged(); } else { statusRequest_ = null; statusRequestBuilder_ = null; } return this; } /** * .raft_cmdpb.StatusRequest status_request = 4; */ public org.tikv.kvproto.RaftCmdpb.StatusRequest.Builder getStatusRequestBuilder() { onChanged(); return getStatusRequestFieldBuilder().getBuilder(); } /** * .raft_cmdpb.StatusRequest status_request = 4; */ public org.tikv.kvproto.RaftCmdpb.StatusRequestOrBuilder getStatusRequestOrBuilder() { if (statusRequestBuilder_ != null) { return statusRequestBuilder_.getMessageOrBuilder(); } else { return statusRequest_ == null ? org.tikv.kvproto.RaftCmdpb.StatusRequest.getDefaultInstance() : statusRequest_; } } /** * .raft_cmdpb.StatusRequest status_request = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.StatusRequest, org.tikv.kvproto.RaftCmdpb.StatusRequest.Builder, org.tikv.kvproto.RaftCmdpb.StatusRequestOrBuilder> getStatusRequestFieldBuilder() { if (statusRequestBuilder_ == null) { statusRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.StatusRequest, org.tikv.kvproto.RaftCmdpb.StatusRequest.Builder, org.tikv.kvproto.RaftCmdpb.StatusRequestOrBuilder>( getStatusRequest(), getParentForChildren(), isClean()); statusRequest_ = null; } return statusRequestBuilder_; } 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_cmdpb.RaftCmdRequest) } // @@protoc_insertion_point(class_scope:raft_cmdpb.RaftCmdRequest) private static final org.tikv.kvproto.RaftCmdpb.RaftCmdRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RaftCmdRequest(); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RaftCmdRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RaftCmdRequest(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.RaftCmdpb.RaftCmdRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RaftCmdResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:raft_cmdpb.RaftCmdResponse) com.google.protobuf.MessageOrBuilder { /** * .raft_cmdpb.RaftResponseHeader header = 1; */ boolean hasHeader(); /** * .raft_cmdpb.RaftResponseHeader header = 1; */ org.tikv.kvproto.RaftCmdpb.RaftResponseHeader getHeader(); /** * .raft_cmdpb.RaftResponseHeader header = 1; */ org.tikv.kvproto.RaftCmdpb.RaftResponseHeaderOrBuilder getHeaderOrBuilder(); /** * repeated .raft_cmdpb.Response responses = 2; */ java.util.List getResponsesList(); /** * repeated .raft_cmdpb.Response responses = 2; */ org.tikv.kvproto.RaftCmdpb.Response getResponses(int index); /** * repeated .raft_cmdpb.Response responses = 2; */ int getResponsesCount(); /** * repeated .raft_cmdpb.Response responses = 2; */ java.util.List getResponsesOrBuilderList(); /** * repeated .raft_cmdpb.Response responses = 2; */ org.tikv.kvproto.RaftCmdpb.ResponseOrBuilder getResponsesOrBuilder( int index); /** * .raft_cmdpb.AdminResponse admin_response = 3; */ boolean hasAdminResponse(); /** * .raft_cmdpb.AdminResponse admin_response = 3; */ org.tikv.kvproto.RaftCmdpb.AdminResponse getAdminResponse(); /** * .raft_cmdpb.AdminResponse admin_response = 3; */ org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder getAdminResponseOrBuilder(); /** * .raft_cmdpb.StatusResponse status_response = 4; */ boolean hasStatusResponse(); /** * .raft_cmdpb.StatusResponse status_response = 4; */ org.tikv.kvproto.RaftCmdpb.StatusResponse getStatusResponse(); /** * .raft_cmdpb.StatusResponse status_response = 4; */ org.tikv.kvproto.RaftCmdpb.StatusResponseOrBuilder getStatusResponseOrBuilder(); } /** * Protobuf type {@code raft_cmdpb.RaftCmdResponse} */ public static final class RaftCmdResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:raft_cmdpb.RaftCmdResponse) RaftCmdResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RaftCmdResponse.newBuilder() to construct. private RaftCmdResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaftCmdResponse() { responses_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RaftCmdResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { responses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } responses_.add( input.readMessage(org.tikv.kvproto.RaftCmdpb.Response.parser(), extensionRegistry)); break; } case 26: { org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder subBuilder = null; if (adminResponse_ != null) { subBuilder = adminResponse_.toBuilder(); } adminResponse_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.AdminResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(adminResponse_); adminResponse_ = subBuilder.buildPartial(); } break; } case 34: { org.tikv.kvproto.RaftCmdpb.StatusResponse.Builder subBuilder = null; if (statusResponse_ != null) { subBuilder = statusResponse_.toBuilder(); } statusResponse_ = input.readMessage(org.tikv.kvproto.RaftCmdpb.StatusResponse.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(statusResponse_); statusResponse_ = 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_ & 0x00000002) == 0x00000002)) { responses_ = java.util.Collections.unmodifiableList(responses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftCmdResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftCmdResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RaftCmdResponse.class, org.tikv.kvproto.RaftCmdpb.RaftCmdResponse.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private org.tikv.kvproto.RaftCmdpb.RaftResponseHeader header_; /** * .raft_cmdpb.RaftResponseHeader header = 1; */ public boolean hasHeader() { return header_ != null; } /** * .raft_cmdpb.RaftResponseHeader header = 1; */ public org.tikv.kvproto.RaftCmdpb.RaftResponseHeader getHeader() { return header_ == null ? org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.getDefaultInstance() : header_; } /** * .raft_cmdpb.RaftResponseHeader header = 1; */ public org.tikv.kvproto.RaftCmdpb.RaftResponseHeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int RESPONSES_FIELD_NUMBER = 2; private java.util.List responses_; /** * repeated .raft_cmdpb.Response responses = 2; */ public java.util.List getResponsesList() { return responses_; } /** * repeated .raft_cmdpb.Response responses = 2; */ public java.util.List getResponsesOrBuilderList() { return responses_; } /** * repeated .raft_cmdpb.Response responses = 2; */ public int getResponsesCount() { return responses_.size(); } /** * repeated .raft_cmdpb.Response responses = 2; */ public org.tikv.kvproto.RaftCmdpb.Response getResponses(int index) { return responses_.get(index); } /** * repeated .raft_cmdpb.Response responses = 2; */ public org.tikv.kvproto.RaftCmdpb.ResponseOrBuilder getResponsesOrBuilder( int index) { return responses_.get(index); } public static final int ADMIN_RESPONSE_FIELD_NUMBER = 3; private org.tikv.kvproto.RaftCmdpb.AdminResponse adminResponse_; /** * .raft_cmdpb.AdminResponse admin_response = 3; */ public boolean hasAdminResponse() { return adminResponse_ != null; } /** * .raft_cmdpb.AdminResponse admin_response = 3; */ public org.tikv.kvproto.RaftCmdpb.AdminResponse getAdminResponse() { return adminResponse_ == null ? org.tikv.kvproto.RaftCmdpb.AdminResponse.getDefaultInstance() : adminResponse_; } /** * .raft_cmdpb.AdminResponse admin_response = 3; */ public org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder getAdminResponseOrBuilder() { return getAdminResponse(); } public static final int STATUS_RESPONSE_FIELD_NUMBER = 4; private org.tikv.kvproto.RaftCmdpb.StatusResponse statusResponse_; /** * .raft_cmdpb.StatusResponse status_response = 4; */ public boolean hasStatusResponse() { return statusResponse_ != null; } /** * .raft_cmdpb.StatusResponse status_response = 4; */ public org.tikv.kvproto.RaftCmdpb.StatusResponse getStatusResponse() { return statusResponse_ == null ? org.tikv.kvproto.RaftCmdpb.StatusResponse.getDefaultInstance() : statusResponse_; } /** * .raft_cmdpb.StatusResponse status_response = 4; */ public org.tikv.kvproto.RaftCmdpb.StatusResponseOrBuilder getStatusResponseOrBuilder() { return getStatusResponse(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (header_ != null) { output.writeMessage(1, getHeader()); } for (int i = 0; i < responses_.size(); i++) { output.writeMessage(2, responses_.get(i)); } if (adminResponse_ != null) { output.writeMessage(3, getAdminResponse()); } if (statusResponse_ != null) { output.writeMessage(4, getStatusResponse()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } for (int i = 0; i < responses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, responses_.get(i)); } if (adminResponse_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getAdminResponse()); } if (statusResponse_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getStatusResponse()); } 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.RaftCmdpb.RaftCmdResponse)) { return super.equals(obj); } org.tikv.kvproto.RaftCmdpb.RaftCmdResponse other = (org.tikv.kvproto.RaftCmdpb.RaftCmdResponse) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && getResponsesList() .equals(other.getResponsesList()); result = result && (hasAdminResponse() == other.hasAdminResponse()); if (hasAdminResponse()) { result = result && getAdminResponse() .equals(other.getAdminResponse()); } result = result && (hasStatusResponse() == other.hasStatusResponse()); if (hasStatusResponse()) { result = result && getStatusResponse() .equals(other.getStatusResponse()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (getResponsesCount() > 0) { hash = (37 * hash) + RESPONSES_FIELD_NUMBER; hash = (53 * hash) + getResponsesList().hashCode(); } if (hasAdminResponse()) { hash = (37 * hash) + ADMIN_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getAdminResponse().hashCode(); } if (hasStatusResponse()) { hash = (37 * hash) + STATUS_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getStatusResponse().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.RaftCmdpb.RaftCmdResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdResponse 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.RaftCmdpb.RaftCmdResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdResponse 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.RaftCmdpb.RaftCmdResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdResponse 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.RaftCmdpb.RaftCmdResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdResponse 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.RaftCmdpb.RaftCmdResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdResponse 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.RaftCmdpb.RaftCmdResponse 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_cmdpb.RaftCmdResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:raft_cmdpb.RaftCmdResponse) org.tikv.kvproto.RaftCmdpb.RaftCmdResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftCmdResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftCmdResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.RaftCmdpb.RaftCmdResponse.class, org.tikv.kvproto.RaftCmdpb.RaftCmdResponse.Builder.class); } // Construct using org.tikv.kvproto.RaftCmdpb.RaftCmdResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResponsesFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (responsesBuilder_ == null) { responses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { responsesBuilder_.clear(); } if (adminResponseBuilder_ == null) { adminResponse_ = null; } else { adminResponse_ = null; adminResponseBuilder_ = null; } if (statusResponseBuilder_ == null) { statusResponse_ = null; } else { statusResponse_ = null; statusResponseBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.RaftCmdpb.internal_static_raft_cmdpb_RaftCmdResponse_descriptor; } public org.tikv.kvproto.RaftCmdpb.RaftCmdResponse getDefaultInstanceForType() { return org.tikv.kvproto.RaftCmdpb.RaftCmdResponse.getDefaultInstance(); } public org.tikv.kvproto.RaftCmdpb.RaftCmdResponse build() { org.tikv.kvproto.RaftCmdpb.RaftCmdResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.RaftCmdpb.RaftCmdResponse buildPartial() { org.tikv.kvproto.RaftCmdpb.RaftCmdResponse result = new org.tikv.kvproto.RaftCmdpb.RaftCmdResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (responsesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { responses_ = java.util.Collections.unmodifiableList(responses_); bitField0_ = (bitField0_ & ~0x00000002); } result.responses_ = responses_; } else { result.responses_ = responsesBuilder_.build(); } if (adminResponseBuilder_ == null) { result.adminResponse_ = adminResponse_; } else { result.adminResponse_ = adminResponseBuilder_.build(); } if (statusResponseBuilder_ == null) { result.statusResponse_ = statusResponse_; } else { result.statusResponse_ = statusResponseBuilder_.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.RaftCmdpb.RaftCmdResponse) { return mergeFrom((org.tikv.kvproto.RaftCmdpb.RaftCmdResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.RaftCmdpb.RaftCmdResponse other) { if (other == org.tikv.kvproto.RaftCmdpb.RaftCmdResponse.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (responsesBuilder_ == null) { if (!other.responses_.isEmpty()) { if (responses_.isEmpty()) { responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResponsesIsMutable(); responses_.addAll(other.responses_); } onChanged(); } } else { if (!other.responses_.isEmpty()) { if (responsesBuilder_.isEmpty()) { responsesBuilder_.dispose(); responsesBuilder_ = null; responses_ = other.responses_; bitField0_ = (bitField0_ & ~0x00000002); responsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResponsesFieldBuilder() : null; } else { responsesBuilder_.addAllMessages(other.responses_); } } } if (other.hasAdminResponse()) { mergeAdminResponse(other.getAdminResponse()); } if (other.hasStatusResponse()) { mergeStatusResponse(other.getStatusResponse()); } 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.RaftCmdpb.RaftCmdResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.RaftCmdpb.RaftCmdResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.RaftCmdpb.RaftResponseHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RaftResponseHeader, org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.Builder, org.tikv.kvproto.RaftCmdpb.RaftResponseHeaderOrBuilder> headerBuilder_; /** * .raft_cmdpb.RaftResponseHeader header = 1; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .raft_cmdpb.RaftResponseHeader header = 1; */ public org.tikv.kvproto.RaftCmdpb.RaftResponseHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .raft_cmdpb.RaftResponseHeader header = 1; */ public Builder setHeader(org.tikv.kvproto.RaftCmdpb.RaftResponseHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.RaftResponseHeader header = 1; */ public Builder setHeader( org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.RaftResponseHeader header = 1; */ public Builder mergeHeader(org.tikv.kvproto.RaftCmdpb.RaftResponseHeader value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.RaftResponseHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .raft_cmdpb.RaftResponseHeader header = 1; */ public org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .raft_cmdpb.RaftResponseHeader header = 1; */ public org.tikv.kvproto.RaftCmdpb.RaftResponseHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.getDefaultInstance() : header_; } } /** * .raft_cmdpb.RaftResponseHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RaftResponseHeader, org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.Builder, org.tikv.kvproto.RaftCmdpb.RaftResponseHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.RaftResponseHeader, org.tikv.kvproto.RaftCmdpb.RaftResponseHeader.Builder, org.tikv.kvproto.RaftCmdpb.RaftResponseHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List responses_ = java.util.Collections.emptyList(); private void ensureResponsesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { responses_ = new java.util.ArrayList(responses_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.Response, org.tikv.kvproto.RaftCmdpb.Response.Builder, org.tikv.kvproto.RaftCmdpb.ResponseOrBuilder> responsesBuilder_; /** * repeated .raft_cmdpb.Response responses = 2; */ public java.util.List getResponsesList() { if (responsesBuilder_ == null) { return java.util.Collections.unmodifiableList(responses_); } else { return responsesBuilder_.getMessageList(); } } /** * repeated .raft_cmdpb.Response responses = 2; */ public int getResponsesCount() { if (responsesBuilder_ == null) { return responses_.size(); } else { return responsesBuilder_.getCount(); } } /** * repeated .raft_cmdpb.Response responses = 2; */ public org.tikv.kvproto.RaftCmdpb.Response getResponses(int index) { if (responsesBuilder_ == null) { return responses_.get(index); } else { return responsesBuilder_.getMessage(index); } } /** * repeated .raft_cmdpb.Response responses = 2; */ public Builder setResponses( int index, org.tikv.kvproto.RaftCmdpb.Response value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.set(index, value); onChanged(); } else { responsesBuilder_.setMessage(index, value); } return this; } /** * repeated .raft_cmdpb.Response responses = 2; */ public Builder setResponses( int index, org.tikv.kvproto.RaftCmdpb.Response.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.set(index, builderForValue.build()); onChanged(); } else { responsesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_cmdpb.Response responses = 2; */ public Builder addResponses(org.tikv.kvproto.RaftCmdpb.Response value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.add(value); onChanged(); } else { responsesBuilder_.addMessage(value); } return this; } /** * repeated .raft_cmdpb.Response responses = 2; */ public Builder addResponses( int index, org.tikv.kvproto.RaftCmdpb.Response value) { if (responsesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResponsesIsMutable(); responses_.add(index, value); onChanged(); } else { responsesBuilder_.addMessage(index, value); } return this; } /** * repeated .raft_cmdpb.Response responses = 2; */ public Builder addResponses( org.tikv.kvproto.RaftCmdpb.Response.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(builderForValue.build()); onChanged(); } else { responsesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .raft_cmdpb.Response responses = 2; */ public Builder addResponses( int index, org.tikv.kvproto.RaftCmdpb.Response.Builder builderForValue) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.add(index, builderForValue.build()); onChanged(); } else { responsesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .raft_cmdpb.Response responses = 2; */ public Builder addAllResponses( java.lang.Iterable values) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, responses_); onChanged(); } else { responsesBuilder_.addAllMessages(values); } return this; } /** * repeated .raft_cmdpb.Response responses = 2; */ public Builder clearResponses() { if (responsesBuilder_ == null) { responses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { responsesBuilder_.clear(); } return this; } /** * repeated .raft_cmdpb.Response responses = 2; */ public Builder removeResponses(int index) { if (responsesBuilder_ == null) { ensureResponsesIsMutable(); responses_.remove(index); onChanged(); } else { responsesBuilder_.remove(index); } return this; } /** * repeated .raft_cmdpb.Response responses = 2; */ public org.tikv.kvproto.RaftCmdpb.Response.Builder getResponsesBuilder( int index) { return getResponsesFieldBuilder().getBuilder(index); } /** * repeated .raft_cmdpb.Response responses = 2; */ public org.tikv.kvproto.RaftCmdpb.ResponseOrBuilder getResponsesOrBuilder( int index) { if (responsesBuilder_ == null) { return responses_.get(index); } else { return responsesBuilder_.getMessageOrBuilder(index); } } /** * repeated .raft_cmdpb.Response responses = 2; */ public java.util.List getResponsesOrBuilderList() { if (responsesBuilder_ != null) { return responsesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(responses_); } } /** * repeated .raft_cmdpb.Response responses = 2; */ public org.tikv.kvproto.RaftCmdpb.Response.Builder addResponsesBuilder() { return getResponsesFieldBuilder().addBuilder( org.tikv.kvproto.RaftCmdpb.Response.getDefaultInstance()); } /** * repeated .raft_cmdpb.Response responses = 2; */ public org.tikv.kvproto.RaftCmdpb.Response.Builder addResponsesBuilder( int index) { return getResponsesFieldBuilder().addBuilder( index, org.tikv.kvproto.RaftCmdpb.Response.getDefaultInstance()); } /** * repeated .raft_cmdpb.Response responses = 2; */ public java.util.List getResponsesBuilderList() { return getResponsesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.Response, org.tikv.kvproto.RaftCmdpb.Response.Builder, org.tikv.kvproto.RaftCmdpb.ResponseOrBuilder> getResponsesFieldBuilder() { if (responsesBuilder_ == null) { responsesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.Response, org.tikv.kvproto.RaftCmdpb.Response.Builder, org.tikv.kvproto.RaftCmdpb.ResponseOrBuilder>( responses_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); responses_ = null; } return responsesBuilder_; } private org.tikv.kvproto.RaftCmdpb.AdminResponse adminResponse_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminResponse, org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder, org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder> adminResponseBuilder_; /** * .raft_cmdpb.AdminResponse admin_response = 3; */ public boolean hasAdminResponse() { return adminResponseBuilder_ != null || adminResponse_ != null; } /** * .raft_cmdpb.AdminResponse admin_response = 3; */ public org.tikv.kvproto.RaftCmdpb.AdminResponse getAdminResponse() { if (adminResponseBuilder_ == null) { return adminResponse_ == null ? org.tikv.kvproto.RaftCmdpb.AdminResponse.getDefaultInstance() : adminResponse_; } else { return adminResponseBuilder_.getMessage(); } } /** * .raft_cmdpb.AdminResponse admin_response = 3; */ public Builder setAdminResponse(org.tikv.kvproto.RaftCmdpb.AdminResponse value) { if (adminResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } adminResponse_ = value; onChanged(); } else { adminResponseBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.AdminResponse admin_response = 3; */ public Builder setAdminResponse( org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder builderForValue) { if (adminResponseBuilder_ == null) { adminResponse_ = builderForValue.build(); onChanged(); } else { adminResponseBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.AdminResponse admin_response = 3; */ public Builder mergeAdminResponse(org.tikv.kvproto.RaftCmdpb.AdminResponse value) { if (adminResponseBuilder_ == null) { if (adminResponse_ != null) { adminResponse_ = org.tikv.kvproto.RaftCmdpb.AdminResponse.newBuilder(adminResponse_).mergeFrom(value).buildPartial(); } else { adminResponse_ = value; } onChanged(); } else { adminResponseBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.AdminResponse admin_response = 3; */ public Builder clearAdminResponse() { if (adminResponseBuilder_ == null) { adminResponse_ = null; onChanged(); } else { adminResponse_ = null; adminResponseBuilder_ = null; } return this; } /** * .raft_cmdpb.AdminResponse admin_response = 3; */ public org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder getAdminResponseBuilder() { onChanged(); return getAdminResponseFieldBuilder().getBuilder(); } /** * .raft_cmdpb.AdminResponse admin_response = 3; */ public org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder getAdminResponseOrBuilder() { if (adminResponseBuilder_ != null) { return adminResponseBuilder_.getMessageOrBuilder(); } else { return adminResponse_ == null ? org.tikv.kvproto.RaftCmdpb.AdminResponse.getDefaultInstance() : adminResponse_; } } /** * .raft_cmdpb.AdminResponse admin_response = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminResponse, org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder, org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder> getAdminResponseFieldBuilder() { if (adminResponseBuilder_ == null) { adminResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.AdminResponse, org.tikv.kvproto.RaftCmdpb.AdminResponse.Builder, org.tikv.kvproto.RaftCmdpb.AdminResponseOrBuilder>( getAdminResponse(), getParentForChildren(), isClean()); adminResponse_ = null; } return adminResponseBuilder_; } private org.tikv.kvproto.RaftCmdpb.StatusResponse statusResponse_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.StatusResponse, org.tikv.kvproto.RaftCmdpb.StatusResponse.Builder, org.tikv.kvproto.RaftCmdpb.StatusResponseOrBuilder> statusResponseBuilder_; /** * .raft_cmdpb.StatusResponse status_response = 4; */ public boolean hasStatusResponse() { return statusResponseBuilder_ != null || statusResponse_ != null; } /** * .raft_cmdpb.StatusResponse status_response = 4; */ public org.tikv.kvproto.RaftCmdpb.StatusResponse getStatusResponse() { if (statusResponseBuilder_ == null) { return statusResponse_ == null ? org.tikv.kvproto.RaftCmdpb.StatusResponse.getDefaultInstance() : statusResponse_; } else { return statusResponseBuilder_.getMessage(); } } /** * .raft_cmdpb.StatusResponse status_response = 4; */ public Builder setStatusResponse(org.tikv.kvproto.RaftCmdpb.StatusResponse value) { if (statusResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } statusResponse_ = value; onChanged(); } else { statusResponseBuilder_.setMessage(value); } return this; } /** * .raft_cmdpb.StatusResponse status_response = 4; */ public Builder setStatusResponse( org.tikv.kvproto.RaftCmdpb.StatusResponse.Builder builderForValue) { if (statusResponseBuilder_ == null) { statusResponse_ = builderForValue.build(); onChanged(); } else { statusResponseBuilder_.setMessage(builderForValue.build()); } return this; } /** * .raft_cmdpb.StatusResponse status_response = 4; */ public Builder mergeStatusResponse(org.tikv.kvproto.RaftCmdpb.StatusResponse value) { if (statusResponseBuilder_ == null) { if (statusResponse_ != null) { statusResponse_ = org.tikv.kvproto.RaftCmdpb.StatusResponse.newBuilder(statusResponse_).mergeFrom(value).buildPartial(); } else { statusResponse_ = value; } onChanged(); } else { statusResponseBuilder_.mergeFrom(value); } return this; } /** * .raft_cmdpb.StatusResponse status_response = 4; */ public Builder clearStatusResponse() { if (statusResponseBuilder_ == null) { statusResponse_ = null; onChanged(); } else { statusResponse_ = null; statusResponseBuilder_ = null; } return this; } /** * .raft_cmdpb.StatusResponse status_response = 4; */ public org.tikv.kvproto.RaftCmdpb.StatusResponse.Builder getStatusResponseBuilder() { onChanged(); return getStatusResponseFieldBuilder().getBuilder(); } /** * .raft_cmdpb.StatusResponse status_response = 4; */ public org.tikv.kvproto.RaftCmdpb.StatusResponseOrBuilder getStatusResponseOrBuilder() { if (statusResponseBuilder_ != null) { return statusResponseBuilder_.getMessageOrBuilder(); } else { return statusResponse_ == null ? org.tikv.kvproto.RaftCmdpb.StatusResponse.getDefaultInstance() : statusResponse_; } } /** * .raft_cmdpb.StatusResponse status_response = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.StatusResponse, org.tikv.kvproto.RaftCmdpb.StatusResponse.Builder, org.tikv.kvproto.RaftCmdpb.StatusResponseOrBuilder> getStatusResponseFieldBuilder() { if (statusResponseBuilder_ == null) { statusResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.RaftCmdpb.StatusResponse, org.tikv.kvproto.RaftCmdpb.StatusResponse.Builder, org.tikv.kvproto.RaftCmdpb.StatusResponseOrBuilder>( getStatusResponse(), getParentForChildren(), isClean()); statusResponse_ = null; } return statusResponseBuilder_; } 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_cmdpb.RaftCmdResponse) } // @@protoc_insertion_point(class_scope:raft_cmdpb.RaftCmdResponse) private static final org.tikv.kvproto.RaftCmdpb.RaftCmdResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.RaftCmdpb.RaftCmdResponse(); } public static org.tikv.kvproto.RaftCmdpb.RaftCmdResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RaftCmdResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RaftCmdResponse(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.RaftCmdpb.RaftCmdResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_GetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_GetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_GetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_GetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_PutRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_PutRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_PutResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_PutResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_DeleteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_DeleteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_DeleteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_DeleteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_DeleteRangeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_DeleteRangeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_DeleteRangeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_DeleteRangeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_SnapRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_SnapRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_SnapResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_SnapResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_PrewriteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_PrewriteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_PrewriteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_PrewriteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_IngestSSTRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_IngestSSTRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_IngestSSTResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_IngestSSTResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_ReadIndexRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_ReadIndexRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_ReadIndexResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_ReadIndexResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_Response_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_ChangePeerRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_ChangePeerRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_ChangePeerResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_ChangePeerResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_ChangePeerV2Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_ChangePeerV2Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_ChangePeerV2Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_ChangePeerV2Response_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_SplitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_SplitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_SplitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_SplitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_BatchSplitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_BatchSplitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_BatchSplitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_BatchSplitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_CompactLogRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_CompactLogRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_CompactLogResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_CompactLogResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_TransferLeaderRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_TransferLeaderRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_TransferLeaderResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_TransferLeaderResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_ComputeHashRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_ComputeHashRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_VerifyHashRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_VerifyHashRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_VerifyHashResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_VerifyHashResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_PrepareMergeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_PrepareMergeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_PrepareMergeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_PrepareMergeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_CommitMergeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_CommitMergeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_CommitMergeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_CommitMergeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_RollbackMergeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_RollbackMergeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_RollbackMergeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_RollbackMergeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_AdminRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_AdminRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_AdminResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_AdminResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_RegionLeaderRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_RegionLeaderRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_RegionLeaderResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_RegionLeaderResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_RegionDetailRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_RegionDetailRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_RegionDetailResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_RegionDetailResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_StatusRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_StatusRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_StatusResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_StatusResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_RaftRequestHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_RaftRequestHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_RaftResponseHeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_RaftResponseHeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_RaftCmdRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_RaftCmdRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_raft_cmdpb_RaftCmdResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_raft_cmdpb_RaftCmdResponse_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\020raft_cmdpb.proto\022\nraft_cmdpb\032\014metapb.p" + "roto\032\rerrorpb.proto\032\reraftpb.proto\032\rkvrp" + "cpb.proto\032\022import_sstpb.proto\032\017rustproto" + ".proto\"%\n\nGetRequest\022\n\n\002cf\030\001 \001(\t\022\013\n\003key\030" + "\002 \001(\014\"\034\n\013GetResponse\022\r\n\005value\030\001 \001(\014\"4\n\nP" + "utRequest\022\n\n\002cf\030\001 \001(\t\022\013\n\003key\030\002 \001(\014\022\r\n\005va" + "lue\030\003 \001(\014\"\r\n\013PutResponse\"(\n\rDeleteReques" + "t\022\n\n\002cf\030\001 \001(\t\022\013\n\003key\030\002 \001(\014\"\020\n\016DeleteResp" + "onse\"Y\n\022DeleteRangeRequest\022\n\n\002cf\030\001 \001(\t\022\021" + "\n\tstart_key\030\002 \001(\014\022\017\n\007end_key\030\003 \001(\014\022\023\n\013no" + "tify_only\030\004 \001(\010\"\025\n\023DeleteRangeResponse\"\r" + "\n\013SnapRequest\".\n\014SnapResponse\022\036\n\006region\030" + "\001 \001(\0132\016.metapb.Region\";\n\017PrewriteRequest" + "\022\013\n\003key\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\022\014\n\004lock\030\003 \001" + "(\014\"\022\n\020PrewriteResponse\"6\n\020IngestSSTReque" + "st\022\"\n\003sst\030\001 \001(\0132\025.import_sstpb.SSTMeta\"\023" + "\n\021IngestSSTResponse\"K\n\020ReadIndexRequest\022" + "\020\n\010start_ts\030\001 \001(\004\022%\n\nkey_ranges\030\002 \003(\0132\021." + "kvrpcpb.KeyRange\"J\n\021ReadIndexResponse\022\022\n" + "\nread_index\030\001 \001(\004\022!\n\006locked\030\002 \001(\0132\021.kvrp" + "cpb.LockInfo\"\225\003\n\007Request\022%\n\010cmd_type\030\001 \001" + "(\0162\023.raft_cmdpb.CmdType\022#\n\003get\030\002 \001(\0132\026.r" + "aft_cmdpb.GetRequest\022#\n\003put\030\004 \001(\0132\026.raft" + "_cmdpb.PutRequest\022)\n\006delete\030\005 \001(\0132\031.raft" + "_cmdpb.DeleteRequest\022%\n\004snap\030\006 \001(\0132\027.raf" + "t_cmdpb.SnapRequest\022-\n\010prewrite\030\007 \001(\0132\033." + "raft_cmdpb.PrewriteRequest\0224\n\014delete_ran" + "ge\030\010 \001(\0132\036.raft_cmdpb.DeleteRangeRequest" + "\0220\n\ningest_sst\030\t \001(\0132\034.raft_cmdpb.Ingest" + "SSTRequest\0220\n\nread_index\030\n \001(\0132\034.raft_cm" + "dpb.ReadIndexRequest\"\235\003\n\010Response\022%\n\010cmd" + "_type\030\001 \001(\0162\023.raft_cmdpb.CmdType\022$\n\003get\030" + "\002 \001(\0132\027.raft_cmdpb.GetResponse\022$\n\003put\030\004 " + "\001(\0132\027.raft_cmdpb.PutResponse\022*\n\006delete\030\005" + " \001(\0132\032.raft_cmdpb.DeleteResponse\022&\n\004snap" + "\030\006 \001(\0132\030.raft_cmdpb.SnapResponse\022.\n\010prew" + "rite\030\007 \001(\0132\034.raft_cmdpb.PrewriteResponse" + "\0224\n\013delte_range\030\010 \001(\0132\037.raft_cmdpb.Delet" + "eRangeResponse\0221\n\ningest_sst\030\t \001(\0132\035.raf" + "t_cmdpb.IngestSSTResponse\0221\n\nread_index\030" + "\n \001(\0132\035.raft_cmdpb.ReadIndexResponse\"]\n\021" + "ChangePeerRequest\022,\n\013change_type\030\001 \001(\0162\027" + ".eraftpb.ConfChangeType\022\032\n\004peer\030\002 \001(\0132\014." + "metapb.Peer\"4\n\022ChangePeerResponse\022\036\n\006reg" + "ion\030\001 \001(\0132\016.metapb.Region\"E\n\023ChangePeerV" + "2Request\022.\n\007changes\030\001 \003(\0132\035.raft_cmdpb.C" + "hangePeerRequest\"6\n\024ChangePeerV2Response" + "\022\036\n\006region\030\001 \001(\0132\016.metapb.Region\"h\n\014Spli" + "tRequest\022\021\n\tsplit_key\030\001 \001(\014\022\025\n\rnew_regio" + "n_id\030\002 \001(\004\022\024\n\014new_peer_ids\030\003 \003(\004\022\030\n\014righ" + "t_derive\030\004 \001(\010B\002\030\001\"L\n\rSplitResponse\022\034\n\004l" + "eft\030\001 \001(\0132\016.metapb.Region\022\035\n\005right\030\002 \001(\013" + "2\016.metapb.Region\"U\n\021BatchSplitRequest\022*\n" + "\010requests\030\001 \003(\0132\030.raft_cmdpb.SplitReques" + "t\022\024\n\014right_derive\030\002 \001(\010\"5\n\022BatchSplitRes" + "ponse\022\037\n\007regions\030\001 \003(\0132\016.metapb.Region\"@" + "\n\021CompactLogRequest\022\025\n\rcompact_index\030\001 \001" + "(\004\022\024\n\014compact_term\030\002 \001(\004\"\024\n\022CompactLogRe" + "sponse\"3\n\025TransferLeaderRequest\022\032\n\004peer\030" + "\001 \001(\0132\014.metapb.Peer\"\030\n\026TransferLeaderRes" + "ponse\"%\n\022ComputeHashRequest\022\017\n\007context\030\001" + " \001(\014\"A\n\021VerifyHashRequest\022\r\n\005index\030\001 \001(\004" + "\022\014\n\004hash\030\002 \001(\014\022\017\n\007context\030\003 \001(\014\"\024\n\022Verif" + "yHashResponse\"H\n\023PrepareMergeRequest\022\021\n\t" + "min_index\030\001 \001(\004\022\036\n\006target\030\002 \001(\0132\016.metapb" + ".Region\"\026\n\024PrepareMergeResponse\"e\n\022Commi" + "tMergeRequest\022\036\n\006source\030\001 \001(\0132\016.metapb.R" + "egion\022\016\n\006commit\030\002 \001(\004\022\037\n\007entries\030\003 \003(\0132\016" + ".eraftpb.Entry\"\025\n\023CommitMergeResponse\"&\n" + "\024RollbackMergeRequest\022\016\n\006commit\030\001 \001(\004\"\027\n" + "\025RollbackMergeResponse\"\205\005\n\014AdminRequest\022" + "*\n\010cmd_type\030\001 \001(\0162\030.raft_cmdpb.AdminCmdT" + "ype\0222\n\013change_peer\030\002 \001(\0132\035.raft_cmdpb.Ch" + "angePeerRequest\022+\n\005split\030\003 \001(\0132\030.raft_cm" + "dpb.SplitRequestB\002\030\001\0222\n\013compact_log\030\004 \001(" + "\0132\035.raft_cmdpb.CompactLogRequest\022:\n\017tran" + "sfer_leader\030\005 \001(\0132!.raft_cmdpb.TransferL" + "eaderRequest\0222\n\013verify_hash\030\006 \001(\0132\035.raft" + "_cmdpb.VerifyHashRequest\0226\n\rprepare_merg" + "e\030\007 \001(\0132\037.raft_cmdpb.PrepareMergeRequest" + "\0224\n\014commit_merge\030\010 \001(\0132\036.raft_cmdpb.Comm" + "itMergeRequest\0228\n\016rollback_merge\030\t \001(\0132 " + ".raft_cmdpb.RollbackMergeRequest\022-\n\006spli" + "ts\030\n \001(\0132\035.raft_cmdpb.BatchSplitRequest\022" + "7\n\016change_peer_v2\030\013 \001(\0132\037.raft_cmdpb.Cha" + "ngePeerV2Request\0224\n\014compute_hash\030\014 \001(\0132\036" + ".raft_cmdpb.ComputeHashRequest\"\332\004\n\rAdmin" + "Response\022*\n\010cmd_type\030\001 \001(\0162\030.raft_cmdpb." + "AdminCmdType\0223\n\013change_peer\030\002 \001(\0132\036.raft" + "_cmdpb.ChangePeerResponse\022,\n\005split\030\003 \001(\013" + "2\031.raft_cmdpb.SplitResponseB\002\030\001\0223\n\013compa" + "ct_log\030\004 \001(\0132\036.raft_cmdpb.CompactLogResp" + "onse\022;\n\017transfer_leader\030\005 \001(\0132\".raft_cmd" + "pb.TransferLeaderResponse\0223\n\013verify_hash" + "\030\006 \001(\0132\036.raft_cmdpb.VerifyHashResponse\0227" + "\n\rprepare_merge\030\007 \001(\0132 .raft_cmdpb.Prepa" + "reMergeResponse\0225\n\014commit_merge\030\010 \001(\0132\037." + "raft_cmdpb.CommitMergeResponse\0229\n\016rollba" + "ck_merge\030\t \001(\0132!.raft_cmdpb.RollbackMerg" + "eResponse\022.\n\006splits\030\n \001(\0132\036.raft_cmdpb.B" + "atchSplitResponse\0228\n\016change_peer_v2\030\013 \001(" + "\0132 .raft_cmdpb.ChangePeerV2Response\"\025\n\023R" + "egionLeaderRequest\"4\n\024RegionLeaderRespon" + "se\022\034\n\006leader\030\001 \001(\0132\014.metapb.Peer\"\025\n\023Regi" + "onDetailRequest\"T\n\024RegionDetailResponse\022" + "\036\n\006region\030\001 \001(\0132\016.metapb.Region\022\034\n\006leade" + "r\030\002 \001(\0132\014.metapb.Peer\"\254\001\n\rStatusRequest\022" + "+\n\010cmd_type\030\001 \001(\0162\031.raft_cmdpb.StatusCmd" + "Type\0226\n\rregion_leader\030\002 \001(\0132\037.raft_cmdpb" + ".RegionLeaderRequest\0226\n\rregion_detail\030\003 " + "\001(\0132\037.raft_cmdpb.RegionDetailRequest\"\257\001\n" + "\016StatusResponse\022+\n\010cmd_type\030\001 \001(\0162\031.raft" + "_cmdpb.StatusCmdType\0227\n\rregion_leader\030\002 " + "\001(\0132 .raft_cmdpb.RegionLeaderResponse\0227\n" + "\rregion_detail\030\003 \001(\0132 .raft_cmdpb.Region" + "DetailResponse\"\354\001\n\021RaftRequestHeader\022\021\n\t" + "region_id\030\001 \001(\004\022\032\n\004peer\030\002 \001(\0132\014.metapb.P" + "eer\022\023\n\013read_quorum\030\003 \001(\010\022\014\n\004uuid\030\004 \001(\014\022)" + "\n\014region_epoch\030\005 \001(\0132\023.metapb.RegionEpoc" + "h\022\014\n\004term\030\006 \001(\004\022\020\n\010sync_log\030\007 \001(\010\022\024\n\014rep" + "lica_read\030\010 \001(\010\022\025\n\rapplied_index\030\t \001(\004\022\r" + "\n\005flags\030\n \001(\004\"W\n\022RaftResponseHeader\022\035\n\005e" + "rror\030\001 \001(\0132\016.errorpb.Error\022\014\n\004uuid\030\002 \001(\014" + "\022\024\n\014current_term\030\003 \001(\004\"\312\001\n\016RaftCmdReques" + "t\022-\n\006header\030\001 \001(\0132\035.raft_cmdpb.RaftReque" + "stHeader\022%\n\010requests\030\002 \003(\0132\023.raft_cmdpb." + "Request\022/\n\radmin_request\030\003 \001(\0132\030.raft_cm" + "dpb.AdminRequest\0221\n\016status_request\030\004 \001(\013" + "2\031.raft_cmdpb.StatusRequest\"\322\001\n\017RaftCmdR" + "esponse\022.\n\006header\030\001 \001(\0132\036.raft_cmdpb.Raf" + "tResponseHeader\022\'\n\tresponses\030\002 \003(\0132\024.raf" + "t_cmdpb.Response\0221\n\016admin_response\030\003 \001(\013" + "2\031.raft_cmdpb.AdminResponse\0223\n\017status_re" + "sponse\030\004 \001(\0132\032.raft_cmdpb.StatusResponse" + "*{\n\007CmdType\022\013\n\007Invalid\020\000\022\007\n\003Get\020\001\022\007\n\003Put" + "\020\003\022\n\n\006Delete\020\004\022\010\n\004Snap\020\005\022\014\n\010Prewrite\020\006\022\017" + "\n\013DeleteRange\020\007\022\r\n\tIngestSST\020\010\022\r\n\tReadIn" + "dex\020\t*\334\001\n\014AdminCmdType\022\020\n\014InvalidAdmin\020\000" + "\022\016\n\nChangePeer\020\001\022\r\n\005Split\020\002\032\002\010\001\022\016\n\nCompa" + "ctLog\020\003\022\022\n\016TransferLeader\020\004\022\017\n\013ComputeHa" + "sh\020\005\022\016\n\nVerifyHash\020\006\022\020\n\014PrepareMerge\020\007\022\017" + "\n\013CommitMerge\020\010\022\021\n\rRollbackMerge\020\t\022\016\n\nBa" + "tchSplit\020\n\022\020\n\014ChangePeerV2\020\013*F\n\rStatusCm" + "dType\022\021\n\rInvalidStatus\020\000\022\020\n\014RegionLeader" + "\020\001\022\020\n\014RegionDetail\020\002B\026\n\020org.tikv.kvproto" + "\330\250\010\001b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tikv.kvproto.Metapb.getDescriptor(), org.tikv.kvproto.Errorpb.getDescriptor(), eraftpb.Eraftpb.getDescriptor(), org.tikv.kvproto.Kvrpcpb.getDescriptor(), org.tikv.kvproto.ImportSstpb.getDescriptor(), rustproto.Rustproto.getDescriptor(), }, assigner); internal_static_raft_cmdpb_GetRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_raft_cmdpb_GetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_GetRequest_descriptor, new java.lang.String[] { "Cf", "Key", }); internal_static_raft_cmdpb_GetResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_raft_cmdpb_GetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_GetResponse_descriptor, new java.lang.String[] { "Value", }); internal_static_raft_cmdpb_PutRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_raft_cmdpb_PutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_PutRequest_descriptor, new java.lang.String[] { "Cf", "Key", "Value", }); internal_static_raft_cmdpb_PutResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_raft_cmdpb_PutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_PutResponse_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_DeleteRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_raft_cmdpb_DeleteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_DeleteRequest_descriptor, new java.lang.String[] { "Cf", "Key", }); internal_static_raft_cmdpb_DeleteResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_raft_cmdpb_DeleteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_DeleteResponse_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_DeleteRangeRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_raft_cmdpb_DeleteRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_DeleteRangeRequest_descriptor, new java.lang.String[] { "Cf", "StartKey", "EndKey", "NotifyOnly", }); internal_static_raft_cmdpb_DeleteRangeResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_raft_cmdpb_DeleteRangeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_DeleteRangeResponse_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_SnapRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_raft_cmdpb_SnapRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_SnapRequest_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_SnapResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_raft_cmdpb_SnapResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_SnapResponse_descriptor, new java.lang.String[] { "Region", }); internal_static_raft_cmdpb_PrewriteRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_raft_cmdpb_PrewriteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_PrewriteRequest_descriptor, new java.lang.String[] { "Key", "Value", "Lock", }); internal_static_raft_cmdpb_PrewriteResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_raft_cmdpb_PrewriteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_PrewriteResponse_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_IngestSSTRequest_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_raft_cmdpb_IngestSSTRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_IngestSSTRequest_descriptor, new java.lang.String[] { "Sst", }); internal_static_raft_cmdpb_IngestSSTResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_raft_cmdpb_IngestSSTResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_IngestSSTResponse_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_ReadIndexRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_raft_cmdpb_ReadIndexRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_ReadIndexRequest_descriptor, new java.lang.String[] { "StartTs", "KeyRanges", }); internal_static_raft_cmdpb_ReadIndexResponse_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_raft_cmdpb_ReadIndexResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_ReadIndexResponse_descriptor, new java.lang.String[] { "ReadIndex", "Locked", }); internal_static_raft_cmdpb_Request_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_raft_cmdpb_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_Request_descriptor, new java.lang.String[] { "CmdType", "Get", "Put", "Delete", "Snap", "Prewrite", "DeleteRange", "IngestSst", "ReadIndex", }); internal_static_raft_cmdpb_Response_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_raft_cmdpb_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_Response_descriptor, new java.lang.String[] { "CmdType", "Get", "Put", "Delete", "Snap", "Prewrite", "DelteRange", "IngestSst", "ReadIndex", }); internal_static_raft_cmdpb_ChangePeerRequest_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_raft_cmdpb_ChangePeerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_ChangePeerRequest_descriptor, new java.lang.String[] { "ChangeType", "Peer", }); internal_static_raft_cmdpb_ChangePeerResponse_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_raft_cmdpb_ChangePeerResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_ChangePeerResponse_descriptor, new java.lang.String[] { "Region", }); internal_static_raft_cmdpb_ChangePeerV2Request_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_raft_cmdpb_ChangePeerV2Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_ChangePeerV2Request_descriptor, new java.lang.String[] { "Changes", }); internal_static_raft_cmdpb_ChangePeerV2Response_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_raft_cmdpb_ChangePeerV2Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_ChangePeerV2Response_descriptor, new java.lang.String[] { "Region", }); internal_static_raft_cmdpb_SplitRequest_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_raft_cmdpb_SplitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_SplitRequest_descriptor, new java.lang.String[] { "SplitKey", "NewRegionId", "NewPeerIds", "RightDerive", }); internal_static_raft_cmdpb_SplitResponse_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_raft_cmdpb_SplitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_SplitResponse_descriptor, new java.lang.String[] { "Left", "Right", }); internal_static_raft_cmdpb_BatchSplitRequest_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_raft_cmdpb_BatchSplitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_BatchSplitRequest_descriptor, new java.lang.String[] { "Requests", "RightDerive", }); internal_static_raft_cmdpb_BatchSplitResponse_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_raft_cmdpb_BatchSplitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_BatchSplitResponse_descriptor, new java.lang.String[] { "Regions", }); internal_static_raft_cmdpb_CompactLogRequest_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_raft_cmdpb_CompactLogRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_CompactLogRequest_descriptor, new java.lang.String[] { "CompactIndex", "CompactTerm", }); internal_static_raft_cmdpb_CompactLogResponse_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_raft_cmdpb_CompactLogResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_CompactLogResponse_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_TransferLeaderRequest_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_raft_cmdpb_TransferLeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_TransferLeaderRequest_descriptor, new java.lang.String[] { "Peer", }); internal_static_raft_cmdpb_TransferLeaderResponse_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_raft_cmdpb_TransferLeaderResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_TransferLeaderResponse_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_ComputeHashRequest_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_raft_cmdpb_ComputeHashRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_ComputeHashRequest_descriptor, new java.lang.String[] { "Context", }); internal_static_raft_cmdpb_VerifyHashRequest_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_raft_cmdpb_VerifyHashRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_VerifyHashRequest_descriptor, new java.lang.String[] { "Index", "Hash", "Context", }); internal_static_raft_cmdpb_VerifyHashResponse_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_raft_cmdpb_VerifyHashResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_VerifyHashResponse_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_PrepareMergeRequest_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_raft_cmdpb_PrepareMergeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_PrepareMergeRequest_descriptor, new java.lang.String[] { "MinIndex", "Target", }); internal_static_raft_cmdpb_PrepareMergeResponse_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_raft_cmdpb_PrepareMergeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_PrepareMergeResponse_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_CommitMergeRequest_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_raft_cmdpb_CommitMergeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_CommitMergeRequest_descriptor, new java.lang.String[] { "Source", "Commit", "Entries", }); internal_static_raft_cmdpb_CommitMergeResponse_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_raft_cmdpb_CommitMergeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_CommitMergeResponse_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_RollbackMergeRequest_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_raft_cmdpb_RollbackMergeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_RollbackMergeRequest_descriptor, new java.lang.String[] { "Commit", }); internal_static_raft_cmdpb_RollbackMergeResponse_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_raft_cmdpb_RollbackMergeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_RollbackMergeResponse_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_AdminRequest_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_raft_cmdpb_AdminRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_AdminRequest_descriptor, new java.lang.String[] { "CmdType", "ChangePeer", "Split", "CompactLog", "TransferLeader", "VerifyHash", "PrepareMerge", "CommitMerge", "RollbackMerge", "Splits", "ChangePeerV2", "ComputeHash", }); internal_static_raft_cmdpb_AdminResponse_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_raft_cmdpb_AdminResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_AdminResponse_descriptor, new java.lang.String[] { "CmdType", "ChangePeer", "Split", "CompactLog", "TransferLeader", "VerifyHash", "PrepareMerge", "CommitMerge", "RollbackMerge", "Splits", "ChangePeerV2", }); internal_static_raft_cmdpb_RegionLeaderRequest_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_raft_cmdpb_RegionLeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_RegionLeaderRequest_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_RegionLeaderResponse_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_raft_cmdpb_RegionLeaderResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_RegionLeaderResponse_descriptor, new java.lang.String[] { "Leader", }); internal_static_raft_cmdpb_RegionDetailRequest_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_raft_cmdpb_RegionDetailRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_RegionDetailRequest_descriptor, new java.lang.String[] { }); internal_static_raft_cmdpb_RegionDetailResponse_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_raft_cmdpb_RegionDetailResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_RegionDetailResponse_descriptor, new java.lang.String[] { "Region", "Leader", }); internal_static_raft_cmdpb_StatusRequest_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_raft_cmdpb_StatusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_StatusRequest_descriptor, new java.lang.String[] { "CmdType", "RegionLeader", "RegionDetail", }); internal_static_raft_cmdpb_StatusResponse_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_raft_cmdpb_StatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_StatusResponse_descriptor, new java.lang.String[] { "CmdType", "RegionLeader", "RegionDetail", }); internal_static_raft_cmdpb_RaftRequestHeader_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_raft_cmdpb_RaftRequestHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_RaftRequestHeader_descriptor, new java.lang.String[] { "RegionId", "Peer", "ReadQuorum", "Uuid", "RegionEpoch", "Term", "SyncLog", "ReplicaRead", "AppliedIndex", "Flags", }); internal_static_raft_cmdpb_RaftResponseHeader_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_raft_cmdpb_RaftResponseHeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_RaftResponseHeader_descriptor, new java.lang.String[] { "Error", "Uuid", "CurrentTerm", }); internal_static_raft_cmdpb_RaftCmdRequest_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_raft_cmdpb_RaftCmdRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_RaftCmdRequest_descriptor, new java.lang.String[] { "Header", "Requests", "AdminRequest", "StatusRequest", }); internal_static_raft_cmdpb_RaftCmdResponse_descriptor = getDescriptor().getMessageTypes().get(50); internal_static_raft_cmdpb_RaftCmdResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_raft_cmdpb_RaftCmdResponse_descriptor, new java.lang.String[] { "Header", "Responses", "AdminResponse", "StatusResponse", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(rustproto.Rustproto.liteRuntimeAll); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); org.tikv.kvproto.Metapb.getDescriptor(); org.tikv.kvproto.Errorpb.getDescriptor(); eraftpb.Eraftpb.getDescriptor(); org.tikv.kvproto.Kvrpcpb.getDescriptor(); org.tikv.kvproto.ImportSstpb.getDescriptor(); rustproto.Rustproto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy