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

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

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

package org.tikv.kvproto;

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

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

    /**
     * 
     * The requested region ID
     * 
* * uint64 region_id = 1; */ long getRegionId(); /** *
     * Region leader of the requested region
     * 
* * .metapb.Peer leader = 2; */ boolean hasLeader(); /** *
     * Region leader of the requested region
     * 
* * .metapb.Peer leader = 2; */ org.tikv.kvproto.Metapb.Peer getLeader(); /** *
     * Region leader of the requested region
     * 
* * .metapb.Peer leader = 2; */ org.tikv.kvproto.Metapb.PeerOrBuilder getLeaderOrBuilder(); } /** *
   * NotLeader is the error variant that tells a request be handle by raft leader 
   * is sent to raft follower or learner.
   * 
* * Protobuf type {@code errorpb.NotLeader} */ public static final class NotLeader extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.NotLeader) NotLeaderOrBuilder { private static final long serialVersionUID = 0L; // Use NotLeader.newBuilder() to construct. private NotLeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NotLeader() { regionId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NotLeader( 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 (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.Errorpb.internal_static_errorpb_NotLeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_NotLeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.NotLeader.class, org.tikv.kvproto.Errorpb.NotLeader.Builder.class); } public static final int REGION_ID_FIELD_NUMBER = 1; private long regionId_; /** *
     * The requested region ID
     * 
* * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } public static final int LEADER_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Peer leader_; /** *
     * Region leader of the requested region
     * 
* * .metapb.Peer leader = 2; */ public boolean hasLeader() { return leader_ != null; } /** *
     * Region leader of the requested region
     * 
* * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.Peer getLeader() { return leader_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : leader_; } /** *
     * Region leader of the requested region
     * 
* * .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 (regionId_ != 0L) { output.writeUInt64(1, regionId_); } if (leader_ != null) { output.writeMessage(2, getLeader()); } 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 (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.Errorpb.NotLeader)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.NotLeader other = (org.tikv.kvproto.Errorpb.NotLeader) obj; boolean result = true; result = result && (getRegionId() == other.getRegionId()); 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(); hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); 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.Errorpb.NotLeader parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.NotLeader 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.Errorpb.NotLeader parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.NotLeader 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.Errorpb.NotLeader parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.NotLeader parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.NotLeader parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.NotLeader 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.Errorpb.NotLeader parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.NotLeader 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.Errorpb.NotLeader parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.NotLeader 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.Errorpb.NotLeader 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; } /** *
     * NotLeader is the error variant that tells a request be handle by raft leader 
     * is sent to raft follower or learner.
     * 
* * Protobuf type {@code errorpb.NotLeader} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.NotLeader) org.tikv.kvproto.Errorpb.NotLeaderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_NotLeader_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_NotLeader_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.NotLeader.class, org.tikv.kvproto.Errorpb.NotLeader.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.NotLeader.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 (leaderBuilder_ == null) { leader_ = null; } else { leader_ = null; leaderBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_NotLeader_descriptor; } public org.tikv.kvproto.Errorpb.NotLeader getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.NotLeader.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.NotLeader build() { org.tikv.kvproto.Errorpb.NotLeader result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.NotLeader buildPartial() { org.tikv.kvproto.Errorpb.NotLeader result = new org.tikv.kvproto.Errorpb.NotLeader(this); result.regionId_ = regionId_; 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.Errorpb.NotLeader) { return mergeFrom((org.tikv.kvproto.Errorpb.NotLeader)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.NotLeader other) { if (other == org.tikv.kvproto.Errorpb.NotLeader.getDefaultInstance()) return this; if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } 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.Errorpb.NotLeader parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.NotLeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long regionId_ ; /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); 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_; /** *
       * Region leader of the requested region
       * 
* * .metapb.Peer leader = 2; */ public boolean hasLeader() { return leaderBuilder_ != null || leader_ != null; } /** *
       * Region leader of the requested region
       * 
* * .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(); } } /** *
       * Region leader of the requested region
       * 
* * .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; } /** *
       * Region leader of the requested region
       * 
* * .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; } /** *
       * Region leader of the requested region
       * 
* * .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; } /** *
       * Region leader of the requested region
       * 
* * .metapb.Peer leader = 2; */ public Builder clearLeader() { if (leaderBuilder_ == null) { leader_ = null; onChanged(); } else { leader_ = null; leaderBuilder_ = null; } return this; } /** *
       * Region leader of the requested region
       * 
* * .metapb.Peer leader = 2; */ public org.tikv.kvproto.Metapb.Peer.Builder getLeaderBuilder() { onChanged(); return getLeaderFieldBuilder().getBuilder(); } /** *
       * Region leader of the requested region
       * 
* * .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_; } } /** *
       * Region leader of the requested region
       * 
* * .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:errorpb.NotLeader) } // @@protoc_insertion_point(class_scope:errorpb.NotLeader) private static final org.tikv.kvproto.Errorpb.NotLeader DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.NotLeader(); } public static org.tikv.kvproto.Errorpb.NotLeader getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public NotLeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NotLeader(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.Errorpb.NotLeader getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StoreNotMatchOrBuilder extends // @@protoc_insertion_point(interface_extends:errorpb.StoreNotMatch) com.google.protobuf.MessageOrBuilder { /** *
     * Store id in request
     * 
* * uint64 request_store_id = 1; */ long getRequestStoreId(); /** *
     * Actual store id
     * 
* * uint64 actual_store_id = 2; */ long getActualStoreId(); } /** *
   * StoreNotMatch is the error variant that tells the request is sent to wrong store. 
   * (i.e. inconsistency of the store ID that request shows and the real store ID of this server.)
   * 
* * Protobuf type {@code errorpb.StoreNotMatch} */ public static final class StoreNotMatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.StoreNotMatch) StoreNotMatchOrBuilder { private static final long serialVersionUID = 0L; // Use StoreNotMatch.newBuilder() to construct. private StoreNotMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StoreNotMatch() { requestStoreId_ = 0L; actualStoreId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StoreNotMatch( 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: { requestStoreId_ = input.readUInt64(); break; } case 16: { actualStoreId_ = 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.Errorpb.internal_static_errorpb_StoreNotMatch_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_StoreNotMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.StoreNotMatch.class, org.tikv.kvproto.Errorpb.StoreNotMatch.Builder.class); } public static final int REQUEST_STORE_ID_FIELD_NUMBER = 1; private long requestStoreId_; /** *
     * Store id in request
     * 
* * uint64 request_store_id = 1; */ public long getRequestStoreId() { return requestStoreId_; } public static final int ACTUAL_STORE_ID_FIELD_NUMBER = 2; private long actualStoreId_; /** *
     * Actual store id
     * 
* * uint64 actual_store_id = 2; */ public long getActualStoreId() { return actualStoreId_; } 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 (requestStoreId_ != 0L) { output.writeUInt64(1, requestStoreId_); } if (actualStoreId_ != 0L) { output.writeUInt64(2, actualStoreId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestStoreId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, requestStoreId_); } if (actualStoreId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, actualStoreId_); } 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.Errorpb.StoreNotMatch)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.StoreNotMatch other = (org.tikv.kvproto.Errorpb.StoreNotMatch) obj; boolean result = true; result = result && (getRequestStoreId() == other.getRequestStoreId()); result = result && (getActualStoreId() == other.getActualStoreId()); 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) + REQUEST_STORE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRequestStoreId()); hash = (37 * hash) + ACTUAL_STORE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getActualStoreId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Errorpb.StoreNotMatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.StoreNotMatch 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.Errorpb.StoreNotMatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.StoreNotMatch 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.Errorpb.StoreNotMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.StoreNotMatch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.StoreNotMatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.StoreNotMatch 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.Errorpb.StoreNotMatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.StoreNotMatch 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.Errorpb.StoreNotMatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.StoreNotMatch 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.Errorpb.StoreNotMatch 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; } /** *
     * StoreNotMatch is the error variant that tells the request is sent to wrong store. 
     * (i.e. inconsistency of the store ID that request shows and the real store ID of this server.)
     * 
* * Protobuf type {@code errorpb.StoreNotMatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.StoreNotMatch) org.tikv.kvproto.Errorpb.StoreNotMatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_StoreNotMatch_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_StoreNotMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.StoreNotMatch.class, org.tikv.kvproto.Errorpb.StoreNotMatch.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.StoreNotMatch.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(); requestStoreId_ = 0L; actualStoreId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_StoreNotMatch_descriptor; } public org.tikv.kvproto.Errorpb.StoreNotMatch getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.StoreNotMatch.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.StoreNotMatch build() { org.tikv.kvproto.Errorpb.StoreNotMatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.StoreNotMatch buildPartial() { org.tikv.kvproto.Errorpb.StoreNotMatch result = new org.tikv.kvproto.Errorpb.StoreNotMatch(this); result.requestStoreId_ = requestStoreId_; result.actualStoreId_ = actualStoreId_; 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.Errorpb.StoreNotMatch) { return mergeFrom((org.tikv.kvproto.Errorpb.StoreNotMatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.StoreNotMatch other) { if (other == org.tikv.kvproto.Errorpb.StoreNotMatch.getDefaultInstance()) return this; if (other.getRequestStoreId() != 0L) { setRequestStoreId(other.getRequestStoreId()); } if (other.getActualStoreId() != 0L) { setActualStoreId(other.getActualStoreId()); } 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.Errorpb.StoreNotMatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.StoreNotMatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long requestStoreId_ ; /** *
       * Store id in request
       * 
* * uint64 request_store_id = 1; */ public long getRequestStoreId() { return requestStoreId_; } /** *
       * Store id in request
       * 
* * uint64 request_store_id = 1; */ public Builder setRequestStoreId(long value) { requestStoreId_ = value; onChanged(); return this; } /** *
       * Store id in request
       * 
* * uint64 request_store_id = 1; */ public Builder clearRequestStoreId() { requestStoreId_ = 0L; onChanged(); return this; } private long actualStoreId_ ; /** *
       * Actual store id
       * 
* * uint64 actual_store_id = 2; */ public long getActualStoreId() { return actualStoreId_; } /** *
       * Actual store id
       * 
* * uint64 actual_store_id = 2; */ public Builder setActualStoreId(long value) { actualStoreId_ = value; onChanged(); return this; } /** *
       * Actual store id
       * 
* * uint64 actual_store_id = 2; */ public Builder clearActualStoreId() { actualStoreId_ = 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:errorpb.StoreNotMatch) } // @@protoc_insertion_point(class_scope:errorpb.StoreNotMatch) private static final org.tikv.kvproto.Errorpb.StoreNotMatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.StoreNotMatch(); } public static org.tikv.kvproto.Errorpb.StoreNotMatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StoreNotMatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StoreNotMatch(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.Errorpb.StoreNotMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegionNotFoundOrBuilder extends // @@protoc_insertion_point(interface_extends:errorpb.RegionNotFound) com.google.protobuf.MessageOrBuilder { /** *
     * The requested region ID
     * 
* * uint64 region_id = 1; */ long getRegionId(); } /** *
   * RegionNotFound is the error variant that tells there isn't any region in this TiKV
   * matches the requested region ID.
   * 
* * Protobuf type {@code errorpb.RegionNotFound} */ public static final class RegionNotFound extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.RegionNotFound) RegionNotFoundOrBuilder { private static final long serialVersionUID = 0L; // Use RegionNotFound.newBuilder() to construct. private RegionNotFound(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegionNotFound() { regionId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegionNotFound( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { regionId_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_RegionNotFound_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_RegionNotFound_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.RegionNotFound.class, org.tikv.kvproto.Errorpb.RegionNotFound.Builder.class); } public static final int REGION_ID_FIELD_NUMBER = 1; private long regionId_; /** *
     * The requested region ID
     * 
* * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionId_ != 0L) { output.writeUInt64(1, regionId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, regionId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Errorpb.RegionNotFound)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.RegionNotFound other = (org.tikv.kvproto.Errorpb.RegionNotFound) obj; boolean result = true; result = result && (getRegionId() == other.getRegionId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Errorpb.RegionNotFound parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.RegionNotFound 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.Errorpb.RegionNotFound parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.RegionNotFound 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.Errorpb.RegionNotFound parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.RegionNotFound parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.RegionNotFound parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.RegionNotFound 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.Errorpb.RegionNotFound parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.RegionNotFound 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.Errorpb.RegionNotFound parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.RegionNotFound 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.Errorpb.RegionNotFound 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; } /** *
     * RegionNotFound is the error variant that tells there isn't any region in this TiKV
     * matches the requested region ID.
     * 
* * Protobuf type {@code errorpb.RegionNotFound} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.RegionNotFound) org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_RegionNotFound_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_RegionNotFound_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.RegionNotFound.class, org.tikv.kvproto.Errorpb.RegionNotFound.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.RegionNotFound.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); regionId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_RegionNotFound_descriptor; } public org.tikv.kvproto.Errorpb.RegionNotFound getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.RegionNotFound.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.RegionNotFound build() { org.tikv.kvproto.Errorpb.RegionNotFound result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.RegionNotFound buildPartial() { org.tikv.kvproto.Errorpb.RegionNotFound result = new org.tikv.kvproto.Errorpb.RegionNotFound(this); result.regionId_ = regionId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Errorpb.RegionNotFound) { return mergeFrom((org.tikv.kvproto.Errorpb.RegionNotFound)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.RegionNotFound other) { if (other == org.tikv.kvproto.Errorpb.RegionNotFound.getDefaultInstance()) return this; if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Errorpb.RegionNotFound parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.RegionNotFound) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long regionId_ ; /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:errorpb.RegionNotFound) } // @@protoc_insertion_point(class_scope:errorpb.RegionNotFound) private static final org.tikv.kvproto.Errorpb.RegionNotFound DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.RegionNotFound(); } public static org.tikv.kvproto.Errorpb.RegionNotFound getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegionNotFound parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegionNotFound(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.Errorpb.RegionNotFound getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeyNotInRegionOrBuilder extends // @@protoc_insertion_point(interface_extends:errorpb.KeyNotInRegion) com.google.protobuf.MessageOrBuilder { /** *
     * The requested key
     * 
* * bytes key = 1; */ com.google.protobuf.ByteString getKey(); /** *
     * The requested region ID
     * 
* * uint64 region_id = 2; */ long getRegionId(); /** *
     * Start key of the requested region
     * 
* * bytes start_key = 3; */ com.google.protobuf.ByteString getStartKey(); /** *
     * Snd key of the requested region
     * 
* * bytes end_key = 4; */ com.google.protobuf.ByteString getEndKey(); } /** *
   * KeyNotInRegion is the error variant that tells the key the request requires isn't present in
   * this region. 
   * 
* * Protobuf type {@code errorpb.KeyNotInRegion} */ public static final class KeyNotInRegion extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.KeyNotInRegion) KeyNotInRegionOrBuilder { private static final long serialVersionUID = 0L; // Use KeyNotInRegion.newBuilder() to construct. private KeyNotInRegion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyNotInRegion() { key_ = com.google.protobuf.ByteString.EMPTY; regionId_ = 0L; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KeyNotInRegion( 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 16: { regionId_ = input.readUInt64(); break; } case 26: { startKey_ = input.readBytes(); break; } case 34: { endKey_ = 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.Errorpb.internal_static_errorpb_KeyNotInRegion_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_KeyNotInRegion_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.KeyNotInRegion.class, org.tikv.kvproto.Errorpb.KeyNotInRegion.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** *
     * The requested key
     * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int REGION_ID_FIELD_NUMBER = 2; private long regionId_; /** *
     * The requested region ID
     * 
* * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } public static final int START_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString startKey_; /** *
     * Start key of the requested region
     * 
* * bytes start_key = 3; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString endKey_; /** *
     * Snd key of the requested region
     * 
* * bytes end_key = 4; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } 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 (regionId_ != 0L) { output.writeUInt64(2, regionId_); } if (!startKey_.isEmpty()) { output.writeBytes(3, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(4, endKey_); } 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 (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, regionId_); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, endKey_); } 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.Errorpb.KeyNotInRegion)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.KeyNotInRegion other = (org.tikv.kvproto.Errorpb.KeyNotInRegion) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && (getRegionId() == other.getRegionId()); result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); 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) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Errorpb.KeyNotInRegion parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.KeyNotInRegion 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.Errorpb.KeyNotInRegion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.KeyNotInRegion 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.Errorpb.KeyNotInRegion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.KeyNotInRegion parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.KeyNotInRegion parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.KeyNotInRegion 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.Errorpb.KeyNotInRegion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.KeyNotInRegion 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.Errorpb.KeyNotInRegion parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.KeyNotInRegion 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.Errorpb.KeyNotInRegion 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; } /** *
     * KeyNotInRegion is the error variant that tells the key the request requires isn't present in
     * this region. 
     * 
* * Protobuf type {@code errorpb.KeyNotInRegion} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.KeyNotInRegion) org.tikv.kvproto.Errorpb.KeyNotInRegionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_KeyNotInRegion_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_KeyNotInRegion_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.KeyNotInRegion.class, org.tikv.kvproto.Errorpb.KeyNotInRegion.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.KeyNotInRegion.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; regionId_ = 0L; startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_KeyNotInRegion_descriptor; } public org.tikv.kvproto.Errorpb.KeyNotInRegion getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.KeyNotInRegion.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.KeyNotInRegion build() { org.tikv.kvproto.Errorpb.KeyNotInRegion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.KeyNotInRegion buildPartial() { org.tikv.kvproto.Errorpb.KeyNotInRegion result = new org.tikv.kvproto.Errorpb.KeyNotInRegion(this); result.key_ = key_; result.regionId_ = regionId_; result.startKey_ = startKey_; result.endKey_ = endKey_; 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.Errorpb.KeyNotInRegion) { return mergeFrom((org.tikv.kvproto.Errorpb.KeyNotInRegion)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.KeyNotInRegion other) { if (other == org.tikv.kvproto.Errorpb.KeyNotInRegion.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } 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.Errorpb.KeyNotInRegion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.KeyNotInRegion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** *
       * The requested key
       * 
* * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } /** *
       * The requested key
       * 
* * bytes key = 1; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
       * The requested key
       * 
* * bytes key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private long regionId_ ; /** *
       * The requested region ID
       * 
* * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 2; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 2; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Start key of the requested region
       * 
* * bytes start_key = 3; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** *
       * Start key of the requested region
       * 
* * bytes start_key = 3; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** *
       * Start key of the requested region
       * 
* * bytes start_key = 3; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Snd key of the requested region
       * 
* * bytes end_key = 4; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** *
       * Snd key of the requested region
       * 
* * bytes end_key = 4; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** *
       * Snd key of the requested region
       * 
* * bytes end_key = 4; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); 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:errorpb.KeyNotInRegion) } // @@protoc_insertion_point(class_scope:errorpb.KeyNotInRegion) private static final org.tikv.kvproto.Errorpb.KeyNotInRegion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.KeyNotInRegion(); } public static org.tikv.kvproto.Errorpb.KeyNotInRegion getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KeyNotInRegion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyNotInRegion(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.Errorpb.KeyNotInRegion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EpochNotMatchOrBuilder extends // @@protoc_insertion_point(interface_extends:errorpb.EpochNotMatch) com.google.protobuf.MessageOrBuilder { /** *
     * Available regions that may be siblings of the requested one.
     * 
* * repeated .metapb.Region current_regions = 1; */ java.util.List getCurrentRegionsList(); /** *
     * Available regions that may be siblings of the requested one.
     * 
* * repeated .metapb.Region current_regions = 1; */ org.tikv.kvproto.Metapb.Region getCurrentRegions(int index); /** *
     * Available regions that may be siblings of the requested one.
     * 
* * repeated .metapb.Region current_regions = 1; */ int getCurrentRegionsCount(); /** *
     * Available regions that may be siblings of the requested one.
     * 
* * repeated .metapb.Region current_regions = 1; */ java.util.List getCurrentRegionsOrBuilderList(); /** *
     * Available regions that may be siblings of the requested one.
     * 
* * repeated .metapb.Region current_regions = 1; */ org.tikv.kvproto.Metapb.RegionOrBuilder getCurrentRegionsOrBuilder( int index); } /** *
   * EpochNotMatch is the error variant that tells a region has been updated.
   * (e.g. by splitting / merging, or raft Confchange.)
   * Hence, a command is based on a stale version of a region.
   * 
* * Protobuf type {@code errorpb.EpochNotMatch} */ public static final class EpochNotMatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.EpochNotMatch) EpochNotMatchOrBuilder { private static final long serialVersionUID = 0L; // Use EpochNotMatch.newBuilder() to construct. private EpochNotMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EpochNotMatch() { currentRegions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EpochNotMatch( 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)) { currentRegions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } currentRegions_.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)) { currentRegions_ = java.util.Collections.unmodifiableList(currentRegions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_EpochNotMatch_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_EpochNotMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.EpochNotMatch.class, org.tikv.kvproto.Errorpb.EpochNotMatch.Builder.class); } public static final int CURRENT_REGIONS_FIELD_NUMBER = 1; private java.util.List currentRegions_; /** *
     * Available regions that may be siblings of the requested one.
     * 
* * repeated .metapb.Region current_regions = 1; */ public java.util.List getCurrentRegionsList() { return currentRegions_; } /** *
     * Available regions that may be siblings of the requested one.
     * 
* * repeated .metapb.Region current_regions = 1; */ public java.util.List getCurrentRegionsOrBuilderList() { return currentRegions_; } /** *
     * Available regions that may be siblings of the requested one.
     * 
* * repeated .metapb.Region current_regions = 1; */ public int getCurrentRegionsCount() { return currentRegions_.size(); } /** *
     * Available regions that may be siblings of the requested one.
     * 
* * repeated .metapb.Region current_regions = 1; */ public org.tikv.kvproto.Metapb.Region getCurrentRegions(int index) { return currentRegions_.get(index); } /** *
     * Available regions that may be siblings of the requested one.
     * 
* * repeated .metapb.Region current_regions = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getCurrentRegionsOrBuilder( int index) { return currentRegions_.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 < currentRegions_.size(); i++) { output.writeMessage(1, currentRegions_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < currentRegions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, currentRegions_.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.Errorpb.EpochNotMatch)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.EpochNotMatch other = (org.tikv.kvproto.Errorpb.EpochNotMatch) obj; boolean result = true; result = result && getCurrentRegionsList() .equals(other.getCurrentRegionsList()); 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 (getCurrentRegionsCount() > 0) { hash = (37 * hash) + CURRENT_REGIONS_FIELD_NUMBER; hash = (53 * hash) + getCurrentRegionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Errorpb.EpochNotMatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.EpochNotMatch 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.Errorpb.EpochNotMatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.EpochNotMatch 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.Errorpb.EpochNotMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.EpochNotMatch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.EpochNotMatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.EpochNotMatch 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.Errorpb.EpochNotMatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.EpochNotMatch 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.Errorpb.EpochNotMatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.EpochNotMatch 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.Errorpb.EpochNotMatch 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; } /** *
     * EpochNotMatch is the error variant that tells a region has been updated.
     * (e.g. by splitting / merging, or raft Confchange.)
     * Hence, a command is based on a stale version of a region.
     * 
* * Protobuf type {@code errorpb.EpochNotMatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.EpochNotMatch) org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_EpochNotMatch_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_EpochNotMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.EpochNotMatch.class, org.tikv.kvproto.Errorpb.EpochNotMatch.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.EpochNotMatch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCurrentRegionsFieldBuilder(); } } public Builder clear() { super.clear(); if (currentRegionsBuilder_ == null) { currentRegions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { currentRegionsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_EpochNotMatch_descriptor; } public org.tikv.kvproto.Errorpb.EpochNotMatch getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.EpochNotMatch.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.EpochNotMatch build() { org.tikv.kvproto.Errorpb.EpochNotMatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.EpochNotMatch buildPartial() { org.tikv.kvproto.Errorpb.EpochNotMatch result = new org.tikv.kvproto.Errorpb.EpochNotMatch(this); int from_bitField0_ = bitField0_; if (currentRegionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { currentRegions_ = java.util.Collections.unmodifiableList(currentRegions_); bitField0_ = (bitField0_ & ~0x00000001); } result.currentRegions_ = currentRegions_; } else { result.currentRegions_ = currentRegionsBuilder_.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.Errorpb.EpochNotMatch) { return mergeFrom((org.tikv.kvproto.Errorpb.EpochNotMatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.EpochNotMatch other) { if (other == org.tikv.kvproto.Errorpb.EpochNotMatch.getDefaultInstance()) return this; if (currentRegionsBuilder_ == null) { if (!other.currentRegions_.isEmpty()) { if (currentRegions_.isEmpty()) { currentRegions_ = other.currentRegions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCurrentRegionsIsMutable(); currentRegions_.addAll(other.currentRegions_); } onChanged(); } } else { if (!other.currentRegions_.isEmpty()) { if (currentRegionsBuilder_.isEmpty()) { currentRegionsBuilder_.dispose(); currentRegionsBuilder_ = null; currentRegions_ = other.currentRegions_; bitField0_ = (bitField0_ & ~0x00000001); currentRegionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCurrentRegionsFieldBuilder() : null; } else { currentRegionsBuilder_.addAllMessages(other.currentRegions_); } } } 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.Errorpb.EpochNotMatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.EpochNotMatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List currentRegions_ = java.util.Collections.emptyList(); private void ensureCurrentRegionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { currentRegions_ = new java.util.ArrayList(currentRegions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> currentRegionsBuilder_; /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public java.util.List getCurrentRegionsList() { if (currentRegionsBuilder_ == null) { return java.util.Collections.unmodifiableList(currentRegions_); } else { return currentRegionsBuilder_.getMessageList(); } } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public int getCurrentRegionsCount() { if (currentRegionsBuilder_ == null) { return currentRegions_.size(); } else { return currentRegionsBuilder_.getCount(); } } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public org.tikv.kvproto.Metapb.Region getCurrentRegions(int index) { if (currentRegionsBuilder_ == null) { return currentRegions_.get(index); } else { return currentRegionsBuilder_.getMessage(index); } } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public Builder setCurrentRegions( int index, org.tikv.kvproto.Metapb.Region value) { if (currentRegionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCurrentRegionsIsMutable(); currentRegions_.set(index, value); onChanged(); } else { currentRegionsBuilder_.setMessage(index, value); } return this; } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public Builder setCurrentRegions( int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (currentRegionsBuilder_ == null) { ensureCurrentRegionsIsMutable(); currentRegions_.set(index, builderForValue.build()); onChanged(); } else { currentRegionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public Builder addCurrentRegions(org.tikv.kvproto.Metapb.Region value) { if (currentRegionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCurrentRegionsIsMutable(); currentRegions_.add(value); onChanged(); } else { currentRegionsBuilder_.addMessage(value); } return this; } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public Builder addCurrentRegions( int index, org.tikv.kvproto.Metapb.Region value) { if (currentRegionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCurrentRegionsIsMutable(); currentRegions_.add(index, value); onChanged(); } else { currentRegionsBuilder_.addMessage(index, value); } return this; } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public Builder addCurrentRegions( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (currentRegionsBuilder_ == null) { ensureCurrentRegionsIsMutable(); currentRegions_.add(builderForValue.build()); onChanged(); } else { currentRegionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public Builder addCurrentRegions( int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (currentRegionsBuilder_ == null) { ensureCurrentRegionsIsMutable(); currentRegions_.add(index, builderForValue.build()); onChanged(); } else { currentRegionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public Builder addAllCurrentRegions( java.lang.Iterable values) { if (currentRegionsBuilder_ == null) { ensureCurrentRegionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, currentRegions_); onChanged(); } else { currentRegionsBuilder_.addAllMessages(values); } return this; } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public Builder clearCurrentRegions() { if (currentRegionsBuilder_ == null) { currentRegions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { currentRegionsBuilder_.clear(); } return this; } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public Builder removeCurrentRegions(int index) { if (currentRegionsBuilder_ == null) { ensureCurrentRegionsIsMutable(); currentRegions_.remove(index); onChanged(); } else { currentRegionsBuilder_.remove(index); } return this; } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public org.tikv.kvproto.Metapb.Region.Builder getCurrentRegionsBuilder( int index) { return getCurrentRegionsFieldBuilder().getBuilder(index); } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getCurrentRegionsOrBuilder( int index) { if (currentRegionsBuilder_ == null) { return currentRegions_.get(index); } else { return currentRegionsBuilder_.getMessageOrBuilder(index); } } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public java.util.List getCurrentRegionsOrBuilderList() { if (currentRegionsBuilder_ != null) { return currentRegionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(currentRegions_); } } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public org.tikv.kvproto.Metapb.Region.Builder addCurrentRegionsBuilder() { return getCurrentRegionsFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public org.tikv.kvproto.Metapb.Region.Builder addCurrentRegionsBuilder( int index) { return getCurrentRegionsFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** *
       * Available regions that may be siblings of the requested one.
       * 
* * repeated .metapb.Region current_regions = 1; */ public java.util.List getCurrentRegionsBuilderList() { return getCurrentRegionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getCurrentRegionsFieldBuilder() { if (currentRegionsBuilder_ == null) { currentRegionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( currentRegions_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); currentRegions_ = null; } return currentRegionsBuilder_; } 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:errorpb.EpochNotMatch) } // @@protoc_insertion_point(class_scope:errorpb.EpochNotMatch) private static final org.tikv.kvproto.Errorpb.EpochNotMatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.EpochNotMatch(); } public static org.tikv.kvproto.Errorpb.EpochNotMatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public EpochNotMatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EpochNotMatch(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.Errorpb.EpochNotMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ServerIsBusyOrBuilder extends // @@protoc_insertion_point(interface_extends:errorpb.ServerIsBusy) com.google.protobuf.MessageOrBuilder { /** * string reason = 1; */ java.lang.String getReason(); /** * string reason = 1; */ com.google.protobuf.ByteString getReasonBytes(); /** *
     * The suggested backoff time
     * 
* * uint64 backoff_ms = 2; */ long getBackoffMs(); } /** *
   * ServerIsBusy is the error variant that tells the server is too busy to response.
   * 
* * Protobuf type {@code errorpb.ServerIsBusy} */ public static final class ServerIsBusy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.ServerIsBusy) ServerIsBusyOrBuilder { private static final long serialVersionUID = 0L; // Use ServerIsBusy.newBuilder() to construct. private ServerIsBusy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ServerIsBusy() { reason_ = ""; backoffMs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServerIsBusy( 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(); reason_ = s; break; } case 16: { backoffMs_ = 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.Errorpb.internal_static_errorpb_ServerIsBusy_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ServerIsBusy_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.ServerIsBusy.class, org.tikv.kvproto.Errorpb.ServerIsBusy.Builder.class); } public static final int REASON_FIELD_NUMBER = 1; private volatile java.lang.Object reason_; /** * string reason = 1; */ public java.lang.String getReason() { java.lang.Object ref = reason_; 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(); reason_ = s; return s; } } /** * string reason = 1; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BACKOFF_MS_FIELD_NUMBER = 2; private long backoffMs_; /** *
     * The suggested backoff time
     * 
* * uint64 backoff_ms = 2; */ public long getBackoffMs() { return backoffMs_; } 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 (!getReasonBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); } if (backoffMs_ != 0L) { output.writeUInt64(2, backoffMs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getReasonBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reason_); } if (backoffMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, backoffMs_); } 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.Errorpb.ServerIsBusy)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.ServerIsBusy other = (org.tikv.kvproto.Errorpb.ServerIsBusy) obj; boolean result = true; result = result && getReason() .equals(other.getReason()); result = result && (getBackoffMs() == other.getBackoffMs()); 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) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); hash = (37 * hash) + BACKOFF_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getBackoffMs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Errorpb.ServerIsBusy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.ServerIsBusy 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.Errorpb.ServerIsBusy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.ServerIsBusy 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.Errorpb.ServerIsBusy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.ServerIsBusy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.ServerIsBusy parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.ServerIsBusy 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.Errorpb.ServerIsBusy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.ServerIsBusy 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.Errorpb.ServerIsBusy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.ServerIsBusy 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.Errorpb.ServerIsBusy 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; } /** *
     * ServerIsBusy is the error variant that tells the server is too busy to response.
     * 
* * Protobuf type {@code errorpb.ServerIsBusy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.ServerIsBusy) org.tikv.kvproto.Errorpb.ServerIsBusyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ServerIsBusy_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ServerIsBusy_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.ServerIsBusy.class, org.tikv.kvproto.Errorpb.ServerIsBusy.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.ServerIsBusy.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(); reason_ = ""; backoffMs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ServerIsBusy_descriptor; } public org.tikv.kvproto.Errorpb.ServerIsBusy getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.ServerIsBusy.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.ServerIsBusy build() { org.tikv.kvproto.Errorpb.ServerIsBusy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.ServerIsBusy buildPartial() { org.tikv.kvproto.Errorpb.ServerIsBusy result = new org.tikv.kvproto.Errorpb.ServerIsBusy(this); result.reason_ = reason_; result.backoffMs_ = backoffMs_; 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.Errorpb.ServerIsBusy) { return mergeFrom((org.tikv.kvproto.Errorpb.ServerIsBusy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.ServerIsBusy other) { if (other == org.tikv.kvproto.Errorpb.ServerIsBusy.getDefaultInstance()) return this; if (!other.getReason().isEmpty()) { reason_ = other.reason_; onChanged(); } if (other.getBackoffMs() != 0L) { setBackoffMs(other.getBackoffMs()); } 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.Errorpb.ServerIsBusy parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.ServerIsBusy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object reason_ = ""; /** * string reason = 1; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } else { return (java.lang.String) ref; } } /** * string reason = 1; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string reason = 1; */ public Builder setReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); return this; } /** * string reason = 1; */ public Builder clearReason() { reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** * string reason = 1; */ public Builder setReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reason_ = value; onChanged(); return this; } private long backoffMs_ ; /** *
       * The suggested backoff time
       * 
* * uint64 backoff_ms = 2; */ public long getBackoffMs() { return backoffMs_; } /** *
       * The suggested backoff time
       * 
* * uint64 backoff_ms = 2; */ public Builder setBackoffMs(long value) { backoffMs_ = value; onChanged(); return this; } /** *
       * The suggested backoff time
       * 
* * uint64 backoff_ms = 2; */ public Builder clearBackoffMs() { backoffMs_ = 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:errorpb.ServerIsBusy) } // @@protoc_insertion_point(class_scope:errorpb.ServerIsBusy) private static final org.tikv.kvproto.Errorpb.ServerIsBusy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.ServerIsBusy(); } public static org.tikv.kvproto.Errorpb.ServerIsBusy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ServerIsBusy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServerIsBusy(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.Errorpb.ServerIsBusy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StaleCommandOrBuilder extends // @@protoc_insertion_point(interface_extends:errorpb.StaleCommand) com.google.protobuf.MessageOrBuilder { } /** *
   * StaleCommand is the error variant that tells the command is stale, that is,
   * the current request term is lower than current raft term.
   * This can be retried at most time.
   * 
* * Protobuf type {@code errorpb.StaleCommand} */ public static final class StaleCommand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.StaleCommand) StaleCommandOrBuilder { private static final long serialVersionUID = 0L; // Use StaleCommand.newBuilder() to construct. private StaleCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StaleCommand() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StaleCommand( 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.Errorpb.internal_static_errorpb_StaleCommand_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_StaleCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.StaleCommand.class, org.tikv.kvproto.Errorpb.StaleCommand.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.Errorpb.StaleCommand)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.StaleCommand other = (org.tikv.kvproto.Errorpb.StaleCommand) 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.Errorpb.StaleCommand parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.StaleCommand 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.Errorpb.StaleCommand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.StaleCommand 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.Errorpb.StaleCommand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.StaleCommand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.StaleCommand parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.StaleCommand 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.Errorpb.StaleCommand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.StaleCommand 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.Errorpb.StaleCommand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.StaleCommand 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.Errorpb.StaleCommand 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; } /** *
     * StaleCommand is the error variant that tells the command is stale, that is,
     * the current request term is lower than current raft term.
     * This can be retried at most time.
     * 
* * Protobuf type {@code errorpb.StaleCommand} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.StaleCommand) org.tikv.kvproto.Errorpb.StaleCommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_StaleCommand_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_StaleCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.StaleCommand.class, org.tikv.kvproto.Errorpb.StaleCommand.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.StaleCommand.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.Errorpb.internal_static_errorpb_StaleCommand_descriptor; } public org.tikv.kvproto.Errorpb.StaleCommand getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.StaleCommand.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.StaleCommand build() { org.tikv.kvproto.Errorpb.StaleCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.StaleCommand buildPartial() { org.tikv.kvproto.Errorpb.StaleCommand result = new org.tikv.kvproto.Errorpb.StaleCommand(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.Errorpb.StaleCommand) { return mergeFrom((org.tikv.kvproto.Errorpb.StaleCommand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.StaleCommand other) { if (other == org.tikv.kvproto.Errorpb.StaleCommand.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.Errorpb.StaleCommand parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.StaleCommand) 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:errorpb.StaleCommand) } // @@protoc_insertion_point(class_scope:errorpb.StaleCommand) private static final org.tikv.kvproto.Errorpb.StaleCommand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.StaleCommand(); } public static org.tikv.kvproto.Errorpb.StaleCommand getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StaleCommand parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StaleCommand(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.Errorpb.StaleCommand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RaftEntryTooLargeOrBuilder extends // @@protoc_insertion_point(interface_extends:errorpb.RaftEntryTooLarge) com.google.protobuf.MessageOrBuilder { /** *
     * The requested region ID
     * 
* * uint64 region_id = 1; */ long getRegionId(); /** *
     * Size of the raft entry
     * 
* * uint64 entry_size = 2; */ long getEntrySize(); } /** *
   * RaftEntryTooLarge is the error variant that tells the request is too large to be serialized to a
   * reasonable small raft entry.
   * (i.e. greater than the configured value `raft_entry_max_size` in `raftstore`)
   * 
* * Protobuf type {@code errorpb.RaftEntryTooLarge} */ public static final class RaftEntryTooLarge extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.RaftEntryTooLarge) RaftEntryTooLargeOrBuilder { private static final long serialVersionUID = 0L; // Use RaftEntryTooLarge.newBuilder() to construct. private RaftEntryTooLarge(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RaftEntryTooLarge() { regionId_ = 0L; entrySize_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RaftEntryTooLarge( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { regionId_ = input.readUInt64(); break; } case 16: { entrySize_ = 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.Errorpb.internal_static_errorpb_RaftEntryTooLarge_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_RaftEntryTooLarge_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.RaftEntryTooLarge.class, org.tikv.kvproto.Errorpb.RaftEntryTooLarge.Builder.class); } public static final int REGION_ID_FIELD_NUMBER = 1; private long regionId_; /** *
     * The requested region ID
     * 
* * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } public static final int ENTRY_SIZE_FIELD_NUMBER = 2; private long entrySize_; /** *
     * Size of the raft entry
     * 
* * uint64 entry_size = 2; */ public long getEntrySize() { return entrySize_; } 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 (entrySize_ != 0L) { output.writeUInt64(2, entrySize_); } 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 (entrySize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, entrySize_); } 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.Errorpb.RaftEntryTooLarge)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.RaftEntryTooLarge other = (org.tikv.kvproto.Errorpb.RaftEntryTooLarge) obj; boolean result = true; result = result && (getRegionId() == other.getRegionId()); result = result && (getEntrySize() == other.getEntrySize()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); hash = (37 * hash) + ENTRY_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEntrySize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Errorpb.RaftEntryTooLarge parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.RaftEntryTooLarge 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.Errorpb.RaftEntryTooLarge parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.RaftEntryTooLarge 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.Errorpb.RaftEntryTooLarge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.RaftEntryTooLarge parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.RaftEntryTooLarge parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.RaftEntryTooLarge 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.Errorpb.RaftEntryTooLarge parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.RaftEntryTooLarge 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.Errorpb.RaftEntryTooLarge parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.RaftEntryTooLarge 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.Errorpb.RaftEntryTooLarge 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; } /** *
     * RaftEntryTooLarge is the error variant that tells the request is too large to be serialized to a
     * reasonable small raft entry.
     * (i.e. greater than the configured value `raft_entry_max_size` in `raftstore`)
     * 
* * Protobuf type {@code errorpb.RaftEntryTooLarge} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.RaftEntryTooLarge) org.tikv.kvproto.Errorpb.RaftEntryTooLargeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_RaftEntryTooLarge_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_RaftEntryTooLarge_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.RaftEntryTooLarge.class, org.tikv.kvproto.Errorpb.RaftEntryTooLarge.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.RaftEntryTooLarge.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; entrySize_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_RaftEntryTooLarge_descriptor; } public org.tikv.kvproto.Errorpb.RaftEntryTooLarge getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.RaftEntryTooLarge.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.RaftEntryTooLarge build() { org.tikv.kvproto.Errorpb.RaftEntryTooLarge result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.RaftEntryTooLarge buildPartial() { org.tikv.kvproto.Errorpb.RaftEntryTooLarge result = new org.tikv.kvproto.Errorpb.RaftEntryTooLarge(this); result.regionId_ = regionId_; result.entrySize_ = entrySize_; 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.Errorpb.RaftEntryTooLarge) { return mergeFrom((org.tikv.kvproto.Errorpb.RaftEntryTooLarge)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.RaftEntryTooLarge other) { if (other == org.tikv.kvproto.Errorpb.RaftEntryTooLarge.getDefaultInstance()) return this; if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } if (other.getEntrySize() != 0L) { setEntrySize(other.getEntrySize()); } 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.Errorpb.RaftEntryTooLarge parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.RaftEntryTooLarge) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long regionId_ ; /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } private long entrySize_ ; /** *
       * Size of the raft entry
       * 
* * uint64 entry_size = 2; */ public long getEntrySize() { return entrySize_; } /** *
       * Size of the raft entry
       * 
* * uint64 entry_size = 2; */ public Builder setEntrySize(long value) { entrySize_ = value; onChanged(); return this; } /** *
       * Size of the raft entry
       * 
* * uint64 entry_size = 2; */ public Builder clearEntrySize() { entrySize_ = 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:errorpb.RaftEntryTooLarge) } // @@protoc_insertion_point(class_scope:errorpb.RaftEntryTooLarge) private static final org.tikv.kvproto.Errorpb.RaftEntryTooLarge DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.RaftEntryTooLarge(); } public static org.tikv.kvproto.Errorpb.RaftEntryTooLarge getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RaftEntryTooLarge parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RaftEntryTooLarge(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.Errorpb.RaftEntryTooLarge getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MaxTimestampNotSyncedOrBuilder extends // @@protoc_insertion_point(interface_extends:errorpb.MaxTimestampNotSynced) com.google.protobuf.MessageOrBuilder { } /** *
   * MaxTimestampNotSynced is the error variant that tells the peer has just become a leader and
   * updating the max timestamp in the concurrency manager from PD TSO is ongoing. In this case,
   * the prewrite of an async commit transaction cannot succeed. The client can backoff and
   * resend the request.
   * 
* * Protobuf type {@code errorpb.MaxTimestampNotSynced} */ public static final class MaxTimestampNotSynced extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.MaxTimestampNotSynced) MaxTimestampNotSyncedOrBuilder { private static final long serialVersionUID = 0L; // Use MaxTimestampNotSynced.newBuilder() to construct. private MaxTimestampNotSynced(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MaxTimestampNotSynced() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MaxTimestampNotSynced( 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.Errorpb.internal_static_errorpb_MaxTimestampNotSynced_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_MaxTimestampNotSynced_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.class, org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.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.Errorpb.MaxTimestampNotSynced)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.MaxTimestampNotSynced other = (org.tikv.kvproto.Errorpb.MaxTimestampNotSynced) 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.Errorpb.MaxTimestampNotSynced parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.MaxTimestampNotSynced 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.Errorpb.MaxTimestampNotSynced parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.MaxTimestampNotSynced 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.Errorpb.MaxTimestampNotSynced parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.MaxTimestampNotSynced parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.MaxTimestampNotSynced parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.MaxTimestampNotSynced 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.Errorpb.MaxTimestampNotSynced parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.MaxTimestampNotSynced 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.Errorpb.MaxTimestampNotSynced parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.MaxTimestampNotSynced 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.Errorpb.MaxTimestampNotSynced 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; } /** *
     * MaxTimestampNotSynced is the error variant that tells the peer has just become a leader and
     * updating the max timestamp in the concurrency manager from PD TSO is ongoing. In this case,
     * the prewrite of an async commit transaction cannot succeed. The client can backoff and
     * resend the request.
     * 
* * Protobuf type {@code errorpb.MaxTimestampNotSynced} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.MaxTimestampNotSynced) org.tikv.kvproto.Errorpb.MaxTimestampNotSyncedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_MaxTimestampNotSynced_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_MaxTimestampNotSynced_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.class, org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.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.Errorpb.internal_static_errorpb_MaxTimestampNotSynced_descriptor; } public org.tikv.kvproto.Errorpb.MaxTimestampNotSynced getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.MaxTimestampNotSynced build() { org.tikv.kvproto.Errorpb.MaxTimestampNotSynced result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.MaxTimestampNotSynced buildPartial() { org.tikv.kvproto.Errorpb.MaxTimestampNotSynced result = new org.tikv.kvproto.Errorpb.MaxTimestampNotSynced(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.Errorpb.MaxTimestampNotSynced) { return mergeFrom((org.tikv.kvproto.Errorpb.MaxTimestampNotSynced)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.MaxTimestampNotSynced other) { if (other == org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.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.Errorpb.MaxTimestampNotSynced parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.MaxTimestampNotSynced) 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:errorpb.MaxTimestampNotSynced) } // @@protoc_insertion_point(class_scope:errorpb.MaxTimestampNotSynced) private static final org.tikv.kvproto.Errorpb.MaxTimestampNotSynced DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.MaxTimestampNotSynced(); } public static org.tikv.kvproto.Errorpb.MaxTimestampNotSynced getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MaxTimestampNotSynced parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MaxTimestampNotSynced(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.Errorpb.MaxTimestampNotSynced getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadIndexNotReadyOrBuilder extends // @@protoc_insertion_point(interface_extends:errorpb.ReadIndexNotReady) com.google.protobuf.MessageOrBuilder { /** *
     * The reason why the region is not ready to serve read index request
     * 
* * string reason = 1; */ java.lang.String getReason(); /** *
     * The reason why the region is not ready to serve read index request
     * 
* * string reason = 1; */ com.google.protobuf.ByteString getReasonBytes(); /** *
     * The requested region ID
     * 
* * uint64 region_id = 2; */ long getRegionId(); } /** *
   * ReadIndexNotReady is the error variant that tells the read index request is not ready, that is,
   * the current region is in a status that not ready to serve the read index request. For example,
   * region is in splitting or merging status.
   * This can be retried at most time.
   * 
* * Protobuf type {@code errorpb.ReadIndexNotReady} */ public static final class ReadIndexNotReady extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.ReadIndexNotReady) ReadIndexNotReadyOrBuilder { private static final long serialVersionUID = 0L; // Use ReadIndexNotReady.newBuilder() to construct. private ReadIndexNotReady(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadIndexNotReady() { reason_ = ""; regionId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadIndexNotReady( 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(); reason_ = s; break; } case 16: { regionId_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ReadIndexNotReady_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ReadIndexNotReady_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.ReadIndexNotReady.class, org.tikv.kvproto.Errorpb.ReadIndexNotReady.Builder.class); } public static final int REASON_FIELD_NUMBER = 1; private volatile java.lang.Object reason_; /** *
     * The reason why the region is not ready to serve read index request
     * 
* * string reason = 1; */ public java.lang.String getReason() { java.lang.Object ref = reason_; 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(); reason_ = s; return s; } } /** *
     * The reason why the region is not ready to serve read index request
     * 
* * string reason = 1; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REGION_ID_FIELD_NUMBER = 2; private long regionId_; /** *
     * The requested region ID
     * 
* * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getReasonBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); } if (regionId_ != 0L) { output.writeUInt64(2, regionId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getReasonBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reason_); } if (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, regionId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Errorpb.ReadIndexNotReady)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.ReadIndexNotReady other = (org.tikv.kvproto.Errorpb.ReadIndexNotReady) obj; boolean result = true; result = result && getReason() .equals(other.getReason()); result = result && (getRegionId() == other.getRegionId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REASON_FIELD_NUMBER; hash = (53 * hash) + getReason().hashCode(); hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Errorpb.ReadIndexNotReady parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.ReadIndexNotReady 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.Errorpb.ReadIndexNotReady parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.ReadIndexNotReady 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.Errorpb.ReadIndexNotReady parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.ReadIndexNotReady parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.ReadIndexNotReady parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.ReadIndexNotReady 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.Errorpb.ReadIndexNotReady parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.ReadIndexNotReady 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.Errorpb.ReadIndexNotReady parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.ReadIndexNotReady 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.Errorpb.ReadIndexNotReady 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; } /** *
     * ReadIndexNotReady is the error variant that tells the read index request is not ready, that is,
     * the current region is in a status that not ready to serve the read index request. For example,
     * region is in splitting or merging status.
     * This can be retried at most time.
     * 
* * Protobuf type {@code errorpb.ReadIndexNotReady} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.ReadIndexNotReady) org.tikv.kvproto.Errorpb.ReadIndexNotReadyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ReadIndexNotReady_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ReadIndexNotReady_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.ReadIndexNotReady.class, org.tikv.kvproto.Errorpb.ReadIndexNotReady.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.ReadIndexNotReady.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(); reason_ = ""; regionId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ReadIndexNotReady_descriptor; } public org.tikv.kvproto.Errorpb.ReadIndexNotReady getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.ReadIndexNotReady.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.ReadIndexNotReady build() { org.tikv.kvproto.Errorpb.ReadIndexNotReady result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.ReadIndexNotReady buildPartial() { org.tikv.kvproto.Errorpb.ReadIndexNotReady result = new org.tikv.kvproto.Errorpb.ReadIndexNotReady(this); result.reason_ = reason_; result.regionId_ = regionId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Errorpb.ReadIndexNotReady) { return mergeFrom((org.tikv.kvproto.Errorpb.ReadIndexNotReady)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.ReadIndexNotReady other) { if (other == org.tikv.kvproto.Errorpb.ReadIndexNotReady.getDefaultInstance()) return this; if (!other.getReason().isEmpty()) { reason_ = other.reason_; onChanged(); } if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Errorpb.ReadIndexNotReady parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.ReadIndexNotReady) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object reason_ = ""; /** *
       * The reason why the region is not ready to serve read index request
       * 
* * string reason = 1; */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The reason why the region is not ready to serve read index request
       * 
* * string reason = 1; */ public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The reason why the region is not ready to serve read index request
       * 
* * string reason = 1; */ public Builder setReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reason_ = value; onChanged(); return this; } /** *
       * The reason why the region is not ready to serve read index request
       * 
* * string reason = 1; */ public Builder clearReason() { reason_ = getDefaultInstance().getReason(); onChanged(); return this; } /** *
       * The reason why the region is not ready to serve read index request
       * 
* * string reason = 1; */ public Builder setReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reason_ = value; onChanged(); return this; } private long regionId_ ; /** *
       * The requested region ID
       * 
* * uint64 region_id = 2; */ public long getRegionId() { return regionId_; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 2; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 2; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:errorpb.ReadIndexNotReady) } // @@protoc_insertion_point(class_scope:errorpb.ReadIndexNotReady) private static final org.tikv.kvproto.Errorpb.ReadIndexNotReady DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.ReadIndexNotReady(); } public static org.tikv.kvproto.Errorpb.ReadIndexNotReady getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReadIndexNotReady parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadIndexNotReady(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.Errorpb.ReadIndexNotReady getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ProposalInMergingModeOrBuilder extends // @@protoc_insertion_point(interface_extends:errorpb.ProposalInMergingMode) com.google.protobuf.MessageOrBuilder { /** *
     * The requested region ID
     * 
* * uint64 region_id = 1; */ long getRegionId(); } /** *
   * ProposalInMergingMode is the error variant that tells the proposal is rejected because raft is
   * in the merging mode. This may happen when BR/Lightning try to ingest SST.
   * This can be retried at most time.
   * 
* * Protobuf type {@code errorpb.ProposalInMergingMode} */ public static final class ProposalInMergingMode extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.ProposalInMergingMode) ProposalInMergingModeOrBuilder { private static final long serialVersionUID = 0L; // Use ProposalInMergingMode.newBuilder() to construct. private ProposalInMergingMode(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProposalInMergingMode() { regionId_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProposalInMergingMode( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { regionId_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ProposalInMergingMode_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ProposalInMergingMode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.ProposalInMergingMode.class, org.tikv.kvproto.Errorpb.ProposalInMergingMode.Builder.class); } public static final int REGION_ID_FIELD_NUMBER = 1; private long regionId_; /** *
     * The requested region ID
     * 
* * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionId_ != 0L) { output.writeUInt64(1, regionId_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, regionId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Errorpb.ProposalInMergingMode)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.ProposalInMergingMode other = (org.tikv.kvproto.Errorpb.ProposalInMergingMode) obj; boolean result = true; result = result && (getRegionId() == other.getRegionId()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Errorpb.ProposalInMergingMode parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.ProposalInMergingMode 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.Errorpb.ProposalInMergingMode parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.ProposalInMergingMode 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.Errorpb.ProposalInMergingMode parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.ProposalInMergingMode parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.ProposalInMergingMode parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.ProposalInMergingMode 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.Errorpb.ProposalInMergingMode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.ProposalInMergingMode 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.Errorpb.ProposalInMergingMode parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.ProposalInMergingMode 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.Errorpb.ProposalInMergingMode 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; } /** *
     * ProposalInMergingMode is the error variant that tells the proposal is rejected because raft is
     * in the merging mode. This may happen when BR/Lightning try to ingest SST.
     * This can be retried at most time.
     * 
* * Protobuf type {@code errorpb.ProposalInMergingMode} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.ProposalInMergingMode) org.tikv.kvproto.Errorpb.ProposalInMergingModeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ProposalInMergingMode_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ProposalInMergingMode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.ProposalInMergingMode.class, org.tikv.kvproto.Errorpb.ProposalInMergingMode.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.ProposalInMergingMode.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); regionId_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_ProposalInMergingMode_descriptor; } public org.tikv.kvproto.Errorpb.ProposalInMergingMode getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.ProposalInMergingMode.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.ProposalInMergingMode build() { org.tikv.kvproto.Errorpb.ProposalInMergingMode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.ProposalInMergingMode buildPartial() { org.tikv.kvproto.Errorpb.ProposalInMergingMode result = new org.tikv.kvproto.Errorpb.ProposalInMergingMode(this); result.regionId_ = regionId_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Errorpb.ProposalInMergingMode) { return mergeFrom((org.tikv.kvproto.Errorpb.ProposalInMergingMode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.ProposalInMergingMode other) { if (other == org.tikv.kvproto.Errorpb.ProposalInMergingMode.getDefaultInstance()) return this; if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Errorpb.ProposalInMergingMode parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.ProposalInMergingMode) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long regionId_ ; /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** *
       * The requested region ID
       * 
* * uint64 region_id = 1; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:errorpb.ProposalInMergingMode) } // @@protoc_insertion_point(class_scope:errorpb.ProposalInMergingMode) private static final org.tikv.kvproto.Errorpb.ProposalInMergingMode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.ProposalInMergingMode(); } public static org.tikv.kvproto.Errorpb.ProposalInMergingMode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ProposalInMergingMode parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProposalInMergingMode(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.Errorpb.ProposalInMergingMode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:errorpb.Error) com.google.protobuf.MessageOrBuilder { /** *
     * The error message
     * 
* * string message = 1; */ java.lang.String getMessage(); /** *
     * The error message
     * 
* * string message = 1; */ com.google.protobuf.ByteString getMessageBytes(); /** * .errorpb.NotLeader not_leader = 2; */ boolean hasNotLeader(); /** * .errorpb.NotLeader not_leader = 2; */ org.tikv.kvproto.Errorpb.NotLeader getNotLeader(); /** * .errorpb.NotLeader not_leader = 2; */ org.tikv.kvproto.Errorpb.NotLeaderOrBuilder getNotLeaderOrBuilder(); /** * .errorpb.RegionNotFound region_not_found = 3; */ boolean hasRegionNotFound(); /** * .errorpb.RegionNotFound region_not_found = 3; */ org.tikv.kvproto.Errorpb.RegionNotFound getRegionNotFound(); /** * .errorpb.RegionNotFound region_not_found = 3; */ org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder getRegionNotFoundOrBuilder(); /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ boolean hasKeyNotInRegion(); /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ org.tikv.kvproto.Errorpb.KeyNotInRegion getKeyNotInRegion(); /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ org.tikv.kvproto.Errorpb.KeyNotInRegionOrBuilder getKeyNotInRegionOrBuilder(); /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ boolean hasEpochNotMatch(); /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ org.tikv.kvproto.Errorpb.EpochNotMatch getEpochNotMatch(); /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder getEpochNotMatchOrBuilder(); /** * .errorpb.ServerIsBusy server_is_busy = 6; */ boolean hasServerIsBusy(); /** * .errorpb.ServerIsBusy server_is_busy = 6; */ org.tikv.kvproto.Errorpb.ServerIsBusy getServerIsBusy(); /** * .errorpb.ServerIsBusy server_is_busy = 6; */ org.tikv.kvproto.Errorpb.ServerIsBusyOrBuilder getServerIsBusyOrBuilder(); /** * .errorpb.StaleCommand stale_command = 7; */ boolean hasStaleCommand(); /** * .errorpb.StaleCommand stale_command = 7; */ org.tikv.kvproto.Errorpb.StaleCommand getStaleCommand(); /** * .errorpb.StaleCommand stale_command = 7; */ org.tikv.kvproto.Errorpb.StaleCommandOrBuilder getStaleCommandOrBuilder(); /** * .errorpb.StoreNotMatch store_not_match = 8; */ boolean hasStoreNotMatch(); /** * .errorpb.StoreNotMatch store_not_match = 8; */ org.tikv.kvproto.Errorpb.StoreNotMatch getStoreNotMatch(); /** * .errorpb.StoreNotMatch store_not_match = 8; */ org.tikv.kvproto.Errorpb.StoreNotMatchOrBuilder getStoreNotMatchOrBuilder(); /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ boolean hasRaftEntryTooLarge(); /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ org.tikv.kvproto.Errorpb.RaftEntryTooLarge getRaftEntryTooLarge(); /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ org.tikv.kvproto.Errorpb.RaftEntryTooLargeOrBuilder getRaftEntryTooLargeOrBuilder(); /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ boolean hasMaxTimestampNotSynced(); /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ org.tikv.kvproto.Errorpb.MaxTimestampNotSynced getMaxTimestampNotSynced(); /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ org.tikv.kvproto.Errorpb.MaxTimestampNotSyncedOrBuilder getMaxTimestampNotSyncedOrBuilder(); /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ boolean hasReadIndexNotReady(); /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ org.tikv.kvproto.Errorpb.ReadIndexNotReady getReadIndexNotReady(); /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ org.tikv.kvproto.Errorpb.ReadIndexNotReadyOrBuilder getReadIndexNotReadyOrBuilder(); /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ boolean hasProposalInMergingMode(); /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ org.tikv.kvproto.Errorpb.ProposalInMergingMode getProposalInMergingMode(); /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ org.tikv.kvproto.Errorpb.ProposalInMergingModeOrBuilder getProposalInMergingModeOrBuilder(); } /** *
   * Error wraps all region errors, indicates an error encountered by a request.
   * 
* * Protobuf type {@code errorpb.Error} */ public static final class Error extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:errorpb.Error) ErrorOrBuilder { private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Error() { message_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Error( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); message_ = s; break; } case 18: { org.tikv.kvproto.Errorpb.NotLeader.Builder subBuilder = null; if (notLeader_ != null) { subBuilder = notLeader_.toBuilder(); } notLeader_ = input.readMessage(org.tikv.kvproto.Errorpb.NotLeader.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(notLeader_); notLeader_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Errorpb.RegionNotFound.Builder subBuilder = null; if (regionNotFound_ != null) { subBuilder = regionNotFound_.toBuilder(); } regionNotFound_ = input.readMessage(org.tikv.kvproto.Errorpb.RegionNotFound.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionNotFound_); regionNotFound_ = subBuilder.buildPartial(); } break; } case 34: { org.tikv.kvproto.Errorpb.KeyNotInRegion.Builder subBuilder = null; if (keyNotInRegion_ != null) { subBuilder = keyNotInRegion_.toBuilder(); } keyNotInRegion_ = input.readMessage(org.tikv.kvproto.Errorpb.KeyNotInRegion.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(keyNotInRegion_); keyNotInRegion_ = subBuilder.buildPartial(); } break; } case 42: { org.tikv.kvproto.Errorpb.EpochNotMatch.Builder subBuilder = null; if (epochNotMatch_ != null) { subBuilder = epochNotMatch_.toBuilder(); } epochNotMatch_ = input.readMessage(org.tikv.kvproto.Errorpb.EpochNotMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(epochNotMatch_); epochNotMatch_ = subBuilder.buildPartial(); } break; } case 50: { org.tikv.kvproto.Errorpb.ServerIsBusy.Builder subBuilder = null; if (serverIsBusy_ != null) { subBuilder = serverIsBusy_.toBuilder(); } serverIsBusy_ = input.readMessage(org.tikv.kvproto.Errorpb.ServerIsBusy.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(serverIsBusy_); serverIsBusy_ = subBuilder.buildPartial(); } break; } case 58: { org.tikv.kvproto.Errorpb.StaleCommand.Builder subBuilder = null; if (staleCommand_ != null) { subBuilder = staleCommand_.toBuilder(); } staleCommand_ = input.readMessage(org.tikv.kvproto.Errorpb.StaleCommand.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(staleCommand_); staleCommand_ = subBuilder.buildPartial(); } break; } case 66: { org.tikv.kvproto.Errorpb.StoreNotMatch.Builder subBuilder = null; if (storeNotMatch_ != null) { subBuilder = storeNotMatch_.toBuilder(); } storeNotMatch_ = input.readMessage(org.tikv.kvproto.Errorpb.StoreNotMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(storeNotMatch_); storeNotMatch_ = subBuilder.buildPartial(); } break; } case 74: { org.tikv.kvproto.Errorpb.RaftEntryTooLarge.Builder subBuilder = null; if (raftEntryTooLarge_ != null) { subBuilder = raftEntryTooLarge_.toBuilder(); } raftEntryTooLarge_ = input.readMessage(org.tikv.kvproto.Errorpb.RaftEntryTooLarge.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(raftEntryTooLarge_); raftEntryTooLarge_ = subBuilder.buildPartial(); } break; } case 82: { org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.Builder subBuilder = null; if (maxTimestampNotSynced_ != null) { subBuilder = maxTimestampNotSynced_.toBuilder(); } maxTimestampNotSynced_ = input.readMessage(org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(maxTimestampNotSynced_); maxTimestampNotSynced_ = subBuilder.buildPartial(); } break; } case 90: { org.tikv.kvproto.Errorpb.ReadIndexNotReady.Builder subBuilder = null; if (readIndexNotReady_ != null) { subBuilder = readIndexNotReady_.toBuilder(); } readIndexNotReady_ = input.readMessage(org.tikv.kvproto.Errorpb.ReadIndexNotReady.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(readIndexNotReady_); readIndexNotReady_ = subBuilder.buildPartial(); } break; } case 98: { org.tikv.kvproto.Errorpb.ProposalInMergingMode.Builder subBuilder = null; if (proposalInMergingMode_ != null) { subBuilder = proposalInMergingMode_.toBuilder(); } proposalInMergingMode_ = input.readMessage(org.tikv.kvproto.Errorpb.ProposalInMergingMode.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(proposalInMergingMode_); proposalInMergingMode_ = 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.Errorpb.internal_static_errorpb_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.Error.class, org.tikv.kvproto.Errorpb.Error.Builder.class); } public static final int MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object message_; /** *
     * The error message
     * 
* * string message = 1; */ public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** *
     * The error message
     * 
* * string message = 1; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NOT_LEADER_FIELD_NUMBER = 2; private org.tikv.kvproto.Errorpb.NotLeader notLeader_; /** * .errorpb.NotLeader not_leader = 2; */ public boolean hasNotLeader() { return notLeader_ != null; } /** * .errorpb.NotLeader not_leader = 2; */ public org.tikv.kvproto.Errorpb.NotLeader getNotLeader() { return notLeader_ == null ? org.tikv.kvproto.Errorpb.NotLeader.getDefaultInstance() : notLeader_; } /** * .errorpb.NotLeader not_leader = 2; */ public org.tikv.kvproto.Errorpb.NotLeaderOrBuilder getNotLeaderOrBuilder() { return getNotLeader(); } public static final int REGION_NOT_FOUND_FIELD_NUMBER = 3; private org.tikv.kvproto.Errorpb.RegionNotFound regionNotFound_; /** * .errorpb.RegionNotFound region_not_found = 3; */ public boolean hasRegionNotFound() { return regionNotFound_ != null; } /** * .errorpb.RegionNotFound region_not_found = 3; */ public org.tikv.kvproto.Errorpb.RegionNotFound getRegionNotFound() { return regionNotFound_ == null ? org.tikv.kvproto.Errorpb.RegionNotFound.getDefaultInstance() : regionNotFound_; } /** * .errorpb.RegionNotFound region_not_found = 3; */ public org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder getRegionNotFoundOrBuilder() { return getRegionNotFound(); } public static final int KEY_NOT_IN_REGION_FIELD_NUMBER = 4; private org.tikv.kvproto.Errorpb.KeyNotInRegion keyNotInRegion_; /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ public boolean hasKeyNotInRegion() { return keyNotInRegion_ != null; } /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ public org.tikv.kvproto.Errorpb.KeyNotInRegion getKeyNotInRegion() { return keyNotInRegion_ == null ? org.tikv.kvproto.Errorpb.KeyNotInRegion.getDefaultInstance() : keyNotInRegion_; } /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ public org.tikv.kvproto.Errorpb.KeyNotInRegionOrBuilder getKeyNotInRegionOrBuilder() { return getKeyNotInRegion(); } public static final int EPOCH_NOT_MATCH_FIELD_NUMBER = 5; private org.tikv.kvproto.Errorpb.EpochNotMatch epochNotMatch_; /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ public boolean hasEpochNotMatch() { return epochNotMatch_ != null; } /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ public org.tikv.kvproto.Errorpb.EpochNotMatch getEpochNotMatch() { return epochNotMatch_ == null ? org.tikv.kvproto.Errorpb.EpochNotMatch.getDefaultInstance() : epochNotMatch_; } /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ public org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder getEpochNotMatchOrBuilder() { return getEpochNotMatch(); } public static final int SERVER_IS_BUSY_FIELD_NUMBER = 6; private org.tikv.kvproto.Errorpb.ServerIsBusy serverIsBusy_; /** * .errorpb.ServerIsBusy server_is_busy = 6; */ public boolean hasServerIsBusy() { return serverIsBusy_ != null; } /** * .errorpb.ServerIsBusy server_is_busy = 6; */ public org.tikv.kvproto.Errorpb.ServerIsBusy getServerIsBusy() { return serverIsBusy_ == null ? org.tikv.kvproto.Errorpb.ServerIsBusy.getDefaultInstance() : serverIsBusy_; } /** * .errorpb.ServerIsBusy server_is_busy = 6; */ public org.tikv.kvproto.Errorpb.ServerIsBusyOrBuilder getServerIsBusyOrBuilder() { return getServerIsBusy(); } public static final int STALE_COMMAND_FIELD_NUMBER = 7; private org.tikv.kvproto.Errorpb.StaleCommand staleCommand_; /** * .errorpb.StaleCommand stale_command = 7; */ public boolean hasStaleCommand() { return staleCommand_ != null; } /** * .errorpb.StaleCommand stale_command = 7; */ public org.tikv.kvproto.Errorpb.StaleCommand getStaleCommand() { return staleCommand_ == null ? org.tikv.kvproto.Errorpb.StaleCommand.getDefaultInstance() : staleCommand_; } /** * .errorpb.StaleCommand stale_command = 7; */ public org.tikv.kvproto.Errorpb.StaleCommandOrBuilder getStaleCommandOrBuilder() { return getStaleCommand(); } public static final int STORE_NOT_MATCH_FIELD_NUMBER = 8; private org.tikv.kvproto.Errorpb.StoreNotMatch storeNotMatch_; /** * .errorpb.StoreNotMatch store_not_match = 8; */ public boolean hasStoreNotMatch() { return storeNotMatch_ != null; } /** * .errorpb.StoreNotMatch store_not_match = 8; */ public org.tikv.kvproto.Errorpb.StoreNotMatch getStoreNotMatch() { return storeNotMatch_ == null ? org.tikv.kvproto.Errorpb.StoreNotMatch.getDefaultInstance() : storeNotMatch_; } /** * .errorpb.StoreNotMatch store_not_match = 8; */ public org.tikv.kvproto.Errorpb.StoreNotMatchOrBuilder getStoreNotMatchOrBuilder() { return getStoreNotMatch(); } public static final int RAFT_ENTRY_TOO_LARGE_FIELD_NUMBER = 9; private org.tikv.kvproto.Errorpb.RaftEntryTooLarge raftEntryTooLarge_; /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ public boolean hasRaftEntryTooLarge() { return raftEntryTooLarge_ != null; } /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ public org.tikv.kvproto.Errorpb.RaftEntryTooLarge getRaftEntryTooLarge() { return raftEntryTooLarge_ == null ? org.tikv.kvproto.Errorpb.RaftEntryTooLarge.getDefaultInstance() : raftEntryTooLarge_; } /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ public org.tikv.kvproto.Errorpb.RaftEntryTooLargeOrBuilder getRaftEntryTooLargeOrBuilder() { return getRaftEntryTooLarge(); } public static final int MAX_TIMESTAMP_NOT_SYNCED_FIELD_NUMBER = 10; private org.tikv.kvproto.Errorpb.MaxTimestampNotSynced maxTimestampNotSynced_; /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ public boolean hasMaxTimestampNotSynced() { return maxTimestampNotSynced_ != null; } /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ public org.tikv.kvproto.Errorpb.MaxTimestampNotSynced getMaxTimestampNotSynced() { return maxTimestampNotSynced_ == null ? org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.getDefaultInstance() : maxTimestampNotSynced_; } /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ public org.tikv.kvproto.Errorpb.MaxTimestampNotSyncedOrBuilder getMaxTimestampNotSyncedOrBuilder() { return getMaxTimestampNotSynced(); } public static final int READ_INDEX_NOT_READY_FIELD_NUMBER = 11; private org.tikv.kvproto.Errorpb.ReadIndexNotReady readIndexNotReady_; /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ public boolean hasReadIndexNotReady() { return readIndexNotReady_ != null; } /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ public org.tikv.kvproto.Errorpb.ReadIndexNotReady getReadIndexNotReady() { return readIndexNotReady_ == null ? org.tikv.kvproto.Errorpb.ReadIndexNotReady.getDefaultInstance() : readIndexNotReady_; } /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ public org.tikv.kvproto.Errorpb.ReadIndexNotReadyOrBuilder getReadIndexNotReadyOrBuilder() { return getReadIndexNotReady(); } public static final int PROPOSAL_IN_MERGING_MODE_FIELD_NUMBER = 12; private org.tikv.kvproto.Errorpb.ProposalInMergingMode proposalInMergingMode_; /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ public boolean hasProposalInMergingMode() { return proposalInMergingMode_ != null; } /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ public org.tikv.kvproto.Errorpb.ProposalInMergingMode getProposalInMergingMode() { return proposalInMergingMode_ == null ? org.tikv.kvproto.Errorpb.ProposalInMergingMode.getDefaultInstance() : proposalInMergingMode_; } /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ public org.tikv.kvproto.Errorpb.ProposalInMergingModeOrBuilder getProposalInMergingModeOrBuilder() { return getProposalInMergingMode(); } 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 (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } if (notLeader_ != null) { output.writeMessage(2, getNotLeader()); } if (regionNotFound_ != null) { output.writeMessage(3, getRegionNotFound()); } if (keyNotInRegion_ != null) { output.writeMessage(4, getKeyNotInRegion()); } if (epochNotMatch_ != null) { output.writeMessage(5, getEpochNotMatch()); } if (serverIsBusy_ != null) { output.writeMessage(6, getServerIsBusy()); } if (staleCommand_ != null) { output.writeMessage(7, getStaleCommand()); } if (storeNotMatch_ != null) { output.writeMessage(8, getStoreNotMatch()); } if (raftEntryTooLarge_ != null) { output.writeMessage(9, getRaftEntryTooLarge()); } if (maxTimestampNotSynced_ != null) { output.writeMessage(10, getMaxTimestampNotSynced()); } if (readIndexNotReady_ != null) { output.writeMessage(11, getReadIndexNotReady()); } if (proposalInMergingMode_ != null) { output.writeMessage(12, getProposalInMergingMode()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } if (notLeader_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getNotLeader()); } if (regionNotFound_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRegionNotFound()); } if (keyNotInRegion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getKeyNotInRegion()); } if (epochNotMatch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getEpochNotMatch()); } if (serverIsBusy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getServerIsBusy()); } if (staleCommand_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getStaleCommand()); } if (storeNotMatch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getStoreNotMatch()); } if (raftEntryTooLarge_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRaftEntryTooLarge()); } if (maxTimestampNotSynced_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getMaxTimestampNotSynced()); } if (readIndexNotReady_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getReadIndexNotReady()); } if (proposalInMergingMode_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getProposalInMergingMode()); } 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.Errorpb.Error)) { return super.equals(obj); } org.tikv.kvproto.Errorpb.Error other = (org.tikv.kvproto.Errorpb.Error) obj; boolean result = true; result = result && getMessage() .equals(other.getMessage()); result = result && (hasNotLeader() == other.hasNotLeader()); if (hasNotLeader()) { result = result && getNotLeader() .equals(other.getNotLeader()); } result = result && (hasRegionNotFound() == other.hasRegionNotFound()); if (hasRegionNotFound()) { result = result && getRegionNotFound() .equals(other.getRegionNotFound()); } result = result && (hasKeyNotInRegion() == other.hasKeyNotInRegion()); if (hasKeyNotInRegion()) { result = result && getKeyNotInRegion() .equals(other.getKeyNotInRegion()); } result = result && (hasEpochNotMatch() == other.hasEpochNotMatch()); if (hasEpochNotMatch()) { result = result && getEpochNotMatch() .equals(other.getEpochNotMatch()); } result = result && (hasServerIsBusy() == other.hasServerIsBusy()); if (hasServerIsBusy()) { result = result && getServerIsBusy() .equals(other.getServerIsBusy()); } result = result && (hasStaleCommand() == other.hasStaleCommand()); if (hasStaleCommand()) { result = result && getStaleCommand() .equals(other.getStaleCommand()); } result = result && (hasStoreNotMatch() == other.hasStoreNotMatch()); if (hasStoreNotMatch()) { result = result && getStoreNotMatch() .equals(other.getStoreNotMatch()); } result = result && (hasRaftEntryTooLarge() == other.hasRaftEntryTooLarge()); if (hasRaftEntryTooLarge()) { result = result && getRaftEntryTooLarge() .equals(other.getRaftEntryTooLarge()); } result = result && (hasMaxTimestampNotSynced() == other.hasMaxTimestampNotSynced()); if (hasMaxTimestampNotSynced()) { result = result && getMaxTimestampNotSynced() .equals(other.getMaxTimestampNotSynced()); } result = result && (hasReadIndexNotReady() == other.hasReadIndexNotReady()); if (hasReadIndexNotReady()) { result = result && getReadIndexNotReady() .equals(other.getReadIndexNotReady()); } result = result && (hasProposalInMergingMode() == other.hasProposalInMergingMode()); if (hasProposalInMergingMode()) { result = result && getProposalInMergingMode() .equals(other.getProposalInMergingMode()); } 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) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); if (hasNotLeader()) { hash = (37 * hash) + NOT_LEADER_FIELD_NUMBER; hash = (53 * hash) + getNotLeader().hashCode(); } if (hasRegionNotFound()) { hash = (37 * hash) + REGION_NOT_FOUND_FIELD_NUMBER; hash = (53 * hash) + getRegionNotFound().hashCode(); } if (hasKeyNotInRegion()) { hash = (37 * hash) + KEY_NOT_IN_REGION_FIELD_NUMBER; hash = (53 * hash) + getKeyNotInRegion().hashCode(); } if (hasEpochNotMatch()) { hash = (37 * hash) + EPOCH_NOT_MATCH_FIELD_NUMBER; hash = (53 * hash) + getEpochNotMatch().hashCode(); } if (hasServerIsBusy()) { hash = (37 * hash) + SERVER_IS_BUSY_FIELD_NUMBER; hash = (53 * hash) + getServerIsBusy().hashCode(); } if (hasStaleCommand()) { hash = (37 * hash) + STALE_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getStaleCommand().hashCode(); } if (hasStoreNotMatch()) { hash = (37 * hash) + STORE_NOT_MATCH_FIELD_NUMBER; hash = (53 * hash) + getStoreNotMatch().hashCode(); } if (hasRaftEntryTooLarge()) { hash = (37 * hash) + RAFT_ENTRY_TOO_LARGE_FIELD_NUMBER; hash = (53 * hash) + getRaftEntryTooLarge().hashCode(); } if (hasMaxTimestampNotSynced()) { hash = (37 * hash) + MAX_TIMESTAMP_NOT_SYNCED_FIELD_NUMBER; hash = (53 * hash) + getMaxTimestampNotSynced().hashCode(); } if (hasReadIndexNotReady()) { hash = (37 * hash) + READ_INDEX_NOT_READY_FIELD_NUMBER; hash = (53 * hash) + getReadIndexNotReady().hashCode(); } if (hasProposalInMergingMode()) { hash = (37 * hash) + PROPOSAL_IN_MERGING_MODE_FIELD_NUMBER; hash = (53 * hash) + getProposalInMergingMode().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Errorpb.Error parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.Error parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Errorpb.Error parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Errorpb.Error parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.Error parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Errorpb.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.Error parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Errorpb.Error parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Errorpb.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Errorpb.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Error wraps all region errors, indicates an error encountered by a request.
     * 
* * Protobuf type {@code errorpb.Error} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:errorpb.Error) org.tikv.kvproto.Errorpb.ErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_Error_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Errorpb.Error.class, org.tikv.kvproto.Errorpb.Error.Builder.class); } // Construct using org.tikv.kvproto.Errorpb.Error.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); message_ = ""; if (notLeaderBuilder_ == null) { notLeader_ = null; } else { notLeader_ = null; notLeaderBuilder_ = null; } if (regionNotFoundBuilder_ == null) { regionNotFound_ = null; } else { regionNotFound_ = null; regionNotFoundBuilder_ = null; } if (keyNotInRegionBuilder_ == null) { keyNotInRegion_ = null; } else { keyNotInRegion_ = null; keyNotInRegionBuilder_ = null; } if (epochNotMatchBuilder_ == null) { epochNotMatch_ = null; } else { epochNotMatch_ = null; epochNotMatchBuilder_ = null; } if (serverIsBusyBuilder_ == null) { serverIsBusy_ = null; } else { serverIsBusy_ = null; serverIsBusyBuilder_ = null; } if (staleCommandBuilder_ == null) { staleCommand_ = null; } else { staleCommand_ = null; staleCommandBuilder_ = null; } if (storeNotMatchBuilder_ == null) { storeNotMatch_ = null; } else { storeNotMatch_ = null; storeNotMatchBuilder_ = null; } if (raftEntryTooLargeBuilder_ == null) { raftEntryTooLarge_ = null; } else { raftEntryTooLarge_ = null; raftEntryTooLargeBuilder_ = null; } if (maxTimestampNotSyncedBuilder_ == null) { maxTimestampNotSynced_ = null; } else { maxTimestampNotSynced_ = null; maxTimestampNotSyncedBuilder_ = null; } if (readIndexNotReadyBuilder_ == null) { readIndexNotReady_ = null; } else { readIndexNotReady_ = null; readIndexNotReadyBuilder_ = null; } if (proposalInMergingModeBuilder_ == null) { proposalInMergingMode_ = null; } else { proposalInMergingMode_ = null; proposalInMergingModeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Errorpb.internal_static_errorpb_Error_descriptor; } public org.tikv.kvproto.Errorpb.Error getDefaultInstanceForType() { return org.tikv.kvproto.Errorpb.Error.getDefaultInstance(); } public org.tikv.kvproto.Errorpb.Error build() { org.tikv.kvproto.Errorpb.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Errorpb.Error buildPartial() { org.tikv.kvproto.Errorpb.Error result = new org.tikv.kvproto.Errorpb.Error(this); result.message_ = message_; if (notLeaderBuilder_ == null) { result.notLeader_ = notLeader_; } else { result.notLeader_ = notLeaderBuilder_.build(); } if (regionNotFoundBuilder_ == null) { result.regionNotFound_ = regionNotFound_; } else { result.regionNotFound_ = regionNotFoundBuilder_.build(); } if (keyNotInRegionBuilder_ == null) { result.keyNotInRegion_ = keyNotInRegion_; } else { result.keyNotInRegion_ = keyNotInRegionBuilder_.build(); } if (epochNotMatchBuilder_ == null) { result.epochNotMatch_ = epochNotMatch_; } else { result.epochNotMatch_ = epochNotMatchBuilder_.build(); } if (serverIsBusyBuilder_ == null) { result.serverIsBusy_ = serverIsBusy_; } else { result.serverIsBusy_ = serverIsBusyBuilder_.build(); } if (staleCommandBuilder_ == null) { result.staleCommand_ = staleCommand_; } else { result.staleCommand_ = staleCommandBuilder_.build(); } if (storeNotMatchBuilder_ == null) { result.storeNotMatch_ = storeNotMatch_; } else { result.storeNotMatch_ = storeNotMatchBuilder_.build(); } if (raftEntryTooLargeBuilder_ == null) { result.raftEntryTooLarge_ = raftEntryTooLarge_; } else { result.raftEntryTooLarge_ = raftEntryTooLargeBuilder_.build(); } if (maxTimestampNotSyncedBuilder_ == null) { result.maxTimestampNotSynced_ = maxTimestampNotSynced_; } else { result.maxTimestampNotSynced_ = maxTimestampNotSyncedBuilder_.build(); } if (readIndexNotReadyBuilder_ == null) { result.readIndexNotReady_ = readIndexNotReady_; } else { result.readIndexNotReady_ = readIndexNotReadyBuilder_.build(); } if (proposalInMergingModeBuilder_ == null) { result.proposalInMergingMode_ = proposalInMergingMode_; } else { result.proposalInMergingMode_ = proposalInMergingModeBuilder_.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.Errorpb.Error) { return mergeFrom((org.tikv.kvproto.Errorpb.Error)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Errorpb.Error other) { if (other == org.tikv.kvproto.Errorpb.Error.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.hasNotLeader()) { mergeNotLeader(other.getNotLeader()); } if (other.hasRegionNotFound()) { mergeRegionNotFound(other.getRegionNotFound()); } if (other.hasKeyNotInRegion()) { mergeKeyNotInRegion(other.getKeyNotInRegion()); } if (other.hasEpochNotMatch()) { mergeEpochNotMatch(other.getEpochNotMatch()); } if (other.hasServerIsBusy()) { mergeServerIsBusy(other.getServerIsBusy()); } if (other.hasStaleCommand()) { mergeStaleCommand(other.getStaleCommand()); } if (other.hasStoreNotMatch()) { mergeStoreNotMatch(other.getStoreNotMatch()); } if (other.hasRaftEntryTooLarge()) { mergeRaftEntryTooLarge(other.getRaftEntryTooLarge()); } if (other.hasMaxTimestampNotSynced()) { mergeMaxTimestampNotSynced(other.getMaxTimestampNotSynced()); } if (other.hasReadIndexNotReady()) { mergeReadIndexNotReady(other.getReadIndexNotReady()); } if (other.hasProposalInMergingMode()) { mergeProposalInMergingMode(other.getProposalInMergingMode()); } 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.Errorpb.Error parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Errorpb.Error) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object message_ = ""; /** *
       * The error message
       * 
* * string message = 1; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The error message
       * 
* * string message = 1; */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The error message
       * 
* * string message = 1; */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** *
       * The error message
       * 
* * string message = 1; */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** *
       * The error message
       * 
* * string message = 1; */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; } private org.tikv.kvproto.Errorpb.NotLeader notLeader_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.NotLeader, org.tikv.kvproto.Errorpb.NotLeader.Builder, org.tikv.kvproto.Errorpb.NotLeaderOrBuilder> notLeaderBuilder_; /** * .errorpb.NotLeader not_leader = 2; */ public boolean hasNotLeader() { return notLeaderBuilder_ != null || notLeader_ != null; } /** * .errorpb.NotLeader not_leader = 2; */ public org.tikv.kvproto.Errorpb.NotLeader getNotLeader() { if (notLeaderBuilder_ == null) { return notLeader_ == null ? org.tikv.kvproto.Errorpb.NotLeader.getDefaultInstance() : notLeader_; } else { return notLeaderBuilder_.getMessage(); } } /** * .errorpb.NotLeader not_leader = 2; */ public Builder setNotLeader(org.tikv.kvproto.Errorpb.NotLeader value) { if (notLeaderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } notLeader_ = value; onChanged(); } else { notLeaderBuilder_.setMessage(value); } return this; } /** * .errorpb.NotLeader not_leader = 2; */ public Builder setNotLeader( org.tikv.kvproto.Errorpb.NotLeader.Builder builderForValue) { if (notLeaderBuilder_ == null) { notLeader_ = builderForValue.build(); onChanged(); } else { notLeaderBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.NotLeader not_leader = 2; */ public Builder mergeNotLeader(org.tikv.kvproto.Errorpb.NotLeader value) { if (notLeaderBuilder_ == null) { if (notLeader_ != null) { notLeader_ = org.tikv.kvproto.Errorpb.NotLeader.newBuilder(notLeader_).mergeFrom(value).buildPartial(); } else { notLeader_ = value; } onChanged(); } else { notLeaderBuilder_.mergeFrom(value); } return this; } /** * .errorpb.NotLeader not_leader = 2; */ public Builder clearNotLeader() { if (notLeaderBuilder_ == null) { notLeader_ = null; onChanged(); } else { notLeader_ = null; notLeaderBuilder_ = null; } return this; } /** * .errorpb.NotLeader not_leader = 2; */ public org.tikv.kvproto.Errorpb.NotLeader.Builder getNotLeaderBuilder() { onChanged(); return getNotLeaderFieldBuilder().getBuilder(); } /** * .errorpb.NotLeader not_leader = 2; */ public org.tikv.kvproto.Errorpb.NotLeaderOrBuilder getNotLeaderOrBuilder() { if (notLeaderBuilder_ != null) { return notLeaderBuilder_.getMessageOrBuilder(); } else { return notLeader_ == null ? org.tikv.kvproto.Errorpb.NotLeader.getDefaultInstance() : notLeader_; } } /** * .errorpb.NotLeader not_leader = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.NotLeader, org.tikv.kvproto.Errorpb.NotLeader.Builder, org.tikv.kvproto.Errorpb.NotLeaderOrBuilder> getNotLeaderFieldBuilder() { if (notLeaderBuilder_ == null) { notLeaderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.NotLeader, org.tikv.kvproto.Errorpb.NotLeader.Builder, org.tikv.kvproto.Errorpb.NotLeaderOrBuilder>( getNotLeader(), getParentForChildren(), isClean()); notLeader_ = null; } return notLeaderBuilder_; } private org.tikv.kvproto.Errorpb.RegionNotFound regionNotFound_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.RegionNotFound, org.tikv.kvproto.Errorpb.RegionNotFound.Builder, org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder> regionNotFoundBuilder_; /** * .errorpb.RegionNotFound region_not_found = 3; */ public boolean hasRegionNotFound() { return regionNotFoundBuilder_ != null || regionNotFound_ != null; } /** * .errorpb.RegionNotFound region_not_found = 3; */ public org.tikv.kvproto.Errorpb.RegionNotFound getRegionNotFound() { if (regionNotFoundBuilder_ == null) { return regionNotFound_ == null ? org.tikv.kvproto.Errorpb.RegionNotFound.getDefaultInstance() : regionNotFound_; } else { return regionNotFoundBuilder_.getMessage(); } } /** * .errorpb.RegionNotFound region_not_found = 3; */ public Builder setRegionNotFound(org.tikv.kvproto.Errorpb.RegionNotFound value) { if (regionNotFoundBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionNotFound_ = value; onChanged(); } else { regionNotFoundBuilder_.setMessage(value); } return this; } /** * .errorpb.RegionNotFound region_not_found = 3; */ public Builder setRegionNotFound( org.tikv.kvproto.Errorpb.RegionNotFound.Builder builderForValue) { if (regionNotFoundBuilder_ == null) { regionNotFound_ = builderForValue.build(); onChanged(); } else { regionNotFoundBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.RegionNotFound region_not_found = 3; */ public Builder mergeRegionNotFound(org.tikv.kvproto.Errorpb.RegionNotFound value) { if (regionNotFoundBuilder_ == null) { if (regionNotFound_ != null) { regionNotFound_ = org.tikv.kvproto.Errorpb.RegionNotFound.newBuilder(regionNotFound_).mergeFrom(value).buildPartial(); } else { regionNotFound_ = value; } onChanged(); } else { regionNotFoundBuilder_.mergeFrom(value); } return this; } /** * .errorpb.RegionNotFound region_not_found = 3; */ public Builder clearRegionNotFound() { if (regionNotFoundBuilder_ == null) { regionNotFound_ = null; onChanged(); } else { regionNotFound_ = null; regionNotFoundBuilder_ = null; } return this; } /** * .errorpb.RegionNotFound region_not_found = 3; */ public org.tikv.kvproto.Errorpb.RegionNotFound.Builder getRegionNotFoundBuilder() { onChanged(); return getRegionNotFoundFieldBuilder().getBuilder(); } /** * .errorpb.RegionNotFound region_not_found = 3; */ public org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder getRegionNotFoundOrBuilder() { if (regionNotFoundBuilder_ != null) { return regionNotFoundBuilder_.getMessageOrBuilder(); } else { return regionNotFound_ == null ? org.tikv.kvproto.Errorpb.RegionNotFound.getDefaultInstance() : regionNotFound_; } } /** * .errorpb.RegionNotFound region_not_found = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.RegionNotFound, org.tikv.kvproto.Errorpb.RegionNotFound.Builder, org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder> getRegionNotFoundFieldBuilder() { if (regionNotFoundBuilder_ == null) { regionNotFoundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.RegionNotFound, org.tikv.kvproto.Errorpb.RegionNotFound.Builder, org.tikv.kvproto.Errorpb.RegionNotFoundOrBuilder>( getRegionNotFound(), getParentForChildren(), isClean()); regionNotFound_ = null; } return regionNotFoundBuilder_; } private org.tikv.kvproto.Errorpb.KeyNotInRegion keyNotInRegion_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.KeyNotInRegion, org.tikv.kvproto.Errorpb.KeyNotInRegion.Builder, org.tikv.kvproto.Errorpb.KeyNotInRegionOrBuilder> keyNotInRegionBuilder_; /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ public boolean hasKeyNotInRegion() { return keyNotInRegionBuilder_ != null || keyNotInRegion_ != null; } /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ public org.tikv.kvproto.Errorpb.KeyNotInRegion getKeyNotInRegion() { if (keyNotInRegionBuilder_ == null) { return keyNotInRegion_ == null ? org.tikv.kvproto.Errorpb.KeyNotInRegion.getDefaultInstance() : keyNotInRegion_; } else { return keyNotInRegionBuilder_.getMessage(); } } /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ public Builder setKeyNotInRegion(org.tikv.kvproto.Errorpb.KeyNotInRegion value) { if (keyNotInRegionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } keyNotInRegion_ = value; onChanged(); } else { keyNotInRegionBuilder_.setMessage(value); } return this; } /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ public Builder setKeyNotInRegion( org.tikv.kvproto.Errorpb.KeyNotInRegion.Builder builderForValue) { if (keyNotInRegionBuilder_ == null) { keyNotInRegion_ = builderForValue.build(); onChanged(); } else { keyNotInRegionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ public Builder mergeKeyNotInRegion(org.tikv.kvproto.Errorpb.KeyNotInRegion value) { if (keyNotInRegionBuilder_ == null) { if (keyNotInRegion_ != null) { keyNotInRegion_ = org.tikv.kvproto.Errorpb.KeyNotInRegion.newBuilder(keyNotInRegion_).mergeFrom(value).buildPartial(); } else { keyNotInRegion_ = value; } onChanged(); } else { keyNotInRegionBuilder_.mergeFrom(value); } return this; } /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ public Builder clearKeyNotInRegion() { if (keyNotInRegionBuilder_ == null) { keyNotInRegion_ = null; onChanged(); } else { keyNotInRegion_ = null; keyNotInRegionBuilder_ = null; } return this; } /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ public org.tikv.kvproto.Errorpb.KeyNotInRegion.Builder getKeyNotInRegionBuilder() { onChanged(); return getKeyNotInRegionFieldBuilder().getBuilder(); } /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ public org.tikv.kvproto.Errorpb.KeyNotInRegionOrBuilder getKeyNotInRegionOrBuilder() { if (keyNotInRegionBuilder_ != null) { return keyNotInRegionBuilder_.getMessageOrBuilder(); } else { return keyNotInRegion_ == null ? org.tikv.kvproto.Errorpb.KeyNotInRegion.getDefaultInstance() : keyNotInRegion_; } } /** * .errorpb.KeyNotInRegion key_not_in_region = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.KeyNotInRegion, org.tikv.kvproto.Errorpb.KeyNotInRegion.Builder, org.tikv.kvproto.Errorpb.KeyNotInRegionOrBuilder> getKeyNotInRegionFieldBuilder() { if (keyNotInRegionBuilder_ == null) { keyNotInRegionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.KeyNotInRegion, org.tikv.kvproto.Errorpb.KeyNotInRegion.Builder, org.tikv.kvproto.Errorpb.KeyNotInRegionOrBuilder>( getKeyNotInRegion(), getParentForChildren(), isClean()); keyNotInRegion_ = null; } return keyNotInRegionBuilder_; } private org.tikv.kvproto.Errorpb.EpochNotMatch epochNotMatch_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.EpochNotMatch, org.tikv.kvproto.Errorpb.EpochNotMatch.Builder, org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder> epochNotMatchBuilder_; /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ public boolean hasEpochNotMatch() { return epochNotMatchBuilder_ != null || epochNotMatch_ != null; } /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ public org.tikv.kvproto.Errorpb.EpochNotMatch getEpochNotMatch() { if (epochNotMatchBuilder_ == null) { return epochNotMatch_ == null ? org.tikv.kvproto.Errorpb.EpochNotMatch.getDefaultInstance() : epochNotMatch_; } else { return epochNotMatchBuilder_.getMessage(); } } /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ public Builder setEpochNotMatch(org.tikv.kvproto.Errorpb.EpochNotMatch value) { if (epochNotMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } epochNotMatch_ = value; onChanged(); } else { epochNotMatchBuilder_.setMessage(value); } return this; } /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ public Builder setEpochNotMatch( org.tikv.kvproto.Errorpb.EpochNotMatch.Builder builderForValue) { if (epochNotMatchBuilder_ == null) { epochNotMatch_ = builderForValue.build(); onChanged(); } else { epochNotMatchBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ public Builder mergeEpochNotMatch(org.tikv.kvproto.Errorpb.EpochNotMatch value) { if (epochNotMatchBuilder_ == null) { if (epochNotMatch_ != null) { epochNotMatch_ = org.tikv.kvproto.Errorpb.EpochNotMatch.newBuilder(epochNotMatch_).mergeFrom(value).buildPartial(); } else { epochNotMatch_ = value; } onChanged(); } else { epochNotMatchBuilder_.mergeFrom(value); } return this; } /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ public Builder clearEpochNotMatch() { if (epochNotMatchBuilder_ == null) { epochNotMatch_ = null; onChanged(); } else { epochNotMatch_ = null; epochNotMatchBuilder_ = null; } return this; } /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ public org.tikv.kvproto.Errorpb.EpochNotMatch.Builder getEpochNotMatchBuilder() { onChanged(); return getEpochNotMatchFieldBuilder().getBuilder(); } /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ public org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder getEpochNotMatchOrBuilder() { if (epochNotMatchBuilder_ != null) { return epochNotMatchBuilder_.getMessageOrBuilder(); } else { return epochNotMatch_ == null ? org.tikv.kvproto.Errorpb.EpochNotMatch.getDefaultInstance() : epochNotMatch_; } } /** * .errorpb.EpochNotMatch epoch_not_match = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.EpochNotMatch, org.tikv.kvproto.Errorpb.EpochNotMatch.Builder, org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder> getEpochNotMatchFieldBuilder() { if (epochNotMatchBuilder_ == null) { epochNotMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.EpochNotMatch, org.tikv.kvproto.Errorpb.EpochNotMatch.Builder, org.tikv.kvproto.Errorpb.EpochNotMatchOrBuilder>( getEpochNotMatch(), getParentForChildren(), isClean()); epochNotMatch_ = null; } return epochNotMatchBuilder_; } private org.tikv.kvproto.Errorpb.ServerIsBusy serverIsBusy_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.ServerIsBusy, org.tikv.kvproto.Errorpb.ServerIsBusy.Builder, org.tikv.kvproto.Errorpb.ServerIsBusyOrBuilder> serverIsBusyBuilder_; /** * .errorpb.ServerIsBusy server_is_busy = 6; */ public boolean hasServerIsBusy() { return serverIsBusyBuilder_ != null || serverIsBusy_ != null; } /** * .errorpb.ServerIsBusy server_is_busy = 6; */ public org.tikv.kvproto.Errorpb.ServerIsBusy getServerIsBusy() { if (serverIsBusyBuilder_ == null) { return serverIsBusy_ == null ? org.tikv.kvproto.Errorpb.ServerIsBusy.getDefaultInstance() : serverIsBusy_; } else { return serverIsBusyBuilder_.getMessage(); } } /** * .errorpb.ServerIsBusy server_is_busy = 6; */ public Builder setServerIsBusy(org.tikv.kvproto.Errorpb.ServerIsBusy value) { if (serverIsBusyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverIsBusy_ = value; onChanged(); } else { serverIsBusyBuilder_.setMessage(value); } return this; } /** * .errorpb.ServerIsBusy server_is_busy = 6; */ public Builder setServerIsBusy( org.tikv.kvproto.Errorpb.ServerIsBusy.Builder builderForValue) { if (serverIsBusyBuilder_ == null) { serverIsBusy_ = builderForValue.build(); onChanged(); } else { serverIsBusyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.ServerIsBusy server_is_busy = 6; */ public Builder mergeServerIsBusy(org.tikv.kvproto.Errorpb.ServerIsBusy value) { if (serverIsBusyBuilder_ == null) { if (serverIsBusy_ != null) { serverIsBusy_ = org.tikv.kvproto.Errorpb.ServerIsBusy.newBuilder(serverIsBusy_).mergeFrom(value).buildPartial(); } else { serverIsBusy_ = value; } onChanged(); } else { serverIsBusyBuilder_.mergeFrom(value); } return this; } /** * .errorpb.ServerIsBusy server_is_busy = 6; */ public Builder clearServerIsBusy() { if (serverIsBusyBuilder_ == null) { serverIsBusy_ = null; onChanged(); } else { serverIsBusy_ = null; serverIsBusyBuilder_ = null; } return this; } /** * .errorpb.ServerIsBusy server_is_busy = 6; */ public org.tikv.kvproto.Errorpb.ServerIsBusy.Builder getServerIsBusyBuilder() { onChanged(); return getServerIsBusyFieldBuilder().getBuilder(); } /** * .errorpb.ServerIsBusy server_is_busy = 6; */ public org.tikv.kvproto.Errorpb.ServerIsBusyOrBuilder getServerIsBusyOrBuilder() { if (serverIsBusyBuilder_ != null) { return serverIsBusyBuilder_.getMessageOrBuilder(); } else { return serverIsBusy_ == null ? org.tikv.kvproto.Errorpb.ServerIsBusy.getDefaultInstance() : serverIsBusy_; } } /** * .errorpb.ServerIsBusy server_is_busy = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.ServerIsBusy, org.tikv.kvproto.Errorpb.ServerIsBusy.Builder, org.tikv.kvproto.Errorpb.ServerIsBusyOrBuilder> getServerIsBusyFieldBuilder() { if (serverIsBusyBuilder_ == null) { serverIsBusyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.ServerIsBusy, org.tikv.kvproto.Errorpb.ServerIsBusy.Builder, org.tikv.kvproto.Errorpb.ServerIsBusyOrBuilder>( getServerIsBusy(), getParentForChildren(), isClean()); serverIsBusy_ = null; } return serverIsBusyBuilder_; } private org.tikv.kvproto.Errorpb.StaleCommand staleCommand_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.StaleCommand, org.tikv.kvproto.Errorpb.StaleCommand.Builder, org.tikv.kvproto.Errorpb.StaleCommandOrBuilder> staleCommandBuilder_; /** * .errorpb.StaleCommand stale_command = 7; */ public boolean hasStaleCommand() { return staleCommandBuilder_ != null || staleCommand_ != null; } /** * .errorpb.StaleCommand stale_command = 7; */ public org.tikv.kvproto.Errorpb.StaleCommand getStaleCommand() { if (staleCommandBuilder_ == null) { return staleCommand_ == null ? org.tikv.kvproto.Errorpb.StaleCommand.getDefaultInstance() : staleCommand_; } else { return staleCommandBuilder_.getMessage(); } } /** * .errorpb.StaleCommand stale_command = 7; */ public Builder setStaleCommand(org.tikv.kvproto.Errorpb.StaleCommand value) { if (staleCommandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } staleCommand_ = value; onChanged(); } else { staleCommandBuilder_.setMessage(value); } return this; } /** * .errorpb.StaleCommand stale_command = 7; */ public Builder setStaleCommand( org.tikv.kvproto.Errorpb.StaleCommand.Builder builderForValue) { if (staleCommandBuilder_ == null) { staleCommand_ = builderForValue.build(); onChanged(); } else { staleCommandBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.StaleCommand stale_command = 7; */ public Builder mergeStaleCommand(org.tikv.kvproto.Errorpb.StaleCommand value) { if (staleCommandBuilder_ == null) { if (staleCommand_ != null) { staleCommand_ = org.tikv.kvproto.Errorpb.StaleCommand.newBuilder(staleCommand_).mergeFrom(value).buildPartial(); } else { staleCommand_ = value; } onChanged(); } else { staleCommandBuilder_.mergeFrom(value); } return this; } /** * .errorpb.StaleCommand stale_command = 7; */ public Builder clearStaleCommand() { if (staleCommandBuilder_ == null) { staleCommand_ = null; onChanged(); } else { staleCommand_ = null; staleCommandBuilder_ = null; } return this; } /** * .errorpb.StaleCommand stale_command = 7; */ public org.tikv.kvproto.Errorpb.StaleCommand.Builder getStaleCommandBuilder() { onChanged(); return getStaleCommandFieldBuilder().getBuilder(); } /** * .errorpb.StaleCommand stale_command = 7; */ public org.tikv.kvproto.Errorpb.StaleCommandOrBuilder getStaleCommandOrBuilder() { if (staleCommandBuilder_ != null) { return staleCommandBuilder_.getMessageOrBuilder(); } else { return staleCommand_ == null ? org.tikv.kvproto.Errorpb.StaleCommand.getDefaultInstance() : staleCommand_; } } /** * .errorpb.StaleCommand stale_command = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.StaleCommand, org.tikv.kvproto.Errorpb.StaleCommand.Builder, org.tikv.kvproto.Errorpb.StaleCommandOrBuilder> getStaleCommandFieldBuilder() { if (staleCommandBuilder_ == null) { staleCommandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.StaleCommand, org.tikv.kvproto.Errorpb.StaleCommand.Builder, org.tikv.kvproto.Errorpb.StaleCommandOrBuilder>( getStaleCommand(), getParentForChildren(), isClean()); staleCommand_ = null; } return staleCommandBuilder_; } private org.tikv.kvproto.Errorpb.StoreNotMatch storeNotMatch_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.StoreNotMatch, org.tikv.kvproto.Errorpb.StoreNotMatch.Builder, org.tikv.kvproto.Errorpb.StoreNotMatchOrBuilder> storeNotMatchBuilder_; /** * .errorpb.StoreNotMatch store_not_match = 8; */ public boolean hasStoreNotMatch() { return storeNotMatchBuilder_ != null || storeNotMatch_ != null; } /** * .errorpb.StoreNotMatch store_not_match = 8; */ public org.tikv.kvproto.Errorpb.StoreNotMatch getStoreNotMatch() { if (storeNotMatchBuilder_ == null) { return storeNotMatch_ == null ? org.tikv.kvproto.Errorpb.StoreNotMatch.getDefaultInstance() : storeNotMatch_; } else { return storeNotMatchBuilder_.getMessage(); } } /** * .errorpb.StoreNotMatch store_not_match = 8; */ public Builder setStoreNotMatch(org.tikv.kvproto.Errorpb.StoreNotMatch value) { if (storeNotMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } storeNotMatch_ = value; onChanged(); } else { storeNotMatchBuilder_.setMessage(value); } return this; } /** * .errorpb.StoreNotMatch store_not_match = 8; */ public Builder setStoreNotMatch( org.tikv.kvproto.Errorpb.StoreNotMatch.Builder builderForValue) { if (storeNotMatchBuilder_ == null) { storeNotMatch_ = builderForValue.build(); onChanged(); } else { storeNotMatchBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.StoreNotMatch store_not_match = 8; */ public Builder mergeStoreNotMatch(org.tikv.kvproto.Errorpb.StoreNotMatch value) { if (storeNotMatchBuilder_ == null) { if (storeNotMatch_ != null) { storeNotMatch_ = org.tikv.kvproto.Errorpb.StoreNotMatch.newBuilder(storeNotMatch_).mergeFrom(value).buildPartial(); } else { storeNotMatch_ = value; } onChanged(); } else { storeNotMatchBuilder_.mergeFrom(value); } return this; } /** * .errorpb.StoreNotMatch store_not_match = 8; */ public Builder clearStoreNotMatch() { if (storeNotMatchBuilder_ == null) { storeNotMatch_ = null; onChanged(); } else { storeNotMatch_ = null; storeNotMatchBuilder_ = null; } return this; } /** * .errorpb.StoreNotMatch store_not_match = 8; */ public org.tikv.kvproto.Errorpb.StoreNotMatch.Builder getStoreNotMatchBuilder() { onChanged(); return getStoreNotMatchFieldBuilder().getBuilder(); } /** * .errorpb.StoreNotMatch store_not_match = 8; */ public org.tikv.kvproto.Errorpb.StoreNotMatchOrBuilder getStoreNotMatchOrBuilder() { if (storeNotMatchBuilder_ != null) { return storeNotMatchBuilder_.getMessageOrBuilder(); } else { return storeNotMatch_ == null ? org.tikv.kvproto.Errorpb.StoreNotMatch.getDefaultInstance() : storeNotMatch_; } } /** * .errorpb.StoreNotMatch store_not_match = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.StoreNotMatch, org.tikv.kvproto.Errorpb.StoreNotMatch.Builder, org.tikv.kvproto.Errorpb.StoreNotMatchOrBuilder> getStoreNotMatchFieldBuilder() { if (storeNotMatchBuilder_ == null) { storeNotMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.StoreNotMatch, org.tikv.kvproto.Errorpb.StoreNotMatch.Builder, org.tikv.kvproto.Errorpb.StoreNotMatchOrBuilder>( getStoreNotMatch(), getParentForChildren(), isClean()); storeNotMatch_ = null; } return storeNotMatchBuilder_; } private org.tikv.kvproto.Errorpb.RaftEntryTooLarge raftEntryTooLarge_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.RaftEntryTooLarge, org.tikv.kvproto.Errorpb.RaftEntryTooLarge.Builder, org.tikv.kvproto.Errorpb.RaftEntryTooLargeOrBuilder> raftEntryTooLargeBuilder_; /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ public boolean hasRaftEntryTooLarge() { return raftEntryTooLargeBuilder_ != null || raftEntryTooLarge_ != null; } /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ public org.tikv.kvproto.Errorpb.RaftEntryTooLarge getRaftEntryTooLarge() { if (raftEntryTooLargeBuilder_ == null) { return raftEntryTooLarge_ == null ? org.tikv.kvproto.Errorpb.RaftEntryTooLarge.getDefaultInstance() : raftEntryTooLarge_; } else { return raftEntryTooLargeBuilder_.getMessage(); } } /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ public Builder setRaftEntryTooLarge(org.tikv.kvproto.Errorpb.RaftEntryTooLarge value) { if (raftEntryTooLargeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } raftEntryTooLarge_ = value; onChanged(); } else { raftEntryTooLargeBuilder_.setMessage(value); } return this; } /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ public Builder setRaftEntryTooLarge( org.tikv.kvproto.Errorpb.RaftEntryTooLarge.Builder builderForValue) { if (raftEntryTooLargeBuilder_ == null) { raftEntryTooLarge_ = builderForValue.build(); onChanged(); } else { raftEntryTooLargeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ public Builder mergeRaftEntryTooLarge(org.tikv.kvproto.Errorpb.RaftEntryTooLarge value) { if (raftEntryTooLargeBuilder_ == null) { if (raftEntryTooLarge_ != null) { raftEntryTooLarge_ = org.tikv.kvproto.Errorpb.RaftEntryTooLarge.newBuilder(raftEntryTooLarge_).mergeFrom(value).buildPartial(); } else { raftEntryTooLarge_ = value; } onChanged(); } else { raftEntryTooLargeBuilder_.mergeFrom(value); } return this; } /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ public Builder clearRaftEntryTooLarge() { if (raftEntryTooLargeBuilder_ == null) { raftEntryTooLarge_ = null; onChanged(); } else { raftEntryTooLarge_ = null; raftEntryTooLargeBuilder_ = null; } return this; } /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ public org.tikv.kvproto.Errorpb.RaftEntryTooLarge.Builder getRaftEntryTooLargeBuilder() { onChanged(); return getRaftEntryTooLargeFieldBuilder().getBuilder(); } /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ public org.tikv.kvproto.Errorpb.RaftEntryTooLargeOrBuilder getRaftEntryTooLargeOrBuilder() { if (raftEntryTooLargeBuilder_ != null) { return raftEntryTooLargeBuilder_.getMessageOrBuilder(); } else { return raftEntryTooLarge_ == null ? org.tikv.kvproto.Errorpb.RaftEntryTooLarge.getDefaultInstance() : raftEntryTooLarge_; } } /** * .errorpb.RaftEntryTooLarge raft_entry_too_large = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.RaftEntryTooLarge, org.tikv.kvproto.Errorpb.RaftEntryTooLarge.Builder, org.tikv.kvproto.Errorpb.RaftEntryTooLargeOrBuilder> getRaftEntryTooLargeFieldBuilder() { if (raftEntryTooLargeBuilder_ == null) { raftEntryTooLargeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.RaftEntryTooLarge, org.tikv.kvproto.Errorpb.RaftEntryTooLarge.Builder, org.tikv.kvproto.Errorpb.RaftEntryTooLargeOrBuilder>( getRaftEntryTooLarge(), getParentForChildren(), isClean()); raftEntryTooLarge_ = null; } return raftEntryTooLargeBuilder_; } private org.tikv.kvproto.Errorpb.MaxTimestampNotSynced maxTimestampNotSynced_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.MaxTimestampNotSynced, org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.Builder, org.tikv.kvproto.Errorpb.MaxTimestampNotSyncedOrBuilder> maxTimestampNotSyncedBuilder_; /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ public boolean hasMaxTimestampNotSynced() { return maxTimestampNotSyncedBuilder_ != null || maxTimestampNotSynced_ != null; } /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ public org.tikv.kvproto.Errorpb.MaxTimestampNotSynced getMaxTimestampNotSynced() { if (maxTimestampNotSyncedBuilder_ == null) { return maxTimestampNotSynced_ == null ? org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.getDefaultInstance() : maxTimestampNotSynced_; } else { return maxTimestampNotSyncedBuilder_.getMessage(); } } /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ public Builder setMaxTimestampNotSynced(org.tikv.kvproto.Errorpb.MaxTimestampNotSynced value) { if (maxTimestampNotSyncedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } maxTimestampNotSynced_ = value; onChanged(); } else { maxTimestampNotSyncedBuilder_.setMessage(value); } return this; } /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ public Builder setMaxTimestampNotSynced( org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.Builder builderForValue) { if (maxTimestampNotSyncedBuilder_ == null) { maxTimestampNotSynced_ = builderForValue.build(); onChanged(); } else { maxTimestampNotSyncedBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ public Builder mergeMaxTimestampNotSynced(org.tikv.kvproto.Errorpb.MaxTimestampNotSynced value) { if (maxTimestampNotSyncedBuilder_ == null) { if (maxTimestampNotSynced_ != null) { maxTimestampNotSynced_ = org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.newBuilder(maxTimestampNotSynced_).mergeFrom(value).buildPartial(); } else { maxTimestampNotSynced_ = value; } onChanged(); } else { maxTimestampNotSyncedBuilder_.mergeFrom(value); } return this; } /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ public Builder clearMaxTimestampNotSynced() { if (maxTimestampNotSyncedBuilder_ == null) { maxTimestampNotSynced_ = null; onChanged(); } else { maxTimestampNotSynced_ = null; maxTimestampNotSyncedBuilder_ = null; } return this; } /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ public org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.Builder getMaxTimestampNotSyncedBuilder() { onChanged(); return getMaxTimestampNotSyncedFieldBuilder().getBuilder(); } /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ public org.tikv.kvproto.Errorpb.MaxTimestampNotSyncedOrBuilder getMaxTimestampNotSyncedOrBuilder() { if (maxTimestampNotSyncedBuilder_ != null) { return maxTimestampNotSyncedBuilder_.getMessageOrBuilder(); } else { return maxTimestampNotSynced_ == null ? org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.getDefaultInstance() : maxTimestampNotSynced_; } } /** * .errorpb.MaxTimestampNotSynced max_timestamp_not_synced = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.MaxTimestampNotSynced, org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.Builder, org.tikv.kvproto.Errorpb.MaxTimestampNotSyncedOrBuilder> getMaxTimestampNotSyncedFieldBuilder() { if (maxTimestampNotSyncedBuilder_ == null) { maxTimestampNotSyncedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.MaxTimestampNotSynced, org.tikv.kvproto.Errorpb.MaxTimestampNotSynced.Builder, org.tikv.kvproto.Errorpb.MaxTimestampNotSyncedOrBuilder>( getMaxTimestampNotSynced(), getParentForChildren(), isClean()); maxTimestampNotSynced_ = null; } return maxTimestampNotSyncedBuilder_; } private org.tikv.kvproto.Errorpb.ReadIndexNotReady readIndexNotReady_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.ReadIndexNotReady, org.tikv.kvproto.Errorpb.ReadIndexNotReady.Builder, org.tikv.kvproto.Errorpb.ReadIndexNotReadyOrBuilder> readIndexNotReadyBuilder_; /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ public boolean hasReadIndexNotReady() { return readIndexNotReadyBuilder_ != null || readIndexNotReady_ != null; } /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ public org.tikv.kvproto.Errorpb.ReadIndexNotReady getReadIndexNotReady() { if (readIndexNotReadyBuilder_ == null) { return readIndexNotReady_ == null ? org.tikv.kvproto.Errorpb.ReadIndexNotReady.getDefaultInstance() : readIndexNotReady_; } else { return readIndexNotReadyBuilder_.getMessage(); } } /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ public Builder setReadIndexNotReady(org.tikv.kvproto.Errorpb.ReadIndexNotReady value) { if (readIndexNotReadyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } readIndexNotReady_ = value; onChanged(); } else { readIndexNotReadyBuilder_.setMessage(value); } return this; } /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ public Builder setReadIndexNotReady( org.tikv.kvproto.Errorpb.ReadIndexNotReady.Builder builderForValue) { if (readIndexNotReadyBuilder_ == null) { readIndexNotReady_ = builderForValue.build(); onChanged(); } else { readIndexNotReadyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ public Builder mergeReadIndexNotReady(org.tikv.kvproto.Errorpb.ReadIndexNotReady value) { if (readIndexNotReadyBuilder_ == null) { if (readIndexNotReady_ != null) { readIndexNotReady_ = org.tikv.kvproto.Errorpb.ReadIndexNotReady.newBuilder(readIndexNotReady_).mergeFrom(value).buildPartial(); } else { readIndexNotReady_ = value; } onChanged(); } else { readIndexNotReadyBuilder_.mergeFrom(value); } return this; } /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ public Builder clearReadIndexNotReady() { if (readIndexNotReadyBuilder_ == null) { readIndexNotReady_ = null; onChanged(); } else { readIndexNotReady_ = null; readIndexNotReadyBuilder_ = null; } return this; } /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ public org.tikv.kvproto.Errorpb.ReadIndexNotReady.Builder getReadIndexNotReadyBuilder() { onChanged(); return getReadIndexNotReadyFieldBuilder().getBuilder(); } /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ public org.tikv.kvproto.Errorpb.ReadIndexNotReadyOrBuilder getReadIndexNotReadyOrBuilder() { if (readIndexNotReadyBuilder_ != null) { return readIndexNotReadyBuilder_.getMessageOrBuilder(); } else { return readIndexNotReady_ == null ? org.tikv.kvproto.Errorpb.ReadIndexNotReady.getDefaultInstance() : readIndexNotReady_; } } /** * .errorpb.ReadIndexNotReady read_index_not_ready = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.ReadIndexNotReady, org.tikv.kvproto.Errorpb.ReadIndexNotReady.Builder, org.tikv.kvproto.Errorpb.ReadIndexNotReadyOrBuilder> getReadIndexNotReadyFieldBuilder() { if (readIndexNotReadyBuilder_ == null) { readIndexNotReadyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.ReadIndexNotReady, org.tikv.kvproto.Errorpb.ReadIndexNotReady.Builder, org.tikv.kvproto.Errorpb.ReadIndexNotReadyOrBuilder>( getReadIndexNotReady(), getParentForChildren(), isClean()); readIndexNotReady_ = null; } return readIndexNotReadyBuilder_; } private org.tikv.kvproto.Errorpb.ProposalInMergingMode proposalInMergingMode_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.ProposalInMergingMode, org.tikv.kvproto.Errorpb.ProposalInMergingMode.Builder, org.tikv.kvproto.Errorpb.ProposalInMergingModeOrBuilder> proposalInMergingModeBuilder_; /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ public boolean hasProposalInMergingMode() { return proposalInMergingModeBuilder_ != null || proposalInMergingMode_ != null; } /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ public org.tikv.kvproto.Errorpb.ProposalInMergingMode getProposalInMergingMode() { if (proposalInMergingModeBuilder_ == null) { return proposalInMergingMode_ == null ? org.tikv.kvproto.Errorpb.ProposalInMergingMode.getDefaultInstance() : proposalInMergingMode_; } else { return proposalInMergingModeBuilder_.getMessage(); } } /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ public Builder setProposalInMergingMode(org.tikv.kvproto.Errorpb.ProposalInMergingMode value) { if (proposalInMergingModeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } proposalInMergingMode_ = value; onChanged(); } else { proposalInMergingModeBuilder_.setMessage(value); } return this; } /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ public Builder setProposalInMergingMode( org.tikv.kvproto.Errorpb.ProposalInMergingMode.Builder builderForValue) { if (proposalInMergingModeBuilder_ == null) { proposalInMergingMode_ = builderForValue.build(); onChanged(); } else { proposalInMergingModeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ public Builder mergeProposalInMergingMode(org.tikv.kvproto.Errorpb.ProposalInMergingMode value) { if (proposalInMergingModeBuilder_ == null) { if (proposalInMergingMode_ != null) { proposalInMergingMode_ = org.tikv.kvproto.Errorpb.ProposalInMergingMode.newBuilder(proposalInMergingMode_).mergeFrom(value).buildPartial(); } else { proposalInMergingMode_ = value; } onChanged(); } else { proposalInMergingModeBuilder_.mergeFrom(value); } return this; } /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ public Builder clearProposalInMergingMode() { if (proposalInMergingModeBuilder_ == null) { proposalInMergingMode_ = null; onChanged(); } else { proposalInMergingMode_ = null; proposalInMergingModeBuilder_ = null; } return this; } /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ public org.tikv.kvproto.Errorpb.ProposalInMergingMode.Builder getProposalInMergingModeBuilder() { onChanged(); return getProposalInMergingModeFieldBuilder().getBuilder(); } /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ public org.tikv.kvproto.Errorpb.ProposalInMergingModeOrBuilder getProposalInMergingModeOrBuilder() { if (proposalInMergingModeBuilder_ != null) { return proposalInMergingModeBuilder_.getMessageOrBuilder(); } else { return proposalInMergingMode_ == null ? org.tikv.kvproto.Errorpb.ProposalInMergingMode.getDefaultInstance() : proposalInMergingMode_; } } /** * .errorpb.ProposalInMergingMode proposal_in_merging_mode = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.ProposalInMergingMode, org.tikv.kvproto.Errorpb.ProposalInMergingMode.Builder, org.tikv.kvproto.Errorpb.ProposalInMergingModeOrBuilder> getProposalInMergingModeFieldBuilder() { if (proposalInMergingModeBuilder_ == null) { proposalInMergingModeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.ProposalInMergingMode, org.tikv.kvproto.Errorpb.ProposalInMergingMode.Builder, org.tikv.kvproto.Errorpb.ProposalInMergingModeOrBuilder>( getProposalInMergingMode(), getParentForChildren(), isClean()); proposalInMergingMode_ = null; } return proposalInMergingModeBuilder_; } 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:errorpb.Error) } // @@protoc_insertion_point(class_scope:errorpb.Error) private static final org.tikv.kvproto.Errorpb.Error DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Errorpb.Error(); } public static org.tikv.kvproto.Errorpb.Error getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Error parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Error(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Errorpb.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_NotLeader_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_NotLeader_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_StoreNotMatch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_StoreNotMatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_RegionNotFound_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_RegionNotFound_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_KeyNotInRegion_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_KeyNotInRegion_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_EpochNotMatch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_EpochNotMatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_ServerIsBusy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_ServerIsBusy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_StaleCommand_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_StaleCommand_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_RaftEntryTooLarge_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_RaftEntryTooLarge_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_MaxTimestampNotSynced_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_MaxTimestampNotSynced_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_ReadIndexNotReady_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_ReadIndexNotReady_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_ProposalInMergingMode_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_ProposalInMergingMode_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_errorpb_Error_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_errorpb_Error_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\rerrorpb.proto\022\007errorpb\032\014metapb.proto\032\024" + "gogoproto/gogo.proto\032\017rustproto.proto\"<\n" + "\tNotLeader\022\021\n\tregion_id\030\001 \001(\004\022\034\n\006leader\030" + "\002 \001(\0132\014.metapb.Peer\"B\n\rStoreNotMatch\022\030\n\020" + "request_store_id\030\001 \001(\004\022\027\n\017actual_store_i" + "d\030\002 \001(\004\"#\n\016RegionNotFound\022\021\n\tregion_id\030\001" + " \001(\004\"T\n\016KeyNotInRegion\022\013\n\003key\030\001 \001(\014\022\021\n\tr" + "egion_id\030\002 \001(\004\022\021\n\tstart_key\030\003 \001(\014\022\017\n\007end" + "_key\030\004 \001(\014\"8\n\rEpochNotMatch\022\'\n\017current_r" + "egions\030\001 \003(\0132\016.metapb.Region\"2\n\014ServerIs" + "Busy\022\016\n\006reason\030\001 \001(\t\022\022\n\nbackoff_ms\030\002 \001(\004" + "\"\016\n\014StaleCommand\":\n\021RaftEntryTooLarge\022\021\n" + "\tregion_id\030\001 \001(\004\022\022\n\nentry_size\030\002 \001(\004\"\027\n\025" + "MaxTimestampNotSynced\"6\n\021ReadIndexNotRea" + "dy\022\016\n\006reason\030\001 \001(\t\022\021\n\tregion_id\030\002 \001(\004\"*\n" + "\025ProposalInMergingMode\022\021\n\tregion_id\030\001 \001(" + "\004\"\353\004\n\005Error\022\017\n\007message\030\001 \001(\t\022&\n\nnot_lead" + "er\030\002 \001(\0132\022.errorpb.NotLeader\0221\n\020region_n" + "ot_found\030\003 \001(\0132\027.errorpb.RegionNotFound\022" + "2\n\021key_not_in_region\030\004 \001(\0132\027.errorpb.Key" + "NotInRegion\022/\n\017epoch_not_match\030\005 \001(\0132\026.e" + "rrorpb.EpochNotMatch\022-\n\016server_is_busy\030\006" + " \001(\0132\025.errorpb.ServerIsBusy\022,\n\rstale_com" + "mand\030\007 \001(\0132\025.errorpb.StaleCommand\022/\n\017sto" + "re_not_match\030\010 \001(\0132\026.errorpb.StoreNotMat" + "ch\0228\n\024raft_entry_too_large\030\t \001(\0132\032.error" + "pb.RaftEntryTooLarge\022@\n\030max_timestamp_no" + "t_synced\030\n \001(\0132\036.errorpb.MaxTimestampNot" + "Synced\0228\n\024read_index_not_ready\030\013 \001(\0132\032.e" + "rrorpb.ReadIndexNotReady\022@\n\030proposal_in_" + "merging_mode\030\014 \001(\0132\036.errorpb.ProposalInM" + "ergingModeR\013stale_epochB\"\n\020org.tikv.kvpr" + "oto\310\342\036\001\340\342\036\001\320\342\036\001\330\250\010\001b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tikv.kvproto.Metapb.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), rustproto.Rustproto.getDescriptor(), }, assigner); internal_static_errorpb_NotLeader_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_errorpb_NotLeader_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_NotLeader_descriptor, new java.lang.String[] { "RegionId", "Leader", }); internal_static_errorpb_StoreNotMatch_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_errorpb_StoreNotMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_StoreNotMatch_descriptor, new java.lang.String[] { "RequestStoreId", "ActualStoreId", }); internal_static_errorpb_RegionNotFound_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_errorpb_RegionNotFound_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_RegionNotFound_descriptor, new java.lang.String[] { "RegionId", }); internal_static_errorpb_KeyNotInRegion_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_errorpb_KeyNotInRegion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_KeyNotInRegion_descriptor, new java.lang.String[] { "Key", "RegionId", "StartKey", "EndKey", }); internal_static_errorpb_EpochNotMatch_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_errorpb_EpochNotMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_EpochNotMatch_descriptor, new java.lang.String[] { "CurrentRegions", }); internal_static_errorpb_ServerIsBusy_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_errorpb_ServerIsBusy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_ServerIsBusy_descriptor, new java.lang.String[] { "Reason", "BackoffMs", }); internal_static_errorpb_StaleCommand_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_errorpb_StaleCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_StaleCommand_descriptor, new java.lang.String[] { }); internal_static_errorpb_RaftEntryTooLarge_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_errorpb_RaftEntryTooLarge_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_RaftEntryTooLarge_descriptor, new java.lang.String[] { "RegionId", "EntrySize", }); internal_static_errorpb_MaxTimestampNotSynced_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_errorpb_MaxTimestampNotSynced_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_MaxTimestampNotSynced_descriptor, new java.lang.String[] { }); internal_static_errorpb_ReadIndexNotReady_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_errorpb_ReadIndexNotReady_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_ReadIndexNotReady_descriptor, new java.lang.String[] { "Reason", "RegionId", }); internal_static_errorpb_ProposalInMergingMode_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_errorpb_ProposalInMergingMode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_ProposalInMergingMode_descriptor, new java.lang.String[] { "RegionId", }); internal_static_errorpb_Error_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_errorpb_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_errorpb_Error_descriptor, new java.lang.String[] { "Message", "NotLeader", "RegionNotFound", "KeyNotInRegion", "EpochNotMatch", "ServerIsBusy", "StaleCommand", "StoreNotMatch", "RaftEntryTooLarge", "MaxTimestampNotSynced", "ReadIndexNotReady", "ProposalInMergingMode", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.marshalerAll); registry.add(com.google.protobuf.GoGoProtos.sizerAll); registry.add(com.google.protobuf.GoGoProtos.unmarshalerAll); registry.add(rustproto.Rustproto.liteRuntimeAll); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); org.tikv.kvproto.Metapb.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); rustproto.Rustproto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy