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

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

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

package org.tikv.kvproto;

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

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code kvrpcpb.VerOp}
   */
  public enum VerOp
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * VerPut = 0;
     */
    VerPut(0),
    /**
     * VerDel = 1;
     */
    VerDel(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * VerPut = 0;
     */
    public static final int VerPut_VALUE = 0;
    /**
     * VerDel = 1;
     */
    public static final int VerDel_VALUE = 1;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static VerOp valueOf(int value) {
      return forNumber(value);
    }

    public static VerOp forNumber(int value) {
      switch (value) {
        case 0: return VerPut;
        case 1: return VerDel;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        VerOp> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public VerOp findValueByNumber(int number) {
              return VerOp.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return org.tikv.kvproto.Kvrpcpb.getDescriptor().getEnumTypes().get(0);
    }

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

    public static VerOp valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private VerOp(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:kvrpcpb.VerOp)
  }

  /**
   * Protobuf enum {@code kvrpcpb.CommandPri}
   */
  public enum CommandPri
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * Normal is the default value.
     * 
* * Normal = 0; */ Normal(0), /** * Low = 1; */ Low(1), /** * High = 2; */ High(2), UNRECOGNIZED(-1), ; /** *
     * Normal is the default value.
     * 
* * Normal = 0; */ public static final int Normal_VALUE = 0; /** * Low = 1; */ public static final int Low_VALUE = 1; /** * High = 2; */ public static final int High_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CommandPri valueOf(int value) { return forNumber(value); } public static CommandPri forNumber(int value) { switch (value) { case 0: return Normal; case 1: return Low; case 2: return High; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CommandPri> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CommandPri findValueByNumber(int number) { return CommandPri.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.getDescriptor().getEnumTypes().get(1); } private static final CommandPri[] VALUES = values(); public static CommandPri valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private CommandPri(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:kvrpcpb.CommandPri) } /** * Protobuf enum {@code kvrpcpb.IsolationLevel} */ public enum IsolationLevel implements com.google.protobuf.ProtocolMessageEnum { /** *
     * SI = snapshot isolation
     * 
* * SI = 0; */ SI(0), /** *
     * RC = read committed
     * 
* * RC = 1; */ RC(1), UNRECOGNIZED(-1), ; /** *
     * SI = snapshot isolation
     * 
* * SI = 0; */ public static final int SI_VALUE = 0; /** *
     * RC = read committed
     * 
* * RC = 1; */ public static final int RC_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static IsolationLevel valueOf(int value) { return forNumber(value); } public static IsolationLevel forNumber(int value) { switch (value) { case 0: return SI; case 1: return RC; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< IsolationLevel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public IsolationLevel findValueByNumber(int number) { return IsolationLevel.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.getDescriptor().getEnumTypes().get(2); } private static final IsolationLevel[] VALUES = values(); public static IsolationLevel valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private IsolationLevel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:kvrpcpb.IsolationLevel) } /** * Protobuf enum {@code kvrpcpb.Op} */ public enum Op implements com.google.protobuf.ProtocolMessageEnum { /** * Put = 0; */ Put(0), /** * Del = 1; */ Del(1), /** * Lock = 2; */ Lock(2), /** * Rollback = 3; */ Rollback(3), /** *
     * insert operation has a constraint that key should not exist before.
     * 
* * Insert = 4; */ Insert(4), /** * PessimisticLock = 5; */ PessimisticLock(5), /** * CheckNotExists = 6; */ CheckNotExists(6), UNRECOGNIZED(-1), ; /** * Put = 0; */ public static final int Put_VALUE = 0; /** * Del = 1; */ public static final int Del_VALUE = 1; /** * Lock = 2; */ public static final int Lock_VALUE = 2; /** * Rollback = 3; */ public static final int Rollback_VALUE = 3; /** *
     * insert operation has a constraint that key should not exist before.
     * 
* * Insert = 4; */ public static final int Insert_VALUE = 4; /** * PessimisticLock = 5; */ public static final int PessimisticLock_VALUE = 5; /** * CheckNotExists = 6; */ public static final int CheckNotExists_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Op valueOf(int value) { return forNumber(value); } public static Op forNumber(int value) { switch (value) { case 0: return Put; case 1: return Del; case 2: return Lock; case 3: return Rollback; case 4: return Insert; case 5: return PessimisticLock; case 6: return CheckNotExists; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Op> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Op findValueByNumber(int number) { return Op.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.getDescriptor().getEnumTypes().get(3); } private static final Op[] VALUES = values(); public static Op valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Op(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:kvrpcpb.Op) } /** * Protobuf enum {@code kvrpcpb.Assertion} */ public enum Assertion implements com.google.protobuf.ProtocolMessageEnum { /** * None = 0; */ None(0), /** * Exist = 1; */ Exist(1), /** * NotExist = 2; */ NotExist(2), UNRECOGNIZED(-1), ; /** * None = 0; */ public static final int None_VALUE = 0; /** * Exist = 1; */ public static final int Exist_VALUE = 1; /** * NotExist = 2; */ public static final int NotExist_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Assertion valueOf(int value) { return forNumber(value); } public static Assertion forNumber(int value) { switch (value) { case 0: return None; case 1: return Exist; case 2: return NotExist; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Assertion> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Assertion findValueByNumber(int number) { return Assertion.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.getDescriptor().getEnumTypes().get(4); } private static final Assertion[] VALUES = values(); public static Assertion valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Assertion(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:kvrpcpb.Assertion) } /** * Protobuf enum {@code kvrpcpb.Action} */ public enum Action implements com.google.protobuf.ProtocolMessageEnum { /** * NoAction = 0; */ NoAction(0), /** * TTLExpireRollback = 1; */ TTLExpireRollback(1), /** * LockNotExistRollback = 2; */ LockNotExistRollback(2), /** * MinCommitTSPushed = 3; */ MinCommitTSPushed(3), /** * TTLExpirePessimisticRollback = 4; */ TTLExpirePessimisticRollback(4), /** * LockNotExistDoNothing = 5; */ LockNotExistDoNothing(5), UNRECOGNIZED(-1), ; /** * NoAction = 0; */ public static final int NoAction_VALUE = 0; /** * TTLExpireRollback = 1; */ public static final int TTLExpireRollback_VALUE = 1; /** * LockNotExistRollback = 2; */ public static final int LockNotExistRollback_VALUE = 2; /** * MinCommitTSPushed = 3; */ public static final int MinCommitTSPushed_VALUE = 3; /** * TTLExpirePessimisticRollback = 4; */ public static final int TTLExpirePessimisticRollback_VALUE = 4; /** * LockNotExistDoNothing = 5; */ public static final int LockNotExistDoNothing_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Action valueOf(int value) { return forNumber(value); } public static Action forNumber(int value) { switch (value) { case 0: return NoAction; case 1: return TTLExpireRollback; case 2: return LockNotExistRollback; case 3: return MinCommitTSPushed; case 4: return TTLExpirePessimisticRollback; case 5: return LockNotExistDoNothing; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Action> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Action findValueByNumber(int number) { return Action.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.getDescriptor().getEnumTypes().get(5); } private static final Action[] VALUES = values(); public static Action valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Action(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:kvrpcpb.Action) } /** * Protobuf enum {@code kvrpcpb.ExtraOp} */ public enum ExtraOp implements com.google.protobuf.ProtocolMessageEnum { /** * Noop = 0; */ Noop(0), /** *
     * ReadOldValue represents to output the previous value for delete/update operations.
     * 
* * ReadOldValue = 1; */ ReadOldValue(1), UNRECOGNIZED(-1), ; /** * Noop = 0; */ public static final int Noop_VALUE = 0; /** *
     * ReadOldValue represents to output the previous value for delete/update operations.
     * 
* * ReadOldValue = 1; */ public static final int ReadOldValue_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ExtraOp valueOf(int value) { return forNumber(value); } public static ExtraOp forNumber(int value) { switch (value) { case 0: return Noop; case 1: return ReadOldValue; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ExtraOp> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ExtraOp findValueByNumber(int number) { return ExtraOp.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.getDescriptor().getEnumTypes().get(6); } private static final ExtraOp[] VALUES = values(); public static ExtraOp valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ExtraOp(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:kvrpcpb.ExtraOp) } public interface GetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.GetRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * uint64 version = 3; */ long getVersion(); } /** *
   * A transactional get command. Lookup a value for `key` in the transaction with
   * starting timestamp = `version`.
   * 
* * Protobuf type {@code kvrpcpb.GetRequest} */ public static final class GetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.GetRequest) GetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GetRequest.newBuilder() to construct. private GetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetRequest() { key_ = com.google.protobuf.ByteString.EMPTY; version_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { key_ = input.readBytes(); break; } case 24: { version_ = 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.Kvrpcpb.internal_static_kvrpcpb_GetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.GetRequest.class, org.tikv.kvproto.Kvrpcpb.GetRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VERSION_FIELD_NUMBER = 3; private long version_; /** * uint64 version = 3; */ public long getVersion() { return version_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (version_ != 0L) { output.writeUInt64(3, version_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, version_); } 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.Kvrpcpb.GetRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.GetRequest other = (org.tikv.kvproto.Kvrpcpb.GetRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKey() .equals(other.getKey()); result = result && (getVersion() == other.getVersion()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Kvrpcpb.GetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A transactional get command. Lookup a value for `key` in the transaction with
     * starting timestamp = `version`.
     * 
* * Protobuf type {@code kvrpcpb.GetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.GetRequest) org.tikv.kvproto.Kvrpcpb.GetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.GetRequest.class, org.tikv.kvproto.Kvrpcpb.GetRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.GetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } key_ = com.google.protobuf.ByteString.EMPTY; version_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GetRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.GetRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.GetRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.GetRequest build() { org.tikv.kvproto.Kvrpcpb.GetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.GetRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.GetRequest result = new org.tikv.kvproto.Kvrpcpb.GetRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.key_ = key_; result.version_ = version_; 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.Kvrpcpb.GetRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.GetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.GetRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.GetRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } 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.Kvrpcpb.GetRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.GetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private long version_ ; /** * uint64 version = 3; */ public long getVersion() { return version_; } /** * uint64 version = 3; */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * uint64 version = 3; */ public Builder clearVersion() { version_ = 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:kvrpcpb.GetRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.GetRequest) private static final org.tikv.kvproto.Kvrpcpb.GetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.GetRequest(); } public static org.tikv.kvproto.Kvrpcpb.GetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Kvrpcpb.GetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.GetResponse) com.google.protobuf.MessageOrBuilder { /** *
     * A region error indicates that the request was sent to the wrong TiKV node
     * (or other, similar errors).
     * 
* * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** *
     * A region error indicates that the request was sent to the wrong TiKV node
     * (or other, similar errors).
     * 
* * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** *
     * A region error indicates that the request was sent to the wrong TiKV node
     * (or other, similar errors).
     * 
* * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** *
     * A value could not be retrieved due to the state of the database for the requested key.
     * 
* * .kvrpcpb.KeyError error = 2; */ boolean hasError(); /** *
     * A value could not be retrieved due to the state of the database for the requested key.
     * 
* * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** *
     * A value could not be retrieved due to the state of the database for the requested key.
     * 
* * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); /** *
     * A successful result.
     * 
* * bytes value = 3; */ com.google.protobuf.ByteString getValue(); /** *
     * True if the key does not exist in the database.
     * 
* * bool not_found = 4; */ boolean getNotFound(); /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ boolean hasExecDetailsV2(); /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 getExecDetailsV2(); /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder getExecDetailsV2OrBuilder(); } /** * Protobuf type {@code kvrpcpb.GetResponse} */ public static final class GetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.GetResponse) GetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GetResponse.newBuilder() to construct. private GetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GetResponse() { value_ = com.google.protobuf.ByteString.EMPTY; notFound_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 26: { value_ = input.readBytes(); break; } case 32: { notFound_ = input.readBool(); break; } case 50: { org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder subBuilder = null; if (execDetailsV2_ != null) { subBuilder = execDetailsV2_.toBuilder(); } execDetailsV2_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(execDetailsV2_); execDetailsV2_ = 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.Kvrpcpb.internal_static_kvrpcpb_GetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.GetResponse.class, org.tikv.kvproto.Kvrpcpb.GetResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** *
     * A region error indicates that the request was sent to the wrong TiKV node
     * (or other, similar errors).
     * 
* * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** *
     * A region error indicates that the request was sent to the wrong TiKV node
     * (or other, similar errors).
     * 
* * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** *
     * A region error indicates that the request was sent to the wrong TiKV node
     * (or other, similar errors).
     * 
* * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** *
     * A value could not be retrieved due to the state of the database for the requested key.
     * 
* * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return error_ != null; } /** *
     * A value could not be retrieved due to the state of the database for the requested key.
     * 
* * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** *
     * A value could not be retrieved due to the state of the database for the requested key.
     * 
* * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** *
     * A successful result.
     * 
* * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int NOT_FOUND_FIELD_NUMBER = 4; private boolean notFound_; /** *
     * True if the key does not exist in the database.
     * 
* * bool not_found = 4; */ public boolean getNotFound() { return notFound_; } public static final int EXEC_DETAILS_V2_FIELD_NUMBER = 6; private org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 execDetailsV2_; /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ public boolean hasExecDetailsV2() { return execDetailsV2_ != null; } /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 getExecDetailsV2() { return execDetailsV2_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.getDefaultInstance() : execDetailsV2_; } /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder getExecDetailsV2OrBuilder() { return getExecDetailsV2(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } if (!value_.isEmpty()) { output.writeBytes(3, value_); } if (notFound_ != false) { output.writeBool(4, notFound_); } if (execDetailsV2_ != null) { output.writeMessage(6, getExecDetailsV2()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, value_); } if (notFound_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, notFound_); } if (execDetailsV2_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getExecDetailsV2()); } 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.Kvrpcpb.GetResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.GetResponse other = (org.tikv.kvproto.Kvrpcpb.GetResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && getValue() .equals(other.getValue()); result = result && (getNotFound() == other.getNotFound()); result = result && (hasExecDetailsV2() == other.hasExecDetailsV2()); if (hasExecDetailsV2()) { result = result && getExecDetailsV2() .equals(other.getExecDetailsV2()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + NOT_FOUND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNotFound()); if (hasExecDetailsV2()) { hash = (37 * hash) + EXEC_DETAILS_V2_FIELD_NUMBER; hash = (53 * hash) + getExecDetailsV2().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Kvrpcpb.GetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.GetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.GetResponse) org.tikv.kvproto.Kvrpcpb.GetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.GetResponse.class, org.tikv.kvproto.Kvrpcpb.GetResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.GetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } value_ = com.google.protobuf.ByteString.EMPTY; notFound_ = false; if (execDetailsV2Builder_ == null) { execDetailsV2_ = null; } else { execDetailsV2_ = null; execDetailsV2Builder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GetResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.GetResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.GetResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.GetResponse build() { org.tikv.kvproto.Kvrpcpb.GetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.GetResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.GetResponse result = new org.tikv.kvproto.Kvrpcpb.GetResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.value_ = value_; result.notFound_ = notFound_; if (execDetailsV2Builder_ == null) { result.execDetailsV2_ = execDetailsV2_; } else { result.execDetailsV2_ = execDetailsV2Builder_.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.Kvrpcpb.GetResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.GetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.GetResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.GetResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.getNotFound() != false) { setNotFound(other.getNotFound()); } if (other.hasExecDetailsV2()) { mergeExecDetailsV2(other.getExecDetailsV2()); } 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.Kvrpcpb.GetResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.GetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** *
       * A region error indicates that the request was sent to the wrong TiKV node
       * (or other, similar errors).
       * 
* * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** *
       * A region error indicates that the request was sent to the wrong TiKV node
       * (or other, similar errors).
       * 
* * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** *
       * A region error indicates that the request was sent to the wrong TiKV node
       * (or other, similar errors).
       * 
* * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** *
       * A region error indicates that the request was sent to the wrong TiKV node
       * (or other, similar errors).
       * 
* * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * A region error indicates that the request was sent to the wrong TiKV node
       * (or other, similar errors).
       * 
* * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** *
       * A region error indicates that the request was sent to the wrong TiKV node
       * (or other, similar errors).
       * 
* * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** *
       * A region error indicates that the request was sent to the wrong TiKV node
       * (or other, similar errors).
       * 
* * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** *
       * A region error indicates that the request was sent to the wrong TiKV node
       * (or other, similar errors).
       * 
* * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** *
       * A region error indicates that the request was sent to the wrong TiKV node
       * (or other, similar errors).
       * 
* * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** *
       * A value could not be retrieved due to the state of the database for the requested key.
       * 
* * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** *
       * A value could not be retrieved due to the state of the database for the requested key.
       * 
* * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** *
       * A value could not be retrieved due to the state of the database for the requested key.
       * 
* * .kvrpcpb.KeyError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** *
       * A value could not be retrieved due to the state of the database for the requested key.
       * 
* * .kvrpcpb.KeyError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * A value could not be retrieved due to the state of the database for the requested key.
       * 
* * .kvrpcpb.KeyError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** *
       * A value could not be retrieved due to the state of the database for the requested key.
       * 
* * .kvrpcpb.KeyError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** *
       * A value could not be retrieved due to the state of the database for the requested key.
       * 
* * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** *
       * A value could not be retrieved due to the state of the database for the requested key.
       * 
* * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** *
       * A value could not be retrieved due to the state of the database for the requested key.
       * 
* * .kvrpcpb.KeyError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** *
       * A successful result.
       * 
* * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } /** *
       * A successful result.
       * 
* * bytes value = 3; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** *
       * A successful result.
       * 
* * bytes value = 3; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private boolean notFound_ ; /** *
       * True if the key does not exist in the database.
       * 
* * bool not_found = 4; */ public boolean getNotFound() { return notFound_; } /** *
       * True if the key does not exist in the database.
       * 
* * bool not_found = 4; */ public Builder setNotFound(boolean value) { notFound_ = value; onChanged(); return this; } /** *
       * True if the key does not exist in the database.
       * 
* * bool not_found = 4; */ public Builder clearNotFound() { notFound_ = false; onChanged(); return this; } private org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 execDetailsV2_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ExecDetailsV2, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder> execDetailsV2Builder_; /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ public boolean hasExecDetailsV2() { return execDetailsV2Builder_ != null || execDetailsV2_ != null; } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 getExecDetailsV2() { if (execDetailsV2Builder_ == null) { return execDetailsV2_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.getDefaultInstance() : execDetailsV2_; } else { return execDetailsV2Builder_.getMessage(); } } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ public Builder setExecDetailsV2(org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 value) { if (execDetailsV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } execDetailsV2_ = value; onChanged(); } else { execDetailsV2Builder_.setMessage(value); } return this; } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ public Builder setExecDetailsV2( org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder builderForValue) { if (execDetailsV2Builder_ == null) { execDetailsV2_ = builderForValue.build(); onChanged(); } else { execDetailsV2Builder_.setMessage(builderForValue.build()); } return this; } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ public Builder mergeExecDetailsV2(org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 value) { if (execDetailsV2Builder_ == null) { if (execDetailsV2_ != null) { execDetailsV2_ = org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.newBuilder(execDetailsV2_).mergeFrom(value).buildPartial(); } else { execDetailsV2_ = value; } onChanged(); } else { execDetailsV2Builder_.mergeFrom(value); } return this; } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ public Builder clearExecDetailsV2() { if (execDetailsV2Builder_ == null) { execDetailsV2_ = null; onChanged(); } else { execDetailsV2_ = null; execDetailsV2Builder_ = null; } return this; } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder getExecDetailsV2Builder() { onChanged(); return getExecDetailsV2FieldBuilder().getBuilder(); } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder getExecDetailsV2OrBuilder() { if (execDetailsV2Builder_ != null) { return execDetailsV2Builder_.getMessageOrBuilder(); } else { return execDetailsV2_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.getDefaultInstance() : execDetailsV2_; } } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ExecDetailsV2, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder> getExecDetailsV2FieldBuilder() { if (execDetailsV2Builder_ == null) { execDetailsV2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ExecDetailsV2, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder>( getExecDetailsV2(), getParentForChildren(), isClean()); execDetailsV2_ = null; } return execDetailsV2Builder_; } 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:kvrpcpb.GetResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.GetResponse) private static final org.tikv.kvproto.Kvrpcpb.GetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.GetResponse(); } public static org.tikv.kvproto.Kvrpcpb.GetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Kvrpcpb.GetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScanRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ScanRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** *
     * The maximum number of results to return.
     * 
* * uint32 limit = 3; */ int getLimit(); /** * uint64 version = 4; */ long getVersion(); /** *
     * Return only the keys found by scanning, not their values.
     * 
* * bool key_only = 5; */ boolean getKeyOnly(); /** * bool reverse = 6; */ boolean getReverse(); /** *
     * For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
     * and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
     * 
* * bytes end_key = 7; */ com.google.protobuf.ByteString getEndKey(); /** *
     * If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key.
     * locks are not checked.
     * 
* * uint32 sample_step = 8; */ int getSampleStep(); } /** *
   * Scan fetches values for a range of keys; it is part of the transaction with
   * starting timestamp = `version`.
   * 
* * Protobuf type {@code kvrpcpb.ScanRequest} */ public static final class ScanRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ScanRequest) ScanRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ScanRequest.newBuilder() to construct. private ScanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScanRequest() { startKey_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0; version_ = 0L; keyOnly_ = false; reverse_ = false; endKey_ = com.google.protobuf.ByteString.EMPTY; sampleStep_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { startKey_ = input.readBytes(); break; } case 24: { limit_ = input.readUInt32(); break; } case 32: { version_ = input.readUInt64(); break; } case 40: { keyOnly_ = input.readBool(); break; } case 48: { reverse_ = input.readBool(); break; } case 58: { endKey_ = input.readBytes(); break; } case 64: { sampleStep_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanRequest.class, org.tikv.kvproto.Kvrpcpb.ScanRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int LIMIT_FIELD_NUMBER = 3; private int limit_; /** *
     * The maximum number of results to return.
     * 
* * uint32 limit = 3; */ public int getLimit() { return limit_; } public static final int VERSION_FIELD_NUMBER = 4; private long version_; /** * uint64 version = 4; */ public long getVersion() { return version_; } public static final int KEY_ONLY_FIELD_NUMBER = 5; private boolean keyOnly_; /** *
     * Return only the keys found by scanning, not their values.
     * 
* * bool key_only = 5; */ public boolean getKeyOnly() { return keyOnly_; } public static final int REVERSE_FIELD_NUMBER = 6; private boolean reverse_; /** * bool reverse = 6; */ public boolean getReverse() { return reverse_; } public static final int END_KEY_FIELD_NUMBER = 7; private com.google.protobuf.ByteString endKey_; /** *
     * For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
     * and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
     * 
* * bytes end_key = 7; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int SAMPLE_STEP_FIELD_NUMBER = 8; private int sampleStep_; /** *
     * If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key.
     * locks are not checked.
     * 
* * uint32 sample_step = 8; */ public int getSampleStep() { return sampleStep_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!startKey_.isEmpty()) { output.writeBytes(2, startKey_); } if (limit_ != 0) { output.writeUInt32(3, limit_); } if (version_ != 0L) { output.writeUInt64(4, version_); } if (keyOnly_ != false) { output.writeBool(5, keyOnly_); } if (reverse_ != false) { output.writeBool(6, reverse_); } if (!endKey_.isEmpty()) { output.writeBytes(7, endKey_); } if (sampleStep_ != 0) { output.writeUInt32(8, sampleStep_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (limit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, limit_); } if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, version_); } if (keyOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, keyOnly_); } if (reverse_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, reverse_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, endKey_); } if (sampleStep_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, sampleStep_); } 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.Kvrpcpb.ScanRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ScanRequest other = (org.tikv.kvproto.Kvrpcpb.ScanRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getStartKey() .equals(other.getStartKey()); result = result && (getLimit() == other.getLimit()); result = result && (getVersion() == other.getVersion()); result = result && (getKeyOnly() == other.getKeyOnly()); result = result && (getReverse() == other.getReverse()); result = result && getEndKey() .equals(other.getEndKey()); result = result && (getSampleStep() == other.getSampleStep()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); hash = (37 * hash) + KEY_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeyOnly()); hash = (37 * hash) + REVERSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReverse()); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (37 * hash) + SAMPLE_STEP_FIELD_NUMBER; hash = (53 * hash) + getSampleStep(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ScanRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanRequest 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.Kvrpcpb.ScanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanRequest 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.Kvrpcpb.ScanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ScanRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanRequest 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.Kvrpcpb.ScanRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanRequest 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.Kvrpcpb.ScanRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanRequest 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.Kvrpcpb.ScanRequest 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; } /** *
     * Scan fetches values for a range of keys; it is part of the transaction with
     * starting timestamp = `version`.
     * 
* * Protobuf type {@code kvrpcpb.ScanRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ScanRequest) org.tikv.kvproto.Kvrpcpb.ScanRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanRequest.class, org.tikv.kvproto.Kvrpcpb.ScanRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ScanRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } startKey_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0; version_ = 0L; keyOnly_ = false; reverse_ = false; endKey_ = com.google.protobuf.ByteString.EMPTY; sampleStep_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.ScanRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ScanRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ScanRequest build() { org.tikv.kvproto.Kvrpcpb.ScanRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ScanRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.ScanRequest result = new org.tikv.kvproto.Kvrpcpb.ScanRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.startKey_ = startKey_; result.limit_ = limit_; result.version_ = version_; result.keyOnly_ = keyOnly_; result.reverse_ = reverse_; result.endKey_ = endKey_; result.sampleStep_ = sampleStep_; 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.Kvrpcpb.ScanRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ScanRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ScanRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.ScanRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getLimit() != 0) { setLimit(other.getLimit()); } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } if (other.getKeyOnly() != false) { setKeyOnly(other.getKeyOnly()); } if (other.getReverse() != false) { setReverse(other.getReverse()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } if (other.getSampleStep() != 0) { setSampleStep(other.getSampleStep()); } 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.Kvrpcpb.ScanRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ScanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 2; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 2; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private int limit_ ; /** *
       * The maximum number of results to return.
       * 
* * uint32 limit = 3; */ public int getLimit() { return limit_; } /** *
       * The maximum number of results to return.
       * 
* * uint32 limit = 3; */ public Builder setLimit(int value) { limit_ = value; onChanged(); return this; } /** *
       * The maximum number of results to return.
       * 
* * uint32 limit = 3; */ public Builder clearLimit() { limit_ = 0; onChanged(); return this; } private long version_ ; /** * uint64 version = 4; */ public long getVersion() { return version_; } /** * uint64 version = 4; */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * uint64 version = 4; */ public Builder clearVersion() { version_ = 0L; onChanged(); return this; } private boolean keyOnly_ ; /** *
       * Return only the keys found by scanning, not their values.
       * 
* * bool key_only = 5; */ public boolean getKeyOnly() { return keyOnly_; } /** *
       * Return only the keys found by scanning, not their values.
       * 
* * bool key_only = 5; */ public Builder setKeyOnly(boolean value) { keyOnly_ = value; onChanged(); return this; } /** *
       * Return only the keys found by scanning, not their values.
       * 
* * bool key_only = 5; */ public Builder clearKeyOnly() { keyOnly_ = false; onChanged(); return this; } private boolean reverse_ ; /** * bool reverse = 6; */ public boolean getReverse() { return reverse_; } /** * bool reverse = 6; */ public Builder setReverse(boolean value) { reverse_ = value; onChanged(); return this; } /** * bool reverse = 6; */ public Builder clearReverse() { reverse_ = false; onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** *
       * For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
       * and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
       * 
* * bytes end_key = 7; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** *
       * For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
       * and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
       * 
* * bytes end_key = 7; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** *
       * For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
       * and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
       * 
* * bytes end_key = 7; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private int sampleStep_ ; /** *
       * If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key.
       * locks are not checked.
       * 
* * uint32 sample_step = 8; */ public int getSampleStep() { return sampleStep_; } /** *
       * If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key.
       * locks are not checked.
       * 
* * uint32 sample_step = 8; */ public Builder setSampleStep(int value) { sampleStep_ = value; onChanged(); return this; } /** *
       * If sample_step > 0, skips 'sample_step - 1' number of keys after each returned key.
       * locks are not checked.
       * 
* * uint32 sample_step = 8; */ public Builder clearSampleStep() { sampleStep_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.ScanRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.ScanRequest) private static final org.tikv.kvproto.Kvrpcpb.ScanRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ScanRequest(); } public static org.tikv.kvproto.Kvrpcpb.ScanRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScanRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScanRequest(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.Kvrpcpb.ScanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScanResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ScanResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** *
     * Each KvPair may contain a key error.
     * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ java.util.List getPairsList(); /** *
     * Each KvPair may contain a key error.
     * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index); /** *
     * Each KvPair may contain a key error.
     * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ int getPairsCount(); /** *
     * Each KvPair may contain a key error.
     * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ java.util.List getPairsOrBuilderList(); /** *
     * Each KvPair may contain a key error.
     * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index); /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo scanning all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 3; */ boolean hasError(); /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo scanning all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 3; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo scanning all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 3; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code kvrpcpb.ScanResponse} */ public static final class ScanResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ScanResponse) ScanResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ScanResponse.newBuilder() to construct. private ScanResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScanResponse() { pairs_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScanResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } pairs_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KvPair.parser(), extensionRegistry)); break; } case 26: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanResponse.class, org.tikv.kvproto.Kvrpcpb.ScanResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int PAIRS_FIELD_NUMBER = 2; private java.util.List pairs_; /** *
     * Each KvPair may contain a key error.
     * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsList() { return pairs_; } /** *
     * Each KvPair may contain a key error.
     * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { return pairs_; } /** *
     * Each KvPair may contain a key error.
     * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public int getPairsCount() { return pairs_.size(); } /** *
     * Each KvPair may contain a key error.
     * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index) { return pairs_.get(index); } /** *
     * Each KvPair may contain a key error.
     * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index) { return pairs_.get(index); } public static final int ERROR_FIELD_NUMBER = 3; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo scanning all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 3; */ public boolean hasError() { return error_ != null; } /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo scanning all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo scanning all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } for (int i = 0; i < pairs_.size(); i++) { output.writeMessage(2, pairs_.get(i)); } if (error_ != null) { output.writeMessage(3, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } for (int i = 0; i < pairs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, pairs_.get(i)); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getError()); } 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.Kvrpcpb.ScanResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ScanResponse other = (org.tikv.kvproto.Kvrpcpb.ScanResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getPairsList() .equals(other.getPairsList()); result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (getPairsCount() > 0) { hash = (37 * hash) + PAIRS_FIELD_NUMBER; hash = (53 * hash) + getPairsList().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ScanResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanResponse 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.Kvrpcpb.ScanResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanResponse 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.Kvrpcpb.ScanResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ScanResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanResponse 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.Kvrpcpb.ScanResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanResponse 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.Kvrpcpb.ScanResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanResponse 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.Kvrpcpb.ScanResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.ScanResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ScanResponse) org.tikv.kvproto.Kvrpcpb.ScanResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanResponse.class, org.tikv.kvproto.Kvrpcpb.ScanResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ScanResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPairsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { pairsBuilder_.clear(); } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.ScanResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ScanResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ScanResponse build() { org.tikv.kvproto.Kvrpcpb.ScanResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ScanResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.ScanResponse result = new org.tikv.kvproto.Kvrpcpb.ScanResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (pairsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); bitField0_ = (bitField0_ & ~0x00000002); } result.pairs_ = pairs_; } else { result.pairs_ = pairsBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.ScanResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ScanResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ScanResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.ScanResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (pairsBuilder_ == null) { if (!other.pairs_.isEmpty()) { if (pairs_.isEmpty()) { pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePairsIsMutable(); pairs_.addAll(other.pairs_); } onChanged(); } } else { if (!other.pairs_.isEmpty()) { if (pairsBuilder_.isEmpty()) { pairsBuilder_.dispose(); pairsBuilder_ = null; pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); pairsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPairsFieldBuilder() : null; } else { pairsBuilder_.addAllMessages(other.pairs_); } } } if (other.hasError()) { mergeError(other.getError()); } 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.Kvrpcpb.ScanResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ScanResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.util.List pairs_ = java.util.Collections.emptyList(); private void ensurePairsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(pairs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> pairsBuilder_; /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsList() { if (pairsBuilder_ == null) { return java.util.Collections.unmodifiableList(pairs_); } else { return pairsBuilder_.getMessageList(); } } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public int getPairsCount() { if (pairsBuilder_ == null) { return pairs_.size(); } else { return pairsBuilder_.getCount(); } } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessage(index); } } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.set(index, value); onChanged(); } else { pairsBuilder_.setMessage(index, value); } return this; } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.set(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs(org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(value); onChanged(); } else { pairsBuilder_.addMessage(value); } return this; } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(index, value); onChanged(); } else { pairsBuilder_.addMessage(index, value); } return this; } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addAllPairs( java.lang.Iterable values) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pairs_); onChanged(); } else { pairsBuilder_.addAllMessages(values); } return this; } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder clearPairs() { if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { pairsBuilder_.clear(); } return this; } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder removePairs(int index) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.remove(index); onChanged(); } else { pairsBuilder_.remove(index); } return this; } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder getPairsBuilder( int index) { return getPairsFieldBuilder().getBuilder(index); } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessageOrBuilder(index); } } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { if (pairsBuilder_ != null) { return pairsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pairs_); } } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addPairsBuilder() { return getPairsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addPairsBuilder( int index) { return getPairsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** *
       * Each KvPair may contain a key error.
       * 
* * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsBuilderList() { return getPairsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> getPairsFieldBuilder() { if (pairsBuilder_ == null) { pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder>( pairs_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); pairs_ = null; } return pairsBuilder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo scanning all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 3; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo scanning all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo scanning all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 3; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo scanning all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 3; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo scanning all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 3; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo scanning all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 3; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo scanning all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo scanning all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo scanning all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } 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:kvrpcpb.ScanResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.ScanResponse) private static final org.tikv.kvproto.Kvrpcpb.ScanResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ScanResponse(); } public static org.tikv.kvproto.Kvrpcpb.ScanResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScanResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScanResponse(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.Kvrpcpb.ScanResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrewriteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.PrewriteRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** *
     * The data to be written to the database.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ java.util.List getMutationsList(); /** *
     * The data to be written to the database.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ org.tikv.kvproto.Kvrpcpb.Mutation getMutations(int index); /** *
     * The data to be written to the database.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ int getMutationsCount(); /** *
     * The data to be written to the database.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ java.util.List getMutationsOrBuilderList(); /** *
     * The data to be written to the database.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ org.tikv.kvproto.Kvrpcpb.MutationOrBuilder getMutationsOrBuilder( int index); /** *
     * The client picks one key to be primary (unrelated to the primary key concept in SQL). This
     * key's lock is the source of truth for the state of a transaction. All other locks due to a
     * transaction will point to the primary lock.
     * 
* * bytes primary_lock = 3; */ com.google.protobuf.ByteString getPrimaryLock(); /** *
     * Identifies the transaction being written.
     * 
* * uint64 start_version = 4; */ long getStartVersion(); /** * uint64 lock_ttl = 5; */ long getLockTtl(); /** *
     * TiKV can skip some checks, used for speeding up data migration.
     * 
* * bool skip_constraint_check = 6; */ boolean getSkipConstraintCheck(); /** *
     * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
     * 
* * repeated bool is_pessimistic_lock = 7; */ java.util.List getIsPessimisticLockList(); /** *
     * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
     * 
* * repeated bool is_pessimistic_lock = 7; */ int getIsPessimisticLockCount(); /** *
     * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
     * 
* * repeated bool is_pessimistic_lock = 7; */ boolean getIsPessimisticLock(int index); /** *
     * How many keys this transaction involves in this region.
     * 
* * uint64 txn_size = 8; */ long getTxnSize(); /** *
     * For pessimistic transactions only; used to check if a conflict lock is already committed.
     * 
* * uint64 for_update_ts = 9; */ long getForUpdateTs(); /** *
     * If min_commit_ts > 0, this is a large transaction request, the final commit_ts
     * will be inferred from `min_commit_ts`.
     * 
* * uint64 min_commit_ts = 10; */ long getMinCommitTs(); /** *
     * When async commit is enabled, `secondaries` should be set as the key list of all secondary
     * locks if the request prewrites the primary lock.
     * 
* * bool use_async_commit = 11; */ boolean getUseAsyncCommit(); /** * repeated bytes secondaries = 12; */ java.util.List getSecondariesList(); /** * repeated bytes secondaries = 12; */ int getSecondariesCount(); /** * repeated bytes secondaries = 12; */ com.google.protobuf.ByteString getSecondaries(int index); /** *
     * When the transaction involves only one region, it's possible to commit the transaction
     * directly with 1PC protocol.
     * 
* * bool try_one_pc = 13; */ boolean getTryOnePc(); /** *
     * The max commit ts is reserved for limiting the commit ts of 1PC or async commit, which can be used to avoid
     * inconsistency with schema change.
     * 
* * uint64 max_commit_ts = 14; */ long getMaxCommitTs(); } /** *
   * A prewrite is the first phase of writing to TiKV. It contains all data to be written in a transaction.
   * TiKV will write the data in a preliminary state. Data cannot be read until it has been committed.
   * The client should only commit a transaction once all prewrites succeed.
   * 
* * Protobuf type {@code kvrpcpb.PrewriteRequest} */ public static final class PrewriteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.PrewriteRequest) PrewriteRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PrewriteRequest.newBuilder() to construct. private PrewriteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrewriteRequest() { mutations_ = java.util.Collections.emptyList(); primaryLock_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; lockTtl_ = 0L; skipConstraintCheck_ = false; isPessimisticLock_ = java.util.Collections.emptyList(); txnSize_ = 0L; forUpdateTs_ = 0L; minCommitTs_ = 0L; useAsyncCommit_ = false; secondaries_ = java.util.Collections.emptyList(); tryOnePc_ = false; maxCommitTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrewriteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { mutations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } mutations_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.Mutation.parser(), extensionRegistry)); break; } case 26: { primaryLock_ = input.readBytes(); break; } case 32: { startVersion_ = input.readUInt64(); break; } case 40: { lockTtl_ = input.readUInt64(); break; } case 48: { skipConstraintCheck_ = input.readBool(); break; } case 56: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { isPessimisticLock_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } isPessimisticLock_.add(input.readBool()); break; } case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { isPessimisticLock_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } while (input.getBytesUntilLimit() > 0) { isPessimisticLock_.add(input.readBool()); } input.popLimit(limit); break; } case 64: { txnSize_ = input.readUInt64(); break; } case 72: { forUpdateTs_ = input.readUInt64(); break; } case 80: { minCommitTs_ = input.readUInt64(); break; } case 88: { useAsyncCommit_ = input.readBool(); break; } case 98: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { secondaries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } secondaries_.add(input.readBytes()); break; } case 104: { tryOnePc_ = input.readBool(); break; } case 112: { maxCommitTs_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { mutations_ = java.util.Collections.unmodifiableList(mutations_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { isPessimisticLock_ = java.util.Collections.unmodifiableList(isPessimisticLock_); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { secondaries_ = java.util.Collections.unmodifiableList(secondaries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PrewriteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PrewriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PrewriteRequest.class, org.tikv.kvproto.Kvrpcpb.PrewriteRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int MUTATIONS_FIELD_NUMBER = 2; private java.util.List mutations_; /** *
     * The data to be written to the database.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public java.util.List getMutationsList() { return mutations_; } /** *
     * The data to be written to the database.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public java.util.List getMutationsOrBuilderList() { return mutations_; } /** *
     * The data to be written to the database.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public int getMutationsCount() { return mutations_.size(); } /** *
     * The data to be written to the database.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.Mutation getMutations(int index) { return mutations_.get(index); } /** *
     * The data to be written to the database.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.MutationOrBuilder getMutationsOrBuilder( int index) { return mutations_.get(index); } public static final int PRIMARY_LOCK_FIELD_NUMBER = 3; private com.google.protobuf.ByteString primaryLock_; /** *
     * The client picks one key to be primary (unrelated to the primary key concept in SQL). This
     * key's lock is the source of truth for the state of a transaction. All other locks due to a
     * transaction will point to the primary lock.
     * 
* * bytes primary_lock = 3; */ public com.google.protobuf.ByteString getPrimaryLock() { return primaryLock_; } public static final int START_VERSION_FIELD_NUMBER = 4; private long startVersion_; /** *
     * Identifies the transaction being written.
     * 
* * uint64 start_version = 4; */ public long getStartVersion() { return startVersion_; } public static final int LOCK_TTL_FIELD_NUMBER = 5; private long lockTtl_; /** * uint64 lock_ttl = 5; */ public long getLockTtl() { return lockTtl_; } public static final int SKIP_CONSTRAINT_CHECK_FIELD_NUMBER = 6; private boolean skipConstraintCheck_; /** *
     * TiKV can skip some checks, used for speeding up data migration.
     * 
* * bool skip_constraint_check = 6; */ public boolean getSkipConstraintCheck() { return skipConstraintCheck_; } public static final int IS_PESSIMISTIC_LOCK_FIELD_NUMBER = 7; private java.util.List isPessimisticLock_; /** *
     * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
     * 
* * repeated bool is_pessimistic_lock = 7; */ public java.util.List getIsPessimisticLockList() { return isPessimisticLock_; } /** *
     * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
     * 
* * repeated bool is_pessimistic_lock = 7; */ public int getIsPessimisticLockCount() { return isPessimisticLock_.size(); } /** *
     * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
     * 
* * repeated bool is_pessimistic_lock = 7; */ public boolean getIsPessimisticLock(int index) { return isPessimisticLock_.get(index); } private int isPessimisticLockMemoizedSerializedSize = -1; public static final int TXN_SIZE_FIELD_NUMBER = 8; private long txnSize_; /** *
     * How many keys this transaction involves in this region.
     * 
* * uint64 txn_size = 8; */ public long getTxnSize() { return txnSize_; } public static final int FOR_UPDATE_TS_FIELD_NUMBER = 9; private long forUpdateTs_; /** *
     * For pessimistic transactions only; used to check if a conflict lock is already committed.
     * 
* * uint64 for_update_ts = 9; */ public long getForUpdateTs() { return forUpdateTs_; } public static final int MIN_COMMIT_TS_FIELD_NUMBER = 10; private long minCommitTs_; /** *
     * If min_commit_ts > 0, this is a large transaction request, the final commit_ts
     * will be inferred from `min_commit_ts`.
     * 
* * uint64 min_commit_ts = 10; */ public long getMinCommitTs() { return minCommitTs_; } public static final int USE_ASYNC_COMMIT_FIELD_NUMBER = 11; private boolean useAsyncCommit_; /** *
     * When async commit is enabled, `secondaries` should be set as the key list of all secondary
     * locks if the request prewrites the primary lock.
     * 
* * bool use_async_commit = 11; */ public boolean getUseAsyncCommit() { return useAsyncCommit_; } public static final int SECONDARIES_FIELD_NUMBER = 12; private java.util.List secondaries_; /** * repeated bytes secondaries = 12; */ public java.util.List getSecondariesList() { return secondaries_; } /** * repeated bytes secondaries = 12; */ public int getSecondariesCount() { return secondaries_.size(); } /** * repeated bytes secondaries = 12; */ public com.google.protobuf.ByteString getSecondaries(int index) { return secondaries_.get(index); } public static final int TRY_ONE_PC_FIELD_NUMBER = 13; private boolean tryOnePc_; /** *
     * When the transaction involves only one region, it's possible to commit the transaction
     * directly with 1PC protocol.
     * 
* * bool try_one_pc = 13; */ public boolean getTryOnePc() { return tryOnePc_; } public static final int MAX_COMMIT_TS_FIELD_NUMBER = 14; private long maxCommitTs_; /** *
     * The max commit ts is reserved for limiting the commit ts of 1PC or async commit, which can be used to avoid
     * inconsistency with schema change.
     * 
* * uint64 max_commit_ts = 14; */ public long getMaxCommitTs() { return maxCommitTs_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (context_ != null) { output.writeMessage(1, getContext()); } for (int i = 0; i < mutations_.size(); i++) { output.writeMessage(2, mutations_.get(i)); } if (!primaryLock_.isEmpty()) { output.writeBytes(3, primaryLock_); } if (startVersion_ != 0L) { output.writeUInt64(4, startVersion_); } if (lockTtl_ != 0L) { output.writeUInt64(5, lockTtl_); } if (skipConstraintCheck_ != false) { output.writeBool(6, skipConstraintCheck_); } if (getIsPessimisticLockList().size() > 0) { output.writeUInt32NoTag(58); output.writeUInt32NoTag(isPessimisticLockMemoizedSerializedSize); } for (int i = 0; i < isPessimisticLock_.size(); i++) { output.writeBoolNoTag(isPessimisticLock_.get(i)); } if (txnSize_ != 0L) { output.writeUInt64(8, txnSize_); } if (forUpdateTs_ != 0L) { output.writeUInt64(9, forUpdateTs_); } if (minCommitTs_ != 0L) { output.writeUInt64(10, minCommitTs_); } if (useAsyncCommit_ != false) { output.writeBool(11, useAsyncCommit_); } for (int i = 0; i < secondaries_.size(); i++) { output.writeBytes(12, secondaries_.get(i)); } if (tryOnePc_ != false) { output.writeBool(13, tryOnePc_); } if (maxCommitTs_ != 0L) { output.writeUInt64(14, maxCommitTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } for (int i = 0; i < mutations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, mutations_.get(i)); } if (!primaryLock_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, primaryLock_); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, startVersion_); } if (lockTtl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, lockTtl_); } if (skipConstraintCheck_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, skipConstraintCheck_); } { int dataSize = 0; dataSize = 1 * getIsPessimisticLockList().size(); size += dataSize; if (!getIsPessimisticLockList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } isPessimisticLockMemoizedSerializedSize = dataSize; } if (txnSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(8, txnSize_); } if (forUpdateTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(9, forUpdateTs_); } if (minCommitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(10, minCommitTs_); } if (useAsyncCommit_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, useAsyncCommit_); } { int dataSize = 0; for (int i = 0; i < secondaries_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(secondaries_.get(i)); } size += dataSize; size += 1 * getSecondariesList().size(); } if (tryOnePc_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, tryOnePc_); } if (maxCommitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(14, maxCommitTs_); } 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.Kvrpcpb.PrewriteRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.PrewriteRequest other = (org.tikv.kvproto.Kvrpcpb.PrewriteRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getMutationsList() .equals(other.getMutationsList()); result = result && getPrimaryLock() .equals(other.getPrimaryLock()); result = result && (getStartVersion() == other.getStartVersion()); result = result && (getLockTtl() == other.getLockTtl()); result = result && (getSkipConstraintCheck() == other.getSkipConstraintCheck()); result = result && getIsPessimisticLockList() .equals(other.getIsPessimisticLockList()); result = result && (getTxnSize() == other.getTxnSize()); result = result && (getForUpdateTs() == other.getForUpdateTs()); result = result && (getMinCommitTs() == other.getMinCommitTs()); result = result && (getUseAsyncCommit() == other.getUseAsyncCommit()); result = result && getSecondariesList() .equals(other.getSecondariesList()); result = result && (getTryOnePc() == other.getTryOnePc()); result = result && (getMaxCommitTs() == other.getMaxCommitTs()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (getMutationsCount() > 0) { hash = (37 * hash) + MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getMutationsList().hashCode(); } hash = (37 * hash) + PRIMARY_LOCK_FIELD_NUMBER; hash = (53 * hash) + getPrimaryLock().hashCode(); hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (37 * hash) + LOCK_TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLockTtl()); hash = (37 * hash) + SKIP_CONSTRAINT_CHECK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSkipConstraintCheck()); if (getIsPessimisticLockCount() > 0) { hash = (37 * hash) + IS_PESSIMISTIC_LOCK_FIELD_NUMBER; hash = (53 * hash) + getIsPessimisticLockList().hashCode(); } hash = (37 * hash) + TXN_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTxnSize()); hash = (37 * hash) + FOR_UPDATE_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getForUpdateTs()); hash = (37 * hash) + MIN_COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinCommitTs()); hash = (37 * hash) + USE_ASYNC_COMMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUseAsyncCommit()); if (getSecondariesCount() > 0) { hash = (37 * hash) + SECONDARIES_FIELD_NUMBER; hash = (53 * hash) + getSecondariesList().hashCode(); } hash = (37 * hash) + TRY_ONE_PC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTryOnePc()); hash = (37 * hash) + MAX_COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxCommitTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Kvrpcpb.PrewriteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A prewrite is the first phase of writing to TiKV. It contains all data to be written in a transaction.
     * TiKV will write the data in a preliminary state. Data cannot be read until it has been committed.
     * The client should only commit a transaction once all prewrites succeed.
     * 
* * Protobuf type {@code kvrpcpb.PrewriteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.PrewriteRequest) org.tikv.kvproto.Kvrpcpb.PrewriteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PrewriteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PrewriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PrewriteRequest.class, org.tikv.kvproto.Kvrpcpb.PrewriteRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.PrewriteRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMutationsFieldBuilder(); } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } if (mutationsBuilder_ == null) { mutations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { mutationsBuilder_.clear(); } primaryLock_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; lockTtl_ = 0L; skipConstraintCheck_ = false; isPessimisticLock_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); txnSize_ = 0L; forUpdateTs_ = 0L; minCommitTs_ = 0L; useAsyncCommit_ = false; secondaries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); tryOnePc_ = false; maxCommitTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PrewriteRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.PrewriteRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.PrewriteRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.PrewriteRequest build() { org.tikv.kvproto.Kvrpcpb.PrewriteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.PrewriteRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.PrewriteRequest result = new org.tikv.kvproto.Kvrpcpb.PrewriteRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (mutationsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { mutations_ = java.util.Collections.unmodifiableList(mutations_); bitField0_ = (bitField0_ & ~0x00000002); } result.mutations_ = mutations_; } else { result.mutations_ = mutationsBuilder_.build(); } result.primaryLock_ = primaryLock_; result.startVersion_ = startVersion_; result.lockTtl_ = lockTtl_; result.skipConstraintCheck_ = skipConstraintCheck_; if (((bitField0_ & 0x00000040) == 0x00000040)) { isPessimisticLock_ = java.util.Collections.unmodifiableList(isPessimisticLock_); bitField0_ = (bitField0_ & ~0x00000040); } result.isPessimisticLock_ = isPessimisticLock_; result.txnSize_ = txnSize_; result.forUpdateTs_ = forUpdateTs_; result.minCommitTs_ = minCommitTs_; result.useAsyncCommit_ = useAsyncCommit_; if (((bitField0_ & 0x00000800) == 0x00000800)) { secondaries_ = java.util.Collections.unmodifiableList(secondaries_); bitField0_ = (bitField0_ & ~0x00000800); } result.secondaries_ = secondaries_; result.tryOnePc_ = tryOnePc_; result.maxCommitTs_ = maxCommitTs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.PrewriteRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.PrewriteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.PrewriteRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.PrewriteRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (mutationsBuilder_ == null) { if (!other.mutations_.isEmpty()) { if (mutations_.isEmpty()) { mutations_ = other.mutations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMutationsIsMutable(); mutations_.addAll(other.mutations_); } onChanged(); } } else { if (!other.mutations_.isEmpty()) { if (mutationsBuilder_.isEmpty()) { mutationsBuilder_.dispose(); mutationsBuilder_ = null; mutations_ = other.mutations_; bitField0_ = (bitField0_ & ~0x00000002); mutationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMutationsFieldBuilder() : null; } else { mutationsBuilder_.addAllMessages(other.mutations_); } } } if (other.getPrimaryLock() != com.google.protobuf.ByteString.EMPTY) { setPrimaryLock(other.getPrimaryLock()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } if (other.getLockTtl() != 0L) { setLockTtl(other.getLockTtl()); } if (other.getSkipConstraintCheck() != false) { setSkipConstraintCheck(other.getSkipConstraintCheck()); } if (!other.isPessimisticLock_.isEmpty()) { if (isPessimisticLock_.isEmpty()) { isPessimisticLock_ = other.isPessimisticLock_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureIsPessimisticLockIsMutable(); isPessimisticLock_.addAll(other.isPessimisticLock_); } onChanged(); } if (other.getTxnSize() != 0L) { setTxnSize(other.getTxnSize()); } if (other.getForUpdateTs() != 0L) { setForUpdateTs(other.getForUpdateTs()); } if (other.getMinCommitTs() != 0L) { setMinCommitTs(other.getMinCommitTs()); } if (other.getUseAsyncCommit() != false) { setUseAsyncCommit(other.getUseAsyncCommit()); } if (!other.secondaries_.isEmpty()) { if (secondaries_.isEmpty()) { secondaries_ = other.secondaries_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureSecondariesIsMutable(); secondaries_.addAll(other.secondaries_); } onChanged(); } if (other.getTryOnePc() != false) { setTryOnePc(other.getTryOnePc()); } if (other.getMaxCommitTs() != 0L) { setMaxCommitTs(other.getMaxCommitTs()); } 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.Kvrpcpb.PrewriteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.PrewriteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private java.util.List mutations_ = java.util.Collections.emptyList(); private void ensureMutationsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { mutations_ = new java.util.ArrayList(mutations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Mutation, org.tikv.kvproto.Kvrpcpb.Mutation.Builder, org.tikv.kvproto.Kvrpcpb.MutationOrBuilder> mutationsBuilder_; /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public java.util.List getMutationsList() { if (mutationsBuilder_ == null) { return java.util.Collections.unmodifiableList(mutations_); } else { return mutationsBuilder_.getMessageList(); } } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public int getMutationsCount() { if (mutationsBuilder_ == null) { return mutations_.size(); } else { return mutationsBuilder_.getCount(); } } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.Mutation getMutations(int index) { if (mutationsBuilder_ == null) { return mutations_.get(index); } else { return mutationsBuilder_.getMessage(index); } } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder setMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation value) { if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutationsIsMutable(); mutations_.set(index, value); onChanged(); } else { mutationsBuilder_.setMessage(index, value); } return this; } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder setMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation.Builder builderForValue) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.set(index, builderForValue.build()); onChanged(); } else { mutationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder addMutations(org.tikv.kvproto.Kvrpcpb.Mutation value) { if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutationsIsMutable(); mutations_.add(value); onChanged(); } else { mutationsBuilder_.addMessage(value); } return this; } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder addMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation value) { if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutationsIsMutable(); mutations_.add(index, value); onChanged(); } else { mutationsBuilder_.addMessage(index, value); } return this; } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder addMutations( org.tikv.kvproto.Kvrpcpb.Mutation.Builder builderForValue) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.add(builderForValue.build()); onChanged(); } else { mutationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder addMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation.Builder builderForValue) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.add(index, builderForValue.build()); onChanged(); } else { mutationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder addAllMutations( java.lang.Iterable values) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, mutations_); onChanged(); } else { mutationsBuilder_.addAllMessages(values); } return this; } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder clearMutations() { if (mutationsBuilder_ == null) { mutations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { mutationsBuilder_.clear(); } return this; } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder removeMutations(int index) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.remove(index); onChanged(); } else { mutationsBuilder_.remove(index); } return this; } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.Mutation.Builder getMutationsBuilder( int index) { return getMutationsFieldBuilder().getBuilder(index); } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.MutationOrBuilder getMutationsOrBuilder( int index) { if (mutationsBuilder_ == null) { return mutations_.get(index); } else { return mutationsBuilder_.getMessageOrBuilder(index); } } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public java.util.List getMutationsOrBuilderList() { if (mutationsBuilder_ != null) { return mutationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(mutations_); } } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.Mutation.Builder addMutationsBuilder() { return getMutationsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.Mutation.getDefaultInstance()); } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.Mutation.Builder addMutationsBuilder( int index) { return getMutationsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.Mutation.getDefaultInstance()); } /** *
       * The data to be written to the database.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public java.util.List getMutationsBuilderList() { return getMutationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Mutation, org.tikv.kvproto.Kvrpcpb.Mutation.Builder, org.tikv.kvproto.Kvrpcpb.MutationOrBuilder> getMutationsFieldBuilder() { if (mutationsBuilder_ == null) { mutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Mutation, org.tikv.kvproto.Kvrpcpb.Mutation.Builder, org.tikv.kvproto.Kvrpcpb.MutationOrBuilder>( mutations_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); mutations_ = null; } return mutationsBuilder_; } private com.google.protobuf.ByteString primaryLock_ = com.google.protobuf.ByteString.EMPTY; /** *
       * The client picks one key to be primary (unrelated to the primary key concept in SQL). This
       * key's lock is the source of truth for the state of a transaction. All other locks due to a
       * transaction will point to the primary lock.
       * 
* * bytes primary_lock = 3; */ public com.google.protobuf.ByteString getPrimaryLock() { return primaryLock_; } /** *
       * The client picks one key to be primary (unrelated to the primary key concept in SQL). This
       * key's lock is the source of truth for the state of a transaction. All other locks due to a
       * transaction will point to the primary lock.
       * 
* * bytes primary_lock = 3; */ public Builder setPrimaryLock(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } primaryLock_ = value; onChanged(); return this; } /** *
       * The client picks one key to be primary (unrelated to the primary key concept in SQL). This
       * key's lock is the source of truth for the state of a transaction. All other locks due to a
       * transaction will point to the primary lock.
       * 
* * bytes primary_lock = 3; */ public Builder clearPrimaryLock() { primaryLock_ = getDefaultInstance().getPrimaryLock(); onChanged(); return this; } private long startVersion_ ; /** *
       * Identifies the transaction being written.
       * 
* * uint64 start_version = 4; */ public long getStartVersion() { return startVersion_; } /** *
       * Identifies the transaction being written.
       * 
* * uint64 start_version = 4; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** *
       * Identifies the transaction being written.
       * 
* * uint64 start_version = 4; */ public Builder clearStartVersion() { startVersion_ = 0L; onChanged(); return this; } private long lockTtl_ ; /** * uint64 lock_ttl = 5; */ public long getLockTtl() { return lockTtl_; } /** * uint64 lock_ttl = 5; */ public Builder setLockTtl(long value) { lockTtl_ = value; onChanged(); return this; } /** * uint64 lock_ttl = 5; */ public Builder clearLockTtl() { lockTtl_ = 0L; onChanged(); return this; } private boolean skipConstraintCheck_ ; /** *
       * TiKV can skip some checks, used for speeding up data migration.
       * 
* * bool skip_constraint_check = 6; */ public boolean getSkipConstraintCheck() { return skipConstraintCheck_; } /** *
       * TiKV can skip some checks, used for speeding up data migration.
       * 
* * bool skip_constraint_check = 6; */ public Builder setSkipConstraintCheck(boolean value) { skipConstraintCheck_ = value; onChanged(); return this; } /** *
       * TiKV can skip some checks, used for speeding up data migration.
       * 
* * bool skip_constraint_check = 6; */ public Builder clearSkipConstraintCheck() { skipConstraintCheck_ = false; onChanged(); return this; } private java.util.List isPessimisticLock_ = java.util.Collections.emptyList(); private void ensureIsPessimisticLockIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { isPessimisticLock_ = new java.util.ArrayList(isPessimisticLock_); bitField0_ |= 0x00000040; } } /** *
       * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
       * 
* * repeated bool is_pessimistic_lock = 7; */ public java.util.List getIsPessimisticLockList() { return java.util.Collections.unmodifiableList(isPessimisticLock_); } /** *
       * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
       * 
* * repeated bool is_pessimistic_lock = 7; */ public int getIsPessimisticLockCount() { return isPessimisticLock_.size(); } /** *
       * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
       * 
* * repeated bool is_pessimistic_lock = 7; */ public boolean getIsPessimisticLock(int index) { return isPessimisticLock_.get(index); } /** *
       * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
       * 
* * repeated bool is_pessimistic_lock = 7; */ public Builder setIsPessimisticLock( int index, boolean value) { ensureIsPessimisticLockIsMutable(); isPessimisticLock_.set(index, value); onChanged(); return this; } /** *
       * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
       * 
* * repeated bool is_pessimistic_lock = 7; */ public Builder addIsPessimisticLock(boolean value) { ensureIsPessimisticLockIsMutable(); isPessimisticLock_.add(value); onChanged(); return this; } /** *
       * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
       * 
* * repeated bool is_pessimistic_lock = 7; */ public Builder addAllIsPessimisticLock( java.lang.Iterable values) { ensureIsPessimisticLockIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, isPessimisticLock_); onChanged(); return this; } /** *
       * For pessimistic transaction, some mutations don't need to be locked, for example, non-unique index key.
       * 
* * repeated bool is_pessimistic_lock = 7; */ public Builder clearIsPessimisticLock() { isPessimisticLock_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private long txnSize_ ; /** *
       * How many keys this transaction involves in this region.
       * 
* * uint64 txn_size = 8; */ public long getTxnSize() { return txnSize_; } /** *
       * How many keys this transaction involves in this region.
       * 
* * uint64 txn_size = 8; */ public Builder setTxnSize(long value) { txnSize_ = value; onChanged(); return this; } /** *
       * How many keys this transaction involves in this region.
       * 
* * uint64 txn_size = 8; */ public Builder clearTxnSize() { txnSize_ = 0L; onChanged(); return this; } private long forUpdateTs_ ; /** *
       * For pessimistic transactions only; used to check if a conflict lock is already committed.
       * 
* * uint64 for_update_ts = 9; */ public long getForUpdateTs() { return forUpdateTs_; } /** *
       * For pessimistic transactions only; used to check if a conflict lock is already committed.
       * 
* * uint64 for_update_ts = 9; */ public Builder setForUpdateTs(long value) { forUpdateTs_ = value; onChanged(); return this; } /** *
       * For pessimistic transactions only; used to check if a conflict lock is already committed.
       * 
* * uint64 for_update_ts = 9; */ public Builder clearForUpdateTs() { forUpdateTs_ = 0L; onChanged(); return this; } private long minCommitTs_ ; /** *
       * If min_commit_ts > 0, this is a large transaction request, the final commit_ts
       * will be inferred from `min_commit_ts`.
       * 
* * uint64 min_commit_ts = 10; */ public long getMinCommitTs() { return minCommitTs_; } /** *
       * If min_commit_ts > 0, this is a large transaction request, the final commit_ts
       * will be inferred from `min_commit_ts`.
       * 
* * uint64 min_commit_ts = 10; */ public Builder setMinCommitTs(long value) { minCommitTs_ = value; onChanged(); return this; } /** *
       * If min_commit_ts > 0, this is a large transaction request, the final commit_ts
       * will be inferred from `min_commit_ts`.
       * 
* * uint64 min_commit_ts = 10; */ public Builder clearMinCommitTs() { minCommitTs_ = 0L; onChanged(); return this; } private boolean useAsyncCommit_ ; /** *
       * When async commit is enabled, `secondaries` should be set as the key list of all secondary
       * locks if the request prewrites the primary lock.
       * 
* * bool use_async_commit = 11; */ public boolean getUseAsyncCommit() { return useAsyncCommit_; } /** *
       * When async commit is enabled, `secondaries` should be set as the key list of all secondary
       * locks if the request prewrites the primary lock.
       * 
* * bool use_async_commit = 11; */ public Builder setUseAsyncCommit(boolean value) { useAsyncCommit_ = value; onChanged(); return this; } /** *
       * When async commit is enabled, `secondaries` should be set as the key list of all secondary
       * locks if the request prewrites the primary lock.
       * 
* * bool use_async_commit = 11; */ public Builder clearUseAsyncCommit() { useAsyncCommit_ = false; onChanged(); return this; } private java.util.List secondaries_ = java.util.Collections.emptyList(); private void ensureSecondariesIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { secondaries_ = new java.util.ArrayList(secondaries_); bitField0_ |= 0x00000800; } } /** * repeated bytes secondaries = 12; */ public java.util.List getSecondariesList() { return java.util.Collections.unmodifiableList(secondaries_); } /** * repeated bytes secondaries = 12; */ public int getSecondariesCount() { return secondaries_.size(); } /** * repeated bytes secondaries = 12; */ public com.google.protobuf.ByteString getSecondaries(int index) { return secondaries_.get(index); } /** * repeated bytes secondaries = 12; */ public Builder setSecondaries( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSecondariesIsMutable(); secondaries_.set(index, value); onChanged(); return this; } /** * repeated bytes secondaries = 12; */ public Builder addSecondaries(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSecondariesIsMutable(); secondaries_.add(value); onChanged(); return this; } /** * repeated bytes secondaries = 12; */ public Builder addAllSecondaries( java.lang.Iterable values) { ensureSecondariesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, secondaries_); onChanged(); return this; } /** * repeated bytes secondaries = 12; */ public Builder clearSecondaries() { secondaries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } private boolean tryOnePc_ ; /** *
       * When the transaction involves only one region, it's possible to commit the transaction
       * directly with 1PC protocol.
       * 
* * bool try_one_pc = 13; */ public boolean getTryOnePc() { return tryOnePc_; } /** *
       * When the transaction involves only one region, it's possible to commit the transaction
       * directly with 1PC protocol.
       * 
* * bool try_one_pc = 13; */ public Builder setTryOnePc(boolean value) { tryOnePc_ = value; onChanged(); return this; } /** *
       * When the transaction involves only one region, it's possible to commit the transaction
       * directly with 1PC protocol.
       * 
* * bool try_one_pc = 13; */ public Builder clearTryOnePc() { tryOnePc_ = false; onChanged(); return this; } private long maxCommitTs_ ; /** *
       * The max commit ts is reserved for limiting the commit ts of 1PC or async commit, which can be used to avoid
       * inconsistency with schema change.
       * 
* * uint64 max_commit_ts = 14; */ public long getMaxCommitTs() { return maxCommitTs_; } /** *
       * The max commit ts is reserved for limiting the commit ts of 1PC or async commit, which can be used to avoid
       * inconsistency with schema change.
       * 
* * uint64 max_commit_ts = 14; */ public Builder setMaxCommitTs(long value) { maxCommitTs_ = value; onChanged(); return this; } /** *
       * The max commit ts is reserved for limiting the commit ts of 1PC or async commit, which can be used to avoid
       * inconsistency with schema change.
       * 
* * uint64 max_commit_ts = 14; */ public Builder clearMaxCommitTs() { maxCommitTs_ = 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:kvrpcpb.PrewriteRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.PrewriteRequest) private static final org.tikv.kvproto.Kvrpcpb.PrewriteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.PrewriteRequest(); } public static org.tikv.kvproto.Kvrpcpb.PrewriteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PrewriteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrewriteRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Kvrpcpb.PrewriteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PrewriteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.PrewriteResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * repeated .kvrpcpb.KeyError errors = 2; */ java.util.List getErrorsList(); /** * repeated .kvrpcpb.KeyError errors = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getErrors(int index); /** * repeated .kvrpcpb.KeyError errors = 2; */ int getErrorsCount(); /** * repeated .kvrpcpb.KeyError errors = 2; */ java.util.List getErrorsOrBuilderList(); /** * repeated .kvrpcpb.KeyError errors = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorsOrBuilder( int index); /** *
     * 0 if the min_commit_ts is not ready or any other reason that async
     * commit cannot proceed. The client can then fallback to normal way to
     * continue committing the transaction if prewrite are all finished.
     * 
* * uint64 min_commit_ts = 3; */ long getMinCommitTs(); /** *
     * When the transaction is successfully committed with 1PC protocol, this field will be set to
     * the commit ts of the transaction. Otherwise, if TiKV failed to commit it with 1PC or the
     * transaction is not 1PC, the value will be 0.
     * 
* * uint64 one_pc_commit_ts = 4; */ long getOnePcCommitTs(); } /** * Protobuf type {@code kvrpcpb.PrewriteResponse} */ public static final class PrewriteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.PrewriteResponse) PrewriteResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PrewriteResponse.newBuilder() to construct. private PrewriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PrewriteResponse() { errors_ = java.util.Collections.emptyList(); minCommitTs_ = 0L; onePcCommitTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PrewriteResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { errors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } errors_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry)); break; } case 24: { minCommitTs_ = input.readUInt64(); break; } case 32: { onePcCommitTs_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { errors_ = java.util.Collections.unmodifiableList(errors_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PrewriteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PrewriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PrewriteResponse.class, org.tikv.kvproto.Kvrpcpb.PrewriteResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERRORS_FIELD_NUMBER = 2; private java.util.List errors_; /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsList() { return errors_; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsOrBuilderList() { return errors_; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public int getErrorsCount() { return errors_.size(); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getErrors(int index) { return errors_.get(index); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorsOrBuilder( int index) { return errors_.get(index); } public static final int MIN_COMMIT_TS_FIELD_NUMBER = 3; private long minCommitTs_; /** *
     * 0 if the min_commit_ts is not ready or any other reason that async
     * commit cannot proceed. The client can then fallback to normal way to
     * continue committing the transaction if prewrite are all finished.
     * 
* * uint64 min_commit_ts = 3; */ public long getMinCommitTs() { return minCommitTs_; } public static final int ONE_PC_COMMIT_TS_FIELD_NUMBER = 4; private long onePcCommitTs_; /** *
     * When the transaction is successfully committed with 1PC protocol, this field will be set to
     * the commit ts of the transaction. Otherwise, if TiKV failed to commit it with 1PC or the
     * transaction is not 1PC, the value will be 0.
     * 
* * uint64 one_pc_commit_ts = 4; */ public long getOnePcCommitTs() { return onePcCommitTs_; } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } for (int i = 0; i < errors_.size(); i++) { output.writeMessage(2, errors_.get(i)); } if (minCommitTs_ != 0L) { output.writeUInt64(3, minCommitTs_); } if (onePcCommitTs_ != 0L) { output.writeUInt64(4, onePcCommitTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } for (int i = 0; i < errors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, errors_.get(i)); } if (minCommitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, minCommitTs_); } if (onePcCommitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, onePcCommitTs_); } 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.Kvrpcpb.PrewriteResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.PrewriteResponse other = (org.tikv.kvproto.Kvrpcpb.PrewriteResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getErrorsList() .equals(other.getErrorsList()); result = result && (getMinCommitTs() == other.getMinCommitTs()); result = result && (getOnePcCommitTs() == other.getOnePcCommitTs()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (getErrorsCount() > 0) { hash = (37 * hash) + ERRORS_FIELD_NUMBER; hash = (53 * hash) + getErrorsList().hashCode(); } hash = (37 * hash) + MIN_COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinCommitTs()); hash = (37 * hash) + ONE_PC_COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOnePcCommitTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Kvrpcpb.PrewriteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.PrewriteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.PrewriteResponse) org.tikv.kvproto.Kvrpcpb.PrewriteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PrewriteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PrewriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PrewriteResponse.class, org.tikv.kvproto.Kvrpcpb.PrewriteResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.PrewriteResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { errorsBuilder_.clear(); } minCommitTs_ = 0L; onePcCommitTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PrewriteResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.PrewriteResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.PrewriteResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.PrewriteResponse build() { org.tikv.kvproto.Kvrpcpb.PrewriteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.PrewriteResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.PrewriteResponse result = new org.tikv.kvproto.Kvrpcpb.PrewriteResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { errors_ = java.util.Collections.unmodifiableList(errors_); bitField0_ = (bitField0_ & ~0x00000002); } result.errors_ = errors_; } else { result.errors_ = errorsBuilder_.build(); } result.minCommitTs_ = minCommitTs_; result.onePcCommitTs_ = onePcCommitTs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.PrewriteResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.PrewriteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.PrewriteResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.PrewriteResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (errorsBuilder_ == null) { if (!other.errors_.isEmpty()) { if (errors_.isEmpty()) { errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureErrorsIsMutable(); errors_.addAll(other.errors_); } onChanged(); } } else { if (!other.errors_.isEmpty()) { if (errorsBuilder_.isEmpty()) { errorsBuilder_.dispose(); errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000002); errorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } } } if (other.getMinCommitTs() != 0L) { setMinCommitTs(other.getMinCommitTs()); } if (other.getOnePcCommitTs() != 0L) { setOnePcCommitTs(other.getOnePcCommitTs()); } 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.Kvrpcpb.PrewriteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.PrewriteResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.util.List errors_ = java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorsBuilder_; /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { return errorsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public int getErrorsCount() { if (errorsBuilder_ == null) { return errors_.size(); } else { return errorsBuilder_.getCount(); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getErrors(int index) { if (errorsBuilder_ == null) { return errors_.get(index); } else { return errorsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder setErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.set(index, value); onChanged(); } else { errorsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder setErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.set(index, builderForValue.build()); onChanged(); } else { errorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.add(value); onChanged(); } else { errorsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.add(index, value); onChanged(); } else { errorsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); onChanged(); } else { errorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(index, builderForValue.build()); onChanged(); } else { errorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder clearErrors() { if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { errorsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.remove(index); onChanged(); } else { errorsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorsBuilder( int index) { return getErrorsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorsOrBuilder( int index) { if (errorsBuilder_ == null) { return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(errors_); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder addErrorsBuilder() { return getErrorsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance()); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder addErrorsBuilder( int index) { return getErrorsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance()); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( errors_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } private long minCommitTs_ ; /** *
       * 0 if the min_commit_ts is not ready or any other reason that async
       * commit cannot proceed. The client can then fallback to normal way to
       * continue committing the transaction if prewrite are all finished.
       * 
* * uint64 min_commit_ts = 3; */ public long getMinCommitTs() { return minCommitTs_; } /** *
       * 0 if the min_commit_ts is not ready or any other reason that async
       * commit cannot proceed. The client can then fallback to normal way to
       * continue committing the transaction if prewrite are all finished.
       * 
* * uint64 min_commit_ts = 3; */ public Builder setMinCommitTs(long value) { minCommitTs_ = value; onChanged(); return this; } /** *
       * 0 if the min_commit_ts is not ready or any other reason that async
       * commit cannot proceed. The client can then fallback to normal way to
       * continue committing the transaction if prewrite are all finished.
       * 
* * uint64 min_commit_ts = 3; */ public Builder clearMinCommitTs() { minCommitTs_ = 0L; onChanged(); return this; } private long onePcCommitTs_ ; /** *
       * When the transaction is successfully committed with 1PC protocol, this field will be set to
       * the commit ts of the transaction. Otherwise, if TiKV failed to commit it with 1PC or the
       * transaction is not 1PC, the value will be 0.
       * 
* * uint64 one_pc_commit_ts = 4; */ public long getOnePcCommitTs() { return onePcCommitTs_; } /** *
       * When the transaction is successfully committed with 1PC protocol, this field will be set to
       * the commit ts of the transaction. Otherwise, if TiKV failed to commit it with 1PC or the
       * transaction is not 1PC, the value will be 0.
       * 
* * uint64 one_pc_commit_ts = 4; */ public Builder setOnePcCommitTs(long value) { onePcCommitTs_ = value; onChanged(); return this; } /** *
       * When the transaction is successfully committed with 1PC protocol, this field will be set to
       * the commit ts of the transaction. Otherwise, if TiKV failed to commit it with 1PC or the
       * transaction is not 1PC, the value will be 0.
       * 
* * uint64 one_pc_commit_ts = 4; */ public Builder clearOnePcCommitTs() { onePcCommitTs_ = 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:kvrpcpb.PrewriteResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.PrewriteResponse) private static final org.tikv.kvproto.Kvrpcpb.PrewriteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.PrewriteResponse(); } public static org.tikv.kvproto.Kvrpcpb.PrewriteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PrewriteResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PrewriteResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Kvrpcpb.PrewriteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PessimisticLockRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.PessimisticLockRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** *
     * In this case every `Op` of the mutations must be `PessimisticLock`.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ java.util.List getMutationsList(); /** *
     * In this case every `Op` of the mutations must be `PessimisticLock`.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ org.tikv.kvproto.Kvrpcpb.Mutation getMutations(int index); /** *
     * In this case every `Op` of the mutations must be `PessimisticLock`.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ int getMutationsCount(); /** *
     * In this case every `Op` of the mutations must be `PessimisticLock`.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ java.util.List getMutationsOrBuilderList(); /** *
     * In this case every `Op` of the mutations must be `PessimisticLock`.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ org.tikv.kvproto.Kvrpcpb.MutationOrBuilder getMutationsOrBuilder( int index); /** * bytes primary_lock = 3; */ com.google.protobuf.ByteString getPrimaryLock(); /** * uint64 start_version = 4; */ long getStartVersion(); /** * uint64 lock_ttl = 5; */ long getLockTtl(); /** *
     * Each locking command in a pessimistic transaction has its own timestamp. If locking fails, then
     * the corresponding SQL statement can be retried with a later timestamp, TiDB does not need to
     * retry the whole transaction. The name comes from the `SELECT ... FOR UPDATE` SQL statement which
     * is a locking read. Each `SELECT ... FOR UPDATE` in a transaction will be assigned its own
     * timestamp.
     * 
* * uint64 for_update_ts = 6; */ long getForUpdateTs(); /** *
     * If the request is the first lock request, we don't need to detect deadlock.
     * 
* * bool is_first_lock = 7; */ boolean getIsFirstLock(); /** *
     * Time to wait for lock released in milliseconds when encountering locks.
     * 0 means using default timeout in TiKV. Negative means no wait.
     * 
* * int64 wait_timeout = 8; */ long getWaitTimeout(); /** *
     * If it is true, TiKV will acquire the pessimistic lock regardless of write conflict
     * and return the latest value. It's only supported for single mutation.
     * 
* * bool force = 9; */ boolean getForce(); /** *
     * If it is true, TiKV will return values of the keys if no error, so TiDB can cache the values for
     * later read in the same transaction.
     * When 'force' is set to true, this field is ignored.
     * 
* * bool return_values = 10; */ boolean getReturnValues(); /** *
     * If min_commit_ts > 0, this is large transaction proto, the final commit_ts
     * would be infered from min_commit_ts.
     * 
* * uint64 min_commit_ts = 11; */ long getMinCommitTs(); } /** *
   * Lock a set of keys to prepare to write to them.
   * 
* * Protobuf type {@code kvrpcpb.PessimisticLockRequest} */ public static final class PessimisticLockRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.PessimisticLockRequest) PessimisticLockRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PessimisticLockRequest.newBuilder() to construct. private PessimisticLockRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PessimisticLockRequest() { mutations_ = java.util.Collections.emptyList(); primaryLock_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; lockTtl_ = 0L; forUpdateTs_ = 0L; isFirstLock_ = false; waitTimeout_ = 0L; force_ = false; returnValues_ = false; minCommitTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PessimisticLockRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { mutations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } mutations_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.Mutation.parser(), extensionRegistry)); break; } case 26: { primaryLock_ = input.readBytes(); break; } case 32: { startVersion_ = input.readUInt64(); break; } case 40: { lockTtl_ = input.readUInt64(); break; } case 48: { forUpdateTs_ = input.readUInt64(); break; } case 56: { isFirstLock_ = input.readBool(); break; } case 64: { waitTimeout_ = input.readInt64(); break; } case 72: { force_ = input.readBool(); break; } case 80: { returnValues_ = input.readBool(); break; } case 88: { minCommitTs_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { mutations_ = java.util.Collections.unmodifiableList(mutations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticLockRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticLockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.class, org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int MUTATIONS_FIELD_NUMBER = 2; private java.util.List mutations_; /** *
     * In this case every `Op` of the mutations must be `PessimisticLock`.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public java.util.List getMutationsList() { return mutations_; } /** *
     * In this case every `Op` of the mutations must be `PessimisticLock`.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public java.util.List getMutationsOrBuilderList() { return mutations_; } /** *
     * In this case every `Op` of the mutations must be `PessimisticLock`.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public int getMutationsCount() { return mutations_.size(); } /** *
     * In this case every `Op` of the mutations must be `PessimisticLock`.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.Mutation getMutations(int index) { return mutations_.get(index); } /** *
     * In this case every `Op` of the mutations must be `PessimisticLock`.
     * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.MutationOrBuilder getMutationsOrBuilder( int index) { return mutations_.get(index); } public static final int PRIMARY_LOCK_FIELD_NUMBER = 3; private com.google.protobuf.ByteString primaryLock_; /** * bytes primary_lock = 3; */ public com.google.protobuf.ByteString getPrimaryLock() { return primaryLock_; } public static final int START_VERSION_FIELD_NUMBER = 4; private long startVersion_; /** * uint64 start_version = 4; */ public long getStartVersion() { return startVersion_; } public static final int LOCK_TTL_FIELD_NUMBER = 5; private long lockTtl_; /** * uint64 lock_ttl = 5; */ public long getLockTtl() { return lockTtl_; } public static final int FOR_UPDATE_TS_FIELD_NUMBER = 6; private long forUpdateTs_; /** *
     * Each locking command in a pessimistic transaction has its own timestamp. If locking fails, then
     * the corresponding SQL statement can be retried with a later timestamp, TiDB does not need to
     * retry the whole transaction. The name comes from the `SELECT ... FOR UPDATE` SQL statement which
     * is a locking read. Each `SELECT ... FOR UPDATE` in a transaction will be assigned its own
     * timestamp.
     * 
* * uint64 for_update_ts = 6; */ public long getForUpdateTs() { return forUpdateTs_; } public static final int IS_FIRST_LOCK_FIELD_NUMBER = 7; private boolean isFirstLock_; /** *
     * If the request is the first lock request, we don't need to detect deadlock.
     * 
* * bool is_first_lock = 7; */ public boolean getIsFirstLock() { return isFirstLock_; } public static final int WAIT_TIMEOUT_FIELD_NUMBER = 8; private long waitTimeout_; /** *
     * Time to wait for lock released in milliseconds when encountering locks.
     * 0 means using default timeout in TiKV. Negative means no wait.
     * 
* * int64 wait_timeout = 8; */ public long getWaitTimeout() { return waitTimeout_; } public static final int FORCE_FIELD_NUMBER = 9; private boolean force_; /** *
     * If it is true, TiKV will acquire the pessimistic lock regardless of write conflict
     * and return the latest value. It's only supported for single mutation.
     * 
* * bool force = 9; */ public boolean getForce() { return force_; } public static final int RETURN_VALUES_FIELD_NUMBER = 10; private boolean returnValues_; /** *
     * If it is true, TiKV will return values of the keys if no error, so TiDB can cache the values for
     * later read in the same transaction.
     * When 'force' is set to true, this field is ignored.
     * 
* * bool return_values = 10; */ public boolean getReturnValues() { return returnValues_; } public static final int MIN_COMMIT_TS_FIELD_NUMBER = 11; private long minCommitTs_; /** *
     * If min_commit_ts > 0, this is large transaction proto, the final commit_ts
     * would be infered from min_commit_ts.
     * 
* * uint64 min_commit_ts = 11; */ public long getMinCommitTs() { return minCommitTs_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } for (int i = 0; i < mutations_.size(); i++) { output.writeMessage(2, mutations_.get(i)); } if (!primaryLock_.isEmpty()) { output.writeBytes(3, primaryLock_); } if (startVersion_ != 0L) { output.writeUInt64(4, startVersion_); } if (lockTtl_ != 0L) { output.writeUInt64(5, lockTtl_); } if (forUpdateTs_ != 0L) { output.writeUInt64(6, forUpdateTs_); } if (isFirstLock_ != false) { output.writeBool(7, isFirstLock_); } if (waitTimeout_ != 0L) { output.writeInt64(8, waitTimeout_); } if (force_ != false) { output.writeBool(9, force_); } if (returnValues_ != false) { output.writeBool(10, returnValues_); } if (minCommitTs_ != 0L) { output.writeUInt64(11, minCommitTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } for (int i = 0; i < mutations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, mutations_.get(i)); } if (!primaryLock_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, primaryLock_); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, startVersion_); } if (lockTtl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, lockTtl_); } if (forUpdateTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, forUpdateTs_); } if (isFirstLock_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isFirstLock_); } if (waitTimeout_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, waitTimeout_); } if (force_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, force_); } if (returnValues_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, returnValues_); } if (minCommitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(11, minCommitTs_); } 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.Kvrpcpb.PessimisticLockRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest other = (org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getMutationsList() .equals(other.getMutationsList()); result = result && getPrimaryLock() .equals(other.getPrimaryLock()); result = result && (getStartVersion() == other.getStartVersion()); result = result && (getLockTtl() == other.getLockTtl()); result = result && (getForUpdateTs() == other.getForUpdateTs()); result = result && (getIsFirstLock() == other.getIsFirstLock()); result = result && (getWaitTimeout() == other.getWaitTimeout()); result = result && (getForce() == other.getForce()); result = result && (getReturnValues() == other.getReturnValues()); result = result && (getMinCommitTs() == other.getMinCommitTs()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (getMutationsCount() > 0) { hash = (37 * hash) + MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getMutationsList().hashCode(); } hash = (37 * hash) + PRIMARY_LOCK_FIELD_NUMBER; hash = (53 * hash) + getPrimaryLock().hashCode(); hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (37 * hash) + LOCK_TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLockTtl()); hash = (37 * hash) + FOR_UPDATE_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getForUpdateTs()); hash = (37 * hash) + IS_FIRST_LOCK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsFirstLock()); hash = (37 * hash) + WAIT_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWaitTimeout()); hash = (37 * hash) + FORCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForce()); hash = (37 * hash) + RETURN_VALUES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReturnValues()); hash = (37 * hash) + MIN_COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinCommitTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest 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.Kvrpcpb.PessimisticLockRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest 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.Kvrpcpb.PessimisticLockRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest 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.Kvrpcpb.PessimisticLockRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest 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.Kvrpcpb.PessimisticLockRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest 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.Kvrpcpb.PessimisticLockRequest 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; } /** *
     * Lock a set of keys to prepare to write to them.
     * 
* * Protobuf type {@code kvrpcpb.PessimisticLockRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.PessimisticLockRequest) org.tikv.kvproto.Kvrpcpb.PessimisticLockRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticLockRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticLockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.class, org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMutationsFieldBuilder(); } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } if (mutationsBuilder_ == null) { mutations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { mutationsBuilder_.clear(); } primaryLock_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; lockTtl_ = 0L; forUpdateTs_ = 0L; isFirstLock_ = false; waitTimeout_ = 0L; force_ = false; returnValues_ = false; minCommitTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticLockRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest build() { org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest result = new org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (mutationsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { mutations_ = java.util.Collections.unmodifiableList(mutations_); bitField0_ = (bitField0_ & ~0x00000002); } result.mutations_ = mutations_; } else { result.mutations_ = mutationsBuilder_.build(); } result.primaryLock_ = primaryLock_; result.startVersion_ = startVersion_; result.lockTtl_ = lockTtl_; result.forUpdateTs_ = forUpdateTs_; result.isFirstLock_ = isFirstLock_; result.waitTimeout_ = waitTimeout_; result.force_ = force_; result.returnValues_ = returnValues_; result.minCommitTs_ = minCommitTs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (mutationsBuilder_ == null) { if (!other.mutations_.isEmpty()) { if (mutations_.isEmpty()) { mutations_ = other.mutations_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMutationsIsMutable(); mutations_.addAll(other.mutations_); } onChanged(); } } else { if (!other.mutations_.isEmpty()) { if (mutationsBuilder_.isEmpty()) { mutationsBuilder_.dispose(); mutationsBuilder_ = null; mutations_ = other.mutations_; bitField0_ = (bitField0_ & ~0x00000002); mutationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMutationsFieldBuilder() : null; } else { mutationsBuilder_.addAllMessages(other.mutations_); } } } if (other.getPrimaryLock() != com.google.protobuf.ByteString.EMPTY) { setPrimaryLock(other.getPrimaryLock()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } if (other.getLockTtl() != 0L) { setLockTtl(other.getLockTtl()); } if (other.getForUpdateTs() != 0L) { setForUpdateTs(other.getForUpdateTs()); } if (other.getIsFirstLock() != false) { setIsFirstLock(other.getIsFirstLock()); } if (other.getWaitTimeout() != 0L) { setWaitTimeout(other.getWaitTimeout()); } if (other.getForce() != false) { setForce(other.getForce()); } if (other.getReturnValues() != false) { setReturnValues(other.getReturnValues()); } if (other.getMinCommitTs() != 0L) { setMinCommitTs(other.getMinCommitTs()); } 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.Kvrpcpb.PessimisticLockRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private java.util.List mutations_ = java.util.Collections.emptyList(); private void ensureMutationsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { mutations_ = new java.util.ArrayList(mutations_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Mutation, org.tikv.kvproto.Kvrpcpb.Mutation.Builder, org.tikv.kvproto.Kvrpcpb.MutationOrBuilder> mutationsBuilder_; /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public java.util.List getMutationsList() { if (mutationsBuilder_ == null) { return java.util.Collections.unmodifiableList(mutations_); } else { return mutationsBuilder_.getMessageList(); } } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public int getMutationsCount() { if (mutationsBuilder_ == null) { return mutations_.size(); } else { return mutationsBuilder_.getCount(); } } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.Mutation getMutations(int index) { if (mutationsBuilder_ == null) { return mutations_.get(index); } else { return mutationsBuilder_.getMessage(index); } } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder setMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation value) { if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutationsIsMutable(); mutations_.set(index, value); onChanged(); } else { mutationsBuilder_.setMessage(index, value); } return this; } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder setMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation.Builder builderForValue) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.set(index, builderForValue.build()); onChanged(); } else { mutationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder addMutations(org.tikv.kvproto.Kvrpcpb.Mutation value) { if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutationsIsMutable(); mutations_.add(value); onChanged(); } else { mutationsBuilder_.addMessage(value); } return this; } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder addMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation value) { if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutationsIsMutable(); mutations_.add(index, value); onChanged(); } else { mutationsBuilder_.addMessage(index, value); } return this; } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder addMutations( org.tikv.kvproto.Kvrpcpb.Mutation.Builder builderForValue) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.add(builderForValue.build()); onChanged(); } else { mutationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder addMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation.Builder builderForValue) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.add(index, builderForValue.build()); onChanged(); } else { mutationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder addAllMutations( java.lang.Iterable values) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, mutations_); onChanged(); } else { mutationsBuilder_.addAllMessages(values); } return this; } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder clearMutations() { if (mutationsBuilder_ == null) { mutations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { mutationsBuilder_.clear(); } return this; } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public Builder removeMutations(int index) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.remove(index); onChanged(); } else { mutationsBuilder_.remove(index); } return this; } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.Mutation.Builder getMutationsBuilder( int index) { return getMutationsFieldBuilder().getBuilder(index); } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.MutationOrBuilder getMutationsOrBuilder( int index) { if (mutationsBuilder_ == null) { return mutations_.get(index); } else { return mutationsBuilder_.getMessageOrBuilder(index); } } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public java.util.List getMutationsOrBuilderList() { if (mutationsBuilder_ != null) { return mutationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(mutations_); } } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.Mutation.Builder addMutationsBuilder() { return getMutationsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.Mutation.getDefaultInstance()); } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public org.tikv.kvproto.Kvrpcpb.Mutation.Builder addMutationsBuilder( int index) { return getMutationsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.Mutation.getDefaultInstance()); } /** *
       * In this case every `Op` of the mutations must be `PessimisticLock`.
       * 
* * repeated .kvrpcpb.Mutation mutations = 2; */ public java.util.List getMutationsBuilderList() { return getMutationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Mutation, org.tikv.kvproto.Kvrpcpb.Mutation.Builder, org.tikv.kvproto.Kvrpcpb.MutationOrBuilder> getMutationsFieldBuilder() { if (mutationsBuilder_ == null) { mutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Mutation, org.tikv.kvproto.Kvrpcpb.Mutation.Builder, org.tikv.kvproto.Kvrpcpb.MutationOrBuilder>( mutations_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); mutations_ = null; } return mutationsBuilder_; } private com.google.protobuf.ByteString primaryLock_ = com.google.protobuf.ByteString.EMPTY; /** * bytes primary_lock = 3; */ public com.google.protobuf.ByteString getPrimaryLock() { return primaryLock_; } /** * bytes primary_lock = 3; */ public Builder setPrimaryLock(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } primaryLock_ = value; onChanged(); return this; } /** * bytes primary_lock = 3; */ public Builder clearPrimaryLock() { primaryLock_ = getDefaultInstance().getPrimaryLock(); onChanged(); return this; } private long startVersion_ ; /** * uint64 start_version = 4; */ public long getStartVersion() { return startVersion_; } /** * uint64 start_version = 4; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** * uint64 start_version = 4; */ public Builder clearStartVersion() { startVersion_ = 0L; onChanged(); return this; } private long lockTtl_ ; /** * uint64 lock_ttl = 5; */ public long getLockTtl() { return lockTtl_; } /** * uint64 lock_ttl = 5; */ public Builder setLockTtl(long value) { lockTtl_ = value; onChanged(); return this; } /** * uint64 lock_ttl = 5; */ public Builder clearLockTtl() { lockTtl_ = 0L; onChanged(); return this; } private long forUpdateTs_ ; /** *
       * Each locking command in a pessimistic transaction has its own timestamp. If locking fails, then
       * the corresponding SQL statement can be retried with a later timestamp, TiDB does not need to
       * retry the whole transaction. The name comes from the `SELECT ... FOR UPDATE` SQL statement which
       * is a locking read. Each `SELECT ... FOR UPDATE` in a transaction will be assigned its own
       * timestamp.
       * 
* * uint64 for_update_ts = 6; */ public long getForUpdateTs() { return forUpdateTs_; } /** *
       * Each locking command in a pessimistic transaction has its own timestamp. If locking fails, then
       * the corresponding SQL statement can be retried with a later timestamp, TiDB does not need to
       * retry the whole transaction. The name comes from the `SELECT ... FOR UPDATE` SQL statement which
       * is a locking read. Each `SELECT ... FOR UPDATE` in a transaction will be assigned its own
       * timestamp.
       * 
* * uint64 for_update_ts = 6; */ public Builder setForUpdateTs(long value) { forUpdateTs_ = value; onChanged(); return this; } /** *
       * Each locking command in a pessimistic transaction has its own timestamp. If locking fails, then
       * the corresponding SQL statement can be retried with a later timestamp, TiDB does not need to
       * retry the whole transaction. The name comes from the `SELECT ... FOR UPDATE` SQL statement which
       * is a locking read. Each `SELECT ... FOR UPDATE` in a transaction will be assigned its own
       * timestamp.
       * 
* * uint64 for_update_ts = 6; */ public Builder clearForUpdateTs() { forUpdateTs_ = 0L; onChanged(); return this; } private boolean isFirstLock_ ; /** *
       * If the request is the first lock request, we don't need to detect deadlock.
       * 
* * bool is_first_lock = 7; */ public boolean getIsFirstLock() { return isFirstLock_; } /** *
       * If the request is the first lock request, we don't need to detect deadlock.
       * 
* * bool is_first_lock = 7; */ public Builder setIsFirstLock(boolean value) { isFirstLock_ = value; onChanged(); return this; } /** *
       * If the request is the first lock request, we don't need to detect deadlock.
       * 
* * bool is_first_lock = 7; */ public Builder clearIsFirstLock() { isFirstLock_ = false; onChanged(); return this; } private long waitTimeout_ ; /** *
       * Time to wait for lock released in milliseconds when encountering locks.
       * 0 means using default timeout in TiKV. Negative means no wait.
       * 
* * int64 wait_timeout = 8; */ public long getWaitTimeout() { return waitTimeout_; } /** *
       * Time to wait for lock released in milliseconds when encountering locks.
       * 0 means using default timeout in TiKV. Negative means no wait.
       * 
* * int64 wait_timeout = 8; */ public Builder setWaitTimeout(long value) { waitTimeout_ = value; onChanged(); return this; } /** *
       * Time to wait for lock released in milliseconds when encountering locks.
       * 0 means using default timeout in TiKV. Negative means no wait.
       * 
* * int64 wait_timeout = 8; */ public Builder clearWaitTimeout() { waitTimeout_ = 0L; onChanged(); return this; } private boolean force_ ; /** *
       * If it is true, TiKV will acquire the pessimistic lock regardless of write conflict
       * and return the latest value. It's only supported for single mutation.
       * 
* * bool force = 9; */ public boolean getForce() { return force_; } /** *
       * If it is true, TiKV will acquire the pessimistic lock regardless of write conflict
       * and return the latest value. It's only supported for single mutation.
       * 
* * bool force = 9; */ public Builder setForce(boolean value) { force_ = value; onChanged(); return this; } /** *
       * If it is true, TiKV will acquire the pessimistic lock regardless of write conflict
       * and return the latest value. It's only supported for single mutation.
       * 
* * bool force = 9; */ public Builder clearForce() { force_ = false; onChanged(); return this; } private boolean returnValues_ ; /** *
       * If it is true, TiKV will return values of the keys if no error, so TiDB can cache the values for
       * later read in the same transaction.
       * When 'force' is set to true, this field is ignored.
       * 
* * bool return_values = 10; */ public boolean getReturnValues() { return returnValues_; } /** *
       * If it is true, TiKV will return values of the keys if no error, so TiDB can cache the values for
       * later read in the same transaction.
       * When 'force' is set to true, this field is ignored.
       * 
* * bool return_values = 10; */ public Builder setReturnValues(boolean value) { returnValues_ = value; onChanged(); return this; } /** *
       * If it is true, TiKV will return values of the keys if no error, so TiDB can cache the values for
       * later read in the same transaction.
       * When 'force' is set to true, this field is ignored.
       * 
* * bool return_values = 10; */ public Builder clearReturnValues() { returnValues_ = false; onChanged(); return this; } private long minCommitTs_ ; /** *
       * If min_commit_ts > 0, this is large transaction proto, the final commit_ts
       * would be infered from min_commit_ts.
       * 
* * uint64 min_commit_ts = 11; */ public long getMinCommitTs() { return minCommitTs_; } /** *
       * If min_commit_ts > 0, this is large transaction proto, the final commit_ts
       * would be infered from min_commit_ts.
       * 
* * uint64 min_commit_ts = 11; */ public Builder setMinCommitTs(long value) { minCommitTs_ = value; onChanged(); return this; } /** *
       * If min_commit_ts > 0, this is large transaction proto, the final commit_ts
       * would be infered from min_commit_ts.
       * 
* * uint64 min_commit_ts = 11; */ public Builder clearMinCommitTs() { minCommitTs_ = 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:kvrpcpb.PessimisticLockRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.PessimisticLockRequest) private static final org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest(); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PessimisticLockRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PessimisticLockRequest(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.Kvrpcpb.PessimisticLockRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PessimisticLockResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.PessimisticLockResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * repeated .kvrpcpb.KeyError errors = 2; */ java.util.List getErrorsList(); /** * repeated .kvrpcpb.KeyError errors = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getErrors(int index); /** * repeated .kvrpcpb.KeyError errors = 2; */ int getErrorsCount(); /** * repeated .kvrpcpb.KeyError errors = 2; */ java.util.List getErrorsOrBuilderList(); /** * repeated .kvrpcpb.KeyError errors = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorsOrBuilder( int index); /** *
     * It carries the latest value and its commit ts if force in PessimisticLockRequest is true.
     * 
* * uint64 commit_ts = 3; */ long getCommitTs(); /** * bytes value = 4; */ com.google.protobuf.ByteString getValue(); /** *
     * The values is set if 'return_values' is true in the request and no error.
     * If 'force' is true, this field is not used.
     * 
* * repeated bytes values = 5; */ java.util.List getValuesList(); /** *
     * The values is set if 'return_values' is true in the request and no error.
     * If 'force' is true, this field is not used.
     * 
* * repeated bytes values = 5; */ int getValuesCount(); /** *
     * The values is set if 'return_values' is true in the request and no error.
     * If 'force' is true, this field is not used.
     * 
* * repeated bytes values = 5; */ com.google.protobuf.ByteString getValues(int index); /** *
     * Indicates whether the values at the same index is correspond to an existing key.
     * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
     * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
     * 
* * repeated bool not_founds = 6; */ java.util.List getNotFoundsList(); /** *
     * Indicates whether the values at the same index is correspond to an existing key.
     * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
     * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
     * 
* * repeated bool not_founds = 6; */ int getNotFoundsCount(); /** *
     * Indicates whether the values at the same index is correspond to an existing key.
     * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
     * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
     * 
* * repeated bool not_founds = 6; */ boolean getNotFounds(int index); } /** * Protobuf type {@code kvrpcpb.PessimisticLockResponse} */ public static final class PessimisticLockResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.PessimisticLockResponse) PessimisticLockResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PessimisticLockResponse.newBuilder() to construct. private PessimisticLockResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PessimisticLockResponse() { errors_ = java.util.Collections.emptyList(); commitTs_ = 0L; value_ = com.google.protobuf.ByteString.EMPTY; values_ = java.util.Collections.emptyList(); notFounds_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PessimisticLockResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { errors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } errors_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry)); break; } case 24: { commitTs_ = input.readUInt64(); break; } case 34: { value_ = input.readBytes(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { values_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } values_.add(input.readBytes()); break; } case 48: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { notFounds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } notFounds_.add(input.readBool()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { notFounds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } while (input.getBytesUntilLimit() > 0) { notFounds_.add(input.readBool()); } input.popLimit(limit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { errors_ = java.util.Collections.unmodifiableList(errors_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { values_ = java.util.Collections.unmodifiableList(values_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { notFounds_ = java.util.Collections.unmodifiableList(notFounds_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticLockResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticLockResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.class, org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERRORS_FIELD_NUMBER = 2; private java.util.List errors_; /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsList() { return errors_; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsOrBuilderList() { return errors_; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public int getErrorsCount() { return errors_.size(); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getErrors(int index) { return errors_.get(index); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorsOrBuilder( int index) { return errors_.get(index); } public static final int COMMIT_TS_FIELD_NUMBER = 3; private long commitTs_; /** *
     * It carries the latest value and its commit ts if force in PessimisticLockRequest is true.
     * 
* * uint64 commit_ts = 3; */ public long getCommitTs() { return commitTs_; } public static final int VALUE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString value_; /** * bytes value = 4; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int VALUES_FIELD_NUMBER = 5; private java.util.List values_; /** *
     * The values is set if 'return_values' is true in the request and no error.
     * If 'force' is true, this field is not used.
     * 
* * repeated bytes values = 5; */ public java.util.List getValuesList() { return values_; } /** *
     * The values is set if 'return_values' is true in the request and no error.
     * If 'force' is true, this field is not used.
     * 
* * repeated bytes values = 5; */ public int getValuesCount() { return values_.size(); } /** *
     * The values is set if 'return_values' is true in the request and no error.
     * If 'force' is true, this field is not used.
     * 
* * repeated bytes values = 5; */ public com.google.protobuf.ByteString getValues(int index) { return values_.get(index); } public static final int NOT_FOUNDS_FIELD_NUMBER = 6; private java.util.List notFounds_; /** *
     * Indicates whether the values at the same index is correspond to an existing key.
     * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
     * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
     * 
* * repeated bool not_founds = 6; */ public java.util.List getNotFoundsList() { return notFounds_; } /** *
     * Indicates whether the values at the same index is correspond to an existing key.
     * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
     * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
     * 
* * repeated bool not_founds = 6; */ public int getNotFoundsCount() { return notFounds_.size(); } /** *
     * Indicates whether the values at the same index is correspond to an existing key.
     * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
     * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
     * 
* * repeated bool not_founds = 6; */ public boolean getNotFounds(int index) { return notFounds_.get(index); } private int notFoundsMemoizedSerializedSize = -1; private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (regionError_ != null) { output.writeMessage(1, getRegionError()); } for (int i = 0; i < errors_.size(); i++) { output.writeMessage(2, errors_.get(i)); } if (commitTs_ != 0L) { output.writeUInt64(3, commitTs_); } if (!value_.isEmpty()) { output.writeBytes(4, value_); } for (int i = 0; i < values_.size(); i++) { output.writeBytes(5, values_.get(i)); } if (getNotFoundsList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(notFoundsMemoizedSerializedSize); } for (int i = 0; i < notFounds_.size(); i++) { output.writeBoolNoTag(notFounds_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } for (int i = 0; i < errors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, errors_.get(i)); } if (commitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, commitTs_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, value_); } { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(values_.get(i)); } size += dataSize; size += 1 * getValuesList().size(); } { int dataSize = 0; dataSize = 1 * getNotFoundsList().size(); size += dataSize; if (!getNotFoundsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } notFoundsMemoizedSerializedSize = dataSize; } 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.Kvrpcpb.PessimisticLockResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse other = (org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getErrorsList() .equals(other.getErrorsList()); result = result && (getCommitTs() == other.getCommitTs()); result = result && getValue() .equals(other.getValue()); result = result && getValuesList() .equals(other.getValuesList()); result = result && getNotFoundsList() .equals(other.getNotFoundsList()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (getErrorsCount() > 0) { hash = (37 * hash) + ERRORS_FIELD_NUMBER; hash = (53 * hash) + getErrorsList().hashCode(); } hash = (37 * hash) + COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitTs()); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } if (getNotFoundsCount() > 0) { hash = (37 * hash) + NOT_FOUNDS_FIELD_NUMBER; hash = (53 * hash) + getNotFoundsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse 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.Kvrpcpb.PessimisticLockResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse 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.Kvrpcpb.PessimisticLockResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse 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.Kvrpcpb.PessimisticLockResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse 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.Kvrpcpb.PessimisticLockResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse 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.Kvrpcpb.PessimisticLockResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.PessimisticLockResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.PessimisticLockResponse) org.tikv.kvproto.Kvrpcpb.PessimisticLockResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticLockResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticLockResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.class, org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { errorsBuilder_.clear(); } commitTs_ = 0L; value_ = com.google.protobuf.ByteString.EMPTY; values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); notFounds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticLockResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse build() { org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse result = new org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { errors_ = java.util.Collections.unmodifiableList(errors_); bitField0_ = (bitField0_ & ~0x00000002); } result.errors_ = errors_; } else { result.errors_ = errorsBuilder_.build(); } result.commitTs_ = commitTs_; result.value_ = value_; if (((bitField0_ & 0x00000010) == 0x00000010)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000010); } result.values_ = values_; if (((bitField0_ & 0x00000020) == 0x00000020)) { notFounds_ = java.util.Collections.unmodifiableList(notFounds_); bitField0_ = (bitField0_ & ~0x00000020); } result.notFounds_ = notFounds_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (errorsBuilder_ == null) { if (!other.errors_.isEmpty()) { if (errors_.isEmpty()) { errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureErrorsIsMutable(); errors_.addAll(other.errors_); } onChanged(); } } else { if (!other.errors_.isEmpty()) { if (errorsBuilder_.isEmpty()) { errorsBuilder_.dispose(); errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000002); errorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } } } if (other.getCommitTs() != 0L) { setCommitTs(other.getCommitTs()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } if (!other.notFounds_.isEmpty()) { if (notFounds_.isEmpty()) { notFounds_ = other.notFounds_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureNotFoundsIsMutable(); notFounds_.addAll(other.notFounds_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.util.List errors_ = java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorsBuilder_; /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { return errorsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public int getErrorsCount() { if (errorsBuilder_ == null) { return errors_.size(); } else { return errorsBuilder_.getCount(); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getErrors(int index) { if (errorsBuilder_ == null) { return errors_.get(index); } else { return errorsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder setErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.set(index, value); onChanged(); } else { errorsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder setErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.set(index, builderForValue.build()); onChanged(); } else { errorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.add(value); onChanged(); } else { errorsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.add(index, value); onChanged(); } else { errorsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); onChanged(); } else { errorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(index, builderForValue.build()); onChanged(); } else { errorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder clearErrors() { if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { errorsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.remove(index); onChanged(); } else { errorsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorsBuilder( int index) { return getErrorsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorsOrBuilder( int index) { if (errorsBuilder_ == null) { return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(errors_); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder addErrorsBuilder() { return getErrorsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance()); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder addErrorsBuilder( int index) { return getErrorsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance()); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( errors_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } private long commitTs_ ; /** *
       * It carries the latest value and its commit ts if force in PessimisticLockRequest is true.
       * 
* * uint64 commit_ts = 3; */ public long getCommitTs() { return commitTs_; } /** *
       * It carries the latest value and its commit ts if force in PessimisticLockRequest is true.
       * 
* * uint64 commit_ts = 3; */ public Builder setCommitTs(long value) { commitTs_ = value; onChanged(); return this; } /** *
       * It carries the latest value and its commit ts if force in PessimisticLockRequest is true.
       * 
* * uint64 commit_ts = 3; */ public Builder clearCommitTs() { commitTs_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 4; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 4; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 4; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private java.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000010; } } /** *
       * The values is set if 'return_values' is true in the request and no error.
       * If 'force' is true, this field is not used.
       * 
* * repeated bytes values = 5; */ public java.util.List getValuesList() { return java.util.Collections.unmodifiableList(values_); } /** *
       * The values is set if 'return_values' is true in the request and no error.
       * If 'force' is true, this field is not used.
       * 
* * repeated bytes values = 5; */ public int getValuesCount() { return values_.size(); } /** *
       * The values is set if 'return_values' is true in the request and no error.
       * If 'force' is true, this field is not used.
       * 
* * repeated bytes values = 5; */ public com.google.protobuf.ByteString getValues(int index) { return values_.get(index); } /** *
       * The values is set if 'return_values' is true in the request and no error.
       * If 'force' is true, this field is not used.
       * 
* * repeated bytes values = 5; */ public Builder setValues( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** *
       * The values is set if 'return_values' is true in the request and no error.
       * If 'force' is true, this field is not used.
       * 
* * repeated bytes values = 5; */ public Builder addValues(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** *
       * The values is set if 'return_values' is true in the request and no error.
       * If 'force' is true, this field is not used.
       * 
* * repeated bytes values = 5; */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); return this; } /** *
       * The values is set if 'return_values' is true in the request and no error.
       * If 'force' is true, this field is not used.
       * 
* * repeated bytes values = 5; */ public Builder clearValues() { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } private java.util.List notFounds_ = java.util.Collections.emptyList(); private void ensureNotFoundsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { notFounds_ = new java.util.ArrayList(notFounds_); bitField0_ |= 0x00000020; } } /** *
       * Indicates whether the values at the same index is correspond to an existing key.
       * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
       * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
       * 
* * repeated bool not_founds = 6; */ public java.util.List getNotFoundsList() { return java.util.Collections.unmodifiableList(notFounds_); } /** *
       * Indicates whether the values at the same index is correspond to an existing key.
       * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
       * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
       * 
* * repeated bool not_founds = 6; */ public int getNotFoundsCount() { return notFounds_.size(); } /** *
       * Indicates whether the values at the same index is correspond to an existing key.
       * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
       * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
       * 
* * repeated bool not_founds = 6; */ public boolean getNotFounds(int index) { return notFounds_.get(index); } /** *
       * Indicates whether the values at the same index is correspond to an existing key.
       * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
       * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
       * 
* * repeated bool not_founds = 6; */ public Builder setNotFounds( int index, boolean value) { ensureNotFoundsIsMutable(); notFounds_.set(index, value); onChanged(); return this; } /** *
       * Indicates whether the values at the same index is correspond to an existing key.
       * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
       * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
       * 
* * repeated bool not_founds = 6; */ public Builder addNotFounds(boolean value) { ensureNotFoundsIsMutable(); notFounds_.add(value); onChanged(); return this; } /** *
       * Indicates whether the values at the same index is correspond to an existing key.
       * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
       * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
       * 
* * repeated bool not_founds = 6; */ public Builder addAllNotFounds( java.lang.Iterable values) { ensureNotFoundsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, notFounds_); onChanged(); return this; } /** *
       * Indicates whether the values at the same index is correspond to an existing key.
       * In legacy TiKV, this field is not used even 'force' is false. In that case, an empty value indicates
       * two possible situations: (1) the key does not exist. (2) the key exists but the value is empty.
       * 
* * repeated bool not_founds = 6; */ public Builder clearNotFounds() { notFounds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); 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:kvrpcpb.PessimisticLockResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.PessimisticLockResponse) private static final org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse(); } public static org.tikv.kvproto.Kvrpcpb.PessimisticLockResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PessimisticLockResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PessimisticLockResponse(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.Kvrpcpb.PessimisticLockResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PessimisticRollbackRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.PessimisticRollbackRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * uint64 start_version = 2; */ long getStartVersion(); /** * uint64 for_update_ts = 3; */ long getForUpdateTs(); /** * repeated bytes keys = 4; */ java.util.List getKeysList(); /** * repeated bytes keys = 4; */ int getKeysCount(); /** * repeated bytes keys = 4; */ com.google.protobuf.ByteString getKeys(int index); } /** *
   * Unlock keys locked using `PessimisticLockRequest`.
   * 
* * Protobuf type {@code kvrpcpb.PessimisticRollbackRequest} */ public static final class PessimisticRollbackRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.PessimisticRollbackRequest) PessimisticRollbackRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PessimisticRollbackRequest.newBuilder() to construct. private PessimisticRollbackRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PessimisticRollbackRequest() { startVersion_ = 0L; forUpdateTs_ = 0L; keys_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PessimisticRollbackRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { startVersion_ = input.readUInt64(); break; } case 24: { forUpdateTs_ = input.readUInt64(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } keys_.add(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 { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { keys_ = java.util.Collections.unmodifiableList(keys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticRollbackRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticRollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.class, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_VERSION_FIELD_NUMBER = 2; private long startVersion_; /** * uint64 start_version = 2; */ public long getStartVersion() { return startVersion_; } public static final int FOR_UPDATE_TS_FIELD_NUMBER = 3; private long forUpdateTs_; /** * uint64 for_update_ts = 3; */ public long getForUpdateTs() { return forUpdateTs_; } public static final int KEYS_FIELD_NUMBER = 4; private java.util.List keys_; /** * repeated bytes keys = 4; */ public java.util.List getKeysList() { return keys_; } /** * repeated bytes keys = 4; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 4; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (startVersion_ != 0L) { output.writeUInt64(2, startVersion_); } if (forUpdateTs_ != 0L) { output.writeUInt64(3, forUpdateTs_); } for (int i = 0; i < keys_.size(); i++) { output.writeBytes(4, keys_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, startVersion_); } if (forUpdateTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, forUpdateTs_); } { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(keys_.get(i)); } size += dataSize; size += 1 * getKeysList().size(); } 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.Kvrpcpb.PessimisticRollbackRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest other = (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getStartVersion() == other.getStartVersion()); result = result && (getForUpdateTs() == other.getForUpdateTs()); result = result && getKeysList() .equals(other.getKeysList()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (37 * hash) + FOR_UPDATE_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getForUpdateTs()); if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest 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.Kvrpcpb.PessimisticRollbackRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest 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.Kvrpcpb.PessimisticRollbackRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest 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.Kvrpcpb.PessimisticRollbackRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest 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.Kvrpcpb.PessimisticRollbackRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest 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.Kvrpcpb.PessimisticRollbackRequest 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; } /** *
     * Unlock keys locked using `PessimisticLockRequest`.
     * 
* * Protobuf type {@code kvrpcpb.PessimisticRollbackRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.PessimisticRollbackRequest) org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticRollbackRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticRollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.class, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } startVersion_ = 0L; forUpdateTs_ = 0L; keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticRollbackRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest build() { org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest result = new org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.startVersion_ = startVersion_; result.forUpdateTs_ = forUpdateTs_; if (((bitField0_ & 0x00000008) == 0x00000008)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000008); } result.keys_ = keys_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } if (other.getForUpdateTs() != 0L) { setForUpdateTs(other.getForUpdateTs()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long startVersion_ ; /** * uint64 start_version = 2; */ public long getStartVersion() { return startVersion_; } /** * uint64 start_version = 2; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** * uint64 start_version = 2; */ public Builder clearStartVersion() { startVersion_ = 0L; onChanged(); return this; } private long forUpdateTs_ ; /** * uint64 for_update_ts = 3; */ public long getForUpdateTs() { return forUpdateTs_; } /** * uint64 for_update_ts = 3; */ public Builder setForUpdateTs(long value) { forUpdateTs_ = value; onChanged(); return this; } /** * uint64 for_update_ts = 3; */ public Builder clearForUpdateTs() { forUpdateTs_ = 0L; onChanged(); return this; } private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000008; } } /** * repeated bytes keys = 4; */ public java.util.List getKeysList() { return java.util.Collections.unmodifiableList(keys_); } /** * repeated bytes keys = 4; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 4; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } /** * repeated bytes keys = 4; */ public Builder setKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** * repeated bytes keys = 4; */ public Builder addKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** * repeated bytes keys = 4; */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** * repeated bytes keys = 4; */ public Builder clearKeys() { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); 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:kvrpcpb.PessimisticRollbackRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.PessimisticRollbackRequest) private static final org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest(); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PessimisticRollbackRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PessimisticRollbackRequest(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.Kvrpcpb.PessimisticRollbackRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PessimisticRollbackResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.PessimisticRollbackResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * repeated .kvrpcpb.KeyError errors = 2; */ java.util.List getErrorsList(); /** * repeated .kvrpcpb.KeyError errors = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getErrors(int index); /** * repeated .kvrpcpb.KeyError errors = 2; */ int getErrorsCount(); /** * repeated .kvrpcpb.KeyError errors = 2; */ java.util.List getErrorsOrBuilderList(); /** * repeated .kvrpcpb.KeyError errors = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorsOrBuilder( int index); } /** * Protobuf type {@code kvrpcpb.PessimisticRollbackResponse} */ public static final class PessimisticRollbackResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.PessimisticRollbackResponse) PessimisticRollbackResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PessimisticRollbackResponse.newBuilder() to construct. private PessimisticRollbackResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PessimisticRollbackResponse() { errors_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PessimisticRollbackResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { errors_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } errors_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { errors_ = java.util.Collections.unmodifiableList(errors_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticRollbackResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticRollbackResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.class, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERRORS_FIELD_NUMBER = 2; private java.util.List errors_; /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsList() { return errors_; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsOrBuilderList() { return errors_; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public int getErrorsCount() { return errors_.size(); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getErrors(int index) { return errors_.get(index); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorsOrBuilder( int index) { return errors_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } for (int i = 0; i < errors_.size(); i++) { output.writeMessage(2, errors_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } for (int i = 0; i < errors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, errors_.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.Kvrpcpb.PessimisticRollbackResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse other = (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getErrorsList() .equals(other.getErrorsList()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (getErrorsCount() > 0) { hash = (37 * hash) + ERRORS_FIELD_NUMBER; hash = (53 * hash) + getErrorsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse 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.Kvrpcpb.PessimisticRollbackResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse 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.Kvrpcpb.PessimisticRollbackResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse 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.Kvrpcpb.PessimisticRollbackResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse 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.Kvrpcpb.PessimisticRollbackResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse 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.Kvrpcpb.PessimisticRollbackResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.PessimisticRollbackResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.PessimisticRollbackResponse) org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticRollbackResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticRollbackResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.class, org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { errorsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PessimisticRollbackResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse build() { org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse result = new org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { errors_ = java.util.Collections.unmodifiableList(errors_); bitField0_ = (bitField0_ & ~0x00000002); } result.errors_ = errors_; } else { result.errors_ = errorsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (errorsBuilder_ == null) { if (!other.errors_.isEmpty()) { if (errors_.isEmpty()) { errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureErrorsIsMutable(); errors_.addAll(other.errors_); } onChanged(); } } else { if (!other.errors_.isEmpty()) { if (errorsBuilder_.isEmpty()) { errorsBuilder_.dispose(); errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000002); errorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } } } 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.Kvrpcpb.PessimisticRollbackResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.util.List errors_ = java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorsBuilder_; /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { return errorsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public int getErrorsCount() { if (errorsBuilder_ == null) { return errors_.size(); } else { return errorsBuilder_.getCount(); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getErrors(int index) { if (errorsBuilder_ == null) { return errors_.get(index); } else { return errorsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder setErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.set(index, value); onChanged(); } else { errorsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder setErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.set(index, builderForValue.build()); onChanged(); } else { errorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.add(value); onChanged(); } else { errorsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureErrorsIsMutable(); errors_.add(index, value); onChanged(); } else { errorsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); onChanged(); } else { errorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addErrors( int index, org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(index, builderForValue.build()); onChanged(); } else { errorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder clearErrors() { if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { errorsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.remove(index); onChanged(); } else { errorsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorsBuilder( int index) { return getErrorsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorsOrBuilder( int index) { if (errorsBuilder_ == null) { return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(errors_); } } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder addErrorsBuilder() { return getErrorsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance()); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder addErrorsBuilder( int index) { return getErrorsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance()); } /** * repeated .kvrpcpb.KeyError errors = 2; */ public java.util.List getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( errors_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } 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:kvrpcpb.PessimisticRollbackResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.PessimisticRollbackResponse) private static final org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse(); } public static org.tikv.kvproto.Kvrpcpb.PessimisticRollbackResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PessimisticRollbackResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PessimisticRollbackResponse(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.Kvrpcpb.PessimisticRollbackResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TxnHeartBeatRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.TxnHeartBeatRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** *
     * The key of the lock to update.
     * 
* * bytes primary_lock = 2; */ com.google.protobuf.ByteString getPrimaryLock(); /** *
     * Start timestamp of the large transaction.
     * 
* * uint64 start_version = 3; */ long getStartVersion(); /** *
     * The new TTL the sender would like.
     * 
* * uint64 advise_lock_ttl = 4; */ long getAdviseLockTtl(); } /** *
   * Used to update the lock_ttl of a psessimistic and/or large transaction to prevent it from been killed.
   * 
* * Protobuf type {@code kvrpcpb.TxnHeartBeatRequest} */ public static final class TxnHeartBeatRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.TxnHeartBeatRequest) TxnHeartBeatRequestOrBuilder { private static final long serialVersionUID = 0L; // Use TxnHeartBeatRequest.newBuilder() to construct. private TxnHeartBeatRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TxnHeartBeatRequest() { primaryLock_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; adviseLockTtl_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TxnHeartBeatRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { primaryLock_ = input.readBytes(); break; } case 24: { startVersion_ = input.readUInt64(); break; } case 32: { adviseLockTtl_ = 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.Kvrpcpb.internal_static_kvrpcpb_TxnHeartBeatRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnHeartBeatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.class, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int PRIMARY_LOCK_FIELD_NUMBER = 2; private com.google.protobuf.ByteString primaryLock_; /** *
     * The key of the lock to update.
     * 
* * bytes primary_lock = 2; */ public com.google.protobuf.ByteString getPrimaryLock() { return primaryLock_; } public static final int START_VERSION_FIELD_NUMBER = 3; private long startVersion_; /** *
     * Start timestamp of the large transaction.
     * 
* * uint64 start_version = 3; */ public long getStartVersion() { return startVersion_; } public static final int ADVISE_LOCK_TTL_FIELD_NUMBER = 4; private long adviseLockTtl_; /** *
     * The new TTL the sender would like.
     * 
* * uint64 advise_lock_ttl = 4; */ public long getAdviseLockTtl() { return adviseLockTtl_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!primaryLock_.isEmpty()) { output.writeBytes(2, primaryLock_); } if (startVersion_ != 0L) { output.writeUInt64(3, startVersion_); } if (adviseLockTtl_ != 0L) { output.writeUInt64(4, adviseLockTtl_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!primaryLock_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, primaryLock_); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, startVersion_); } if (adviseLockTtl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, adviseLockTtl_); } 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.Kvrpcpb.TxnHeartBeatRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest other = (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getPrimaryLock() .equals(other.getPrimaryLock()); result = result && (getStartVersion() == other.getStartVersion()); result = result && (getAdviseLockTtl() == other.getAdviseLockTtl()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + PRIMARY_LOCK_FIELD_NUMBER; hash = (53 * hash) + getPrimaryLock().hashCode(); hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (37 * hash) + ADVISE_LOCK_TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAdviseLockTtl()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest 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.Kvrpcpb.TxnHeartBeatRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest 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.Kvrpcpb.TxnHeartBeatRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest 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.Kvrpcpb.TxnHeartBeatRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest 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.Kvrpcpb.TxnHeartBeatRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest 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.Kvrpcpb.TxnHeartBeatRequest 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; } /** *
     * Used to update the lock_ttl of a psessimistic and/or large transaction to prevent it from been killed.
     * 
* * Protobuf type {@code kvrpcpb.TxnHeartBeatRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.TxnHeartBeatRequest) org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnHeartBeatRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnHeartBeatRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.class, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } primaryLock_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; adviseLockTtl_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnHeartBeatRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest build() { org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest result = new org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.primaryLock_ = primaryLock_; result.startVersion_ = startVersion_; result.adviseLockTtl_ = adviseLockTtl_; 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.Kvrpcpb.TxnHeartBeatRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getPrimaryLock() != com.google.protobuf.ByteString.EMPTY) { setPrimaryLock(other.getPrimaryLock()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } if (other.getAdviseLockTtl() != 0L) { setAdviseLockTtl(other.getAdviseLockTtl()); } 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.Kvrpcpb.TxnHeartBeatRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString primaryLock_ = com.google.protobuf.ByteString.EMPTY; /** *
       * The key of the lock to update.
       * 
* * bytes primary_lock = 2; */ public com.google.protobuf.ByteString getPrimaryLock() { return primaryLock_; } /** *
       * The key of the lock to update.
       * 
* * bytes primary_lock = 2; */ public Builder setPrimaryLock(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } primaryLock_ = value; onChanged(); return this; } /** *
       * The key of the lock to update.
       * 
* * bytes primary_lock = 2; */ public Builder clearPrimaryLock() { primaryLock_ = getDefaultInstance().getPrimaryLock(); onChanged(); return this; } private long startVersion_ ; /** *
       * Start timestamp of the large transaction.
       * 
* * uint64 start_version = 3; */ public long getStartVersion() { return startVersion_; } /** *
       * Start timestamp of the large transaction.
       * 
* * uint64 start_version = 3; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** *
       * Start timestamp of the large transaction.
       * 
* * uint64 start_version = 3; */ public Builder clearStartVersion() { startVersion_ = 0L; onChanged(); return this; } private long adviseLockTtl_ ; /** *
       * The new TTL the sender would like.
       * 
* * uint64 advise_lock_ttl = 4; */ public long getAdviseLockTtl() { return adviseLockTtl_; } /** *
       * The new TTL the sender would like.
       * 
* * uint64 advise_lock_ttl = 4; */ public Builder setAdviseLockTtl(long value) { adviseLockTtl_ = value; onChanged(); return this; } /** *
       * The new TTL the sender would like.
       * 
* * uint64 advise_lock_ttl = 4; */ public Builder clearAdviseLockTtl() { adviseLockTtl_ = 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:kvrpcpb.TxnHeartBeatRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.TxnHeartBeatRequest) private static final org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest(); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TxnHeartBeatRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TxnHeartBeatRequest(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.Kvrpcpb.TxnHeartBeatRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TxnHeartBeatResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.TxnHeartBeatResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.KeyError error = 2; */ boolean hasError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); /** *
     * The TTL actually set on the requested lock.
     * 
* * uint64 lock_ttl = 3; */ long getLockTtl(); } /** * Protobuf type {@code kvrpcpb.TxnHeartBeatResponse} */ public static final class TxnHeartBeatResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.TxnHeartBeatResponse) TxnHeartBeatResponseOrBuilder { private static final long serialVersionUID = 0L; // Use TxnHeartBeatResponse.newBuilder() to construct. private TxnHeartBeatResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TxnHeartBeatResponse() { lockTtl_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TxnHeartBeatResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 24: { lockTtl_ = 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.Kvrpcpb.internal_static_kvrpcpb_TxnHeartBeatResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnHeartBeatResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.class, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int LOCK_TTL_FIELD_NUMBER = 3; private long lockTtl_; /** *
     * The TTL actually set on the requested lock.
     * 
* * uint64 lock_ttl = 3; */ public long getLockTtl() { return lockTtl_; } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } if (lockTtl_ != 0L) { output.writeUInt64(3, lockTtl_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } if (lockTtl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, lockTtl_); } 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.Kvrpcpb.TxnHeartBeatResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse other = (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && (getLockTtl() == other.getLockTtl()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (37 * hash) + LOCK_TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLockTtl()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse 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.Kvrpcpb.TxnHeartBeatResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse 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.Kvrpcpb.TxnHeartBeatResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse 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.Kvrpcpb.TxnHeartBeatResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse 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.Kvrpcpb.TxnHeartBeatResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse 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.Kvrpcpb.TxnHeartBeatResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.TxnHeartBeatResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.TxnHeartBeatResponse) org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnHeartBeatResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnHeartBeatResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.class, org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } lockTtl_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnHeartBeatResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse build() { org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse result = new org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.lockTtl_ = lockTtl_; 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.Kvrpcpb.TxnHeartBeatResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } if (other.getLockTtl() != 0L) { setLockTtl(other.getLockTtl()); } 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.Kvrpcpb.TxnHeartBeatResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** * .kvrpcpb.KeyError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private long lockTtl_ ; /** *
       * The TTL actually set on the requested lock.
       * 
* * uint64 lock_ttl = 3; */ public long getLockTtl() { return lockTtl_; } /** *
       * The TTL actually set on the requested lock.
       * 
* * uint64 lock_ttl = 3; */ public Builder setLockTtl(long value) { lockTtl_ = value; onChanged(); return this; } /** *
       * The TTL actually set on the requested lock.
       * 
* * uint64 lock_ttl = 3; */ public Builder clearLockTtl() { lockTtl_ = 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:kvrpcpb.TxnHeartBeatResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.TxnHeartBeatResponse) private static final org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse(); } public static org.tikv.kvproto.Kvrpcpb.TxnHeartBeatResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TxnHeartBeatResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TxnHeartBeatResponse(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.Kvrpcpb.TxnHeartBeatResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckTxnStatusRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CheckTxnStatusRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** *
     * Primary key and lock ts together to locate the primary lock of a transaction.
     * 
* * bytes primary_key = 2; */ com.google.protobuf.ByteString getPrimaryKey(); /** *
     * Starting timestamp of the transaction being checked.
     * 
* * uint64 lock_ts = 3; */ long getLockTs(); /** *
     * The start timestamp of the transaction which this request is part of.
     * 
* * uint64 caller_start_ts = 4; */ long getCallerStartTs(); /** *
     * The client must specify the current time to TiKV using this timestamp. It is used to check TTL
     * timeouts. It may be inaccurate.
     * 
* * uint64 current_ts = 5; */ long getCurrentTs(); /** *
     * If true, then TiKV will leave a rollback tombstone in the write CF for `primary_key`, even if
     * that key is not locked.
     * 
* * bool rollback_if_not_exist = 6; */ boolean getRollbackIfNotExist(); /** *
     * This field is set to true only if the transaction is known to fall back from async commit.
     * Then, CheckTxnStatus treats the transaction as non-async-commit even if the use_async_commit
     * field in the primary lock is true.
     * 
* * bool force_sync_commit = 7; */ boolean getForceSyncCommit(); /** *
     * If the check request is used to resolve or decide the transaction status for a input pessimistic
     * lock, the transaction status could not be decided if the primary lock is pessimistic too and
     * it's still uncertain.
     * 
* * bool resolving_pessimistic_lock = 8; */ boolean getResolvingPessimisticLock(); } /** *
   * CheckTxnStatusRequest checks the status of a transaction.
   * If the transaction is rollbacked/committed, return that result.
   * If the TTL of the transaction is exhausted, abort that transaction and inform the caller.
   * Otherwise, returns the TTL information for the transaction.
   * CheckTxnStatusRequest may also push forward the minCommitTS of a large transaction.
   * 
* * Protobuf type {@code kvrpcpb.CheckTxnStatusRequest} */ public static final class CheckTxnStatusRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CheckTxnStatusRequest) CheckTxnStatusRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CheckTxnStatusRequest.newBuilder() to construct. private CheckTxnStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckTxnStatusRequest() { primaryKey_ = com.google.protobuf.ByteString.EMPTY; lockTs_ = 0L; callerStartTs_ = 0L; currentTs_ = 0L; rollbackIfNotExist_ = false; forceSyncCommit_ = false; resolvingPessimisticLock_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckTxnStatusRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { primaryKey_ = input.readBytes(); break; } case 24: { lockTs_ = input.readUInt64(); break; } case 32: { callerStartTs_ = input.readUInt64(); break; } case 40: { currentTs_ = input.readUInt64(); break; } case 48: { rollbackIfNotExist_ = input.readBool(); break; } case 56: { forceSyncCommit_ = input.readBool(); break; } case 64: { resolvingPessimisticLock_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckTxnStatusRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckTxnStatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.class, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int PRIMARY_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString primaryKey_; /** *
     * Primary key and lock ts together to locate the primary lock of a transaction.
     * 
* * bytes primary_key = 2; */ public com.google.protobuf.ByteString getPrimaryKey() { return primaryKey_; } public static final int LOCK_TS_FIELD_NUMBER = 3; private long lockTs_; /** *
     * Starting timestamp of the transaction being checked.
     * 
* * uint64 lock_ts = 3; */ public long getLockTs() { return lockTs_; } public static final int CALLER_START_TS_FIELD_NUMBER = 4; private long callerStartTs_; /** *
     * The start timestamp of the transaction which this request is part of.
     * 
* * uint64 caller_start_ts = 4; */ public long getCallerStartTs() { return callerStartTs_; } public static final int CURRENT_TS_FIELD_NUMBER = 5; private long currentTs_; /** *
     * The client must specify the current time to TiKV using this timestamp. It is used to check TTL
     * timeouts. It may be inaccurate.
     * 
* * uint64 current_ts = 5; */ public long getCurrentTs() { return currentTs_; } public static final int ROLLBACK_IF_NOT_EXIST_FIELD_NUMBER = 6; private boolean rollbackIfNotExist_; /** *
     * If true, then TiKV will leave a rollback tombstone in the write CF for `primary_key`, even if
     * that key is not locked.
     * 
* * bool rollback_if_not_exist = 6; */ public boolean getRollbackIfNotExist() { return rollbackIfNotExist_; } public static final int FORCE_SYNC_COMMIT_FIELD_NUMBER = 7; private boolean forceSyncCommit_; /** *
     * This field is set to true only if the transaction is known to fall back from async commit.
     * Then, CheckTxnStatus treats the transaction as non-async-commit even if the use_async_commit
     * field in the primary lock is true.
     * 
* * bool force_sync_commit = 7; */ public boolean getForceSyncCommit() { return forceSyncCommit_; } public static final int RESOLVING_PESSIMISTIC_LOCK_FIELD_NUMBER = 8; private boolean resolvingPessimisticLock_; /** *
     * If the check request is used to resolve or decide the transaction status for a input pessimistic
     * lock, the transaction status could not be decided if the primary lock is pessimistic too and
     * it's still uncertain.
     * 
* * bool resolving_pessimistic_lock = 8; */ public boolean getResolvingPessimisticLock() { return resolvingPessimisticLock_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!primaryKey_.isEmpty()) { output.writeBytes(2, primaryKey_); } if (lockTs_ != 0L) { output.writeUInt64(3, lockTs_); } if (callerStartTs_ != 0L) { output.writeUInt64(4, callerStartTs_); } if (currentTs_ != 0L) { output.writeUInt64(5, currentTs_); } if (rollbackIfNotExist_ != false) { output.writeBool(6, rollbackIfNotExist_); } if (forceSyncCommit_ != false) { output.writeBool(7, forceSyncCommit_); } if (resolvingPessimisticLock_ != false) { output.writeBool(8, resolvingPessimisticLock_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!primaryKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, primaryKey_); } if (lockTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, lockTs_); } if (callerStartTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, callerStartTs_); } if (currentTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, currentTs_); } if (rollbackIfNotExist_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, rollbackIfNotExist_); } if (forceSyncCommit_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, forceSyncCommit_); } if (resolvingPessimisticLock_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, resolvingPessimisticLock_); } 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.Kvrpcpb.CheckTxnStatusRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest other = (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getPrimaryKey() .equals(other.getPrimaryKey()); result = result && (getLockTs() == other.getLockTs()); result = result && (getCallerStartTs() == other.getCallerStartTs()); result = result && (getCurrentTs() == other.getCurrentTs()); result = result && (getRollbackIfNotExist() == other.getRollbackIfNotExist()); result = result && (getForceSyncCommit() == other.getForceSyncCommit()); result = result && (getResolvingPessimisticLock() == other.getResolvingPessimisticLock()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; hash = (53 * hash) + getPrimaryKey().hashCode(); hash = (37 * hash) + LOCK_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLockTs()); hash = (37 * hash) + CALLER_START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCallerStartTs()); hash = (37 * hash) + CURRENT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCurrentTs()); hash = (37 * hash) + ROLLBACK_IF_NOT_EXIST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRollbackIfNotExist()); hash = (37 * hash) + FORCE_SYNC_COMMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForceSyncCommit()); hash = (37 * hash) + RESOLVING_PESSIMISTIC_LOCK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getResolvingPessimisticLock()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest 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.Kvrpcpb.CheckTxnStatusRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest 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.Kvrpcpb.CheckTxnStatusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest 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.Kvrpcpb.CheckTxnStatusRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest 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.Kvrpcpb.CheckTxnStatusRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest 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.Kvrpcpb.CheckTxnStatusRequest 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; } /** *
     * CheckTxnStatusRequest checks the status of a transaction.
     * If the transaction is rollbacked/committed, return that result.
     * If the TTL of the transaction is exhausted, abort that transaction and inform the caller.
     * Otherwise, returns the TTL information for the transaction.
     * CheckTxnStatusRequest may also push forward the minCommitTS of a large transaction.
     * 
* * Protobuf type {@code kvrpcpb.CheckTxnStatusRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CheckTxnStatusRequest) org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckTxnStatusRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckTxnStatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.class, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } primaryKey_ = com.google.protobuf.ByteString.EMPTY; lockTs_ = 0L; callerStartTs_ = 0L; currentTs_ = 0L; rollbackIfNotExist_ = false; forceSyncCommit_ = false; resolvingPessimisticLock_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckTxnStatusRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest build() { org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest result = new org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.primaryKey_ = primaryKey_; result.lockTs_ = lockTs_; result.callerStartTs_ = callerStartTs_; result.currentTs_ = currentTs_; result.rollbackIfNotExist_ = rollbackIfNotExist_; result.forceSyncCommit_ = forceSyncCommit_; result.resolvingPessimisticLock_ = resolvingPessimisticLock_; 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.Kvrpcpb.CheckTxnStatusRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getPrimaryKey() != com.google.protobuf.ByteString.EMPTY) { setPrimaryKey(other.getPrimaryKey()); } if (other.getLockTs() != 0L) { setLockTs(other.getLockTs()); } if (other.getCallerStartTs() != 0L) { setCallerStartTs(other.getCallerStartTs()); } if (other.getCurrentTs() != 0L) { setCurrentTs(other.getCurrentTs()); } if (other.getRollbackIfNotExist() != false) { setRollbackIfNotExist(other.getRollbackIfNotExist()); } if (other.getForceSyncCommit() != false) { setForceSyncCommit(other.getForceSyncCommit()); } if (other.getResolvingPessimisticLock() != false) { setResolvingPessimisticLock(other.getResolvingPessimisticLock()); } 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.Kvrpcpb.CheckTxnStatusRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString primaryKey_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Primary key and lock ts together to locate the primary lock of a transaction.
       * 
* * bytes primary_key = 2; */ public com.google.protobuf.ByteString getPrimaryKey() { return primaryKey_; } /** *
       * Primary key and lock ts together to locate the primary lock of a transaction.
       * 
* * bytes primary_key = 2; */ public Builder setPrimaryKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } primaryKey_ = value; onChanged(); return this; } /** *
       * Primary key and lock ts together to locate the primary lock of a transaction.
       * 
* * bytes primary_key = 2; */ public Builder clearPrimaryKey() { primaryKey_ = getDefaultInstance().getPrimaryKey(); onChanged(); return this; } private long lockTs_ ; /** *
       * Starting timestamp of the transaction being checked.
       * 
* * uint64 lock_ts = 3; */ public long getLockTs() { return lockTs_; } /** *
       * Starting timestamp of the transaction being checked.
       * 
* * uint64 lock_ts = 3; */ public Builder setLockTs(long value) { lockTs_ = value; onChanged(); return this; } /** *
       * Starting timestamp of the transaction being checked.
       * 
* * uint64 lock_ts = 3; */ public Builder clearLockTs() { lockTs_ = 0L; onChanged(); return this; } private long callerStartTs_ ; /** *
       * The start timestamp of the transaction which this request is part of.
       * 
* * uint64 caller_start_ts = 4; */ public long getCallerStartTs() { return callerStartTs_; } /** *
       * The start timestamp of the transaction which this request is part of.
       * 
* * uint64 caller_start_ts = 4; */ public Builder setCallerStartTs(long value) { callerStartTs_ = value; onChanged(); return this; } /** *
       * The start timestamp of the transaction which this request is part of.
       * 
* * uint64 caller_start_ts = 4; */ public Builder clearCallerStartTs() { callerStartTs_ = 0L; onChanged(); return this; } private long currentTs_ ; /** *
       * The client must specify the current time to TiKV using this timestamp. It is used to check TTL
       * timeouts. It may be inaccurate.
       * 
* * uint64 current_ts = 5; */ public long getCurrentTs() { return currentTs_; } /** *
       * The client must specify the current time to TiKV using this timestamp. It is used to check TTL
       * timeouts. It may be inaccurate.
       * 
* * uint64 current_ts = 5; */ public Builder setCurrentTs(long value) { currentTs_ = value; onChanged(); return this; } /** *
       * The client must specify the current time to TiKV using this timestamp. It is used to check TTL
       * timeouts. It may be inaccurate.
       * 
* * uint64 current_ts = 5; */ public Builder clearCurrentTs() { currentTs_ = 0L; onChanged(); return this; } private boolean rollbackIfNotExist_ ; /** *
       * If true, then TiKV will leave a rollback tombstone in the write CF for `primary_key`, even if
       * that key is not locked.
       * 
* * bool rollback_if_not_exist = 6; */ public boolean getRollbackIfNotExist() { return rollbackIfNotExist_; } /** *
       * If true, then TiKV will leave a rollback tombstone in the write CF for `primary_key`, even if
       * that key is not locked.
       * 
* * bool rollback_if_not_exist = 6; */ public Builder setRollbackIfNotExist(boolean value) { rollbackIfNotExist_ = value; onChanged(); return this; } /** *
       * If true, then TiKV will leave a rollback tombstone in the write CF for `primary_key`, even if
       * that key is not locked.
       * 
* * bool rollback_if_not_exist = 6; */ public Builder clearRollbackIfNotExist() { rollbackIfNotExist_ = false; onChanged(); return this; } private boolean forceSyncCommit_ ; /** *
       * This field is set to true only if the transaction is known to fall back from async commit.
       * Then, CheckTxnStatus treats the transaction as non-async-commit even if the use_async_commit
       * field in the primary lock is true.
       * 
* * bool force_sync_commit = 7; */ public boolean getForceSyncCommit() { return forceSyncCommit_; } /** *
       * This field is set to true only if the transaction is known to fall back from async commit.
       * Then, CheckTxnStatus treats the transaction as non-async-commit even if the use_async_commit
       * field in the primary lock is true.
       * 
* * bool force_sync_commit = 7; */ public Builder setForceSyncCommit(boolean value) { forceSyncCommit_ = value; onChanged(); return this; } /** *
       * This field is set to true only if the transaction is known to fall back from async commit.
       * Then, CheckTxnStatus treats the transaction as non-async-commit even if the use_async_commit
       * field in the primary lock is true.
       * 
* * bool force_sync_commit = 7; */ public Builder clearForceSyncCommit() { forceSyncCommit_ = false; onChanged(); return this; } private boolean resolvingPessimisticLock_ ; /** *
       * If the check request is used to resolve or decide the transaction status for a input pessimistic
       * lock, the transaction status could not be decided if the primary lock is pessimistic too and
       * it's still uncertain.
       * 
* * bool resolving_pessimistic_lock = 8; */ public boolean getResolvingPessimisticLock() { return resolvingPessimisticLock_; } /** *
       * If the check request is used to resolve or decide the transaction status for a input pessimistic
       * lock, the transaction status could not be decided if the primary lock is pessimistic too and
       * it's still uncertain.
       * 
* * bool resolving_pessimistic_lock = 8; */ public Builder setResolvingPessimisticLock(boolean value) { resolvingPessimisticLock_ = value; onChanged(); return this; } /** *
       * If the check request is used to resolve or decide the transaction status for a input pessimistic
       * lock, the transaction status could not be decided if the primary lock is pessimistic too and
       * it's still uncertain.
       * 
* * bool resolving_pessimistic_lock = 8; */ public Builder clearResolvingPessimisticLock() { resolvingPessimisticLock_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.CheckTxnStatusRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.CheckTxnStatusRequest) private static final org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest(); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CheckTxnStatusRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckTxnStatusRequest(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.Kvrpcpb.CheckTxnStatusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckTxnStatusResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CheckTxnStatusResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.KeyError error = 2; */ boolean hasError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); /** *
     * Three kinds of transaction status:
     *   locked: lock_ttl > 0
     *   committed: commit_version > 0
     *   rollbacked: lock_ttl = 0 && commit_version = 0
     * 
* * uint64 lock_ttl = 3; */ long getLockTtl(); /** * uint64 commit_version = 4; */ long getCommitVersion(); /** *
     * The action performed by TiKV (and why if the action is to rollback).
     * 
* * .kvrpcpb.Action action = 5; */ int getActionValue(); /** *
     * The action performed by TiKV (and why if the action is to rollback).
     * 
* * .kvrpcpb.Action action = 5; */ org.tikv.kvproto.Kvrpcpb.Action getAction(); /** * .kvrpcpb.LockInfo lock_info = 6; */ boolean hasLockInfo(); /** * .kvrpcpb.LockInfo lock_info = 6; */ org.tikv.kvproto.Kvrpcpb.LockInfo getLockInfo(); /** * .kvrpcpb.LockInfo lock_info = 6; */ org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockInfoOrBuilder(); } /** * Protobuf type {@code kvrpcpb.CheckTxnStatusResponse} */ public static final class CheckTxnStatusResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CheckTxnStatusResponse) CheckTxnStatusResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CheckTxnStatusResponse.newBuilder() to construct. private CheckTxnStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckTxnStatusResponse() { lockTtl_ = 0L; commitVersion_ = 0L; action_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckTxnStatusResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 24: { lockTtl_ = input.readUInt64(); break; } case 32: { commitVersion_ = input.readUInt64(); break; } case 40: { int rawValue = input.readEnum(); action_ = rawValue; break; } case 50: { org.tikv.kvproto.Kvrpcpb.LockInfo.Builder subBuilder = null; if (lockInfo_ != null) { subBuilder = lockInfo_.toBuilder(); } lockInfo_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.LockInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lockInfo_); lockInfo_ = 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.Kvrpcpb.internal_static_kvrpcpb_CheckTxnStatusResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckTxnStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.class, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int LOCK_TTL_FIELD_NUMBER = 3; private long lockTtl_; /** *
     * Three kinds of transaction status:
     *   locked: lock_ttl > 0
     *   committed: commit_version > 0
     *   rollbacked: lock_ttl = 0 && commit_version = 0
     * 
* * uint64 lock_ttl = 3; */ public long getLockTtl() { return lockTtl_; } public static final int COMMIT_VERSION_FIELD_NUMBER = 4; private long commitVersion_; /** * uint64 commit_version = 4; */ public long getCommitVersion() { return commitVersion_; } public static final int ACTION_FIELD_NUMBER = 5; private int action_; /** *
     * The action performed by TiKV (and why if the action is to rollback).
     * 
* * .kvrpcpb.Action action = 5; */ public int getActionValue() { return action_; } /** *
     * The action performed by TiKV (and why if the action is to rollback).
     * 
* * .kvrpcpb.Action action = 5; */ public org.tikv.kvproto.Kvrpcpb.Action getAction() { org.tikv.kvproto.Kvrpcpb.Action result = org.tikv.kvproto.Kvrpcpb.Action.valueOf(action_); return result == null ? org.tikv.kvproto.Kvrpcpb.Action.UNRECOGNIZED : result; } public static final int LOCK_INFO_FIELD_NUMBER = 6; private org.tikv.kvproto.Kvrpcpb.LockInfo lockInfo_; /** * .kvrpcpb.LockInfo lock_info = 6; */ public boolean hasLockInfo() { return lockInfo_ != null; } /** * .kvrpcpb.LockInfo lock_info = 6; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLockInfo() { return lockInfo_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : lockInfo_; } /** * .kvrpcpb.LockInfo lock_info = 6; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockInfoOrBuilder() { return getLockInfo(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } if (lockTtl_ != 0L) { output.writeUInt64(3, lockTtl_); } if (commitVersion_ != 0L) { output.writeUInt64(4, commitVersion_); } if (action_ != org.tikv.kvproto.Kvrpcpb.Action.NoAction.getNumber()) { output.writeEnum(5, action_); } if (lockInfo_ != null) { output.writeMessage(6, getLockInfo()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } if (lockTtl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, lockTtl_); } if (commitVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, commitVersion_); } if (action_ != org.tikv.kvproto.Kvrpcpb.Action.NoAction.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, action_); } if (lockInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLockInfo()); } 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.Kvrpcpb.CheckTxnStatusResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse other = (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && (getLockTtl() == other.getLockTtl()); result = result && (getCommitVersion() == other.getCommitVersion()); result = result && action_ == other.action_; result = result && (hasLockInfo() == other.hasLockInfo()); if (hasLockInfo()) { result = result && getLockInfo() .equals(other.getLockInfo()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (37 * hash) + LOCK_TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLockTtl()); hash = (37 * hash) + COMMIT_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitVersion()); hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + action_; if (hasLockInfo()) { hash = (37 * hash) + LOCK_INFO_FIELD_NUMBER; hash = (53 * hash) + getLockInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse 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.Kvrpcpb.CheckTxnStatusResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse 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.Kvrpcpb.CheckTxnStatusResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse 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.Kvrpcpb.CheckTxnStatusResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse 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.Kvrpcpb.CheckTxnStatusResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse 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.Kvrpcpb.CheckTxnStatusResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.CheckTxnStatusResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CheckTxnStatusResponse) org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckTxnStatusResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckTxnStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.class, org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } lockTtl_ = 0L; commitVersion_ = 0L; action_ = 0; if (lockInfoBuilder_ == null) { lockInfo_ = null; } else { lockInfo_ = null; lockInfoBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckTxnStatusResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse build() { org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse result = new org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.lockTtl_ = lockTtl_; result.commitVersion_ = commitVersion_; result.action_ = action_; if (lockInfoBuilder_ == null) { result.lockInfo_ = lockInfo_; } else { result.lockInfo_ = lockInfoBuilder_.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.Kvrpcpb.CheckTxnStatusResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } if (other.getLockTtl() != 0L) { setLockTtl(other.getLockTtl()); } if (other.getCommitVersion() != 0L) { setCommitVersion(other.getCommitVersion()); } if (other.action_ != 0) { setActionValue(other.getActionValue()); } if (other.hasLockInfo()) { mergeLockInfo(other.getLockInfo()); } 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.Kvrpcpb.CheckTxnStatusResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** * .kvrpcpb.KeyError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private long lockTtl_ ; /** *
       * Three kinds of transaction status:
       *   locked: lock_ttl > 0
       *   committed: commit_version > 0
       *   rollbacked: lock_ttl = 0 && commit_version = 0
       * 
* * uint64 lock_ttl = 3; */ public long getLockTtl() { return lockTtl_; } /** *
       * Three kinds of transaction status:
       *   locked: lock_ttl > 0
       *   committed: commit_version > 0
       *   rollbacked: lock_ttl = 0 && commit_version = 0
       * 
* * uint64 lock_ttl = 3; */ public Builder setLockTtl(long value) { lockTtl_ = value; onChanged(); return this; } /** *
       * Three kinds of transaction status:
       *   locked: lock_ttl > 0
       *   committed: commit_version > 0
       *   rollbacked: lock_ttl = 0 && commit_version = 0
       * 
* * uint64 lock_ttl = 3; */ public Builder clearLockTtl() { lockTtl_ = 0L; onChanged(); return this; } private long commitVersion_ ; /** * uint64 commit_version = 4; */ public long getCommitVersion() { return commitVersion_; } /** * uint64 commit_version = 4; */ public Builder setCommitVersion(long value) { commitVersion_ = value; onChanged(); return this; } /** * uint64 commit_version = 4; */ public Builder clearCommitVersion() { commitVersion_ = 0L; onChanged(); return this; } private int action_ = 0; /** *
       * The action performed by TiKV (and why if the action is to rollback).
       * 
* * .kvrpcpb.Action action = 5; */ public int getActionValue() { return action_; } /** *
       * The action performed by TiKV (and why if the action is to rollback).
       * 
* * .kvrpcpb.Action action = 5; */ public Builder setActionValue(int value) { action_ = value; onChanged(); return this; } /** *
       * The action performed by TiKV (and why if the action is to rollback).
       * 
* * .kvrpcpb.Action action = 5; */ public org.tikv.kvproto.Kvrpcpb.Action getAction() { org.tikv.kvproto.Kvrpcpb.Action result = org.tikv.kvproto.Kvrpcpb.Action.valueOf(action_); return result == null ? org.tikv.kvproto.Kvrpcpb.Action.UNRECOGNIZED : result; } /** *
       * The action performed by TiKV (and why if the action is to rollback).
       * 
* * .kvrpcpb.Action action = 5; */ public Builder setAction(org.tikv.kvproto.Kvrpcpb.Action value) { if (value == null) { throw new NullPointerException(); } action_ = value.getNumber(); onChanged(); return this; } /** *
       * The action performed by TiKV (and why if the action is to rollback).
       * 
* * .kvrpcpb.Action action = 5; */ public Builder clearAction() { action_ = 0; onChanged(); return this; } private org.tikv.kvproto.Kvrpcpb.LockInfo lockInfo_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> lockInfoBuilder_; /** * .kvrpcpb.LockInfo lock_info = 6; */ public boolean hasLockInfo() { return lockInfoBuilder_ != null || lockInfo_ != null; } /** * .kvrpcpb.LockInfo lock_info = 6; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLockInfo() { if (lockInfoBuilder_ == null) { return lockInfo_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : lockInfo_; } else { return lockInfoBuilder_.getMessage(); } } /** * .kvrpcpb.LockInfo lock_info = 6; */ public Builder setLockInfo(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (lockInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lockInfo_ = value; onChanged(); } else { lockInfoBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.LockInfo lock_info = 6; */ public Builder setLockInfo( org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (lockInfoBuilder_ == null) { lockInfo_ = builderForValue.build(); onChanged(); } else { lockInfoBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.LockInfo lock_info = 6; */ public Builder mergeLockInfo(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (lockInfoBuilder_ == null) { if (lockInfo_ != null) { lockInfo_ = org.tikv.kvproto.Kvrpcpb.LockInfo.newBuilder(lockInfo_).mergeFrom(value).buildPartial(); } else { lockInfo_ = value; } onChanged(); } else { lockInfoBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.LockInfo lock_info = 6; */ public Builder clearLockInfo() { if (lockInfoBuilder_ == null) { lockInfo_ = null; onChanged(); } else { lockInfo_ = null; lockInfoBuilder_ = null; } return this; } /** * .kvrpcpb.LockInfo lock_info = 6; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder getLockInfoBuilder() { onChanged(); return getLockInfoFieldBuilder().getBuilder(); } /** * .kvrpcpb.LockInfo lock_info = 6; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockInfoOrBuilder() { if (lockInfoBuilder_ != null) { return lockInfoBuilder_.getMessageOrBuilder(); } else { return lockInfo_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : lockInfo_; } } /** * .kvrpcpb.LockInfo lock_info = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> getLockInfoFieldBuilder() { if (lockInfoBuilder_ == null) { lockInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>( getLockInfo(), getParentForChildren(), isClean()); lockInfo_ = null; } return lockInfoBuilder_; } 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:kvrpcpb.CheckTxnStatusResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.CheckTxnStatusResponse) private static final org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse(); } public static org.tikv.kvproto.Kvrpcpb.CheckTxnStatusResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CheckTxnStatusResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckTxnStatusResponse(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.Kvrpcpb.CheckTxnStatusResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckSecondaryLocksRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CheckSecondaryLocksRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * repeated bytes keys = 2; */ java.util.List getKeysList(); /** * repeated bytes keys = 2; */ int getKeysCount(); /** * repeated bytes keys = 2; */ com.google.protobuf.ByteString getKeys(int index); /** *
     * Identifies the transaction we are investigating.
     * 
* * uint64 start_version = 3; */ long getStartVersion(); } /** *
   * Part of the async commit protocol, checks for locks on all supplied keys. If a lock is missing,
   * does not have a successful status, or belongs to another transaction, TiKV will leave a rollback
   * tombstone for that key.
   * 
* * Protobuf type {@code kvrpcpb.CheckSecondaryLocksRequest} */ public static final class CheckSecondaryLocksRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CheckSecondaryLocksRequest) CheckSecondaryLocksRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CheckSecondaryLocksRequest.newBuilder() to construct. private CheckSecondaryLocksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckSecondaryLocksRequest() { keys_ = java.util.Collections.emptyList(); startVersion_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckSecondaryLocksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } keys_.add(input.readBytes()); break; } case 24: { startVersion_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { keys_ = java.util.Collections.unmodifiableList(keys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckSecondaryLocksRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckSecondaryLocksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.class, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEYS_FIELD_NUMBER = 2; private java.util.List keys_; /** * repeated bytes keys = 2; */ public java.util.List getKeysList() { return keys_; } /** * repeated bytes keys = 2; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 2; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } public static final int START_VERSION_FIELD_NUMBER = 3; private long startVersion_; /** *
     * Identifies the transaction we are investigating.
     * 
* * uint64 start_version = 3; */ public long getStartVersion() { return startVersion_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } for (int i = 0; i < keys_.size(); i++) { output.writeBytes(2, keys_.get(i)); } if (startVersion_ != 0L) { output.writeUInt64(3, startVersion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(keys_.get(i)); } size += dataSize; size += 1 * getKeysList().size(); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, startVersion_); } 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.Kvrpcpb.CheckSecondaryLocksRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest other = (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKeysList() .equals(other.getKeysList()); result = result && (getStartVersion() == other.getStartVersion()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest 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.Kvrpcpb.CheckSecondaryLocksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest 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.Kvrpcpb.CheckSecondaryLocksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest 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.Kvrpcpb.CheckSecondaryLocksRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest 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.Kvrpcpb.CheckSecondaryLocksRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest 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.Kvrpcpb.CheckSecondaryLocksRequest 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; } /** *
     * Part of the async commit protocol, checks for locks on all supplied keys. If a lock is missing,
     * does not have a successful status, or belongs to another transaction, TiKV will leave a rollback
     * tombstone for that key.
     * 
* * Protobuf type {@code kvrpcpb.CheckSecondaryLocksRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CheckSecondaryLocksRequest) org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckSecondaryLocksRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckSecondaryLocksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.class, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); startVersion_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckSecondaryLocksRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest build() { org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest result = new org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000002); } result.keys_ = keys_; result.startVersion_ = startVersion_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } 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.Kvrpcpb.CheckSecondaryLocksRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000002; } } /** * repeated bytes keys = 2; */ public java.util.List getKeysList() { return java.util.Collections.unmodifiableList(keys_); } /** * repeated bytes keys = 2; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 2; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } /** * repeated bytes keys = 2; */ public Builder setKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder addKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder clearKeys() { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private long startVersion_ ; /** *
       * Identifies the transaction we are investigating.
       * 
* * uint64 start_version = 3; */ public long getStartVersion() { return startVersion_; } /** *
       * Identifies the transaction we are investigating.
       * 
* * uint64 start_version = 3; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** *
       * Identifies the transaction we are investigating.
       * 
* * uint64 start_version = 3; */ public Builder clearStartVersion() { startVersion_ = 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:kvrpcpb.CheckSecondaryLocksRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.CheckSecondaryLocksRequest) private static final org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest(); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CheckSecondaryLocksRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckSecondaryLocksRequest(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.Kvrpcpb.CheckSecondaryLocksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckSecondaryLocksResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CheckSecondaryLocksResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.KeyError error = 2; */ boolean hasError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); /** *
     * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
     * this list if there is a lock present and belonging to the correct transaction,
     * nil otherwise.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ java.util.List getLocksList(); /** *
     * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
     * this list if there is a lock present and belonging to the correct transaction,
     * nil otherwise.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index); /** *
     * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
     * this list if there is a lock present and belonging to the correct transaction,
     * nil otherwise.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ int getLocksCount(); /** *
     * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
     * this list if there is a lock present and belonging to the correct transaction,
     * nil otherwise.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ java.util.List getLocksOrBuilderList(); /** *
     * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
     * this list if there is a lock present and belonging to the correct transaction,
     * nil otherwise.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index); /** *
     * If any of the locks have been committed, this is the commit ts used. If no
     * locks have been committed, it will be zero.
     * 
* * uint64 commit_ts = 4; */ long getCommitTs(); } /** * Protobuf type {@code kvrpcpb.CheckSecondaryLocksResponse} */ public static final class CheckSecondaryLocksResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CheckSecondaryLocksResponse) CheckSecondaryLocksResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CheckSecondaryLocksResponse.newBuilder() to construct. private CheckSecondaryLocksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckSecondaryLocksResponse() { locks_ = java.util.Collections.emptyList(); commitTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckSecondaryLocksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { locks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } locks_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.LockInfo.parser(), extensionRegistry)); break; } case 32: { commitTs_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { locks_ = java.util.Collections.unmodifiableList(locks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckSecondaryLocksResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckSecondaryLocksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.class, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int LOCKS_FIELD_NUMBER = 3; private java.util.List locks_; /** *
     * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
     * this list if there is a lock present and belonging to the correct transaction,
     * nil otherwise.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksList() { return locks_; } /** *
     * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
     * this list if there is a lock present and belonging to the correct transaction,
     * nil otherwise.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksOrBuilderList() { return locks_; } /** *
     * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
     * this list if there is a lock present and belonging to the correct transaction,
     * nil otherwise.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public int getLocksCount() { return locks_.size(); } /** *
     * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
     * this list if there is a lock present and belonging to the correct transaction,
     * nil otherwise.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index) { return locks_.get(index); } /** *
     * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
     * this list if there is a lock present and belonging to the correct transaction,
     * nil otherwise.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index) { return locks_.get(index); } public static final int COMMIT_TS_FIELD_NUMBER = 4; private long commitTs_; /** *
     * If any of the locks have been committed, this is the commit ts used. If no
     * locks have been committed, it will be zero.
     * 
* * uint64 commit_ts = 4; */ public long getCommitTs() { return commitTs_; } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } for (int i = 0; i < locks_.size(); i++) { output.writeMessage(3, locks_.get(i)); } if (commitTs_ != 0L) { output.writeUInt64(4, commitTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } for (int i = 0; i < locks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, locks_.get(i)); } if (commitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, commitTs_); } 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.Kvrpcpb.CheckSecondaryLocksResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse other = (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && getLocksList() .equals(other.getLocksList()); result = result && (getCommitTs() == other.getCommitTs()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } if (getLocksCount() > 0) { hash = (37 * hash) + LOCKS_FIELD_NUMBER; hash = (53 * hash) + getLocksList().hashCode(); } hash = (37 * hash) + COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse 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.Kvrpcpb.CheckSecondaryLocksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse 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.Kvrpcpb.CheckSecondaryLocksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse 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.Kvrpcpb.CheckSecondaryLocksResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse 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.Kvrpcpb.CheckSecondaryLocksResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse 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.Kvrpcpb.CheckSecondaryLocksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.CheckSecondaryLocksResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CheckSecondaryLocksResponse) org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckSecondaryLocksResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckSecondaryLocksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.class, org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLocksFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } if (locksBuilder_ == null) { locks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { locksBuilder_.clear(); } commitTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckSecondaryLocksResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse build() { org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse result = new org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } if (locksBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { locks_ = java.util.Collections.unmodifiableList(locks_); bitField0_ = (bitField0_ & ~0x00000004); } result.locks_ = locks_; } else { result.locks_ = locksBuilder_.build(); } result.commitTs_ = commitTs_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } if (locksBuilder_ == null) { if (!other.locks_.isEmpty()) { if (locks_.isEmpty()) { locks_ = other.locks_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLocksIsMutable(); locks_.addAll(other.locks_); } onChanged(); } } else { if (!other.locks_.isEmpty()) { if (locksBuilder_.isEmpty()) { locksBuilder_.dispose(); locksBuilder_ = null; locks_ = other.locks_; bitField0_ = (bitField0_ & ~0x00000004); locksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocksFieldBuilder() : null; } else { locksBuilder_.addAllMessages(other.locks_); } } } if (other.getCommitTs() != 0L) { setCommitTs(other.getCommitTs()); } 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.Kvrpcpb.CheckSecondaryLocksResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** * .kvrpcpb.KeyError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private java.util.List locks_ = java.util.Collections.emptyList(); private void ensureLocksIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { locks_ = new java.util.ArrayList(locks_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> locksBuilder_; /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksList() { if (locksBuilder_ == null) { return java.util.Collections.unmodifiableList(locks_); } else { return locksBuilder_.getMessageList(); } } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public int getLocksCount() { if (locksBuilder_ == null) { return locks_.size(); } else { return locksBuilder_.getCount(); } } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index) { if (locksBuilder_ == null) { return locks_.get(index); } else { return locksBuilder_.getMessage(index); } } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder setLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.set(index, value); onChanged(); } else { locksBuilder_.setMessage(index, value); } return this; } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder setLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.set(index, builderForValue.build()); onChanged(); } else { locksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.add(value); onChanged(); } else { locksBuilder_.addMessage(value); } return this; } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.add(index, value); onChanged(); } else { locksBuilder_.addMessage(index, value); } return this; } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks( org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.add(builderForValue.build()); onChanged(); } else { locksBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.add(index, builderForValue.build()); onChanged(); } else { locksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addAllLocks( java.lang.Iterable values) { if (locksBuilder_ == null) { ensureLocksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, locks_); onChanged(); } else { locksBuilder_.addAllMessages(values); } return this; } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder clearLocks() { if (locksBuilder_ == null) { locks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { locksBuilder_.clear(); } return this; } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder removeLocks(int index) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.remove(index); onChanged(); } else { locksBuilder_.remove(index); } return this; } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder getLocksBuilder( int index) { return getLocksFieldBuilder().getBuilder(index); } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index) { if (locksBuilder_ == null) { return locks_.get(index); } else { return locksBuilder_.getMessageOrBuilder(index); } } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksOrBuilderList() { if (locksBuilder_ != null) { return locksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(locks_); } } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder addLocksBuilder() { return getLocksFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance()); } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder addLocksBuilder( int index) { return getLocksFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance()); } /** *
       * For each key in `keys` in `CheckSecondaryLocks`, there will be a lock in
       * this list if there is a lock present and belonging to the correct transaction,
       * nil otherwise.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksBuilderList() { return getLocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> getLocksFieldBuilder() { if (locksBuilder_ == null) { locksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>( locks_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); locks_ = null; } return locksBuilder_; } private long commitTs_ ; /** *
       * If any of the locks have been committed, this is the commit ts used. If no
       * locks have been committed, it will be zero.
       * 
* * uint64 commit_ts = 4; */ public long getCommitTs() { return commitTs_; } /** *
       * If any of the locks have been committed, this is the commit ts used. If no
       * locks have been committed, it will be zero.
       * 
* * uint64 commit_ts = 4; */ public Builder setCommitTs(long value) { commitTs_ = value; onChanged(); return this; } /** *
       * If any of the locks have been committed, this is the commit ts used. If no
       * locks have been committed, it will be zero.
       * 
* * uint64 commit_ts = 4; */ public Builder clearCommitTs() { commitTs_ = 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:kvrpcpb.CheckSecondaryLocksResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.CheckSecondaryLocksResponse) private static final org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse(); } public static org.tikv.kvproto.Kvrpcpb.CheckSecondaryLocksResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CheckSecondaryLocksResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckSecondaryLocksResponse(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.Kvrpcpb.CheckSecondaryLocksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CommitRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** *
     * Identifies the transaction.
     * 
* * uint64 start_version = 2; */ long getStartVersion(); /** *
     * All keys in the transaction (to be committed).
     * 
* * repeated bytes keys = 3; */ java.util.List getKeysList(); /** *
     * All keys in the transaction (to be committed).
     * 
* * repeated bytes keys = 3; */ int getKeysCount(); /** *
     * All keys in the transaction (to be committed).
     * 
* * repeated bytes keys = 3; */ com.google.protobuf.ByteString getKeys(int index); /** *
     * Timestamp for the end of the transaction. Must be greater than `start_version`.
     * 
* * uint64 commit_version = 4; */ long getCommitVersion(); } /** *
   * The second phase of writing to TiKV. If there are no errors or conflicts, then this request
   * commits a transaction so that its data can be read by other transactions.
   * 
* * Protobuf type {@code kvrpcpb.CommitRequest} */ public static final class CommitRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CommitRequest) CommitRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CommitRequest.newBuilder() to construct. private CommitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitRequest() { startVersion_ = 0L; keys_ = java.util.Collections.emptyList(); commitVersion_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommitRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { startVersion_ = input.readUInt64(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } keys_.add(input.readBytes()); break; } case 32: { commitVersion_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { keys_ = java.util.Collections.unmodifiableList(keys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CommitRequest.class, org.tikv.kvproto.Kvrpcpb.CommitRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_VERSION_FIELD_NUMBER = 2; private long startVersion_; /** *
     * Identifies the transaction.
     * 
* * uint64 start_version = 2; */ public long getStartVersion() { return startVersion_; } public static final int KEYS_FIELD_NUMBER = 3; private java.util.List keys_; /** *
     * All keys in the transaction (to be committed).
     * 
* * repeated bytes keys = 3; */ public java.util.List getKeysList() { return keys_; } /** *
     * All keys in the transaction (to be committed).
     * 
* * repeated bytes keys = 3; */ public int getKeysCount() { return keys_.size(); } /** *
     * All keys in the transaction (to be committed).
     * 
* * repeated bytes keys = 3; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } public static final int COMMIT_VERSION_FIELD_NUMBER = 4; private long commitVersion_; /** *
     * Timestamp for the end of the transaction. Must be greater than `start_version`.
     * 
* * uint64 commit_version = 4; */ public long getCommitVersion() { return commitVersion_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (startVersion_ != 0L) { output.writeUInt64(2, startVersion_); } for (int i = 0; i < keys_.size(); i++) { output.writeBytes(3, keys_.get(i)); } if (commitVersion_ != 0L) { output.writeUInt64(4, commitVersion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, startVersion_); } { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(keys_.get(i)); } size += dataSize; size += 1 * getKeysList().size(); } if (commitVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, commitVersion_); } 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.Kvrpcpb.CommitRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CommitRequest other = (org.tikv.kvproto.Kvrpcpb.CommitRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getStartVersion() == other.getStartVersion()); result = result && getKeysList() .equals(other.getKeysList()); result = result && (getCommitVersion() == other.getCommitVersion()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (37 * hash) + COMMIT_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CommitRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitRequest 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.Kvrpcpb.CommitRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitRequest 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.Kvrpcpb.CommitRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CommitRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitRequest 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.Kvrpcpb.CommitRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitRequest 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.Kvrpcpb.CommitRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitRequest 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.Kvrpcpb.CommitRequest 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; } /** *
     * The second phase of writing to TiKV. If there are no errors or conflicts, then this request
     * commits a transaction so that its data can be read by other transactions.
     * 
* * Protobuf type {@code kvrpcpb.CommitRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CommitRequest) org.tikv.kvproto.Kvrpcpb.CommitRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CommitRequest.class, org.tikv.kvproto.Kvrpcpb.CommitRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CommitRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } startVersion_ = 0L; keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); commitVersion_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.CommitRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CommitRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CommitRequest build() { org.tikv.kvproto.Kvrpcpb.CommitRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CommitRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.CommitRequest result = new org.tikv.kvproto.Kvrpcpb.CommitRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.startVersion_ = startVersion_; if (((bitField0_ & 0x00000004) == 0x00000004)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000004); } result.keys_ = keys_; result.commitVersion_ = commitVersion_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.CommitRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CommitRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CommitRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.CommitRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (other.getCommitVersion() != 0L) { setCommitVersion(other.getCommitVersion()); } 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.Kvrpcpb.CommitRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CommitRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long startVersion_ ; /** *
       * Identifies the transaction.
       * 
* * uint64 start_version = 2; */ public long getStartVersion() { return startVersion_; } /** *
       * Identifies the transaction.
       * 
* * uint64 start_version = 2; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** *
       * Identifies the transaction.
       * 
* * uint64 start_version = 2; */ public Builder clearStartVersion() { startVersion_ = 0L; onChanged(); return this; } private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000004; } } /** *
       * All keys in the transaction (to be committed).
       * 
* * repeated bytes keys = 3; */ public java.util.List getKeysList() { return java.util.Collections.unmodifiableList(keys_); } /** *
       * All keys in the transaction (to be committed).
       * 
* * repeated bytes keys = 3; */ public int getKeysCount() { return keys_.size(); } /** *
       * All keys in the transaction (to be committed).
       * 
* * repeated bytes keys = 3; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } /** *
       * All keys in the transaction (to be committed).
       * 
* * repeated bytes keys = 3; */ public Builder setKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** *
       * All keys in the transaction (to be committed).
       * 
* * repeated bytes keys = 3; */ public Builder addKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** *
       * All keys in the transaction (to be committed).
       * 
* * repeated bytes keys = 3; */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** *
       * All keys in the transaction (to be committed).
       * 
* * repeated bytes keys = 3; */ public Builder clearKeys() { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private long commitVersion_ ; /** *
       * Timestamp for the end of the transaction. Must be greater than `start_version`.
       * 
* * uint64 commit_version = 4; */ public long getCommitVersion() { return commitVersion_; } /** *
       * Timestamp for the end of the transaction. Must be greater than `start_version`.
       * 
* * uint64 commit_version = 4; */ public Builder setCommitVersion(long value) { commitVersion_ = value; onChanged(); return this; } /** *
       * Timestamp for the end of the transaction. Must be greater than `start_version`.
       * 
* * uint64 commit_version = 4; */ public Builder clearCommitVersion() { commitVersion_ = 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:kvrpcpb.CommitRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.CommitRequest) private static final org.tikv.kvproto.Kvrpcpb.CommitRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CommitRequest(); } public static org.tikv.kvproto.Kvrpcpb.CommitRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CommitRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitRequest(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.Kvrpcpb.CommitRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CommitResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.KeyError error = 2; */ boolean hasError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); /** *
     * If the commit ts is derived from min_commit_ts, this field should be set.
     * 
* * uint64 commit_version = 3; */ long getCommitVersion(); } /** * Protobuf type {@code kvrpcpb.CommitResponse} */ public static final class CommitResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CommitResponse) CommitResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CommitResponse.newBuilder() to construct. private CommitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitResponse() { commitVersion_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommitResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 24: { commitVersion_ = 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.Kvrpcpb.internal_static_kvrpcpb_CommitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CommitResponse.class, org.tikv.kvproto.Kvrpcpb.CommitResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int COMMIT_VERSION_FIELD_NUMBER = 3; private long commitVersion_; /** *
     * If the commit ts is derived from min_commit_ts, this field should be set.
     * 
* * uint64 commit_version = 3; */ public long getCommitVersion() { return commitVersion_; } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } if (commitVersion_ != 0L) { output.writeUInt64(3, commitVersion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } if (commitVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, commitVersion_); } 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.Kvrpcpb.CommitResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CommitResponse other = (org.tikv.kvproto.Kvrpcpb.CommitResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && (getCommitVersion() == other.getCommitVersion()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (37 * hash) + COMMIT_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CommitResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitResponse 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.Kvrpcpb.CommitResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitResponse 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.Kvrpcpb.CommitResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CommitResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitResponse 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.Kvrpcpb.CommitResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitResponse 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.Kvrpcpb.CommitResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitResponse 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.Kvrpcpb.CommitResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.CommitResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CommitResponse) org.tikv.kvproto.Kvrpcpb.CommitResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CommitResponse.class, org.tikv.kvproto.Kvrpcpb.CommitResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CommitResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } commitVersion_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.CommitResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CommitResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CommitResponse build() { org.tikv.kvproto.Kvrpcpb.CommitResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CommitResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.CommitResponse result = new org.tikv.kvproto.Kvrpcpb.CommitResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.commitVersion_ = commitVersion_; 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.Kvrpcpb.CommitResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CommitResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CommitResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.CommitResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } if (other.getCommitVersion() != 0L) { setCommitVersion(other.getCommitVersion()); } 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.Kvrpcpb.CommitResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CommitResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** * .kvrpcpb.KeyError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private long commitVersion_ ; /** *
       * If the commit ts is derived from min_commit_ts, this field should be set.
       * 
* * uint64 commit_version = 3; */ public long getCommitVersion() { return commitVersion_; } /** *
       * If the commit ts is derived from min_commit_ts, this field should be set.
       * 
* * uint64 commit_version = 3; */ public Builder setCommitVersion(long value) { commitVersion_ = value; onChanged(); return this; } /** *
       * If the commit ts is derived from min_commit_ts, this field should be set.
       * 
* * uint64 commit_version = 3; */ public Builder clearCommitVersion() { commitVersion_ = 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:kvrpcpb.CommitResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.CommitResponse) private static final org.tikv.kvproto.Kvrpcpb.CommitResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CommitResponse(); } public static org.tikv.kvproto.Kvrpcpb.CommitResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CommitResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitResponse(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.Kvrpcpb.CommitResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ImportRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ImportRequest) com.google.protobuf.MessageOrBuilder { /** * repeated .kvrpcpb.Mutation mutations = 1; */ java.util.List getMutationsList(); /** * repeated .kvrpcpb.Mutation mutations = 1; */ org.tikv.kvproto.Kvrpcpb.Mutation getMutations(int index); /** * repeated .kvrpcpb.Mutation mutations = 1; */ int getMutationsCount(); /** * repeated .kvrpcpb.Mutation mutations = 1; */ java.util.List getMutationsOrBuilderList(); /** * repeated .kvrpcpb.Mutation mutations = 1; */ org.tikv.kvproto.Kvrpcpb.MutationOrBuilder getMutationsOrBuilder( int index); /** * uint64 commit_version = 2; */ long getCommitVersion(); } /** *
   * Not yet implemented.
   * 
* * Protobuf type {@code kvrpcpb.ImportRequest} */ public static final class ImportRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ImportRequest) ImportRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ImportRequest.newBuilder() to construct. private ImportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImportRequest() { mutations_ = java.util.Collections.emptyList(); commitVersion_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ImportRequest( 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)) { mutations_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } mutations_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.Mutation.parser(), extensionRegistry)); break; } case 16: { commitVersion_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { mutations_ = java.util.Collections.unmodifiableList(mutations_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ImportRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ImportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ImportRequest.class, org.tikv.kvproto.Kvrpcpb.ImportRequest.Builder.class); } private int bitField0_; public static final int MUTATIONS_FIELD_NUMBER = 1; private java.util.List mutations_; /** * repeated .kvrpcpb.Mutation mutations = 1; */ public java.util.List getMutationsList() { return mutations_; } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public java.util.List getMutationsOrBuilderList() { return mutations_; } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public int getMutationsCount() { return mutations_.size(); } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public org.tikv.kvproto.Kvrpcpb.Mutation getMutations(int index) { return mutations_.get(index); } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public org.tikv.kvproto.Kvrpcpb.MutationOrBuilder getMutationsOrBuilder( int index) { return mutations_.get(index); } public static final int COMMIT_VERSION_FIELD_NUMBER = 2; private long commitVersion_; /** * uint64 commit_version = 2; */ public long getCommitVersion() { return commitVersion_; } 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 < mutations_.size(); i++) { output.writeMessage(1, mutations_.get(i)); } if (commitVersion_ != 0L) { output.writeUInt64(2, commitVersion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < mutations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, mutations_.get(i)); } if (commitVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, commitVersion_); } 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.Kvrpcpb.ImportRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ImportRequest other = (org.tikv.kvproto.Kvrpcpb.ImportRequest) obj; boolean result = true; result = result && getMutationsList() .equals(other.getMutationsList()); result = result && (getCommitVersion() == other.getCommitVersion()); 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 (getMutationsCount() > 0) { hash = (37 * hash) + MUTATIONS_FIELD_NUMBER; hash = (53 * hash) + getMutationsList().hashCode(); } hash = (37 * hash) + COMMIT_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ImportRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ImportRequest 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.Kvrpcpb.ImportRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ImportRequest 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.Kvrpcpb.ImportRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ImportRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ImportRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ImportRequest 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.Kvrpcpb.ImportRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ImportRequest 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.Kvrpcpb.ImportRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ImportRequest 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.Kvrpcpb.ImportRequest 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; } /** *
     * Not yet implemented.
     * 
* * Protobuf type {@code kvrpcpb.ImportRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ImportRequest) org.tikv.kvproto.Kvrpcpb.ImportRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ImportRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ImportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ImportRequest.class, org.tikv.kvproto.Kvrpcpb.ImportRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ImportRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMutationsFieldBuilder(); } } public Builder clear() { super.clear(); if (mutationsBuilder_ == null) { mutations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { mutationsBuilder_.clear(); } commitVersion_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ImportRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.ImportRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ImportRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ImportRequest build() { org.tikv.kvproto.Kvrpcpb.ImportRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ImportRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.ImportRequest result = new org.tikv.kvproto.Kvrpcpb.ImportRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (mutationsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { mutations_ = java.util.Collections.unmodifiableList(mutations_); bitField0_ = (bitField0_ & ~0x00000001); } result.mutations_ = mutations_; } else { result.mutations_ = mutationsBuilder_.build(); } result.commitVersion_ = commitVersion_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.ImportRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ImportRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ImportRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.ImportRequest.getDefaultInstance()) return this; if (mutationsBuilder_ == null) { if (!other.mutations_.isEmpty()) { if (mutations_.isEmpty()) { mutations_ = other.mutations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMutationsIsMutable(); mutations_.addAll(other.mutations_); } onChanged(); } } else { if (!other.mutations_.isEmpty()) { if (mutationsBuilder_.isEmpty()) { mutationsBuilder_.dispose(); mutationsBuilder_ = null; mutations_ = other.mutations_; bitField0_ = (bitField0_ & ~0x00000001); mutationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMutationsFieldBuilder() : null; } else { mutationsBuilder_.addAllMessages(other.mutations_); } } } if (other.getCommitVersion() != 0L) { setCommitVersion(other.getCommitVersion()); } 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.Kvrpcpb.ImportRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ImportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List mutations_ = java.util.Collections.emptyList(); private void ensureMutationsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { mutations_ = new java.util.ArrayList(mutations_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Mutation, org.tikv.kvproto.Kvrpcpb.Mutation.Builder, org.tikv.kvproto.Kvrpcpb.MutationOrBuilder> mutationsBuilder_; /** * repeated .kvrpcpb.Mutation mutations = 1; */ public java.util.List getMutationsList() { if (mutationsBuilder_ == null) { return java.util.Collections.unmodifiableList(mutations_); } else { return mutationsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public int getMutationsCount() { if (mutationsBuilder_ == null) { return mutations_.size(); } else { return mutationsBuilder_.getCount(); } } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public org.tikv.kvproto.Kvrpcpb.Mutation getMutations(int index) { if (mutationsBuilder_ == null) { return mutations_.get(index); } else { return mutationsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public Builder setMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation value) { if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutationsIsMutable(); mutations_.set(index, value); onChanged(); } else { mutationsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public Builder setMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation.Builder builderForValue) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.set(index, builderForValue.build()); onChanged(); } else { mutationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public Builder addMutations(org.tikv.kvproto.Kvrpcpb.Mutation value) { if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutationsIsMutable(); mutations_.add(value); onChanged(); } else { mutationsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public Builder addMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation value) { if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutationsIsMutable(); mutations_.add(index, value); onChanged(); } else { mutationsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public Builder addMutations( org.tikv.kvproto.Kvrpcpb.Mutation.Builder builderForValue) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.add(builderForValue.build()); onChanged(); } else { mutationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public Builder addMutations( int index, org.tikv.kvproto.Kvrpcpb.Mutation.Builder builderForValue) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.add(index, builderForValue.build()); onChanged(); } else { mutationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public Builder addAllMutations( java.lang.Iterable values) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, mutations_); onChanged(); } else { mutationsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public Builder clearMutations() { if (mutationsBuilder_ == null) { mutations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { mutationsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public Builder removeMutations(int index) { if (mutationsBuilder_ == null) { ensureMutationsIsMutable(); mutations_.remove(index); onChanged(); } else { mutationsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public org.tikv.kvproto.Kvrpcpb.Mutation.Builder getMutationsBuilder( int index) { return getMutationsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public org.tikv.kvproto.Kvrpcpb.MutationOrBuilder getMutationsOrBuilder( int index) { if (mutationsBuilder_ == null) { return mutations_.get(index); } else { return mutationsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public java.util.List getMutationsOrBuilderList() { if (mutationsBuilder_ != null) { return mutationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(mutations_); } } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public org.tikv.kvproto.Kvrpcpb.Mutation.Builder addMutationsBuilder() { return getMutationsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.Mutation.getDefaultInstance()); } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public org.tikv.kvproto.Kvrpcpb.Mutation.Builder addMutationsBuilder( int index) { return getMutationsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.Mutation.getDefaultInstance()); } /** * repeated .kvrpcpb.Mutation mutations = 1; */ public java.util.List getMutationsBuilderList() { return getMutationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Mutation, org.tikv.kvproto.Kvrpcpb.Mutation.Builder, org.tikv.kvproto.Kvrpcpb.MutationOrBuilder> getMutationsFieldBuilder() { if (mutationsBuilder_ == null) { mutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Mutation, org.tikv.kvproto.Kvrpcpb.Mutation.Builder, org.tikv.kvproto.Kvrpcpb.MutationOrBuilder>( mutations_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); mutations_ = null; } return mutationsBuilder_; } private long commitVersion_ ; /** * uint64 commit_version = 2; */ public long getCommitVersion() { return commitVersion_; } /** * uint64 commit_version = 2; */ public Builder setCommitVersion(long value) { commitVersion_ = value; onChanged(); return this; } /** * uint64 commit_version = 2; */ public Builder clearCommitVersion() { commitVersion_ = 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:kvrpcpb.ImportRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.ImportRequest) private static final org.tikv.kvproto.Kvrpcpb.ImportRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ImportRequest(); } public static org.tikv.kvproto.Kvrpcpb.ImportRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ImportRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ImportRequest(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.Kvrpcpb.ImportRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ImportResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ImportResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code kvrpcpb.ImportResponse} */ public static final class ImportResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ImportResponse) ImportResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ImportResponse.newBuilder() to construct. private ImportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ImportResponse() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ImportResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ImportResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ImportResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ImportResponse.class, org.tikv.kvproto.Kvrpcpb.ImportResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } 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.Kvrpcpb.ImportResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ImportResponse other = (org.tikv.kvproto.Kvrpcpb.ImportResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ImportResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ImportResponse 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.Kvrpcpb.ImportResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ImportResponse 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.Kvrpcpb.ImportResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ImportResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ImportResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ImportResponse 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.Kvrpcpb.ImportResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ImportResponse 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.Kvrpcpb.ImportResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ImportResponse 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.Kvrpcpb.ImportResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.ImportResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ImportResponse) org.tikv.kvproto.Kvrpcpb.ImportResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ImportResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ImportResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ImportResponse.class, org.tikv.kvproto.Kvrpcpb.ImportResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ImportResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ImportResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.ImportResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ImportResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ImportResponse build() { org.tikv.kvproto.Kvrpcpb.ImportResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ImportResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.ImportResponse result = new org.tikv.kvproto.Kvrpcpb.ImportResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; 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.Kvrpcpb.ImportResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ImportResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ImportResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.ImportResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.ImportResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ImportResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.ImportResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.ImportResponse) private static final org.tikv.kvproto.Kvrpcpb.ImportResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ImportResponse(); } public static org.tikv.kvproto.Kvrpcpb.ImportResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ImportResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ImportResponse(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.Kvrpcpb.ImportResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CleanupRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CleanupRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * uint64 start_version = 3; */ long getStartVersion(); /** *
     * The current timestamp, used in combination with a lock's TTL to determine
     * if the lock has expired. If `current_ts == 0`, then the key will be unlocked
     * irrespective of its TTL.
     * 
* * uint64 current_ts = 4; */ long getCurrentTs(); } /** *
   * Cleanup a key by possibly unlocking it.
   * From 4.0 onwards, this message is no longer used.
   * 
* * Protobuf type {@code kvrpcpb.CleanupRequest} */ public static final class CleanupRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CleanupRequest) CleanupRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CleanupRequest.newBuilder() to construct. private CleanupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CleanupRequest() { key_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; currentTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CleanupRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { key_ = input.readBytes(); break; } case 24: { startVersion_ = input.readUInt64(); break; } case 32: { currentTs_ = 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.Kvrpcpb.internal_static_kvrpcpb_CleanupRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CleanupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CleanupRequest.class, org.tikv.kvproto.Kvrpcpb.CleanupRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int START_VERSION_FIELD_NUMBER = 3; private long startVersion_; /** * uint64 start_version = 3; */ public long getStartVersion() { return startVersion_; } public static final int CURRENT_TS_FIELD_NUMBER = 4; private long currentTs_; /** *
     * The current timestamp, used in combination with a lock's TTL to determine
     * if the lock has expired. If `current_ts == 0`, then the key will be unlocked
     * irrespective of its TTL.
     * 
* * uint64 current_ts = 4; */ public long getCurrentTs() { return currentTs_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (startVersion_ != 0L) { output.writeUInt64(3, startVersion_); } if (currentTs_ != 0L) { output.writeUInt64(4, currentTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, startVersion_); } if (currentTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, currentTs_); } 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.Kvrpcpb.CleanupRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CleanupRequest other = (org.tikv.kvproto.Kvrpcpb.CleanupRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKey() .equals(other.getKey()); result = result && (getStartVersion() == other.getStartVersion()); result = result && (getCurrentTs() == other.getCurrentTs()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (37 * hash) + CURRENT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCurrentTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CleanupRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CleanupRequest 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.Kvrpcpb.CleanupRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CleanupRequest 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.Kvrpcpb.CleanupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CleanupRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CleanupRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CleanupRequest 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.Kvrpcpb.CleanupRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CleanupRequest 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.Kvrpcpb.CleanupRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CleanupRequest 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.Kvrpcpb.CleanupRequest 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; } /** *
     * Cleanup a key by possibly unlocking it.
     * From 4.0 onwards, this message is no longer used.
     * 
* * Protobuf type {@code kvrpcpb.CleanupRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CleanupRequest) org.tikv.kvproto.Kvrpcpb.CleanupRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CleanupRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CleanupRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CleanupRequest.class, org.tikv.kvproto.Kvrpcpb.CleanupRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CleanupRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } key_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; currentTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CleanupRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.CleanupRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CleanupRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CleanupRequest build() { org.tikv.kvproto.Kvrpcpb.CleanupRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CleanupRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.CleanupRequest result = new org.tikv.kvproto.Kvrpcpb.CleanupRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.key_ = key_; result.startVersion_ = startVersion_; result.currentTs_ = currentTs_; 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.Kvrpcpb.CleanupRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CleanupRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CleanupRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.CleanupRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } if (other.getCurrentTs() != 0L) { setCurrentTs(other.getCurrentTs()); } 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.Kvrpcpb.CleanupRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CleanupRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private long startVersion_ ; /** * uint64 start_version = 3; */ public long getStartVersion() { return startVersion_; } /** * uint64 start_version = 3; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** * uint64 start_version = 3; */ public Builder clearStartVersion() { startVersion_ = 0L; onChanged(); return this; } private long currentTs_ ; /** *
       * The current timestamp, used in combination with a lock's TTL to determine
       * if the lock has expired. If `current_ts == 0`, then the key will be unlocked
       * irrespective of its TTL.
       * 
* * uint64 current_ts = 4; */ public long getCurrentTs() { return currentTs_; } /** *
       * The current timestamp, used in combination with a lock's TTL to determine
       * if the lock has expired. If `current_ts == 0`, then the key will be unlocked
       * irrespective of its TTL.
       * 
* * uint64 current_ts = 4; */ public Builder setCurrentTs(long value) { currentTs_ = value; onChanged(); return this; } /** *
       * The current timestamp, used in combination with a lock's TTL to determine
       * if the lock has expired. If `current_ts == 0`, then the key will be unlocked
       * irrespective of its TTL.
       * 
* * uint64 current_ts = 4; */ public Builder clearCurrentTs() { currentTs_ = 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:kvrpcpb.CleanupRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.CleanupRequest) private static final org.tikv.kvproto.Kvrpcpb.CleanupRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CleanupRequest(); } public static org.tikv.kvproto.Kvrpcpb.CleanupRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CleanupRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CleanupRequest(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.Kvrpcpb.CleanupRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CleanupResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CleanupResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.KeyError error = 2; */ boolean hasError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); /** *
     * Set if the key is already committed.
     * 
* * uint64 commit_version = 3; */ long getCommitVersion(); } /** * Protobuf type {@code kvrpcpb.CleanupResponse} */ public static final class CleanupResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CleanupResponse) CleanupResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CleanupResponse.newBuilder() to construct. private CleanupResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CleanupResponse() { commitVersion_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CleanupResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 24: { commitVersion_ = 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.Kvrpcpb.internal_static_kvrpcpb_CleanupResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CleanupResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CleanupResponse.class, org.tikv.kvproto.Kvrpcpb.CleanupResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int COMMIT_VERSION_FIELD_NUMBER = 3; private long commitVersion_; /** *
     * Set if the key is already committed.
     * 
* * uint64 commit_version = 3; */ public long getCommitVersion() { return commitVersion_; } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } if (commitVersion_ != 0L) { output.writeUInt64(3, commitVersion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } if (commitVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, commitVersion_); } 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.Kvrpcpb.CleanupResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CleanupResponse other = (org.tikv.kvproto.Kvrpcpb.CleanupResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && (getCommitVersion() == other.getCommitVersion()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (37 * hash) + COMMIT_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CleanupResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CleanupResponse 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.Kvrpcpb.CleanupResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CleanupResponse 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.Kvrpcpb.CleanupResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CleanupResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CleanupResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CleanupResponse 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.Kvrpcpb.CleanupResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CleanupResponse 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.Kvrpcpb.CleanupResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CleanupResponse 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.Kvrpcpb.CleanupResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.CleanupResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CleanupResponse) org.tikv.kvproto.Kvrpcpb.CleanupResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CleanupResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CleanupResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CleanupResponse.class, org.tikv.kvproto.Kvrpcpb.CleanupResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CleanupResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } commitVersion_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CleanupResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.CleanupResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CleanupResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CleanupResponse build() { org.tikv.kvproto.Kvrpcpb.CleanupResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CleanupResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.CleanupResponse result = new org.tikv.kvproto.Kvrpcpb.CleanupResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.commitVersion_ = commitVersion_; 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.Kvrpcpb.CleanupResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CleanupResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CleanupResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.CleanupResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } if (other.getCommitVersion() != 0L) { setCommitVersion(other.getCommitVersion()); } 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.Kvrpcpb.CleanupResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CleanupResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** * .kvrpcpb.KeyError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private long commitVersion_ ; /** *
       * Set if the key is already committed.
       * 
* * uint64 commit_version = 3; */ public long getCommitVersion() { return commitVersion_; } /** *
       * Set if the key is already committed.
       * 
* * uint64 commit_version = 3; */ public Builder setCommitVersion(long value) { commitVersion_ = value; onChanged(); return this; } /** *
       * Set if the key is already committed.
       * 
* * uint64 commit_version = 3; */ public Builder clearCommitVersion() { commitVersion_ = 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:kvrpcpb.CleanupResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.CleanupResponse) private static final org.tikv.kvproto.Kvrpcpb.CleanupResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CleanupResponse(); } public static org.tikv.kvproto.Kvrpcpb.CleanupResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CleanupResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CleanupResponse(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.Kvrpcpb.CleanupResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchGetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.BatchGetRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * repeated bytes keys = 2; */ java.util.List getKeysList(); /** * repeated bytes keys = 2; */ int getKeysCount(); /** * repeated bytes keys = 2; */ com.google.protobuf.ByteString getKeys(int index); /** * uint64 version = 3; */ long getVersion(); } /** *
   * Similar to a `Get` request.
   * 
* * Protobuf type {@code kvrpcpb.BatchGetRequest} */ public static final class BatchGetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.BatchGetRequest) BatchGetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BatchGetRequest.newBuilder() to construct. private BatchGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchGetRequest() { keys_ = java.util.Collections.emptyList(); version_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BatchGetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } keys_.add(input.readBytes()); break; } case 24: { version_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { keys_ = java.util.Collections.unmodifiableList(keys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.BatchGetRequest.class, org.tikv.kvproto.Kvrpcpb.BatchGetRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEYS_FIELD_NUMBER = 2; private java.util.List keys_; /** * repeated bytes keys = 2; */ public java.util.List getKeysList() { return keys_; } /** * repeated bytes keys = 2; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 2; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } public static final int VERSION_FIELD_NUMBER = 3; private long version_; /** * uint64 version = 3; */ public long getVersion() { return version_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } for (int i = 0; i < keys_.size(); i++) { output.writeBytes(2, keys_.get(i)); } if (version_ != 0L) { output.writeUInt64(3, version_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(keys_.get(i)); } size += dataSize; size += 1 * getKeysList().size(); } if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, version_); } 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.Kvrpcpb.BatchGetRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.BatchGetRequest other = (org.tikv.kvproto.Kvrpcpb.BatchGetRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKeysList() .equals(other.getKeysList()); result = result && (getVersion() == other.getVersion()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.BatchGetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchGetRequest 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.Kvrpcpb.BatchGetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchGetRequest 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.Kvrpcpb.BatchGetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchGetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.BatchGetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchGetRequest 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.Kvrpcpb.BatchGetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchGetRequest 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.Kvrpcpb.BatchGetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchGetRequest 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.Kvrpcpb.BatchGetRequest 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; } /** *
     * Similar to a `Get` request.
     * 
* * Protobuf type {@code kvrpcpb.BatchGetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.BatchGetRequest) org.tikv.kvproto.Kvrpcpb.BatchGetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.BatchGetRequest.class, org.tikv.kvproto.Kvrpcpb.BatchGetRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.BatchGetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); version_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchGetRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.BatchGetRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.BatchGetRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.BatchGetRequest build() { org.tikv.kvproto.Kvrpcpb.BatchGetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.BatchGetRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.BatchGetRequest result = new org.tikv.kvproto.Kvrpcpb.BatchGetRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000002); } result.keys_ = keys_; result.version_ = version_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.BatchGetRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.BatchGetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.BatchGetRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.BatchGetRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } 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.Kvrpcpb.BatchGetRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.BatchGetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000002; } } /** * repeated bytes keys = 2; */ public java.util.List getKeysList() { return java.util.Collections.unmodifiableList(keys_); } /** * repeated bytes keys = 2; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 2; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } /** * repeated bytes keys = 2; */ public Builder setKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder addKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder clearKeys() { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private long version_ ; /** * uint64 version = 3; */ public long getVersion() { return version_; } /** * uint64 version = 3; */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * uint64 version = 3; */ public Builder clearVersion() { version_ = 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:kvrpcpb.BatchGetRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.BatchGetRequest) private static final org.tikv.kvproto.Kvrpcpb.BatchGetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.BatchGetRequest(); } public static org.tikv.kvproto.Kvrpcpb.BatchGetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchGetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchGetRequest(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.Kvrpcpb.BatchGetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchGetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.BatchGetResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ java.util.List getPairsList(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index); /** * repeated .kvrpcpb.KvPair pairs = 2; */ int getPairsCount(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ java.util.List getPairsOrBuilderList(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index); /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ boolean hasExecDetailsV2(); /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 getExecDetailsV2(); /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder getExecDetailsV2OrBuilder(); /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo batch get all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 5; */ boolean hasError(); /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo batch get all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 5; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo batch get all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 5; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code kvrpcpb.BatchGetResponse} */ public static final class BatchGetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.BatchGetResponse) BatchGetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use BatchGetResponse.newBuilder() to construct. private BatchGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchGetResponse() { pairs_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BatchGetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } pairs_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KvPair.parser(), extensionRegistry)); break; } case 34: { org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder subBuilder = null; if (execDetailsV2_ != null) { subBuilder = execDetailsV2_.toBuilder(); } execDetailsV2_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(execDetailsV2_); execDetailsV2_ = subBuilder.buildPartial(); } break; } case 42: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.BatchGetResponse.class, org.tikv.kvproto.Kvrpcpb.BatchGetResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int PAIRS_FIELD_NUMBER = 2; private java.util.List pairs_; /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsList() { return pairs_; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { return pairs_; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public int getPairsCount() { return pairs_.size(); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index) { return pairs_.get(index); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index) { return pairs_.get(index); } public static final int EXEC_DETAILS_V2_FIELD_NUMBER = 4; private org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 execDetailsV2_; /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ public boolean hasExecDetailsV2() { return execDetailsV2_ != null; } /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 getExecDetailsV2() { return execDetailsV2_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.getDefaultInstance() : execDetailsV2_; } /** *
     * Time and scan details when processing the request.
     * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder getExecDetailsV2OrBuilder() { return getExecDetailsV2(); } public static final int ERROR_FIELD_NUMBER = 5; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo batch get all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 5; */ public boolean hasError() { return error_ != null; } /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo batch get all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 5; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** *
     * This KeyError exists when some key is locked but we cannot check locks of all keys.
     * In this case, `pairs` should be empty and the client should redo batch get all the keys
     * after resolving the lock.
     * 
* * .kvrpcpb.KeyError error = 5; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } for (int i = 0; i < pairs_.size(); i++) { output.writeMessage(2, pairs_.get(i)); } if (execDetailsV2_ != null) { output.writeMessage(4, getExecDetailsV2()); } if (error_ != null) { output.writeMessage(5, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } for (int i = 0; i < pairs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, pairs_.get(i)); } if (execDetailsV2_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getExecDetailsV2()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getError()); } 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.Kvrpcpb.BatchGetResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.BatchGetResponse other = (org.tikv.kvproto.Kvrpcpb.BatchGetResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getPairsList() .equals(other.getPairsList()); result = result && (hasExecDetailsV2() == other.hasExecDetailsV2()); if (hasExecDetailsV2()) { result = result && getExecDetailsV2() .equals(other.getExecDetailsV2()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (getPairsCount() > 0) { hash = (37 * hash) + PAIRS_FIELD_NUMBER; hash = (53 * hash) + getPairsList().hashCode(); } if (hasExecDetailsV2()) { hash = (37 * hash) + EXEC_DETAILS_V2_FIELD_NUMBER; hash = (53 * hash) + getExecDetailsV2().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.BatchGetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchGetResponse 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.Kvrpcpb.BatchGetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchGetResponse 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.Kvrpcpb.BatchGetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchGetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.BatchGetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchGetResponse 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.Kvrpcpb.BatchGetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchGetResponse 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.Kvrpcpb.BatchGetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchGetResponse 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.Kvrpcpb.BatchGetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.BatchGetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.BatchGetResponse) org.tikv.kvproto.Kvrpcpb.BatchGetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.BatchGetResponse.class, org.tikv.kvproto.Kvrpcpb.BatchGetResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.BatchGetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPairsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { pairsBuilder_.clear(); } if (execDetailsV2Builder_ == null) { execDetailsV2_ = null; } else { execDetailsV2_ = null; execDetailsV2Builder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchGetResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.BatchGetResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.BatchGetResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.BatchGetResponse build() { org.tikv.kvproto.Kvrpcpb.BatchGetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.BatchGetResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.BatchGetResponse result = new org.tikv.kvproto.Kvrpcpb.BatchGetResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (pairsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); bitField0_ = (bitField0_ & ~0x00000002); } result.pairs_ = pairs_; } else { result.pairs_ = pairsBuilder_.build(); } if (execDetailsV2Builder_ == null) { result.execDetailsV2_ = execDetailsV2_; } else { result.execDetailsV2_ = execDetailsV2Builder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.BatchGetResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.BatchGetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.BatchGetResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.BatchGetResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (pairsBuilder_ == null) { if (!other.pairs_.isEmpty()) { if (pairs_.isEmpty()) { pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePairsIsMutable(); pairs_.addAll(other.pairs_); } onChanged(); } } else { if (!other.pairs_.isEmpty()) { if (pairsBuilder_.isEmpty()) { pairsBuilder_.dispose(); pairsBuilder_ = null; pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); pairsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPairsFieldBuilder() : null; } else { pairsBuilder_.addAllMessages(other.pairs_); } } } if (other.hasExecDetailsV2()) { mergeExecDetailsV2(other.getExecDetailsV2()); } if (other.hasError()) { mergeError(other.getError()); } 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.Kvrpcpb.BatchGetResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.BatchGetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.util.List pairs_ = java.util.Collections.emptyList(); private void ensurePairsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(pairs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> pairsBuilder_; /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsList() { if (pairsBuilder_ == null) { return java.util.Collections.unmodifiableList(pairs_); } else { return pairsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public int getPairsCount() { if (pairsBuilder_ == null) { return pairs_.size(); } else { return pairsBuilder_.getCount(); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.set(index, value); onChanged(); } else { pairsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.set(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs(org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(value); onChanged(); } else { pairsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(index, value); onChanged(); } else { pairsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addAllPairs( java.lang.Iterable values) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pairs_); onChanged(); } else { pairsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder clearPairs() { if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { pairsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder removePairs(int index) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.remove(index); onChanged(); } else { pairsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder getPairsBuilder( int index) { return getPairsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { if (pairsBuilder_ != null) { return pairsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pairs_); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addPairsBuilder() { return getPairsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addPairsBuilder( int index) { return getPairsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsBuilderList() { return getPairsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> getPairsFieldBuilder() { if (pairsBuilder_ == null) { pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder>( pairs_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); pairs_ = null; } return pairsBuilder_; } private org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 execDetailsV2_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ExecDetailsV2, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder> execDetailsV2Builder_; /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ public boolean hasExecDetailsV2() { return execDetailsV2Builder_ != null || execDetailsV2_ != null; } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 getExecDetailsV2() { if (execDetailsV2Builder_ == null) { return execDetailsV2_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.getDefaultInstance() : execDetailsV2_; } else { return execDetailsV2Builder_.getMessage(); } } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ public Builder setExecDetailsV2(org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 value) { if (execDetailsV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } execDetailsV2_ = value; onChanged(); } else { execDetailsV2Builder_.setMessage(value); } return this; } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ public Builder setExecDetailsV2( org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder builderForValue) { if (execDetailsV2Builder_ == null) { execDetailsV2_ = builderForValue.build(); onChanged(); } else { execDetailsV2Builder_.setMessage(builderForValue.build()); } return this; } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ public Builder mergeExecDetailsV2(org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 value) { if (execDetailsV2Builder_ == null) { if (execDetailsV2_ != null) { execDetailsV2_ = org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.newBuilder(execDetailsV2_).mergeFrom(value).buildPartial(); } else { execDetailsV2_ = value; } onChanged(); } else { execDetailsV2Builder_.mergeFrom(value); } return this; } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ public Builder clearExecDetailsV2() { if (execDetailsV2Builder_ == null) { execDetailsV2_ = null; onChanged(); } else { execDetailsV2_ = null; execDetailsV2Builder_ = null; } return this; } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder getExecDetailsV2Builder() { onChanged(); return getExecDetailsV2FieldBuilder().getBuilder(); } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder getExecDetailsV2OrBuilder() { if (execDetailsV2Builder_ != null) { return execDetailsV2Builder_.getMessageOrBuilder(); } else { return execDetailsV2_ == null ? org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.getDefaultInstance() : execDetailsV2_; } } /** *
       * Time and scan details when processing the request.
       * 
* * .kvrpcpb.ExecDetailsV2 exec_details_v2 = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ExecDetailsV2, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder> getExecDetailsV2FieldBuilder() { if (execDetailsV2Builder_ == null) { execDetailsV2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ExecDetailsV2, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder>( getExecDetailsV2(), getParentForChildren(), isClean()); execDetailsV2_ = null; } return execDetailsV2Builder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo batch get all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 5; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo batch get all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 5; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo batch get all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 5; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo batch get all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 5; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo batch get all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 5; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo batch get all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 5; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo batch get all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 5; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo batch get all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 5; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** *
       * This KeyError exists when some key is locked but we cannot check locks of all keys.
       * In this case, `pairs` should be empty and the client should redo batch get all the keys
       * after resolving the lock.
       * 
* * .kvrpcpb.KeyError error = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } 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:kvrpcpb.BatchGetResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.BatchGetResponse) private static final org.tikv.kvproto.Kvrpcpb.BatchGetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.BatchGetResponse(); } public static org.tikv.kvproto.Kvrpcpb.BatchGetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchGetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchGetResponse(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.Kvrpcpb.BatchGetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchRollbackRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.BatchRollbackRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** *
     * Identify the transaction to be rolled back.
     * 
* * uint64 start_version = 2; */ long getStartVersion(); /** *
     * The keys to rollback.
     * 
* * repeated bytes keys = 3; */ java.util.List getKeysList(); /** *
     * The keys to rollback.
     * 
* * repeated bytes keys = 3; */ int getKeysCount(); /** *
     * The keys to rollback.
     * 
* * repeated bytes keys = 3; */ com.google.protobuf.ByteString getKeys(int index); } /** *
   * Rollback a prewritten transaction. This will remove the preliminary data from the database,
   * unlock locks, and leave a rollback tombstone.
   * 
* * Protobuf type {@code kvrpcpb.BatchRollbackRequest} */ public static final class BatchRollbackRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.BatchRollbackRequest) BatchRollbackRequestOrBuilder { private static final long serialVersionUID = 0L; // Use BatchRollbackRequest.newBuilder() to construct. private BatchRollbackRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchRollbackRequest() { startVersion_ = 0L; keys_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BatchRollbackRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { startVersion_ = input.readUInt64(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } keys_.add(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 { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { keys_ = java.util.Collections.unmodifiableList(keys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchRollbackRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchRollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.class, org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_VERSION_FIELD_NUMBER = 2; private long startVersion_; /** *
     * Identify the transaction to be rolled back.
     * 
* * uint64 start_version = 2; */ public long getStartVersion() { return startVersion_; } public static final int KEYS_FIELD_NUMBER = 3; private java.util.List keys_; /** *
     * The keys to rollback.
     * 
* * repeated bytes keys = 3; */ public java.util.List getKeysList() { return keys_; } /** *
     * The keys to rollback.
     * 
* * repeated bytes keys = 3; */ public int getKeysCount() { return keys_.size(); } /** *
     * The keys to rollback.
     * 
* * repeated bytes keys = 3; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (startVersion_ != 0L) { output.writeUInt64(2, startVersion_); } for (int i = 0; i < keys_.size(); i++) { output.writeBytes(3, keys_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, startVersion_); } { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(keys_.get(i)); } size += dataSize; size += 1 * getKeysList().size(); } 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.Kvrpcpb.BatchRollbackRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest other = (org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getStartVersion() == other.getStartVersion()); result = result && getKeysList() .equals(other.getKeysList()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest 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.Kvrpcpb.BatchRollbackRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest 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.Kvrpcpb.BatchRollbackRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest 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.Kvrpcpb.BatchRollbackRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest 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.Kvrpcpb.BatchRollbackRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest 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.Kvrpcpb.BatchRollbackRequest 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; } /** *
     * Rollback a prewritten transaction. This will remove the preliminary data from the database,
     * unlock locks, and leave a rollback tombstone.
     * 
* * Protobuf type {@code kvrpcpb.BatchRollbackRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.BatchRollbackRequest) org.tikv.kvproto.Kvrpcpb.BatchRollbackRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchRollbackRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchRollbackRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.class, org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } startVersion_ = 0L; keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchRollbackRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest build() { org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest result = new org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.startVersion_ = startVersion_; if (((bitField0_ & 0x00000004) == 0x00000004)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000004); } result.keys_ = keys_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long startVersion_ ; /** *
       * Identify the transaction to be rolled back.
       * 
* * uint64 start_version = 2; */ public long getStartVersion() { return startVersion_; } /** *
       * Identify the transaction to be rolled back.
       * 
* * uint64 start_version = 2; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** *
       * Identify the transaction to be rolled back.
       * 
* * uint64 start_version = 2; */ public Builder clearStartVersion() { startVersion_ = 0L; onChanged(); return this; } private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000004; } } /** *
       * The keys to rollback.
       * 
* * repeated bytes keys = 3; */ public java.util.List getKeysList() { return java.util.Collections.unmodifiableList(keys_); } /** *
       * The keys to rollback.
       * 
* * repeated bytes keys = 3; */ public int getKeysCount() { return keys_.size(); } /** *
       * The keys to rollback.
       * 
* * repeated bytes keys = 3; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } /** *
       * The keys to rollback.
       * 
* * repeated bytes keys = 3; */ public Builder setKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** *
       * The keys to rollback.
       * 
* * repeated bytes keys = 3; */ public Builder addKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** *
       * The keys to rollback.
       * 
* * repeated bytes keys = 3; */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** *
       * The keys to rollback.
       * 
* * repeated bytes keys = 3; */ public Builder clearKeys() { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); 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:kvrpcpb.BatchRollbackRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.BatchRollbackRequest) private static final org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest(); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchRollbackRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchRollbackRequest(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.Kvrpcpb.BatchRollbackRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BatchRollbackResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.BatchRollbackResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.KeyError error = 2; */ boolean hasError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code kvrpcpb.BatchRollbackResponse} */ public static final class BatchRollbackResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.BatchRollbackResponse) BatchRollbackResponseOrBuilder { private static final long serialVersionUID = 0L; // Use BatchRollbackResponse.newBuilder() to construct. private BatchRollbackResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BatchRollbackResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BatchRollbackResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = 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.Kvrpcpb.internal_static_kvrpcpb_BatchRollbackResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchRollbackResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.class, org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } 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.Kvrpcpb.BatchRollbackResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse other = (org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse 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.Kvrpcpb.BatchRollbackResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse 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.Kvrpcpb.BatchRollbackResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse 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.Kvrpcpb.BatchRollbackResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse 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.Kvrpcpb.BatchRollbackResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse 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.Kvrpcpb.BatchRollbackResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.BatchRollbackResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.BatchRollbackResponse) org.tikv.kvproto.Kvrpcpb.BatchRollbackResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchRollbackResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchRollbackResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.class, org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_BatchRollbackResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse build() { org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse result = new org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.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.Kvrpcpb.BatchRollbackResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } 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.Kvrpcpb.BatchRollbackResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** * .kvrpcpb.KeyError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } 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:kvrpcpb.BatchRollbackResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.BatchRollbackResponse) private static final org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse(); } public static org.tikv.kvproto.Kvrpcpb.BatchRollbackResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public BatchRollbackResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BatchRollbackResponse(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.Kvrpcpb.BatchRollbackResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScanLockRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ScanLockRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** *
     * Returns all locks with a start timestamp before `max_version`.
     * 
* * uint64 max_version = 2; */ long getMaxVersion(); /** *
     * Start scanning from this key.
     * 
* * bytes start_key = 3; */ com.google.protobuf.ByteString getStartKey(); /** *
     * The maximum number of locks to return.
     * 
* * uint32 limit = 4; */ int getLimit(); /** *
     * The exclusive upperbound for scanning.
     * 
* * bytes end_key = 5; */ com.google.protobuf.ByteString getEndKey(); } /** *
   * Scan the database for locks. Used at the start of the GC process to find all
   * old locks.
   * 
* * Protobuf type {@code kvrpcpb.ScanLockRequest} */ public static final class ScanLockRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ScanLockRequest) ScanLockRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ScanLockRequest.newBuilder() to construct. private ScanLockRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScanLockRequest() { maxVersion_ = 0L; startKey_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0; endKey_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScanLockRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { maxVersion_ = input.readUInt64(); break; } case 26: { startKey_ = input.readBytes(); break; } case 32: { limit_ = input.readUInt32(); break; } case 42: { 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.Kvrpcpb.internal_static_kvrpcpb_ScanLockRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanLockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanLockRequest.class, org.tikv.kvproto.Kvrpcpb.ScanLockRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int MAX_VERSION_FIELD_NUMBER = 2; private long maxVersion_; /** *
     * Returns all locks with a start timestamp before `max_version`.
     * 
* * uint64 max_version = 2; */ public long getMaxVersion() { return maxVersion_; } public static final int START_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString startKey_; /** *
     * Start scanning from this key.
     * 
* * bytes start_key = 3; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int LIMIT_FIELD_NUMBER = 4; private int limit_; /** *
     * The maximum number of locks to return.
     * 
* * uint32 limit = 4; */ public int getLimit() { return limit_; } public static final int END_KEY_FIELD_NUMBER = 5; private com.google.protobuf.ByteString endKey_; /** *
     * The exclusive upperbound for scanning.
     * 
* * bytes end_key = 5; */ 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 (context_ != null) { output.writeMessage(1, getContext()); } if (maxVersion_ != 0L) { output.writeUInt64(2, maxVersion_); } if (!startKey_.isEmpty()) { output.writeBytes(3, startKey_); } if (limit_ != 0) { output.writeUInt32(4, limit_); } if (!endKey_.isEmpty()) { output.writeBytes(5, endKey_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (maxVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, maxVersion_); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, startKey_); } if (limit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, limit_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, 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.Kvrpcpb.ScanLockRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ScanLockRequest other = (org.tikv.kvproto.Kvrpcpb.ScanLockRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getMaxVersion() == other.getMaxVersion()); result = result && getStartKey() .equals(other.getStartKey()); result = result && (getLimit() == other.getLimit()); 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(); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + MAX_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxVersion()); hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); 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.Kvrpcpb.ScanLockRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanLockRequest 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.Kvrpcpb.ScanLockRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanLockRequest 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.Kvrpcpb.ScanLockRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanLockRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ScanLockRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanLockRequest 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.Kvrpcpb.ScanLockRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanLockRequest 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.Kvrpcpb.ScanLockRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanLockRequest 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.Kvrpcpb.ScanLockRequest 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; } /** *
     * Scan the database for locks. Used at the start of the GC process to find all
     * old locks.
     * 
* * Protobuf type {@code kvrpcpb.ScanLockRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ScanLockRequest) org.tikv.kvproto.Kvrpcpb.ScanLockRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanLockRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanLockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanLockRequest.class, org.tikv.kvproto.Kvrpcpb.ScanLockRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ScanLockRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } maxVersion_ = 0L; startKey_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0; endKey_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanLockRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.ScanLockRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ScanLockRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ScanLockRequest build() { org.tikv.kvproto.Kvrpcpb.ScanLockRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ScanLockRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.ScanLockRequest result = new org.tikv.kvproto.Kvrpcpb.ScanLockRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.maxVersion_ = maxVersion_; result.startKey_ = startKey_; result.limit_ = limit_; 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.Kvrpcpb.ScanLockRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ScanLockRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ScanLockRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.ScanLockRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getMaxVersion() != 0L) { setMaxVersion(other.getMaxVersion()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getLimit() != 0) { setLimit(other.getLimit()); } 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.Kvrpcpb.ScanLockRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ScanLockRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long maxVersion_ ; /** *
       * Returns all locks with a start timestamp before `max_version`.
       * 
* * uint64 max_version = 2; */ public long getMaxVersion() { return maxVersion_; } /** *
       * Returns all locks with a start timestamp before `max_version`.
       * 
* * uint64 max_version = 2; */ public Builder setMaxVersion(long value) { maxVersion_ = value; onChanged(); return this; } /** *
       * Returns all locks with a start timestamp before `max_version`.
       * 
* * uint64 max_version = 2; */ public Builder clearMaxVersion() { maxVersion_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Start scanning from this key.
       * 
* * bytes start_key = 3; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** *
       * Start scanning from this key.
       * 
* * bytes start_key = 3; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** *
       * Start scanning from this key.
       * 
* * bytes start_key = 3; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private int limit_ ; /** *
       * The maximum number of locks to return.
       * 
* * uint32 limit = 4; */ public int getLimit() { return limit_; } /** *
       * The maximum number of locks to return.
       * 
* * uint32 limit = 4; */ public Builder setLimit(int value) { limit_ = value; onChanged(); return this; } /** *
       * The maximum number of locks to return.
       * 
* * uint32 limit = 4; */ public Builder clearLimit() { limit_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** *
       * The exclusive upperbound for scanning.
       * 
* * bytes end_key = 5; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** *
       * The exclusive upperbound for scanning.
       * 
* * bytes end_key = 5; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** *
       * The exclusive upperbound for scanning.
       * 
* * bytes end_key = 5; */ 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:kvrpcpb.ScanLockRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.ScanLockRequest) private static final org.tikv.kvproto.Kvrpcpb.ScanLockRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ScanLockRequest(); } public static org.tikv.kvproto.Kvrpcpb.ScanLockRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScanLockRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScanLockRequest(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.Kvrpcpb.ScanLockRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScanLockResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ScanLockResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.KeyError error = 2; */ boolean hasError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); /** *
     * Info on all locks found by the scan.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ java.util.List getLocksList(); /** *
     * Info on all locks found by the scan.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index); /** *
     * Info on all locks found by the scan.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ int getLocksCount(); /** *
     * Info on all locks found by the scan.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ java.util.List getLocksOrBuilderList(); /** *
     * Info on all locks found by the scan.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index); } /** * Protobuf type {@code kvrpcpb.ScanLockResponse} */ public static final class ScanLockResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ScanLockResponse) ScanLockResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ScanLockResponse.newBuilder() to construct. private ScanLockResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScanLockResponse() { locks_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScanLockResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { locks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } locks_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.LockInfo.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { locks_ = java.util.Collections.unmodifiableList(locks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanLockResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanLockResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanLockResponse.class, org.tikv.kvproto.Kvrpcpb.ScanLockResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int LOCKS_FIELD_NUMBER = 3; private java.util.List locks_; /** *
     * Info on all locks found by the scan.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksList() { return locks_; } /** *
     * Info on all locks found by the scan.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksOrBuilderList() { return locks_; } /** *
     * Info on all locks found by the scan.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public int getLocksCount() { return locks_.size(); } /** *
     * Info on all locks found by the scan.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index) { return locks_.get(index); } /** *
     * Info on all locks found by the scan.
     * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index) { return locks_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } for (int i = 0; i < locks_.size(); i++) { output.writeMessage(3, locks_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } for (int i = 0; i < locks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, locks_.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.Kvrpcpb.ScanLockResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ScanLockResponse other = (org.tikv.kvproto.Kvrpcpb.ScanLockResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && getLocksList() .equals(other.getLocksList()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } if (getLocksCount() > 0) { hash = (37 * hash) + LOCKS_FIELD_NUMBER; hash = (53 * hash) + getLocksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ScanLockResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanLockResponse 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.Kvrpcpb.ScanLockResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanLockResponse 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.Kvrpcpb.ScanLockResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanLockResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ScanLockResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanLockResponse 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.Kvrpcpb.ScanLockResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanLockResponse 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.Kvrpcpb.ScanLockResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanLockResponse 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.Kvrpcpb.ScanLockResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.ScanLockResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ScanLockResponse) org.tikv.kvproto.Kvrpcpb.ScanLockResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanLockResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanLockResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanLockResponse.class, org.tikv.kvproto.Kvrpcpb.ScanLockResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ScanLockResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLocksFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } if (locksBuilder_ == null) { locks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { locksBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanLockResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.ScanLockResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ScanLockResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ScanLockResponse build() { org.tikv.kvproto.Kvrpcpb.ScanLockResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ScanLockResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.ScanLockResponse result = new org.tikv.kvproto.Kvrpcpb.ScanLockResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } if (locksBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { locks_ = java.util.Collections.unmodifiableList(locks_); bitField0_ = (bitField0_ & ~0x00000004); } result.locks_ = locks_; } else { result.locks_ = locksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.ScanLockResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ScanLockResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ScanLockResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.ScanLockResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } if (locksBuilder_ == null) { if (!other.locks_.isEmpty()) { if (locks_.isEmpty()) { locks_ = other.locks_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLocksIsMutable(); locks_.addAll(other.locks_); } onChanged(); } } else { if (!other.locks_.isEmpty()) { if (locksBuilder_.isEmpty()) { locksBuilder_.dispose(); locksBuilder_ = null; locks_ = other.locks_; bitField0_ = (bitField0_ & ~0x00000004); locksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocksFieldBuilder() : null; } else { locksBuilder_.addAllMessages(other.locks_); } } } 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.Kvrpcpb.ScanLockResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ScanLockResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** * .kvrpcpb.KeyError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private java.util.List locks_ = java.util.Collections.emptyList(); private void ensureLocksIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { locks_ = new java.util.ArrayList(locks_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> locksBuilder_; /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksList() { if (locksBuilder_ == null) { return java.util.Collections.unmodifiableList(locks_); } else { return locksBuilder_.getMessageList(); } } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public int getLocksCount() { if (locksBuilder_ == null) { return locks_.size(); } else { return locksBuilder_.getCount(); } } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index) { if (locksBuilder_ == null) { return locks_.get(index); } else { return locksBuilder_.getMessage(index); } } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder setLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.set(index, value); onChanged(); } else { locksBuilder_.setMessage(index, value); } return this; } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder setLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.set(index, builderForValue.build()); onChanged(); } else { locksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.add(value); onChanged(); } else { locksBuilder_.addMessage(value); } return this; } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.add(index, value); onChanged(); } else { locksBuilder_.addMessage(index, value); } return this; } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks( org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.add(builderForValue.build()); onChanged(); } else { locksBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.add(index, builderForValue.build()); onChanged(); } else { locksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addAllLocks( java.lang.Iterable values) { if (locksBuilder_ == null) { ensureLocksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, locks_); onChanged(); } else { locksBuilder_.addAllMessages(values); } return this; } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder clearLocks() { if (locksBuilder_ == null) { locks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { locksBuilder_.clear(); } return this; } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder removeLocks(int index) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.remove(index); onChanged(); } else { locksBuilder_.remove(index); } return this; } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder getLocksBuilder( int index) { return getLocksFieldBuilder().getBuilder(index); } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index) { if (locksBuilder_ == null) { return locks_.get(index); } else { return locksBuilder_.getMessageOrBuilder(index); } } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksOrBuilderList() { if (locksBuilder_ != null) { return locksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(locks_); } } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder addLocksBuilder() { return getLocksFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance()); } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder addLocksBuilder( int index) { return getLocksFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance()); } /** *
       * Info on all locks found by the scan.
       * 
* * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksBuilderList() { return getLocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> getLocksFieldBuilder() { if (locksBuilder_ == null) { locksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>( locks_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); locks_ = null; } return locksBuilder_; } 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:kvrpcpb.ScanLockResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.ScanLockResponse) private static final org.tikv.kvproto.Kvrpcpb.ScanLockResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ScanLockResponse(); } public static org.tikv.kvproto.Kvrpcpb.ScanLockResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScanLockResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScanLockResponse(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.Kvrpcpb.ScanLockResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResolveLockRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ResolveLockRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * uint64 start_version = 2; */ long getStartVersion(); /** *
     * `commit_version == 0` means the transaction was rolled back.
     * `commit_version > 0` means the transaction was committed at the given timestamp.
     * 
* * uint64 commit_version = 3; */ long getCommitVersion(); /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ java.util.List getTxnInfosList(); /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ org.tikv.kvproto.Kvrpcpb.TxnInfo getTxnInfos(int index); /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ int getTxnInfosCount(); /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ java.util.List getTxnInfosOrBuilderList(); /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ org.tikv.kvproto.Kvrpcpb.TxnInfoOrBuilder getTxnInfosOrBuilder( int index); /** *
     * Only resolve specified keys.
     * 
* * repeated bytes keys = 5; */ java.util.List getKeysList(); /** *
     * Only resolve specified keys.
     * 
* * repeated bytes keys = 5; */ int getKeysCount(); /** *
     * Only resolve specified keys.
     * 
* * repeated bytes keys = 5; */ com.google.protobuf.ByteString getKeys(int index); } /** *
   * For all keys locked by the transaction identified by `start_version`, either
   * commit or rollback the transaction and unlock the key.
   * 
* * Protobuf type {@code kvrpcpb.ResolveLockRequest} */ public static final class ResolveLockRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ResolveLockRequest) ResolveLockRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ResolveLockRequest.newBuilder() to construct. private ResolveLockRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResolveLockRequest() { startVersion_ = 0L; commitVersion_ = 0L; txnInfos_ = java.util.Collections.emptyList(); keys_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResolveLockRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { startVersion_ = input.readUInt64(); break; } case 24: { commitVersion_ = input.readUInt64(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { txnInfos_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } txnInfos_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.TxnInfo.parser(), extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } keys_.add(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 { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { txnInfos_ = java.util.Collections.unmodifiableList(txnInfos_); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { keys_ = java.util.Collections.unmodifiableList(keys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ResolveLockRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ResolveLockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.class, org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_VERSION_FIELD_NUMBER = 2; private long startVersion_; /** * uint64 start_version = 2; */ public long getStartVersion() { return startVersion_; } public static final int COMMIT_VERSION_FIELD_NUMBER = 3; private long commitVersion_; /** *
     * `commit_version == 0` means the transaction was rolled back.
     * `commit_version > 0` means the transaction was committed at the given timestamp.
     * 
* * uint64 commit_version = 3; */ public long getCommitVersion() { return commitVersion_; } public static final int TXN_INFOS_FIELD_NUMBER = 4; private java.util.List txnInfos_; /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public java.util.List getTxnInfosList() { return txnInfos_; } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public java.util.List getTxnInfosOrBuilderList() { return txnInfos_; } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public int getTxnInfosCount() { return txnInfos_.size(); } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public org.tikv.kvproto.Kvrpcpb.TxnInfo getTxnInfos(int index) { return txnInfos_.get(index); } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public org.tikv.kvproto.Kvrpcpb.TxnInfoOrBuilder getTxnInfosOrBuilder( int index) { return txnInfos_.get(index); } public static final int KEYS_FIELD_NUMBER = 5; private java.util.List keys_; /** *
     * Only resolve specified keys.
     * 
* * repeated bytes keys = 5; */ public java.util.List getKeysList() { return keys_; } /** *
     * Only resolve specified keys.
     * 
* * repeated bytes keys = 5; */ public int getKeysCount() { return keys_.size(); } /** *
     * Only resolve specified keys.
     * 
* * repeated bytes keys = 5; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (startVersion_ != 0L) { output.writeUInt64(2, startVersion_); } if (commitVersion_ != 0L) { output.writeUInt64(3, commitVersion_); } for (int i = 0; i < txnInfos_.size(); i++) { output.writeMessage(4, txnInfos_.get(i)); } for (int i = 0; i < keys_.size(); i++) { output.writeBytes(5, keys_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, startVersion_); } if (commitVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, commitVersion_); } for (int i = 0; i < txnInfos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, txnInfos_.get(i)); } { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(keys_.get(i)); } size += dataSize; size += 1 * getKeysList().size(); } 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.Kvrpcpb.ResolveLockRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ResolveLockRequest other = (org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getStartVersion() == other.getStartVersion()); result = result && (getCommitVersion() == other.getCommitVersion()); result = result && getTxnInfosList() .equals(other.getTxnInfosList()); result = result && getKeysList() .equals(other.getKeysList()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (37 * hash) + COMMIT_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitVersion()); if (getTxnInfosCount() > 0) { hash = (37 * hash) + TXN_INFOS_FIELD_NUMBER; hash = (53 * hash) + getTxnInfosList().hashCode(); } if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ResolveLockRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockRequest 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.Kvrpcpb.ResolveLockRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockRequest 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.Kvrpcpb.ResolveLockRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockRequest 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.Kvrpcpb.ResolveLockRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockRequest 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.Kvrpcpb.ResolveLockRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockRequest 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.Kvrpcpb.ResolveLockRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * For all keys locked by the transaction identified by `start_version`, either
     * commit or rollback the transaction and unlock the key.
     * 
* * Protobuf type {@code kvrpcpb.ResolveLockRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ResolveLockRequest) org.tikv.kvproto.Kvrpcpb.ResolveLockRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ResolveLockRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ResolveLockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.class, org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTxnInfosFieldBuilder(); } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } startVersion_ = 0L; commitVersion_ = 0L; if (txnInfosBuilder_ == null) { txnInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { txnInfosBuilder_.clear(); } keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ResolveLockRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.ResolveLockRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ResolveLockRequest build() { org.tikv.kvproto.Kvrpcpb.ResolveLockRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ResolveLockRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.ResolveLockRequest result = new org.tikv.kvproto.Kvrpcpb.ResolveLockRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.startVersion_ = startVersion_; result.commitVersion_ = commitVersion_; if (txnInfosBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { txnInfos_ = java.util.Collections.unmodifiableList(txnInfos_); bitField0_ = (bitField0_ & ~0x00000008); } result.txnInfos_ = txnInfos_; } else { result.txnInfos_ = txnInfosBuilder_.build(); } if (((bitField0_ & 0x00000010) == 0x00000010)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000010); } result.keys_ = keys_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ResolveLockRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ResolveLockRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.ResolveLockRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } if (other.getCommitVersion() != 0L) { setCommitVersion(other.getCommitVersion()); } if (txnInfosBuilder_ == null) { if (!other.txnInfos_.isEmpty()) { if (txnInfos_.isEmpty()) { txnInfos_ = other.txnInfos_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTxnInfosIsMutable(); txnInfos_.addAll(other.txnInfos_); } onChanged(); } } else { if (!other.txnInfos_.isEmpty()) { if (txnInfosBuilder_.isEmpty()) { txnInfosBuilder_.dispose(); txnInfosBuilder_ = null; txnInfos_ = other.txnInfos_; bitField0_ = (bitField0_ & ~0x00000008); txnInfosBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTxnInfosFieldBuilder() : null; } else { txnInfosBuilder_.addAllMessages(other.txnInfos_); } } } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.ResolveLockRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ResolveLockRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long startVersion_ ; /** * uint64 start_version = 2; */ public long getStartVersion() { return startVersion_; } /** * uint64 start_version = 2; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** * uint64 start_version = 2; */ public Builder clearStartVersion() { startVersion_ = 0L; onChanged(); return this; } private long commitVersion_ ; /** *
       * `commit_version == 0` means the transaction was rolled back.
       * `commit_version > 0` means the transaction was committed at the given timestamp.
       * 
* * uint64 commit_version = 3; */ public long getCommitVersion() { return commitVersion_; } /** *
       * `commit_version == 0` means the transaction was rolled back.
       * `commit_version > 0` means the transaction was committed at the given timestamp.
       * 
* * uint64 commit_version = 3; */ public Builder setCommitVersion(long value) { commitVersion_ = value; onChanged(); return this; } /** *
       * `commit_version == 0` means the transaction was rolled back.
       * `commit_version > 0` means the transaction was committed at the given timestamp.
       * 
* * uint64 commit_version = 3; */ public Builder clearCommitVersion() { commitVersion_ = 0L; onChanged(); return this; } private java.util.List txnInfos_ = java.util.Collections.emptyList(); private void ensureTxnInfosIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { txnInfos_ = new java.util.ArrayList(txnInfos_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnInfo, org.tikv.kvproto.Kvrpcpb.TxnInfo.Builder, org.tikv.kvproto.Kvrpcpb.TxnInfoOrBuilder> txnInfosBuilder_; /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public java.util.List getTxnInfosList() { if (txnInfosBuilder_ == null) { return java.util.Collections.unmodifiableList(txnInfos_); } else { return txnInfosBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public int getTxnInfosCount() { if (txnInfosBuilder_ == null) { return txnInfos_.size(); } else { return txnInfosBuilder_.getCount(); } } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public org.tikv.kvproto.Kvrpcpb.TxnInfo getTxnInfos(int index) { if (txnInfosBuilder_ == null) { return txnInfos_.get(index); } else { return txnInfosBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public Builder setTxnInfos( int index, org.tikv.kvproto.Kvrpcpb.TxnInfo value) { if (txnInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTxnInfosIsMutable(); txnInfos_.set(index, value); onChanged(); } else { txnInfosBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public Builder setTxnInfos( int index, org.tikv.kvproto.Kvrpcpb.TxnInfo.Builder builderForValue) { if (txnInfosBuilder_ == null) { ensureTxnInfosIsMutable(); txnInfos_.set(index, builderForValue.build()); onChanged(); } else { txnInfosBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public Builder addTxnInfos(org.tikv.kvproto.Kvrpcpb.TxnInfo value) { if (txnInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTxnInfosIsMutable(); txnInfos_.add(value); onChanged(); } else { txnInfosBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public Builder addTxnInfos( int index, org.tikv.kvproto.Kvrpcpb.TxnInfo value) { if (txnInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTxnInfosIsMutable(); txnInfos_.add(index, value); onChanged(); } else { txnInfosBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public Builder addTxnInfos( org.tikv.kvproto.Kvrpcpb.TxnInfo.Builder builderForValue) { if (txnInfosBuilder_ == null) { ensureTxnInfosIsMutable(); txnInfos_.add(builderForValue.build()); onChanged(); } else { txnInfosBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public Builder addTxnInfos( int index, org.tikv.kvproto.Kvrpcpb.TxnInfo.Builder builderForValue) { if (txnInfosBuilder_ == null) { ensureTxnInfosIsMutable(); txnInfos_.add(index, builderForValue.build()); onChanged(); } else { txnInfosBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public Builder addAllTxnInfos( java.lang.Iterable values) { if (txnInfosBuilder_ == null) { ensureTxnInfosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, txnInfos_); onChanged(); } else { txnInfosBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public Builder clearTxnInfos() { if (txnInfosBuilder_ == null) { txnInfos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { txnInfosBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public Builder removeTxnInfos(int index) { if (txnInfosBuilder_ == null) { ensureTxnInfosIsMutable(); txnInfos_.remove(index); onChanged(); } else { txnInfosBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public org.tikv.kvproto.Kvrpcpb.TxnInfo.Builder getTxnInfosBuilder( int index) { return getTxnInfosFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public org.tikv.kvproto.Kvrpcpb.TxnInfoOrBuilder getTxnInfosOrBuilder( int index) { if (txnInfosBuilder_ == null) { return txnInfos_.get(index); } else { return txnInfosBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public java.util.List getTxnInfosOrBuilderList() { if (txnInfosBuilder_ != null) { return txnInfosBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(txnInfos_); } } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public org.tikv.kvproto.Kvrpcpb.TxnInfo.Builder addTxnInfosBuilder() { return getTxnInfosFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.TxnInfo.getDefaultInstance()); } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public org.tikv.kvproto.Kvrpcpb.TxnInfo.Builder addTxnInfosBuilder( int index) { return getTxnInfosFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.TxnInfo.getDefaultInstance()); } /** * repeated .kvrpcpb.TxnInfo txn_infos = 4; */ public java.util.List getTxnInfosBuilderList() { return getTxnInfosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnInfo, org.tikv.kvproto.Kvrpcpb.TxnInfo.Builder, org.tikv.kvproto.Kvrpcpb.TxnInfoOrBuilder> getTxnInfosFieldBuilder() { if (txnInfosBuilder_ == null) { txnInfosBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnInfo, org.tikv.kvproto.Kvrpcpb.TxnInfo.Builder, org.tikv.kvproto.Kvrpcpb.TxnInfoOrBuilder>( txnInfos_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); txnInfos_ = null; } return txnInfosBuilder_; } private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000010; } } /** *
       * Only resolve specified keys.
       * 
* * repeated bytes keys = 5; */ public java.util.List getKeysList() { return java.util.Collections.unmodifiableList(keys_); } /** *
       * Only resolve specified keys.
       * 
* * repeated bytes keys = 5; */ public int getKeysCount() { return keys_.size(); } /** *
       * Only resolve specified keys.
       * 
* * repeated bytes keys = 5; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } /** *
       * Only resolve specified keys.
       * 
* * repeated bytes keys = 5; */ public Builder setKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** *
       * Only resolve specified keys.
       * 
* * repeated bytes keys = 5; */ public Builder addKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** *
       * Only resolve specified keys.
       * 
* * repeated bytes keys = 5; */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** *
       * Only resolve specified keys.
       * 
* * repeated bytes keys = 5; */ public Builder clearKeys() { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); 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:kvrpcpb.ResolveLockRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.ResolveLockRequest) private static final org.tikv.kvproto.Kvrpcpb.ResolveLockRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ResolveLockRequest(); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResolveLockRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResolveLockRequest(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.Kvrpcpb.ResolveLockRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResolveLockResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ResolveLockResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.KeyError error = 2; */ boolean hasError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code kvrpcpb.ResolveLockResponse} */ public static final class ResolveLockResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ResolveLockResponse) ResolveLockResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ResolveLockResponse.newBuilder() to construct. private ResolveLockResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResolveLockResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResolveLockResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = 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.Kvrpcpb.internal_static_kvrpcpb_ResolveLockResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ResolveLockResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.class, org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } 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.Kvrpcpb.ResolveLockResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ResolveLockResponse other = (org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ResolveLockResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockResponse 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.Kvrpcpb.ResolveLockResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockResponse 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.Kvrpcpb.ResolveLockResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockResponse 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.Kvrpcpb.ResolveLockResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockResponse 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.Kvrpcpb.ResolveLockResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockResponse 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.Kvrpcpb.ResolveLockResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.ResolveLockResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ResolveLockResponse) org.tikv.kvproto.Kvrpcpb.ResolveLockResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ResolveLockResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ResolveLockResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.class, org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ResolveLockResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.ResolveLockResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ResolveLockResponse build() { org.tikv.kvproto.Kvrpcpb.ResolveLockResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ResolveLockResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.ResolveLockResponse result = new org.tikv.kvproto.Kvrpcpb.ResolveLockResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.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.Kvrpcpb.ResolveLockResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ResolveLockResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ResolveLockResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.ResolveLockResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } 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.Kvrpcpb.ResolveLockResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ResolveLockResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** * .kvrpcpb.KeyError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } 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:kvrpcpb.ResolveLockResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.ResolveLockResponse) private static final org.tikv.kvproto.Kvrpcpb.ResolveLockResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ResolveLockResponse(); } public static org.tikv.kvproto.Kvrpcpb.ResolveLockResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ResolveLockResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResolveLockResponse(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.Kvrpcpb.ResolveLockResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GCRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.GCRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * uint64 safe_point = 2; */ long getSafePoint(); } /** *
   * Request TiKV to garbage collect all non-current data older than `safe_point`.
   * 
* * Protobuf type {@code kvrpcpb.GCRequest} */ public static final class GCRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.GCRequest) GCRequestOrBuilder { private static final long serialVersionUID = 0L; // Use GCRequest.newBuilder() to construct. private GCRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GCRequest() { safePoint_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GCRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { safePoint_ = 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.Kvrpcpb.internal_static_kvrpcpb_GCRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GCRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.GCRequest.class, org.tikv.kvproto.Kvrpcpb.GCRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int SAFE_POINT_FIELD_NUMBER = 2; private long safePoint_; /** * uint64 safe_point = 2; */ public long getSafePoint() { return safePoint_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (safePoint_ != 0L) { output.writeUInt64(2, safePoint_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (safePoint_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, safePoint_); } 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.Kvrpcpb.GCRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.GCRequest other = (org.tikv.kvproto.Kvrpcpb.GCRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getSafePoint() == other.getSafePoint()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + SAFE_POINT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSafePoint()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.GCRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GCRequest 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.Kvrpcpb.GCRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GCRequest 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.Kvrpcpb.GCRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GCRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GCRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GCRequest 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.Kvrpcpb.GCRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GCRequest 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.Kvrpcpb.GCRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GCRequest 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.Kvrpcpb.GCRequest 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; } /** *
     * Request TiKV to garbage collect all non-current data older than `safe_point`.
     * 
* * Protobuf type {@code kvrpcpb.GCRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.GCRequest) org.tikv.kvproto.Kvrpcpb.GCRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GCRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GCRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.GCRequest.class, org.tikv.kvproto.Kvrpcpb.GCRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.GCRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } safePoint_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GCRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.GCRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.GCRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.GCRequest build() { org.tikv.kvproto.Kvrpcpb.GCRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.GCRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.GCRequest result = new org.tikv.kvproto.Kvrpcpb.GCRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.safePoint_ = safePoint_; 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.Kvrpcpb.GCRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.GCRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.GCRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.GCRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getSafePoint() != 0L) { setSafePoint(other.getSafePoint()); } 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.Kvrpcpb.GCRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.GCRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long safePoint_ ; /** * uint64 safe_point = 2; */ public long getSafePoint() { return safePoint_; } /** * uint64 safe_point = 2; */ public Builder setSafePoint(long value) { safePoint_ = value; onChanged(); return this; } /** * uint64 safe_point = 2; */ public Builder clearSafePoint() { safePoint_ = 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:kvrpcpb.GCRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.GCRequest) private static final org.tikv.kvproto.Kvrpcpb.GCRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.GCRequest(); } public static org.tikv.kvproto.Kvrpcpb.GCRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GCRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GCRequest(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.Kvrpcpb.GCRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GCResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.GCResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.KeyError error = 2; */ boolean hasError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** * .kvrpcpb.KeyError error = 2; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code kvrpcpb.GCResponse} */ public static final class GCResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.GCResponse) GCResponseOrBuilder { private static final long serialVersionUID = 0L; // Use GCResponse.newBuilder() to construct. private GCResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GCResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GCResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = 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.Kvrpcpb.internal_static_kvrpcpb_GCResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GCResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.GCResponse.class, org.tikv.kvproto.Kvrpcpb.GCResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } 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.Kvrpcpb.GCResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.GCResponse other = (org.tikv.kvproto.Kvrpcpb.GCResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.GCResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GCResponse 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.Kvrpcpb.GCResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GCResponse 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.Kvrpcpb.GCResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.GCResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.GCResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GCResponse 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.Kvrpcpb.GCResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GCResponse 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.Kvrpcpb.GCResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.GCResponse 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.Kvrpcpb.GCResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.GCResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.GCResponse) org.tikv.kvproto.Kvrpcpb.GCResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GCResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GCResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.GCResponse.class, org.tikv.kvproto.Kvrpcpb.GCResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.GCResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_GCResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.GCResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.GCResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.GCResponse build() { org.tikv.kvproto.Kvrpcpb.GCResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.GCResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.GCResponse result = new org.tikv.kvproto.Kvrpcpb.GCResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.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.Kvrpcpb.GCResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.GCResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.GCResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.GCResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } 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.Kvrpcpb.GCResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.GCResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.KeyError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.KeyError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.KeyError error = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** * .kvrpcpb.KeyError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } 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:kvrpcpb.GCResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.GCResponse) private static final org.tikv.kvproto.Kvrpcpb.GCResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.GCResponse(); } public static org.tikv.kvproto.Kvrpcpb.GCResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public GCResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GCResponse(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.Kvrpcpb.GCResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteRangeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.DeleteRangeRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 3; */ com.google.protobuf.ByteString getEndKey(); /** *
     * If true, the data will not be immediately deleted, but the operation will
     * still be replicated via Raft. This is used to notify TiKV that the data
     * will be deleted using `unsafe_destroy_range` soon.
     * 
* * bool notify_only = 4; */ boolean getNotifyOnly(); } /** *
   * Delete a range of data from TiKV.
   * This message should not be used.
   * 
* * Protobuf type {@code kvrpcpb.DeleteRangeRequest} */ public static final class DeleteRangeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.DeleteRangeRequest) DeleteRangeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteRangeRequest.newBuilder() to construct. private DeleteRangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteRangeRequest() { startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; notifyOnly_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteRangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { startKey_ = input.readBytes(); break; } case 26: { endKey_ = input.readBytes(); break; } case 32: { notifyOnly_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_DeleteRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_DeleteRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.class, org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int NOTIFY_ONLY_FIELD_NUMBER = 4; private boolean notifyOnly_; /** *
     * If true, the data will not be immediately deleted, but the operation will
     * still be replicated via Raft. This is used to notify TiKV that the data
     * will be deleted using `unsafe_destroy_range` soon.
     * 
* * bool notify_only = 4; */ public boolean getNotifyOnly() { return notifyOnly_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!startKey_.isEmpty()) { output.writeBytes(2, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(3, endKey_); } if (notifyOnly_ != false) { output.writeBool(4, notifyOnly_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, endKey_); } if (notifyOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, notifyOnly_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest other = (org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); result = result && (getNotifyOnly() == other.getNotifyOnly()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (37 * hash) + NOTIFY_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNotifyOnly()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Delete a range of data from TiKV.
     * This message should not be used.
     * 
* * Protobuf type {@code kvrpcpb.DeleteRangeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.DeleteRangeRequest) org.tikv.kvproto.Kvrpcpb.DeleteRangeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_DeleteRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_DeleteRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.class, org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; notifyOnly_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_DeleteRangeRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest build() { org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest result = new org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.startKey_ = startKey_; result.endKey_ = endKey_; result.notifyOnly_ = notifyOnly_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } if (other.getNotifyOnly() != false) { setNotifyOnly(other.getNotifyOnly()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 2; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 2; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 3; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 3; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private boolean notifyOnly_ ; /** *
       * If true, the data will not be immediately deleted, but the operation will
       * still be replicated via Raft. This is used to notify TiKV that the data
       * will be deleted using `unsafe_destroy_range` soon.
       * 
* * bool notify_only = 4; */ public boolean getNotifyOnly() { return notifyOnly_; } /** *
       * If true, the data will not be immediately deleted, but the operation will
       * still be replicated via Raft. This is used to notify TiKV that the data
       * will be deleted using `unsafe_destroy_range` soon.
       * 
* * bool notify_only = 4; */ public Builder setNotifyOnly(boolean value) { notifyOnly_ = value; onChanged(); return this; } /** *
       * If true, the data will not be immediately deleted, but the operation will
       * still be replicated via Raft. This is used to notify TiKV that the data
       * will be deleted using `unsafe_destroy_range` soon.
       * 
* * bool notify_only = 4; */ public Builder clearNotifyOnly() { notifyOnly_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.DeleteRangeRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.DeleteRangeRequest) private static final org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest(); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeleteRangeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteRangeRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Kvrpcpb.DeleteRangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeleteRangeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.DeleteRangeResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code kvrpcpb.DeleteRangeResponse} */ public static final class DeleteRangeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.DeleteRangeResponse) DeleteRangeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use DeleteRangeResponse.newBuilder() to construct. private DeleteRangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeleteRangeResponse() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DeleteRangeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_DeleteRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_DeleteRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.class, org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } 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.Kvrpcpb.DeleteRangeResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse other = (org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.DeleteRangeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.DeleteRangeResponse) org.tikv.kvproto.Kvrpcpb.DeleteRangeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_DeleteRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_DeleteRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.class, org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_DeleteRangeResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse build() { org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse result = new org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; 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.Kvrpcpb.DeleteRangeResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.DeleteRangeResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.DeleteRangeResponse) private static final org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse(); } public static org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public DeleteRangeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DeleteRangeResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Kvrpcpb.DeleteRangeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawGetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawGetRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * string cf = 3; */ java.lang.String getCf(); /** * string cf = 3; */ com.google.protobuf.ByteString getCfBytes(); } /** * Protobuf type {@code kvrpcpb.RawGetRequest} */ public static final class RawGetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawGetRequest) RawGetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RawGetRequest.newBuilder() to construct. private RawGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawGetRequest() { key_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawGetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { key_ = input.readBytes(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawGetRequest.class, org.tikv.kvproto.Kvrpcpb.RawGetRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int CF_FIELD_NUMBER = 3; private volatile java.lang.Object cf_; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cf_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cf_); } 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.Kvrpcpb.RawGetRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawGetRequest other = (org.tikv.kvproto.Kvrpcpb.RawGetRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKey() .equals(other.getKey()); result = result && getCf() .equals(other.getCf()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawGetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetRequest 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.Kvrpcpb.RawGetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetRequest 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.Kvrpcpb.RawGetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawGetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetRequest 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.Kvrpcpb.RawGetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetRequest 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.Kvrpcpb.RawGetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetRequest 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.Kvrpcpb.RawGetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawGetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawGetRequest) org.tikv.kvproto.Kvrpcpb.RawGetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawGetRequest.class, org.tikv.kvproto.Kvrpcpb.RawGetRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawGetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } key_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawGetRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawGetRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawGetRequest build() { org.tikv.kvproto.Kvrpcpb.RawGetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawGetRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RawGetRequest result = new org.tikv.kvproto.Kvrpcpb.RawGetRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.key_ = key_; result.cf_ = cf_; 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.Kvrpcpb.RawGetRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawGetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawGetRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RawGetRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.RawGetRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawGetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 3; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 3; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 3; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawGetRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawGetRequest) private static final org.tikv.kvproto.Kvrpcpb.RawGetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawGetRequest(); } public static org.tikv.kvproto.Kvrpcpb.RawGetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawGetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawGetRequest(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.Kvrpcpb.RawGetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawGetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawGetResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); /** * bytes value = 3; */ com.google.protobuf.ByteString getValue(); /** * bool not_found = 4; */ boolean getNotFound(); } /** * Protobuf type {@code kvrpcpb.RawGetResponse} */ public static final class RawGetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawGetResponse) RawGetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RawGetResponse.newBuilder() to construct. private RawGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawGetResponse() { error_ = ""; value_ = com.google.protobuf.ByteString.EMPTY; notFound_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawGetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } case 26: { value_ = input.readBytes(); break; } case 32: { notFound_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawGetResponse.class, org.tikv.kvproto.Kvrpcpb.RawGetResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int NOT_FOUND_FIELD_NUMBER = 4; private boolean notFound_; /** * bool not_found = 4; */ public boolean getNotFound() { return notFound_; } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } if (!value_.isEmpty()) { output.writeBytes(3, value_); } if (notFound_ != false) { output.writeBool(4, notFound_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, value_); } if (notFound_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, notFound_); } 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.Kvrpcpb.RawGetResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawGetResponse other = (org.tikv.kvproto.Kvrpcpb.RawGetResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); result = result && getValue() .equals(other.getValue()); result = result && (getNotFound() == other.getNotFound()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + NOT_FOUND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNotFound()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawGetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetResponse 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.Kvrpcpb.RawGetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetResponse 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.Kvrpcpb.RawGetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawGetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetResponse 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.Kvrpcpb.RawGetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetResponse 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.Kvrpcpb.RawGetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetResponse 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.Kvrpcpb.RawGetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawGetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawGetResponse) org.tikv.kvproto.Kvrpcpb.RawGetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawGetResponse.class, org.tikv.kvproto.Kvrpcpb.RawGetResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawGetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; value_ = com.google.protobuf.ByteString.EMPTY; notFound_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawGetResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawGetResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawGetResponse build() { org.tikv.kvproto.Kvrpcpb.RawGetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawGetResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RawGetResponse result = new org.tikv.kvproto.Kvrpcpb.RawGetResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; result.value_ = value_; result.notFound_ = notFound_; 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.Kvrpcpb.RawGetResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawGetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawGetResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RawGetResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.getNotFound() != false) { setNotFound(other.getNotFound()); } 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.Kvrpcpb.RawGetResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawGetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 3; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 3; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private boolean notFound_ ; /** * bool not_found = 4; */ public boolean getNotFound() { return notFound_; } /** * bool not_found = 4; */ public Builder setNotFound(boolean value) { notFound_ = value; onChanged(); return this; } /** * bool not_found = 4; */ public Builder clearNotFound() { notFound_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawGetResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawGetResponse) private static final org.tikv.kvproto.Kvrpcpb.RawGetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawGetResponse(); } public static org.tikv.kvproto.Kvrpcpb.RawGetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawGetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawGetResponse(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.Kvrpcpb.RawGetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawBatchGetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawBatchGetRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * repeated bytes keys = 2; */ java.util.List getKeysList(); /** * repeated bytes keys = 2; */ int getKeysCount(); /** * repeated bytes keys = 2; */ com.google.protobuf.ByteString getKeys(int index); /** * string cf = 3; */ java.lang.String getCf(); /** * string cf = 3; */ com.google.protobuf.ByteString getCfBytes(); } /** * Protobuf type {@code kvrpcpb.RawBatchGetRequest} */ public static final class RawBatchGetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawBatchGetRequest) RawBatchGetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RawBatchGetRequest.newBuilder() to construct. private RawBatchGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawBatchGetRequest() { keys_ = java.util.Collections.emptyList(); cf_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawBatchGetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } keys_.add(input.readBytes()); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { keys_ = java.util.Collections.unmodifiableList(keys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.class, org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEYS_FIELD_NUMBER = 2; private java.util.List keys_; /** * repeated bytes keys = 2; */ public java.util.List getKeysList() { return keys_; } /** * repeated bytes keys = 2; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 2; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } public static final int CF_FIELD_NUMBER = 3; private volatile java.lang.Object cf_; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } for (int i = 0; i < keys_.size(); i++) { output.writeBytes(2, keys_.get(i)); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cf_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(keys_.get(i)); } size += dataSize; size += 1 * getKeysList().size(); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cf_); } 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.Kvrpcpb.RawBatchGetRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest other = (org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKeysList() .equals(other.getKeysList()); result = result && getCf() .equals(other.getCf()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest 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.Kvrpcpb.RawBatchGetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest 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.Kvrpcpb.RawBatchGetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest 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.Kvrpcpb.RawBatchGetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest 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.Kvrpcpb.RawBatchGetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest 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.Kvrpcpb.RawBatchGetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawBatchGetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawBatchGetRequest) org.tikv.kvproto.Kvrpcpb.RawBatchGetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.class, org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); cf_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchGetRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest build() { org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest result = new org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000002); } result.keys_ = keys_; result.cf_ = cf_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000002; } } /** * repeated bytes keys = 2; */ public java.util.List getKeysList() { return java.util.Collections.unmodifiableList(keys_); } /** * repeated bytes keys = 2; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 2; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } /** * repeated bytes keys = 2; */ public Builder setKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder addKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder clearKeys() { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 3; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 3; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 3; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawBatchGetRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawBatchGetRequest) private static final org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest(); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawBatchGetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawBatchGetRequest(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.Kvrpcpb.RawBatchGetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawBatchGetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawBatchGetResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ java.util.List getPairsList(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index); /** * repeated .kvrpcpb.KvPair pairs = 2; */ int getPairsCount(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ java.util.List getPairsOrBuilderList(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index); } /** * Protobuf type {@code kvrpcpb.RawBatchGetResponse} */ public static final class RawBatchGetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawBatchGetResponse) RawBatchGetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RawBatchGetResponse.newBuilder() to construct. private RawBatchGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawBatchGetResponse() { pairs_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawBatchGetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } pairs_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KvPair.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.class, org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int PAIRS_FIELD_NUMBER = 2; private java.util.List pairs_; /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsList() { return pairs_; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { return pairs_; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public int getPairsCount() { return pairs_.size(); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index) { return pairs_.get(index); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index) { return pairs_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } for (int i = 0; i < pairs_.size(); i++) { output.writeMessage(2, pairs_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } for (int i = 0; i < pairs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, pairs_.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.Kvrpcpb.RawBatchGetResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse other = (org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getPairsList() .equals(other.getPairsList()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (getPairsCount() > 0) { hash = (37 * hash) + PAIRS_FIELD_NUMBER; hash = (53 * hash) + getPairsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse 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.Kvrpcpb.RawBatchGetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse 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.Kvrpcpb.RawBatchGetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse 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.Kvrpcpb.RawBatchGetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse 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.Kvrpcpb.RawBatchGetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse 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.Kvrpcpb.RawBatchGetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawBatchGetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawBatchGetResponse) org.tikv.kvproto.Kvrpcpb.RawBatchGetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.class, org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPairsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { pairsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchGetResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse build() { org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse result = new org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (pairsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); bitField0_ = (bitField0_ & ~0x00000002); } result.pairs_ = pairs_; } else { result.pairs_ = pairsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (pairsBuilder_ == null) { if (!other.pairs_.isEmpty()) { if (pairs_.isEmpty()) { pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePairsIsMutable(); pairs_.addAll(other.pairs_); } onChanged(); } } else { if (!other.pairs_.isEmpty()) { if (pairsBuilder_.isEmpty()) { pairsBuilder_.dispose(); pairsBuilder_ = null; pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); pairsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPairsFieldBuilder() : null; } else { pairsBuilder_.addAllMessages(other.pairs_); } } } 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.Kvrpcpb.RawBatchGetResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.util.List pairs_ = java.util.Collections.emptyList(); private void ensurePairsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(pairs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> pairsBuilder_; /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsList() { if (pairsBuilder_ == null) { return java.util.Collections.unmodifiableList(pairs_); } else { return pairsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public int getPairsCount() { if (pairsBuilder_ == null) { return pairs_.size(); } else { return pairsBuilder_.getCount(); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.set(index, value); onChanged(); } else { pairsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.set(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs(org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(value); onChanged(); } else { pairsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(index, value); onChanged(); } else { pairsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addAllPairs( java.lang.Iterable values) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pairs_); onChanged(); } else { pairsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder clearPairs() { if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { pairsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder removePairs(int index) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.remove(index); onChanged(); } else { pairsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder getPairsBuilder( int index) { return getPairsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { if (pairsBuilder_ != null) { return pairsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pairs_); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addPairsBuilder() { return getPairsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addPairsBuilder( int index) { return getPairsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsBuilderList() { return getPairsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> getPairsFieldBuilder() { if (pairsBuilder_ == null) { pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder>( pairs_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); pairs_ = null; } return pairsBuilder_; } 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:kvrpcpb.RawBatchGetResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawBatchGetResponse) private static final org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse(); } public static org.tikv.kvproto.Kvrpcpb.RawBatchGetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawBatchGetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawBatchGetResponse(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.Kvrpcpb.RawBatchGetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawPutRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawPutRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * bytes value = 3; */ com.google.protobuf.ByteString getValue(); /** * string cf = 4; */ java.lang.String getCf(); /** * string cf = 4; */ com.google.protobuf.ByteString getCfBytes(); /** * uint64 ttl = 5; */ long getTtl(); /** * bool for_cas = 6; */ boolean getForCas(); } /** * Protobuf type {@code kvrpcpb.RawPutRequest} */ public static final class RawPutRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawPutRequest) RawPutRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RawPutRequest.newBuilder() to construct. private RawPutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawPutRequest() { key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; ttl_ = 0L; forCas_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawPutRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { key_ = input.readBytes(); break; } case 26: { value_ = input.readBytes(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } case 40: { ttl_ = input.readUInt64(); break; } case 48: { forCas_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawPutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawPutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawPutRequest.class, org.tikv.kvproto.Kvrpcpb.RawPutRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int CF_FIELD_NUMBER = 4; private volatile java.lang.Object cf_; /** * string cf = 4; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } } /** * string cf = 4; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TTL_FIELD_NUMBER = 5; private long ttl_; /** * uint64 ttl = 5; */ public long getTtl() { return ttl_; } public static final int FOR_CAS_FIELD_NUMBER = 6; private boolean forCas_; /** * bool for_cas = 6; */ public boolean getForCas() { return forCas_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (!value_.isEmpty()) { output.writeBytes(3, value_); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cf_); } if (ttl_ != 0L) { output.writeUInt64(5, ttl_); } if (forCas_ != false) { output.writeBool(6, forCas_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, value_); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cf_); } if (ttl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, ttl_); } if (forCas_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, forCas_); } 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.Kvrpcpb.RawPutRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawPutRequest other = (org.tikv.kvproto.Kvrpcpb.RawPutRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); result = result && getCf() .equals(other.getCf()); result = result && (getTtl() == other.getTtl()); result = result && (getForCas() == other.getForCas()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTtl()); hash = (37 * hash) + FOR_CAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForCas()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawPutRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawPutRequest 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.Kvrpcpb.RawPutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawPutRequest 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.Kvrpcpb.RawPutRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawPutRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawPutRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawPutRequest 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.Kvrpcpb.RawPutRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawPutRequest 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.Kvrpcpb.RawPutRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawPutRequest 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.Kvrpcpb.RawPutRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawPutRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawPutRequest) org.tikv.kvproto.Kvrpcpb.RawPutRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawPutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawPutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawPutRequest.class, org.tikv.kvproto.Kvrpcpb.RawPutRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawPutRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; ttl_ = 0L; forCas_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawPutRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawPutRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawPutRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawPutRequest build() { org.tikv.kvproto.Kvrpcpb.RawPutRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawPutRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RawPutRequest result = new org.tikv.kvproto.Kvrpcpb.RawPutRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.key_ = key_; result.value_ = value_; result.cf_ = cf_; result.ttl_ = ttl_; result.forCas_ = forCas_; 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.Kvrpcpb.RawPutRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawPutRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawPutRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RawPutRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getTtl() != 0L) { setTtl(other.getTtl()); } if (other.getForCas() != false) { setForCas(other.getForCas()); } 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.Kvrpcpb.RawPutRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawPutRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 3; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 3; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 4; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 4; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 4; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 4; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 4; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } private long ttl_ ; /** * uint64 ttl = 5; */ public long getTtl() { return ttl_; } /** * uint64 ttl = 5; */ public Builder setTtl(long value) { ttl_ = value; onChanged(); return this; } /** * uint64 ttl = 5; */ public Builder clearTtl() { ttl_ = 0L; onChanged(); return this; } private boolean forCas_ ; /** * bool for_cas = 6; */ public boolean getForCas() { return forCas_; } /** * bool for_cas = 6; */ public Builder setForCas(boolean value) { forCas_ = value; onChanged(); return this; } /** * bool for_cas = 6; */ public Builder clearForCas() { forCas_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawPutRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawPutRequest) private static final org.tikv.kvproto.Kvrpcpb.RawPutRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawPutRequest(); } public static org.tikv.kvproto.Kvrpcpb.RawPutRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawPutRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawPutRequest(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.Kvrpcpb.RawPutRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawPutResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawPutResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code kvrpcpb.RawPutResponse} */ public static final class RawPutResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawPutResponse) RawPutResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RawPutResponse.newBuilder() to construct. private RawPutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawPutResponse() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawPutResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawPutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawPutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawPutResponse.class, org.tikv.kvproto.Kvrpcpb.RawPutResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } 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.Kvrpcpb.RawPutResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawPutResponse other = (org.tikv.kvproto.Kvrpcpb.RawPutResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawPutResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawPutResponse 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.Kvrpcpb.RawPutResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawPutResponse 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.Kvrpcpb.RawPutResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawPutResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawPutResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawPutResponse 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.Kvrpcpb.RawPutResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawPutResponse 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.Kvrpcpb.RawPutResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawPutResponse 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.Kvrpcpb.RawPutResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawPutResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawPutResponse) org.tikv.kvproto.Kvrpcpb.RawPutResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawPutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawPutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawPutResponse.class, org.tikv.kvproto.Kvrpcpb.RawPutResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawPutResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawPutResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawPutResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawPutResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawPutResponse build() { org.tikv.kvproto.Kvrpcpb.RawPutResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawPutResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RawPutResponse result = new org.tikv.kvproto.Kvrpcpb.RawPutResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; 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.Kvrpcpb.RawPutResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawPutResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawPutResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RawPutResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.RawPutResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawPutResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawPutResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawPutResponse) private static final org.tikv.kvproto.Kvrpcpb.RawPutResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawPutResponse(); } public static org.tikv.kvproto.Kvrpcpb.RawPutResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawPutResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawPutResponse(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.Kvrpcpb.RawPutResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawBatchPutRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawBatchPutRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ java.util.List getPairsList(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index); /** * repeated .kvrpcpb.KvPair pairs = 2; */ int getPairsCount(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ java.util.List getPairsOrBuilderList(); /** * repeated .kvrpcpb.KvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index); /** * string cf = 3; */ java.lang.String getCf(); /** * string cf = 3; */ com.google.protobuf.ByteString getCfBytes(); /** * uint64 ttl = 4; */ long getTtl(); /** * bool for_cas = 5; */ boolean getForCas(); } /** * Protobuf type {@code kvrpcpb.RawBatchPutRequest} */ public static final class RawBatchPutRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawBatchPutRequest) RawBatchPutRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RawBatchPutRequest.newBuilder() to construct. private RawBatchPutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawBatchPutRequest() { pairs_ = java.util.Collections.emptyList(); cf_ = ""; ttl_ = 0L; forCas_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawBatchPutRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } pairs_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KvPair.parser(), extensionRegistry)); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } case 32: { ttl_ = input.readUInt64(); break; } case 40: { forCas_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchPutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchPutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.class, org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int PAIRS_FIELD_NUMBER = 2; private java.util.List pairs_; /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsList() { return pairs_; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { return pairs_; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public int getPairsCount() { return pairs_.size(); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index) { return pairs_.get(index); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index) { return pairs_.get(index); } public static final int CF_FIELD_NUMBER = 3; private volatile java.lang.Object cf_; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TTL_FIELD_NUMBER = 4; private long ttl_; /** * uint64 ttl = 4; */ public long getTtl() { return ttl_; } public static final int FOR_CAS_FIELD_NUMBER = 5; private boolean forCas_; /** * bool for_cas = 5; */ public boolean getForCas() { return forCas_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } for (int i = 0; i < pairs_.size(); i++) { output.writeMessage(2, pairs_.get(i)); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cf_); } if (ttl_ != 0L) { output.writeUInt64(4, ttl_); } if (forCas_ != false) { output.writeBool(5, forCas_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } for (int i = 0; i < pairs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, pairs_.get(i)); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cf_); } if (ttl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, ttl_); } if (forCas_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, forCas_); } 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.Kvrpcpb.RawBatchPutRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest other = (org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getPairsList() .equals(other.getPairsList()); result = result && getCf() .equals(other.getCf()); result = result && (getTtl() == other.getTtl()); result = result && (getForCas() == other.getForCas()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (getPairsCount() > 0) { hash = (37 * hash) + PAIRS_FIELD_NUMBER; hash = (53 * hash) + getPairsList().hashCode(); } hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTtl()); hash = (37 * hash) + FOR_CAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForCas()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest 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.Kvrpcpb.RawBatchPutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest 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.Kvrpcpb.RawBatchPutRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest 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.Kvrpcpb.RawBatchPutRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest 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.Kvrpcpb.RawBatchPutRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest 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.Kvrpcpb.RawBatchPutRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawBatchPutRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawBatchPutRequest) org.tikv.kvproto.Kvrpcpb.RawBatchPutRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchPutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchPutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.class, org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPairsFieldBuilder(); } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { pairsBuilder_.clear(); } cf_ = ""; ttl_ = 0L; forCas_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchPutRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest build() { org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest result = new org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (pairsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); bitField0_ = (bitField0_ & ~0x00000002); } result.pairs_ = pairs_; } else { result.pairs_ = pairsBuilder_.build(); } result.cf_ = cf_; result.ttl_ = ttl_; result.forCas_ = forCas_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (pairsBuilder_ == null) { if (!other.pairs_.isEmpty()) { if (pairs_.isEmpty()) { pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePairsIsMutable(); pairs_.addAll(other.pairs_); } onChanged(); } } else { if (!other.pairs_.isEmpty()) { if (pairsBuilder_.isEmpty()) { pairsBuilder_.dispose(); pairsBuilder_ = null; pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); pairsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPairsFieldBuilder() : null; } else { pairsBuilder_.addAllMessages(other.pairs_); } } } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getTtl() != 0L) { setTtl(other.getTtl()); } if (other.getForCas() != false) { setForCas(other.getForCas()); } 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.Kvrpcpb.RawBatchPutRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private java.util.List pairs_ = java.util.Collections.emptyList(); private void ensurePairsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(pairs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> pairsBuilder_; /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsList() { if (pairsBuilder_ == null) { return java.util.Collections.unmodifiableList(pairs_); } else { return pairsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public int getPairsCount() { if (pairsBuilder_ == null) { return pairs_.size(); } else { return pairsBuilder_.getCount(); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getPairs(int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.set(index, value); onChanged(); } else { pairsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.set(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs(org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(value); onChanged(); } else { pairsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(index, value); onChanged(); } else { pairsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder addAllPairs( java.lang.Iterable values) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pairs_); onChanged(); } else { pairsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder clearPairs() { if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { pairsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public Builder removePairs(int index) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.remove(index); onChanged(); } else { pairsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder getPairsBuilder( int index) { return getPairsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getPairsOrBuilder( int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { if (pairsBuilder_ != null) { return pairsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pairs_); } } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addPairsBuilder() { return getPairsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addPairsBuilder( int index) { return getPairsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.KvPair pairs = 2; */ public java.util.List getPairsBuilderList() { return getPairsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> getPairsFieldBuilder() { if (pairsBuilder_ == null) { pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder>( pairs_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); pairs_ = null; } return pairsBuilder_; } private java.lang.Object cf_ = ""; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 3; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 3; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 3; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } private long ttl_ ; /** * uint64 ttl = 4; */ public long getTtl() { return ttl_; } /** * uint64 ttl = 4; */ public Builder setTtl(long value) { ttl_ = value; onChanged(); return this; } /** * uint64 ttl = 4; */ public Builder clearTtl() { ttl_ = 0L; onChanged(); return this; } private boolean forCas_ ; /** * bool for_cas = 5; */ public boolean getForCas() { return forCas_; } /** * bool for_cas = 5; */ public Builder setForCas(boolean value) { forCas_ = value; onChanged(); return this; } /** * bool for_cas = 5; */ public Builder clearForCas() { forCas_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawBatchPutRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawBatchPutRequest) private static final org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest(); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawBatchPutRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawBatchPutRequest(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.Kvrpcpb.RawBatchPutRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawBatchPutResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawBatchPutResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code kvrpcpb.RawBatchPutResponse} */ public static final class RawBatchPutResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawBatchPutResponse) RawBatchPutResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RawBatchPutResponse.newBuilder() to construct. private RawBatchPutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawBatchPutResponse() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawBatchPutResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchPutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchPutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.class, org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } 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.Kvrpcpb.RawBatchPutResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse other = (org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse 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.Kvrpcpb.RawBatchPutResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse 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.Kvrpcpb.RawBatchPutResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse 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.Kvrpcpb.RawBatchPutResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse 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.Kvrpcpb.RawBatchPutResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse 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.Kvrpcpb.RawBatchPutResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawBatchPutResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawBatchPutResponse) org.tikv.kvproto.Kvrpcpb.RawBatchPutResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchPutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchPutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.class, org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchPutResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse build() { org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse result = new org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; 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.Kvrpcpb.RawBatchPutResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawBatchPutResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawBatchPutResponse) private static final org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse(); } public static org.tikv.kvproto.Kvrpcpb.RawBatchPutResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawBatchPutResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawBatchPutResponse(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.Kvrpcpb.RawBatchPutResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawDeleteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawDeleteRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * string cf = 3; */ java.lang.String getCf(); /** * string cf = 3; */ com.google.protobuf.ByteString getCfBytes(); /** * bool for_cas = 4; */ boolean getForCas(); } /** * Protobuf type {@code kvrpcpb.RawDeleteRequest} */ public static final class RawDeleteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawDeleteRequest) RawDeleteRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RawDeleteRequest.newBuilder() to construct. private RawDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawDeleteRequest() { key_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; forCas_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawDeleteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { key_ = input.readBytes(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } case 32: { forCas_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.class, org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int CF_FIELD_NUMBER = 3; private volatile java.lang.Object cf_; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOR_CAS_FIELD_NUMBER = 4; private boolean forCas_; /** * bool for_cas = 4; */ public boolean getForCas() { return forCas_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cf_); } if (forCas_ != false) { output.writeBool(4, forCas_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cf_); } if (forCas_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, forCas_); } 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.Kvrpcpb.RawDeleteRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawDeleteRequest other = (org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKey() .equals(other.getKey()); result = result && getCf() .equals(other.getCf()); result = result && (getForCas() == other.getForCas()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (37 * hash) + FOR_CAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForCas()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRequest 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.Kvrpcpb.RawDeleteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRequest 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.Kvrpcpb.RawDeleteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRequest 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.Kvrpcpb.RawDeleteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRequest 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.Kvrpcpb.RawDeleteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRequest 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.Kvrpcpb.RawDeleteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawDeleteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawDeleteRequest) org.tikv.kvproto.Kvrpcpb.RawDeleteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.class, org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } key_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; forCas_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawDeleteRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawDeleteRequest build() { org.tikv.kvproto.Kvrpcpb.RawDeleteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawDeleteRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RawDeleteRequest result = new org.tikv.kvproto.Kvrpcpb.RawDeleteRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.key_ = key_; result.cf_ = cf_; result.forCas_ = forCas_; 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.Kvrpcpb.RawDeleteRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawDeleteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawDeleteRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RawDeleteRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getForCas() != false) { setForCas(other.getForCas()); } 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.Kvrpcpb.RawDeleteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawDeleteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 3; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 3; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 3; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } private boolean forCas_ ; /** * bool for_cas = 4; */ public boolean getForCas() { return forCas_; } /** * bool for_cas = 4; */ public Builder setForCas(boolean value) { forCas_ = value; onChanged(); return this; } /** * bool for_cas = 4; */ public Builder clearForCas() { forCas_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawDeleteRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawDeleteRequest) private static final org.tikv.kvproto.Kvrpcpb.RawDeleteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawDeleteRequest(); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawDeleteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawDeleteRequest(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.Kvrpcpb.RawDeleteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawDeleteResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code kvrpcpb.RawDeleteResponse} */ public static final class RawDeleteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawDeleteResponse) RawDeleteResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RawDeleteResponse.newBuilder() to construct. private RawDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawDeleteResponse() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawDeleteResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.class, org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } 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.Kvrpcpb.RawDeleteResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawDeleteResponse other = (org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawDeleteResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteResponse 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.Kvrpcpb.RawDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteResponse 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.Kvrpcpb.RawDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteResponse 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.Kvrpcpb.RawDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteResponse 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.Kvrpcpb.RawDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteResponse 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.Kvrpcpb.RawDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawDeleteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawDeleteResponse) org.tikv.kvproto.Kvrpcpb.RawDeleteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.class, org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawDeleteResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawDeleteResponse build() { org.tikv.kvproto.Kvrpcpb.RawDeleteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawDeleteResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RawDeleteResponse result = new org.tikv.kvproto.Kvrpcpb.RawDeleteResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; 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.Kvrpcpb.RawDeleteResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawDeleteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawDeleteResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RawDeleteResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.RawDeleteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawDeleteResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawDeleteResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawDeleteResponse) private static final org.tikv.kvproto.Kvrpcpb.RawDeleteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawDeleteResponse(); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawDeleteResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawDeleteResponse(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.Kvrpcpb.RawDeleteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawBatchDeleteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawBatchDeleteRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * repeated bytes keys = 2; */ java.util.List getKeysList(); /** * repeated bytes keys = 2; */ int getKeysCount(); /** * repeated bytes keys = 2; */ com.google.protobuf.ByteString getKeys(int index); /** * string cf = 3; */ java.lang.String getCf(); /** * string cf = 3; */ com.google.protobuf.ByteString getCfBytes(); /** * bool for_cas = 4; */ boolean getForCas(); } /** * Protobuf type {@code kvrpcpb.RawBatchDeleteRequest} */ public static final class RawBatchDeleteRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawBatchDeleteRequest) RawBatchDeleteRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RawBatchDeleteRequest.newBuilder() to construct. private RawBatchDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawBatchDeleteRequest() { keys_ = java.util.Collections.emptyList(); cf_ = ""; forCas_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawBatchDeleteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { keys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } keys_.add(input.readBytes()); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } case 32: { forCas_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { keys_ = java.util.Collections.unmodifiableList(keys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchDeleteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.class, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEYS_FIELD_NUMBER = 2; private java.util.List keys_; /** * repeated bytes keys = 2; */ public java.util.List getKeysList() { return keys_; } /** * repeated bytes keys = 2; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 2; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } public static final int CF_FIELD_NUMBER = 3; private volatile java.lang.Object cf_; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOR_CAS_FIELD_NUMBER = 4; private boolean forCas_; /** * bool for_cas = 4; */ public boolean getForCas() { return forCas_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } for (int i = 0; i < keys_.size(); i++) { output.writeBytes(2, keys_.get(i)); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cf_); } if (forCas_ != false) { output.writeBool(4, forCas_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } { int dataSize = 0; for (int i = 0; i < keys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(keys_.get(i)); } size += dataSize; size += 1 * getKeysList().size(); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cf_); } if (forCas_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, forCas_); } 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.Kvrpcpb.RawBatchDeleteRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest other = (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKeysList() .equals(other.getKeysList()); result = result && getCf() .equals(other.getCf()); result = result && (getForCas() == other.getForCas()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (getKeysCount() > 0) { hash = (37 * hash) + KEYS_FIELD_NUMBER; hash = (53 * hash) + getKeysList().hashCode(); } hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (37 * hash) + FOR_CAS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getForCas()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest 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.Kvrpcpb.RawBatchDeleteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest 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.Kvrpcpb.RawBatchDeleteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest 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.Kvrpcpb.RawBatchDeleteRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest 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.Kvrpcpb.RawBatchDeleteRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest 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.Kvrpcpb.RawBatchDeleteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawBatchDeleteRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawBatchDeleteRequest) org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchDeleteRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchDeleteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.class, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); cf_ = ""; forCas_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchDeleteRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest build() { org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest result = new org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { keys_ = java.util.Collections.unmodifiableList(keys_); bitField0_ = (bitField0_ & ~0x00000002); } result.keys_ = keys_; result.cf_ = cf_; result.forCas_ = forCas_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (!other.keys_.isEmpty()) { if (keys_.isEmpty()) { keys_ = other.keys_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeysIsMutable(); keys_.addAll(other.keys_); } onChanged(); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getForCas() != false) { setForCas(other.getForCas()); } 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.Kvrpcpb.RawBatchDeleteRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private java.util.List keys_ = java.util.Collections.emptyList(); private void ensureKeysIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { keys_ = new java.util.ArrayList(keys_); bitField0_ |= 0x00000002; } } /** * repeated bytes keys = 2; */ public java.util.List getKeysList() { return java.util.Collections.unmodifiableList(keys_); } /** * repeated bytes keys = 2; */ public int getKeysCount() { return keys_.size(); } /** * repeated bytes keys = 2; */ public com.google.protobuf.ByteString getKeys(int index) { return keys_.get(index); } /** * repeated bytes keys = 2; */ public Builder setKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.set(index, value); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder addKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeysIsMutable(); keys_.add(value); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder addAllKeys( java.lang.Iterable values) { ensureKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, keys_); onChanged(); return this; } /** * repeated bytes keys = 2; */ public Builder clearKeys() { keys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 3; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 3; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 3; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } private boolean forCas_ ; /** * bool for_cas = 4; */ public boolean getForCas() { return forCas_; } /** * bool for_cas = 4; */ public Builder setForCas(boolean value) { forCas_ = value; onChanged(); return this; } /** * bool for_cas = 4; */ public Builder clearForCas() { forCas_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawBatchDeleteRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawBatchDeleteRequest) private static final org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest(); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawBatchDeleteRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawBatchDeleteRequest(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.Kvrpcpb.RawBatchDeleteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawBatchDeleteResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawBatchDeleteResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code kvrpcpb.RawBatchDeleteResponse} */ public static final class RawBatchDeleteResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawBatchDeleteResponse) RawBatchDeleteResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RawBatchDeleteResponse.newBuilder() to construct. private RawBatchDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawBatchDeleteResponse() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawBatchDeleteResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchDeleteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.class, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } 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.Kvrpcpb.RawBatchDeleteResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse other = (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse 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.Kvrpcpb.RawBatchDeleteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse 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.Kvrpcpb.RawBatchDeleteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse 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.Kvrpcpb.RawBatchDeleteResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse 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.Kvrpcpb.RawBatchDeleteResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse 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.Kvrpcpb.RawBatchDeleteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawBatchDeleteResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawBatchDeleteResponse) org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchDeleteResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchDeleteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.class, org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchDeleteResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse build() { org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse result = new org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; 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.Kvrpcpb.RawBatchDeleteResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawBatchDeleteResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawBatchDeleteResponse) private static final org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse(); } public static org.tikv.kvproto.Kvrpcpb.RawBatchDeleteResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawBatchDeleteResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawBatchDeleteResponse(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.Kvrpcpb.RawBatchDeleteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawScanRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawScanRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** * uint32 limit = 3; */ int getLimit(); /** * bool key_only = 4; */ boolean getKeyOnly(); /** * string cf = 5; */ java.lang.String getCf(); /** * string cf = 5; */ com.google.protobuf.ByteString getCfBytes(); /** * bool reverse = 6; */ boolean getReverse(); /** *
     * For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
     * and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
     * 
* * bytes end_key = 7; */ com.google.protobuf.ByteString getEndKey(); } /** * Protobuf type {@code kvrpcpb.RawScanRequest} */ public static final class RawScanRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawScanRequest) RawScanRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RawScanRequest.newBuilder() to construct. private RawScanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawScanRequest() { startKey_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0; keyOnly_ = false; cf_ = ""; reverse_ = false; endKey_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawScanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { startKey_ = input.readBytes(); break; } case 24: { limit_ = input.readUInt32(); break; } case 32: { keyOnly_ = input.readBool(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } case 48: { reverse_ = input.readBool(); break; } case 58: { 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.Kvrpcpb.internal_static_kvrpcpb_RawScanRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawScanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawScanRequest.class, org.tikv.kvproto.Kvrpcpb.RawScanRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int LIMIT_FIELD_NUMBER = 3; private int limit_; /** * uint32 limit = 3; */ public int getLimit() { return limit_; } public static final int KEY_ONLY_FIELD_NUMBER = 4; private boolean keyOnly_; /** * bool key_only = 4; */ public boolean getKeyOnly() { return keyOnly_; } public static final int CF_FIELD_NUMBER = 5; private volatile java.lang.Object cf_; /** * string cf = 5; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } } /** * string cf = 5; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REVERSE_FIELD_NUMBER = 6; private boolean reverse_; /** * bool reverse = 6; */ public boolean getReverse() { return reverse_; } public static final int END_KEY_FIELD_NUMBER = 7; private com.google.protobuf.ByteString endKey_; /** *
     * For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
     * and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
     * 
* * bytes end_key = 7; */ 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 (context_ != null) { output.writeMessage(1, getContext()); } if (!startKey_.isEmpty()) { output.writeBytes(2, startKey_); } if (limit_ != 0) { output.writeUInt32(3, limit_); } if (keyOnly_ != false) { output.writeBool(4, keyOnly_); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cf_); } if (reverse_ != false) { output.writeBool(6, reverse_); } if (!endKey_.isEmpty()) { output.writeBytes(7, endKey_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (limit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, limit_); } if (keyOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, keyOnly_); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cf_); } if (reverse_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, reverse_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, 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.Kvrpcpb.RawScanRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawScanRequest other = (org.tikv.kvproto.Kvrpcpb.RawScanRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getStartKey() .equals(other.getStartKey()); result = result && (getLimit() == other.getLimit()); result = result && (getKeyOnly() == other.getKeyOnly()); result = result && getCf() .equals(other.getCf()); result = result && (getReverse() == other.getReverse()); 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(); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); hash = (37 * hash) + KEY_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeyOnly()); hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (37 * hash) + REVERSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReverse()); 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.Kvrpcpb.RawScanRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawScanRequest 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.Kvrpcpb.RawScanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawScanRequest 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.Kvrpcpb.RawScanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawScanRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawScanRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawScanRequest 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.Kvrpcpb.RawScanRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawScanRequest 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.Kvrpcpb.RawScanRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawScanRequest 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.Kvrpcpb.RawScanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawScanRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawScanRequest) org.tikv.kvproto.Kvrpcpb.RawScanRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawScanRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawScanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawScanRequest.class, org.tikv.kvproto.Kvrpcpb.RawScanRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawScanRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } startKey_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0; keyOnly_ = false; cf_ = ""; reverse_ = false; endKey_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawScanRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawScanRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawScanRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawScanRequest build() { org.tikv.kvproto.Kvrpcpb.RawScanRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawScanRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RawScanRequest result = new org.tikv.kvproto.Kvrpcpb.RawScanRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.startKey_ = startKey_; result.limit_ = limit_; result.keyOnly_ = keyOnly_; result.cf_ = cf_; result.reverse_ = reverse_; 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.Kvrpcpb.RawScanRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawScanRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawScanRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RawScanRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getLimit() != 0) { setLimit(other.getLimit()); } if (other.getKeyOnly() != false) { setKeyOnly(other.getKeyOnly()); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getReverse() != false) { setReverse(other.getReverse()); } 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.Kvrpcpb.RawScanRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawScanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 2; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 2; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private int limit_ ; /** * uint32 limit = 3; */ public int getLimit() { return limit_; } /** * uint32 limit = 3; */ public Builder setLimit(int value) { limit_ = value; onChanged(); return this; } /** * uint32 limit = 3; */ public Builder clearLimit() { limit_ = 0; onChanged(); return this; } private boolean keyOnly_ ; /** * bool key_only = 4; */ public boolean getKeyOnly() { return keyOnly_; } /** * bool key_only = 4; */ public Builder setKeyOnly(boolean value) { keyOnly_ = value; onChanged(); return this; } /** * bool key_only = 4; */ public Builder clearKeyOnly() { keyOnly_ = false; onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 5; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 5; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 5; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 5; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 5; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } private boolean reverse_ ; /** * bool reverse = 6; */ public boolean getReverse() { return reverse_; } /** * bool reverse = 6; */ public Builder setReverse(boolean value) { reverse_ = value; onChanged(); return this; } /** * bool reverse = 6; */ public Builder clearReverse() { reverse_ = false; onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** *
       * For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
       * and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
       * 
* * bytes end_key = 7; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** *
       * For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
       * and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
       * 
* * bytes end_key = 7; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** *
       * For compatibility, when scanning forward, the range to scan is [start_key, end_key), where start_key < end_key;
       * and when scanning backward, it scans [end_key, start_key) in descending order, where end_key < start_key.
       * 
* * bytes end_key = 7; */ 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:kvrpcpb.RawScanRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawScanRequest) private static final org.tikv.kvproto.Kvrpcpb.RawScanRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawScanRequest(); } public static org.tikv.kvproto.Kvrpcpb.RawScanRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawScanRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawScanRequest(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.Kvrpcpb.RawScanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawScanResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawScanResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * repeated .kvrpcpb.KvPair kvs = 2; */ java.util.List getKvsList(); /** * repeated .kvrpcpb.KvPair kvs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPair getKvs(int index); /** * repeated .kvrpcpb.KvPair kvs = 2; */ int getKvsCount(); /** * repeated .kvrpcpb.KvPair kvs = 2; */ java.util.List getKvsOrBuilderList(); /** * repeated .kvrpcpb.KvPair kvs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getKvsOrBuilder( int index); } /** * Protobuf type {@code kvrpcpb.RawScanResponse} */ public static final class RawScanResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawScanResponse) RawScanResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RawScanResponse.newBuilder() to construct. private RawScanResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawScanResponse() { kvs_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawScanResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } kvs_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KvPair.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = java.util.Collections.unmodifiableList(kvs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawScanResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawScanResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawScanResponse.class, org.tikv.kvproto.Kvrpcpb.RawScanResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int KVS_FIELD_NUMBER = 2; private java.util.List kvs_; /** * repeated .kvrpcpb.KvPair kvs = 2; */ public java.util.List getKvsList() { return kvs_; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public java.util.List getKvsOrBuilderList() { return kvs_; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public int getKvsCount() { return kvs_.size(); } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getKvs(int index) { return kvs_.get(index); } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getKvsOrBuilder( int index) { return kvs_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } for (int i = 0; i < kvs_.size(); i++) { output.writeMessage(2, kvs_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } for (int i = 0; i < kvs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, kvs_.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.Kvrpcpb.RawScanResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawScanResponse other = (org.tikv.kvproto.Kvrpcpb.RawScanResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getKvsList() .equals(other.getKvsList()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (getKvsCount() > 0) { hash = (37 * hash) + KVS_FIELD_NUMBER; hash = (53 * hash) + getKvsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawScanResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawScanResponse 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.Kvrpcpb.RawScanResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawScanResponse 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.Kvrpcpb.RawScanResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawScanResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawScanResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawScanResponse 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.Kvrpcpb.RawScanResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawScanResponse 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.Kvrpcpb.RawScanResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawScanResponse 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.Kvrpcpb.RawScanResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawScanResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawScanResponse) org.tikv.kvproto.Kvrpcpb.RawScanResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawScanResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawScanResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawScanResponse.class, org.tikv.kvproto.Kvrpcpb.RawScanResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawScanResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKvsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (kvsBuilder_ == null) { kvs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { kvsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawScanResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawScanResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawScanResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawScanResponse build() { org.tikv.kvproto.Kvrpcpb.RawScanResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawScanResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RawScanResponse result = new org.tikv.kvproto.Kvrpcpb.RawScanResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (kvsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = java.util.Collections.unmodifiableList(kvs_); bitField0_ = (bitField0_ & ~0x00000002); } result.kvs_ = kvs_; } else { result.kvs_ = kvsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.RawScanResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawScanResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawScanResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RawScanResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (kvsBuilder_ == null) { if (!other.kvs_.isEmpty()) { if (kvs_.isEmpty()) { kvs_ = other.kvs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKvsIsMutable(); kvs_.addAll(other.kvs_); } onChanged(); } } else { if (!other.kvs_.isEmpty()) { if (kvsBuilder_.isEmpty()) { kvsBuilder_.dispose(); kvsBuilder_ = null; kvs_ = other.kvs_; bitField0_ = (bitField0_ & ~0x00000002); kvsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKvsFieldBuilder() : null; } else { kvsBuilder_.addAllMessages(other.kvs_); } } } 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.Kvrpcpb.RawScanResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawScanResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.util.List kvs_ = java.util.Collections.emptyList(); private void ensureKvsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = new java.util.ArrayList(kvs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> kvsBuilder_; /** * repeated .kvrpcpb.KvPair kvs = 2; */ public java.util.List getKvsList() { if (kvsBuilder_ == null) { return java.util.Collections.unmodifiableList(kvs_); } else { return kvsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public int getKvsCount() { if (kvsBuilder_ == null) { return kvs_.size(); } else { return kvsBuilder_.getCount(); } } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getKvs(int index) { if (kvsBuilder_ == null) { return kvs_.get(index); } else { return kvsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder setKvs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (kvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKvsIsMutable(); kvs_.set(index, value); onChanged(); } else { kvsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder setKvs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.set(index, builderForValue.build()); onChanged(); } else { kvsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder addKvs(org.tikv.kvproto.Kvrpcpb.KvPair value) { if (kvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKvsIsMutable(); kvs_.add(value); onChanged(); } else { kvsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder addKvs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (kvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKvsIsMutable(); kvs_.add(index, value); onChanged(); } else { kvsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder addKvs( org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.add(builderForValue.build()); onChanged(); } else { kvsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder addKvs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.add(index, builderForValue.build()); onChanged(); } else { kvsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder addAllKvs( java.lang.Iterable values) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, kvs_); onChanged(); } else { kvsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder clearKvs() { if (kvsBuilder_ == null) { kvs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { kvsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder removeKvs(int index) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.remove(index); onChanged(); } else { kvsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder getKvsBuilder( int index) { return getKvsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getKvsOrBuilder( int index) { if (kvsBuilder_ == null) { return kvs_.get(index); } else { return kvsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public java.util.List getKvsOrBuilderList() { if (kvsBuilder_ != null) { return kvsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(kvs_); } } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addKvsBuilder() { return getKvsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addKvsBuilder( int index) { return getKvsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public java.util.List getKvsBuilderList() { return getKvsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> getKvsFieldBuilder() { if (kvsBuilder_ == null) { kvsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder>( kvs_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); kvs_ = null; } return kvsBuilder_; } 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:kvrpcpb.RawScanResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawScanResponse) private static final org.tikv.kvproto.Kvrpcpb.RawScanResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawScanResponse(); } public static org.tikv.kvproto.Kvrpcpb.RawScanResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawScanResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawScanResponse(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.Kvrpcpb.RawScanResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawDeleteRangeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawDeleteRangeRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 3; */ com.google.protobuf.ByteString getEndKey(); /** * string cf = 4; */ java.lang.String getCf(); /** * string cf = 4; */ com.google.protobuf.ByteString getCfBytes(); } /** * Protobuf type {@code kvrpcpb.RawDeleteRangeRequest} */ public static final class RawDeleteRangeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawDeleteRangeRequest) RawDeleteRangeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RawDeleteRangeRequest.newBuilder() to construct. private RawDeleteRangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawDeleteRangeRequest() { startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawDeleteRangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { startKey_ = input.readBytes(); break; } case 26: { endKey_ = input.readBytes(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.class, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int CF_FIELD_NUMBER = 4; private volatile java.lang.Object cf_; /** * string cf = 4; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } } /** * string cf = 4; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!startKey_.isEmpty()) { output.writeBytes(2, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(3, endKey_); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cf_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, endKey_); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cf_); } 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.Kvrpcpb.RawDeleteRangeRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest other = (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); result = result && getCf() .equals(other.getCf()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest 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.Kvrpcpb.RawDeleteRangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest 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.Kvrpcpb.RawDeleteRangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest 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.Kvrpcpb.RawDeleteRangeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest 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.Kvrpcpb.RawDeleteRangeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest 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.Kvrpcpb.RawDeleteRangeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawDeleteRangeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawDeleteRangeRequest) org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.class, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRangeRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest build() { org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest result = new org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.startKey_ = startKey_; result.endKey_ = endKey_; result.cf_ = cf_; 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.Kvrpcpb.RawDeleteRangeRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 2; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 2; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 3; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 3; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 4; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 4; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 4; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 4; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 4; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawDeleteRangeRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawDeleteRangeRequest) private static final org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest(); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawDeleteRangeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawDeleteRangeRequest(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.Kvrpcpb.RawDeleteRangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawDeleteRangeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawDeleteRangeResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code kvrpcpb.RawDeleteRangeResponse} */ public static final class RawDeleteRangeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawDeleteRangeResponse) RawDeleteRangeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RawDeleteRangeResponse.newBuilder() to construct. private RawDeleteRangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawDeleteRangeResponse() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawDeleteRangeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.class, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } 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.Kvrpcpb.RawDeleteRangeResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse other = (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse 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.Kvrpcpb.RawDeleteRangeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse 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.Kvrpcpb.RawDeleteRangeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse 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.Kvrpcpb.RawDeleteRangeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse 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.Kvrpcpb.RawDeleteRangeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse 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.Kvrpcpb.RawDeleteRangeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawDeleteRangeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawDeleteRangeResponse) org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.class, org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawDeleteRangeResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse build() { org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse result = new org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; 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.Kvrpcpb.RawDeleteRangeResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawDeleteRangeResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawDeleteRangeResponse) private static final org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse(); } public static org.tikv.kvproto.Kvrpcpb.RawDeleteRangeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawDeleteRangeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawDeleteRangeResponse(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.Kvrpcpb.RawDeleteRangeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawBatchScanRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawBatchScanRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** *
     * scanning range
     * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ java.util.List getRangesList(); /** *
     * scanning range
     * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ org.tikv.kvproto.Kvrpcpb.KeyRange getRanges(int index); /** *
     * scanning range
     * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ int getRangesCount(); /** *
     * scanning range
     * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ java.util.List getRangesOrBuilderList(); /** *
     * scanning range
     * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getRangesOrBuilder( int index); /** *
     * max number of returning kv pairs for each scanning range
     * 
* * uint32 each_limit = 3; */ int getEachLimit(); /** * bool key_only = 4; */ boolean getKeyOnly(); /** * string cf = 5; */ java.lang.String getCf(); /** * string cf = 5; */ com.google.protobuf.ByteString getCfBytes(); /** * bool reverse = 6; */ boolean getReverse(); } /** * Protobuf type {@code kvrpcpb.RawBatchScanRequest} */ public static final class RawBatchScanRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawBatchScanRequest) RawBatchScanRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RawBatchScanRequest.newBuilder() to construct. private RawBatchScanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawBatchScanRequest() { ranges_ = java.util.Collections.emptyList(); eachLimit_ = 0; keyOnly_ = false; cf_ = ""; reverse_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawBatchScanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } ranges_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyRange.parser(), extensionRegistry)); break; } case 24: { eachLimit_ = input.readUInt32(); break; } case 32: { keyOnly_ = input.readBool(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } case 48: { reverse_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchScanRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchScanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.class, org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int RANGES_FIELD_NUMBER = 2; private java.util.List ranges_; /** *
     * scanning range
     * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public java.util.List getRangesList() { return ranges_; } /** *
     * scanning range
     * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { return ranges_; } /** *
     * scanning range
     * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public int getRangesCount() { return ranges_.size(); } /** *
     * scanning range
     * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRange getRanges(int index) { return ranges_.get(index); } /** *
     * scanning range
     * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getRangesOrBuilder( int index) { return ranges_.get(index); } public static final int EACH_LIMIT_FIELD_NUMBER = 3; private int eachLimit_; /** *
     * max number of returning kv pairs for each scanning range
     * 
* * uint32 each_limit = 3; */ public int getEachLimit() { return eachLimit_; } public static final int KEY_ONLY_FIELD_NUMBER = 4; private boolean keyOnly_; /** * bool key_only = 4; */ public boolean getKeyOnly() { return keyOnly_; } public static final int CF_FIELD_NUMBER = 5; private volatile java.lang.Object cf_; /** * string cf = 5; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } } /** * string cf = 5; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REVERSE_FIELD_NUMBER = 6; private boolean reverse_; /** * bool reverse = 6; */ public boolean getReverse() { return reverse_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } for (int i = 0; i < ranges_.size(); i++) { output.writeMessage(2, ranges_.get(i)); } if (eachLimit_ != 0) { output.writeUInt32(3, eachLimit_); } if (keyOnly_ != false) { output.writeBool(4, keyOnly_); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cf_); } if (reverse_ != false) { output.writeBool(6, reverse_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } for (int i = 0; i < ranges_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, ranges_.get(i)); } if (eachLimit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, eachLimit_); } if (keyOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, keyOnly_); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cf_); } if (reverse_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, reverse_); } 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.Kvrpcpb.RawBatchScanRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest other = (org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getRangesList() .equals(other.getRangesList()); result = result && (getEachLimit() == other.getEachLimit()); result = result && (getKeyOnly() == other.getKeyOnly()); result = result && getCf() .equals(other.getCf()); result = result && (getReverse() == other.getReverse()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (getRangesCount() > 0) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRangesList().hashCode(); } hash = (37 * hash) + EACH_LIMIT_FIELD_NUMBER; hash = (53 * hash) + getEachLimit(); hash = (37 * hash) + KEY_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeyOnly()); hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (37 * hash) + REVERSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReverse()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest 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.Kvrpcpb.RawBatchScanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest 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.Kvrpcpb.RawBatchScanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest 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.Kvrpcpb.RawBatchScanRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest 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.Kvrpcpb.RawBatchScanRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest 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.Kvrpcpb.RawBatchScanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawBatchScanRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawBatchScanRequest) org.tikv.kvproto.Kvrpcpb.RawBatchScanRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchScanRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchScanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.class, org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRangesFieldBuilder(); } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { rangesBuilder_.clear(); } eachLimit_ = 0; keyOnly_ = false; cf_ = ""; reverse_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchScanRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest build() { org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest result = new org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (rangesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); bitField0_ = (bitField0_ & ~0x00000002); } result.ranges_ = ranges_; } else { result.ranges_ = rangesBuilder_.build(); } result.eachLimit_ = eachLimit_; result.keyOnly_ = keyOnly_; result.cf_ = cf_; result.reverse_ = reverse_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (rangesBuilder_ == null) { if (!other.ranges_.isEmpty()) { if (ranges_.isEmpty()) { ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRangesIsMutable(); ranges_.addAll(other.ranges_); } onChanged(); } } else { if (!other.ranges_.isEmpty()) { if (rangesBuilder_.isEmpty()) { rangesBuilder_.dispose(); rangesBuilder_ = null; ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000002); rangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRangesFieldBuilder() : null; } else { rangesBuilder_.addAllMessages(other.ranges_); } } } if (other.getEachLimit() != 0) { setEachLimit(other.getEachLimit()); } if (other.getKeyOnly() != false) { setKeyOnly(other.getKeyOnly()); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getReverse() != false) { setReverse(other.getReverse()); } 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.Kvrpcpb.RawBatchScanRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private java.util.List ranges_ = java.util.Collections.emptyList(); private void ensureRangesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { ranges_ = new java.util.ArrayList(ranges_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder> rangesBuilder_; /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public java.util.List getRangesList() { if (rangesBuilder_ == null) { return java.util.Collections.unmodifiableList(ranges_); } else { return rangesBuilder_.getMessageList(); } } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public int getRangesCount() { if (rangesBuilder_ == null) { return ranges_.size(); } else { return rangesBuilder_.getCount(); } } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRange getRanges(int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessage(index); } } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public Builder setRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.set(index, value); onChanged(); } else { rangesBuilder_.setMessage(index, value); } return this; } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public Builder setRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.set(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public Builder addRanges(org.tikv.kvproto.Kvrpcpb.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(value); onChanged(); } else { rangesBuilder_.addMessage(value); } return this; } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public Builder addRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(index, value); onChanged(); } else { rangesBuilder_.addMessage(index, value); } return this; } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public Builder addRanges( org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public Builder addRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public Builder addAllRanges( java.lang.Iterable values) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ranges_); onChanged(); } else { rangesBuilder_.addAllMessages(values); } return this; } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public Builder clearRanges() { if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rangesBuilder_.clear(); } return this; } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public Builder removeRanges(int index) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.remove(index); onChanged(); } else { rangesBuilder_.remove(index); } return this; } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder getRangesBuilder( int index) { return getRangesFieldBuilder().getBuilder(index); } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getRangesOrBuilder( int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessageOrBuilder(index); } } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public java.util.List getRangesOrBuilderList() { if (rangesBuilder_ != null) { return rangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ranges_); } } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder addRangesBuilder() { return getRangesFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KeyRange.getDefaultInstance()); } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder addRangesBuilder( int index) { return getRangesFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KeyRange.getDefaultInstance()); } /** *
       * scanning range
       * 
* * repeated .kvrpcpb.KeyRange ranges = 2; */ public java.util.List getRangesBuilderList() { return getRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder> getRangesFieldBuilder() { if (rangesBuilder_ == null) { rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder>( ranges_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); ranges_ = null; } return rangesBuilder_; } private int eachLimit_ ; /** *
       * max number of returning kv pairs for each scanning range
       * 
* * uint32 each_limit = 3; */ public int getEachLimit() { return eachLimit_; } /** *
       * max number of returning kv pairs for each scanning range
       * 
* * uint32 each_limit = 3; */ public Builder setEachLimit(int value) { eachLimit_ = value; onChanged(); return this; } /** *
       * max number of returning kv pairs for each scanning range
       * 
* * uint32 each_limit = 3; */ public Builder clearEachLimit() { eachLimit_ = 0; onChanged(); return this; } private boolean keyOnly_ ; /** * bool key_only = 4; */ public boolean getKeyOnly() { return keyOnly_; } /** * bool key_only = 4; */ public Builder setKeyOnly(boolean value) { keyOnly_ = value; onChanged(); return this; } /** * bool key_only = 4; */ public Builder clearKeyOnly() { keyOnly_ = false; onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 5; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 5; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 5; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 5; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 5; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } private boolean reverse_ ; /** * bool reverse = 6; */ public boolean getReverse() { return reverse_; } /** * bool reverse = 6; */ public Builder setReverse(boolean value) { reverse_ = value; onChanged(); return this; } /** * bool reverse = 6; */ public Builder clearReverse() { reverse_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawBatchScanRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawBatchScanRequest) private static final org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest(); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawBatchScanRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawBatchScanRequest(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.Kvrpcpb.RawBatchScanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawBatchScanResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawBatchScanResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * repeated .kvrpcpb.KvPair kvs = 2; */ java.util.List getKvsList(); /** * repeated .kvrpcpb.KvPair kvs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPair getKvs(int index); /** * repeated .kvrpcpb.KvPair kvs = 2; */ int getKvsCount(); /** * repeated .kvrpcpb.KvPair kvs = 2; */ java.util.List getKvsOrBuilderList(); /** * repeated .kvrpcpb.KvPair kvs = 2; */ org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getKvsOrBuilder( int index); } /** * Protobuf type {@code kvrpcpb.RawBatchScanResponse} */ public static final class RawBatchScanResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawBatchScanResponse) RawBatchScanResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RawBatchScanResponse.newBuilder() to construct. private RawBatchScanResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawBatchScanResponse() { kvs_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawBatchScanResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } kvs_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KvPair.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = java.util.Collections.unmodifiableList(kvs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchScanResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchScanResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.class, org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int KVS_FIELD_NUMBER = 2; private java.util.List kvs_; /** * repeated .kvrpcpb.KvPair kvs = 2; */ public java.util.List getKvsList() { return kvs_; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public java.util.List getKvsOrBuilderList() { return kvs_; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public int getKvsCount() { return kvs_.size(); } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getKvs(int index) { return kvs_.get(index); } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getKvsOrBuilder( int index) { return kvs_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } for (int i = 0; i < kvs_.size(); i++) { output.writeMessage(2, kvs_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } for (int i = 0; i < kvs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, kvs_.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.Kvrpcpb.RawBatchScanResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse other = (org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getKvsList() .equals(other.getKvsList()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (getKvsCount() > 0) { hash = (37 * hash) + KVS_FIELD_NUMBER; hash = (53 * hash) + getKvsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse 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.Kvrpcpb.RawBatchScanResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse 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.Kvrpcpb.RawBatchScanResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse 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.Kvrpcpb.RawBatchScanResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse 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.Kvrpcpb.RawBatchScanResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse 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.Kvrpcpb.RawBatchScanResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawBatchScanResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawBatchScanResponse) org.tikv.kvproto.Kvrpcpb.RawBatchScanResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchScanResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchScanResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.class, org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getKvsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (kvsBuilder_ == null) { kvs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { kvsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawBatchScanResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse build() { org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse result = new org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (kvsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = java.util.Collections.unmodifiableList(kvs_); bitField0_ = (bitField0_ & ~0x00000002); } result.kvs_ = kvs_; } else { result.kvs_ = kvsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (kvsBuilder_ == null) { if (!other.kvs_.isEmpty()) { if (kvs_.isEmpty()) { kvs_ = other.kvs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKvsIsMutable(); kvs_.addAll(other.kvs_); } onChanged(); } } else { if (!other.kvs_.isEmpty()) { if (kvsBuilder_.isEmpty()) { kvsBuilder_.dispose(); kvsBuilder_ = null; kvs_ = other.kvs_; bitField0_ = (bitField0_ & ~0x00000002); kvsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getKvsFieldBuilder() : null; } else { kvsBuilder_.addAllMessages(other.kvs_); } } } 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.Kvrpcpb.RawBatchScanResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.util.List kvs_ = java.util.Collections.emptyList(); private void ensureKvsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { kvs_ = new java.util.ArrayList(kvs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> kvsBuilder_; /** * repeated .kvrpcpb.KvPair kvs = 2; */ public java.util.List getKvsList() { if (kvsBuilder_ == null) { return java.util.Collections.unmodifiableList(kvs_); } else { return kvsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public int getKvsCount() { if (kvsBuilder_ == null) { return kvs_.size(); } else { return kvsBuilder_.getCount(); } } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair getKvs(int index) { if (kvsBuilder_ == null) { return kvs_.get(index); } else { return kvsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder setKvs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (kvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKvsIsMutable(); kvs_.set(index, value); onChanged(); } else { kvsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder setKvs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.set(index, builderForValue.build()); onChanged(); } else { kvsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder addKvs(org.tikv.kvproto.Kvrpcpb.KvPair value) { if (kvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKvsIsMutable(); kvs_.add(value); onChanged(); } else { kvsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder addKvs( int index, org.tikv.kvproto.Kvrpcpb.KvPair value) { if (kvsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKvsIsMutable(); kvs_.add(index, value); onChanged(); } else { kvsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder addKvs( org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.add(builderForValue.build()); onChanged(); } else { kvsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder addKvs( int index, org.tikv.kvproto.Kvrpcpb.KvPair.Builder builderForValue) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.add(index, builderForValue.build()); onChanged(); } else { kvsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder addAllKvs( java.lang.Iterable values) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, kvs_); onChanged(); } else { kvsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder clearKvs() { if (kvsBuilder_ == null) { kvs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { kvsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public Builder removeKvs(int index) { if (kvsBuilder_ == null) { ensureKvsIsMutable(); kvs_.remove(index); onChanged(); } else { kvsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder getKvsBuilder( int index) { return getKvsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder getKvsOrBuilder( int index) { if (kvsBuilder_ == null) { return kvs_.get(index); } else { return kvsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public java.util.List getKvsOrBuilderList() { if (kvsBuilder_ != null) { return kvsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(kvs_); } } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addKvsBuilder() { return getKvsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public org.tikv.kvproto.Kvrpcpb.KvPair.Builder addKvsBuilder( int index) { return getKvsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.KvPair kvs = 2; */ public java.util.List getKvsBuilderList() { return getKvsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder> getKvsFieldBuilder() { if (kvsBuilder_ == null) { kvsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KvPair, org.tikv.kvproto.Kvrpcpb.KvPair.Builder, org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder>( kvs_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); kvs_ = null; } return kvsBuilder_; } 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:kvrpcpb.RawBatchScanResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawBatchScanResponse) private static final org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse(); } public static org.tikv.kvproto.Kvrpcpb.RawBatchScanResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawBatchScanResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawBatchScanResponse(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.Kvrpcpb.RawBatchScanResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnsafeDestroyRangeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.UnsafeDestroyRangeRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 3; */ com.google.protobuf.ByteString getEndKey(); } /** * Protobuf type {@code kvrpcpb.UnsafeDestroyRangeRequest} */ public static final class UnsafeDestroyRangeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.UnsafeDestroyRangeRequest) UnsafeDestroyRangeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use UnsafeDestroyRangeRequest.newBuilder() to construct. private UnsafeDestroyRangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnsafeDestroyRangeRequest() { 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 UnsafeDestroyRangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { startKey_ = input.readBytes(); break; } case 26: { 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.Kvrpcpb.internal_static_kvrpcpb_UnsafeDestroyRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_UnsafeDestroyRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest.class, org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!startKey_.isEmpty()) { output.writeBytes(2, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(3, endKey_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, 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.Kvrpcpb.UnsafeDestroyRangeRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest other = (org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } 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(); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest 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.Kvrpcpb.UnsafeDestroyRangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest 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.Kvrpcpb.UnsafeDestroyRangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest 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.Kvrpcpb.UnsafeDestroyRangeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest 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.Kvrpcpb.UnsafeDestroyRangeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest 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.Kvrpcpb.UnsafeDestroyRangeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.UnsafeDestroyRangeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.UnsafeDestroyRangeRequest) org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_UnsafeDestroyRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_UnsafeDestroyRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest.class, org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } 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.Kvrpcpb.internal_static_kvrpcpb_UnsafeDestroyRangeRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest build() { org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest result = new org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } 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.Kvrpcpb.UnsafeDestroyRangeRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } 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.Kvrpcpb.UnsafeDestroyRangeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 2; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 2; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 3; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 3; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } 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:kvrpcpb.UnsafeDestroyRangeRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.UnsafeDestroyRangeRequest) private static final org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest(); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UnsafeDestroyRangeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UnsafeDestroyRangeRequest(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.Kvrpcpb.UnsafeDestroyRangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnsafeDestroyRangeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.UnsafeDestroyRangeResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code kvrpcpb.UnsafeDestroyRangeResponse} */ public static final class UnsafeDestroyRangeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.UnsafeDestroyRangeResponse) UnsafeDestroyRangeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use UnsafeDestroyRangeResponse.newBuilder() to construct. private UnsafeDestroyRangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnsafeDestroyRangeResponse() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UnsafeDestroyRangeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_UnsafeDestroyRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_UnsafeDestroyRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse.class, org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } 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.Kvrpcpb.UnsafeDestroyRangeResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse other = (org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse 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.Kvrpcpb.UnsafeDestroyRangeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse 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.Kvrpcpb.UnsafeDestroyRangeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse 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.Kvrpcpb.UnsafeDestroyRangeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse 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.Kvrpcpb.UnsafeDestroyRangeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse 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.Kvrpcpb.UnsafeDestroyRangeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.UnsafeDestroyRangeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.UnsafeDestroyRangeResponse) org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_UnsafeDestroyRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_UnsafeDestroyRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse.class, org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_UnsafeDestroyRangeResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse build() { org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse result = new org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; 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.Kvrpcpb.UnsafeDestroyRangeResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.UnsafeDestroyRangeResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.UnsafeDestroyRangeResponse) private static final org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse(); } public static org.tikv.kvproto.Kvrpcpb.UnsafeDestroyRangeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public UnsafeDestroyRangeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UnsafeDestroyRangeResponse(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.Kvrpcpb.UnsafeDestroyRangeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegisterLockObserverRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RegisterLockObserverRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * uint64 max_ts = 2; */ long getMaxTs(); } /** * Protobuf type {@code kvrpcpb.RegisterLockObserverRequest} */ public static final class RegisterLockObserverRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RegisterLockObserverRequest) RegisterLockObserverRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RegisterLockObserverRequest.newBuilder() to construct. private RegisterLockObserverRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegisterLockObserverRequest() { maxTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegisterLockObserverRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { maxTs_ = 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.Kvrpcpb.internal_static_kvrpcpb_RegisterLockObserverRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RegisterLockObserverRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest.class, org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int MAX_TS_FIELD_NUMBER = 2; private long maxTs_; /** * uint64 max_ts = 2; */ public long getMaxTs() { return maxTs_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (maxTs_ != 0L) { output.writeUInt64(2, maxTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (maxTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, maxTs_); } 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.Kvrpcpb.RegisterLockObserverRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest other = (org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getMaxTs() == other.getMaxTs()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + MAX_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest 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.Kvrpcpb.RegisterLockObserverRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest 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.Kvrpcpb.RegisterLockObserverRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest 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.Kvrpcpb.RegisterLockObserverRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest 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.Kvrpcpb.RegisterLockObserverRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest 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.Kvrpcpb.RegisterLockObserverRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RegisterLockObserverRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RegisterLockObserverRequest) org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RegisterLockObserverRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RegisterLockObserverRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest.class, org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } maxTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RegisterLockObserverRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest build() { org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest result = new org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.maxTs_ = maxTs_; 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.Kvrpcpb.RegisterLockObserverRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getMaxTs() != 0L) { setMaxTs(other.getMaxTs()); } 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.Kvrpcpb.RegisterLockObserverRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long maxTs_ ; /** * uint64 max_ts = 2; */ public long getMaxTs() { return maxTs_; } /** * uint64 max_ts = 2; */ public Builder setMaxTs(long value) { maxTs_ = value; onChanged(); return this; } /** * uint64 max_ts = 2; */ public Builder clearMaxTs() { maxTs_ = 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:kvrpcpb.RegisterLockObserverRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RegisterLockObserverRequest) private static final org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest(); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegisterLockObserverRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegisterLockObserverRequest(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.Kvrpcpb.RegisterLockObserverRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RegisterLockObserverResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RegisterLockObserverResponse) com.google.protobuf.MessageOrBuilder { /** * string error = 1; */ java.lang.String getError(); /** * string error = 1; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code kvrpcpb.RegisterLockObserverResponse} */ public static final class RegisterLockObserverResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RegisterLockObserverResponse) RegisterLockObserverResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RegisterLockObserverResponse.newBuilder() to construct. private RegisterLockObserverResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RegisterLockObserverResponse() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RegisterLockObserverResponse( 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(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RegisterLockObserverResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RegisterLockObserverResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse.class, org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private volatile java.lang.Object error_; /** * string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, error_); } 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.Kvrpcpb.RegisterLockObserverResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse other = (org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse) obj; boolean result = true; result = result && getError() .equals(other.getError()); 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) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse 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.Kvrpcpb.RegisterLockObserverResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse 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.Kvrpcpb.RegisterLockObserverResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse 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.Kvrpcpb.RegisterLockObserverResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse 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.Kvrpcpb.RegisterLockObserverResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse 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.Kvrpcpb.RegisterLockObserverResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RegisterLockObserverResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RegisterLockObserverResponse) org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RegisterLockObserverResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RegisterLockObserverResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse.class, org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse.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(); error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RegisterLockObserverResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse build() { org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse result = new org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse(this); result.error_ = error_; 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.Kvrpcpb.RegisterLockObserverResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse.getDefaultInstance()) return this; if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object error_ = ""; /** * string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 1; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 1; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 1; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RegisterLockObserverResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RegisterLockObserverResponse) private static final org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse(); } public static org.tikv.kvproto.Kvrpcpb.RegisterLockObserverResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RegisterLockObserverResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RegisterLockObserverResponse(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.Kvrpcpb.RegisterLockObserverResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckLockObserverRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CheckLockObserverRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * uint64 max_ts = 2; */ long getMaxTs(); } /** * Protobuf type {@code kvrpcpb.CheckLockObserverRequest} */ public static final class CheckLockObserverRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CheckLockObserverRequest) CheckLockObserverRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CheckLockObserverRequest.newBuilder() to construct. private CheckLockObserverRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckLockObserverRequest() { maxTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckLockObserverRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { maxTs_ = 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.Kvrpcpb.internal_static_kvrpcpb_CheckLockObserverRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLockObserverRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest.class, org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int MAX_TS_FIELD_NUMBER = 2; private long maxTs_; /** * uint64 max_ts = 2; */ public long getMaxTs() { return maxTs_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (maxTs_ != 0L) { output.writeUInt64(2, maxTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (maxTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, maxTs_); } 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.Kvrpcpb.CheckLockObserverRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest other = (org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getMaxTs() == other.getMaxTs()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + MAX_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest 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.Kvrpcpb.CheckLockObserverRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest 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.Kvrpcpb.CheckLockObserverRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest 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.Kvrpcpb.CheckLockObserverRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest 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.Kvrpcpb.CheckLockObserverRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest 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.Kvrpcpb.CheckLockObserverRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.CheckLockObserverRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CheckLockObserverRequest) org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLockObserverRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLockObserverRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest.class, org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } maxTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLockObserverRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest build() { org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest result = new org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.maxTs_ = maxTs_; 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.Kvrpcpb.CheckLockObserverRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getMaxTs() != 0L) { setMaxTs(other.getMaxTs()); } 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.Kvrpcpb.CheckLockObserverRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long maxTs_ ; /** * uint64 max_ts = 2; */ public long getMaxTs() { return maxTs_; } /** * uint64 max_ts = 2; */ public Builder setMaxTs(long value) { maxTs_ = value; onChanged(); return this; } /** * uint64 max_ts = 2; */ public Builder clearMaxTs() { maxTs_ = 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:kvrpcpb.CheckLockObserverRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.CheckLockObserverRequest) private static final org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest(); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CheckLockObserverRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckLockObserverRequest(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.Kvrpcpb.CheckLockObserverRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckLockObserverResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CheckLockObserverResponse) com.google.protobuf.MessageOrBuilder { /** * string error = 1; */ java.lang.String getError(); /** * string error = 1; */ com.google.protobuf.ByteString getErrorBytes(); /** * bool is_clean = 2; */ boolean getIsClean(); /** * repeated .kvrpcpb.LockInfo locks = 3; */ java.util.List getLocksList(); /** * repeated .kvrpcpb.LockInfo locks = 3; */ org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index); /** * repeated .kvrpcpb.LockInfo locks = 3; */ int getLocksCount(); /** * repeated .kvrpcpb.LockInfo locks = 3; */ java.util.List getLocksOrBuilderList(); /** * repeated .kvrpcpb.LockInfo locks = 3; */ org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index); } /** * Protobuf type {@code kvrpcpb.CheckLockObserverResponse} */ public static final class CheckLockObserverResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CheckLockObserverResponse) CheckLockObserverResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CheckLockObserverResponse.newBuilder() to construct. private CheckLockObserverResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckLockObserverResponse() { error_ = ""; isClean_ = false; locks_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckLockObserverResponse( 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(); error_ = s; break; } case 16: { isClean_ = input.readBool(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { locks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } locks_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.LockInfo.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { locks_ = java.util.Collections.unmodifiableList(locks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLockObserverResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLockObserverResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse.class, org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse.Builder.class); } private int bitField0_; public static final int ERROR_FIELD_NUMBER = 1; private volatile java.lang.Object error_; /** * string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int IS_CLEAN_FIELD_NUMBER = 2; private boolean isClean_; /** * bool is_clean = 2; */ public boolean getIsClean() { return isClean_; } public static final int LOCKS_FIELD_NUMBER = 3; private java.util.List locks_; /** * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksList() { return locks_; } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksOrBuilderList() { return locks_; } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public int getLocksCount() { return locks_.size(); } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index) { return locks_.get(index); } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index) { return locks_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, error_); } if (isClean_ != false) { output.writeBool(2, isClean_); } for (int i = 0; i < locks_.size(); i++) { output.writeMessage(3, locks_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, error_); } if (isClean_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isClean_); } for (int i = 0; i < locks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, locks_.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.Kvrpcpb.CheckLockObserverResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse other = (org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse) obj; boolean result = true; result = result && getError() .equals(other.getError()); result = result && (getIsClean() == other.getIsClean()); result = result && getLocksList() .equals(other.getLocksList()); 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) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (37 * hash) + IS_CLEAN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsClean()); if (getLocksCount() > 0) { hash = (37 * hash) + LOCKS_FIELD_NUMBER; hash = (53 * hash) + getLocksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse 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.Kvrpcpb.CheckLockObserverResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse 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.Kvrpcpb.CheckLockObserverResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse 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.Kvrpcpb.CheckLockObserverResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse 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.Kvrpcpb.CheckLockObserverResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse 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.Kvrpcpb.CheckLockObserverResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.CheckLockObserverResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CheckLockObserverResponse) org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLockObserverResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLockObserverResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse.class, org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLocksFieldBuilder(); } } public Builder clear() { super.clear(); error_ = ""; isClean_ = false; if (locksBuilder_ == null) { locks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { locksBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLockObserverResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse build() { org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse result = new org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.error_ = error_; result.isClean_ = isClean_; if (locksBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { locks_ = java.util.Collections.unmodifiableList(locks_); bitField0_ = (bitField0_ & ~0x00000004); } result.locks_ = locks_; } else { result.locks_ = locksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse.getDefaultInstance()) return this; if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } if (other.getIsClean() != false) { setIsClean(other.getIsClean()); } if (locksBuilder_ == null) { if (!other.locks_.isEmpty()) { if (locks_.isEmpty()) { locks_ = other.locks_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLocksIsMutable(); locks_.addAll(other.locks_); } onChanged(); } } else { if (!other.locks_.isEmpty()) { if (locksBuilder_.isEmpty()) { locksBuilder_.dispose(); locksBuilder_ = null; locks_ = other.locks_; bitField0_ = (bitField0_ & ~0x00000004); locksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocksFieldBuilder() : null; } else { locksBuilder_.addAllMessages(other.locks_); } } } 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.Kvrpcpb.CheckLockObserverResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object error_ = ""; /** * string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 1; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 1; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 1; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } private boolean isClean_ ; /** * bool is_clean = 2; */ public boolean getIsClean() { return isClean_; } /** * bool is_clean = 2; */ public Builder setIsClean(boolean value) { isClean_ = value; onChanged(); return this; } /** * bool is_clean = 2; */ public Builder clearIsClean() { isClean_ = false; onChanged(); return this; } private java.util.List locks_ = java.util.Collections.emptyList(); private void ensureLocksIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { locks_ = new java.util.ArrayList(locks_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> locksBuilder_; /** * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksList() { if (locksBuilder_ == null) { return java.util.Collections.unmodifiableList(locks_); } else { return locksBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public int getLocksCount() { if (locksBuilder_ == null) { return locks_.size(); } else { return locksBuilder_.getCount(); } } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index) { if (locksBuilder_ == null) { return locks_.get(index); } else { return locksBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder setLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.set(index, value); onChanged(); } else { locksBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder setLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.set(index, builderForValue.build()); onChanged(); } else { locksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.add(value); onChanged(); } else { locksBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.add(index, value); onChanged(); } else { locksBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks( org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.add(builderForValue.build()); onChanged(); } else { locksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.add(index, builderForValue.build()); onChanged(); } else { locksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder addAllLocks( java.lang.Iterable values) { if (locksBuilder_ == null) { ensureLocksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, locks_); onChanged(); } else { locksBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder clearLocks() { if (locksBuilder_ == null) { locks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { locksBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public Builder removeLocks(int index) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.remove(index); onChanged(); } else { locksBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder getLocksBuilder( int index) { return getLocksFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index) { if (locksBuilder_ == null) { return locks_.get(index); } else { return locksBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksOrBuilderList() { if (locksBuilder_ != null) { return locksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(locks_); } } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder addLocksBuilder() { return getLocksFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance()); } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder addLocksBuilder( int index) { return getLocksFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance()); } /** * repeated .kvrpcpb.LockInfo locks = 3; */ public java.util.List getLocksBuilderList() { return getLocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> getLocksFieldBuilder() { if (locksBuilder_ == null) { locksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>( locks_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); locks_ = null; } return locksBuilder_; } 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:kvrpcpb.CheckLockObserverResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.CheckLockObserverResponse) private static final org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse(); } public static org.tikv.kvproto.Kvrpcpb.CheckLockObserverResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CheckLockObserverResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckLockObserverResponse(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.Kvrpcpb.CheckLockObserverResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemoveLockObserverRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RemoveLockObserverRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * uint64 max_ts = 2; */ long getMaxTs(); } /** * Protobuf type {@code kvrpcpb.RemoveLockObserverRequest} */ public static final class RemoveLockObserverRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RemoveLockObserverRequest) RemoveLockObserverRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RemoveLockObserverRequest.newBuilder() to construct. private RemoveLockObserverRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoveLockObserverRequest() { maxTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RemoveLockObserverRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { maxTs_ = 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.Kvrpcpb.internal_static_kvrpcpb_RemoveLockObserverRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RemoveLockObserverRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest.class, org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int MAX_TS_FIELD_NUMBER = 2; private long maxTs_; /** * uint64 max_ts = 2; */ public long getMaxTs() { return maxTs_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (maxTs_ != 0L) { output.writeUInt64(2, maxTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (maxTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, maxTs_); } 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.Kvrpcpb.RemoveLockObserverRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest other = (org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getMaxTs() == other.getMaxTs()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + MAX_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest 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.Kvrpcpb.RemoveLockObserverRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest 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.Kvrpcpb.RemoveLockObserverRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest 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.Kvrpcpb.RemoveLockObserverRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest 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.Kvrpcpb.RemoveLockObserverRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest 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.Kvrpcpb.RemoveLockObserverRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RemoveLockObserverRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RemoveLockObserverRequest) org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RemoveLockObserverRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RemoveLockObserverRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest.class, org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } maxTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RemoveLockObserverRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest build() { org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest result = new org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.maxTs_ = maxTs_; 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.Kvrpcpb.RemoveLockObserverRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getMaxTs() != 0L) { setMaxTs(other.getMaxTs()); } 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.Kvrpcpb.RemoveLockObserverRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long maxTs_ ; /** * uint64 max_ts = 2; */ public long getMaxTs() { return maxTs_; } /** * uint64 max_ts = 2; */ public Builder setMaxTs(long value) { maxTs_ = value; onChanged(); return this; } /** * uint64 max_ts = 2; */ public Builder clearMaxTs() { maxTs_ = 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:kvrpcpb.RemoveLockObserverRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RemoveLockObserverRequest) private static final org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest(); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RemoveLockObserverRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoveLockObserverRequest(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.Kvrpcpb.RemoveLockObserverRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RemoveLockObserverResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RemoveLockObserverResponse) com.google.protobuf.MessageOrBuilder { /** * string error = 1; */ java.lang.String getError(); /** * string error = 1; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code kvrpcpb.RemoveLockObserverResponse} */ public static final class RemoveLockObserverResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RemoveLockObserverResponse) RemoveLockObserverResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RemoveLockObserverResponse.newBuilder() to construct. private RemoveLockObserverResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RemoveLockObserverResponse() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RemoveLockObserverResponse( 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(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RemoveLockObserverResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RemoveLockObserverResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse.class, org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private volatile java.lang.Object error_; /** * string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, error_); } 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.Kvrpcpb.RemoveLockObserverResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse other = (org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse) obj; boolean result = true; result = result && getError() .equals(other.getError()); 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) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse 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.Kvrpcpb.RemoveLockObserverResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse 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.Kvrpcpb.RemoveLockObserverResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse 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.Kvrpcpb.RemoveLockObserverResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse 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.Kvrpcpb.RemoveLockObserverResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse 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.Kvrpcpb.RemoveLockObserverResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RemoveLockObserverResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RemoveLockObserverResponse) org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RemoveLockObserverResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RemoveLockObserverResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse.class, org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse.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(); error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RemoveLockObserverResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse build() { org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse result = new org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse(this); result.error_ = error_; 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.Kvrpcpb.RemoveLockObserverResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse.getDefaultInstance()) return this; if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object error_ = ""; /** * string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 1; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 1; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 1; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RemoveLockObserverResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RemoveLockObserverResponse) private static final org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse(); } public static org.tikv.kvproto.Kvrpcpb.RemoveLockObserverResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RemoveLockObserverResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoveLockObserverResponse(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.Kvrpcpb.RemoveLockObserverResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PhysicalScanLockRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.PhysicalScanLockRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * uint64 max_ts = 2; */ long getMaxTs(); /** * bytes start_key = 3; */ com.google.protobuf.ByteString getStartKey(); /** * uint32 limit = 4; */ int getLimit(); } /** * Protobuf type {@code kvrpcpb.PhysicalScanLockRequest} */ public static final class PhysicalScanLockRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.PhysicalScanLockRequest) PhysicalScanLockRequestOrBuilder { private static final long serialVersionUID = 0L; // Use PhysicalScanLockRequest.newBuilder() to construct. private PhysicalScanLockRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PhysicalScanLockRequest() { maxTs_ = 0L; startKey_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PhysicalScanLockRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { maxTs_ = input.readUInt64(); break; } case 26: { startKey_ = input.readBytes(); break; } case 32: { limit_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PhysicalScanLockRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PhysicalScanLockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest.class, org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int MAX_TS_FIELD_NUMBER = 2; private long maxTs_; /** * uint64 max_ts = 2; */ public long getMaxTs() { return maxTs_; } public static final int START_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 3; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int LIMIT_FIELD_NUMBER = 4; private int limit_; /** * uint32 limit = 4; */ public int getLimit() { return limit_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (maxTs_ != 0L) { output.writeUInt64(2, maxTs_); } if (!startKey_.isEmpty()) { output.writeBytes(3, startKey_); } if (limit_ != 0) { output.writeUInt32(4, limit_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (maxTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, maxTs_); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, startKey_); } if (limit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, limit_); } 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.Kvrpcpb.PhysicalScanLockRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest other = (org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getMaxTs() == other.getMaxTs()); result = result && getStartKey() .equals(other.getStartKey()); result = result && (getLimit() == other.getLimit()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + MAX_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxTs()); hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest 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.Kvrpcpb.PhysicalScanLockRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest 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.Kvrpcpb.PhysicalScanLockRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest 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.Kvrpcpb.PhysicalScanLockRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest 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.Kvrpcpb.PhysicalScanLockRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest 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.Kvrpcpb.PhysicalScanLockRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.PhysicalScanLockRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.PhysicalScanLockRequest) org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PhysicalScanLockRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PhysicalScanLockRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest.class, org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } maxTs_ = 0L; startKey_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PhysicalScanLockRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest build() { org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest result = new org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.maxTs_ = maxTs_; result.startKey_ = startKey_; result.limit_ = limit_; 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.Kvrpcpb.PhysicalScanLockRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getMaxTs() != 0L) { setMaxTs(other.getMaxTs()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getLimit() != 0) { setLimit(other.getLimit()); } 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.Kvrpcpb.PhysicalScanLockRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long maxTs_ ; /** * uint64 max_ts = 2; */ public long getMaxTs() { return maxTs_; } /** * uint64 max_ts = 2; */ public Builder setMaxTs(long value) { maxTs_ = value; onChanged(); return this; } /** * uint64 max_ts = 2; */ public Builder clearMaxTs() { maxTs_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 3; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 3; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 3; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private int limit_ ; /** * uint32 limit = 4; */ public int getLimit() { return limit_; } /** * uint32 limit = 4; */ public Builder setLimit(int value) { limit_ = value; onChanged(); return this; } /** * uint32 limit = 4; */ public Builder clearLimit() { limit_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.PhysicalScanLockRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.PhysicalScanLockRequest) private static final org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest(); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PhysicalScanLockRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PhysicalScanLockRequest(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.Kvrpcpb.PhysicalScanLockRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PhysicalScanLockResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.PhysicalScanLockResponse) com.google.protobuf.MessageOrBuilder { /** * string error = 1; */ java.lang.String getError(); /** * string error = 1; */ com.google.protobuf.ByteString getErrorBytes(); /** * repeated .kvrpcpb.LockInfo locks = 2; */ java.util.List getLocksList(); /** * repeated .kvrpcpb.LockInfo locks = 2; */ org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index); /** * repeated .kvrpcpb.LockInfo locks = 2; */ int getLocksCount(); /** * repeated .kvrpcpb.LockInfo locks = 2; */ java.util.List getLocksOrBuilderList(); /** * repeated .kvrpcpb.LockInfo locks = 2; */ org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index); } /** * Protobuf type {@code kvrpcpb.PhysicalScanLockResponse} */ public static final class PhysicalScanLockResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.PhysicalScanLockResponse) PhysicalScanLockResponseOrBuilder { private static final long serialVersionUID = 0L; // Use PhysicalScanLockResponse.newBuilder() to construct. private PhysicalScanLockResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PhysicalScanLockResponse() { error_ = ""; locks_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PhysicalScanLockResponse( 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(); error_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { locks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } locks_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.LockInfo.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { locks_ = java.util.Collections.unmodifiableList(locks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PhysicalScanLockResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PhysicalScanLockResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse.class, org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse.Builder.class); } private int bitField0_; public static final int ERROR_FIELD_NUMBER = 1; private volatile java.lang.Object error_; /** * string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCKS_FIELD_NUMBER = 2; private java.util.List locks_; /** * repeated .kvrpcpb.LockInfo locks = 2; */ public java.util.List getLocksList() { return locks_; } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public java.util.List getLocksOrBuilderList() { return locks_; } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public int getLocksCount() { return locks_.size(); } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index) { return locks_.get(index); } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index) { return locks_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, error_); } for (int i = 0; i < locks_.size(); i++) { output.writeMessage(2, locks_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, error_); } for (int i = 0; i < locks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, locks_.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.Kvrpcpb.PhysicalScanLockResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse other = (org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse) obj; boolean result = true; result = result && getError() .equals(other.getError()); result = result && getLocksList() .equals(other.getLocksList()); 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) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); if (getLocksCount() > 0) { hash = (37 * hash) + LOCKS_FIELD_NUMBER; hash = (53 * hash) + getLocksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse 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.Kvrpcpb.PhysicalScanLockResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse 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.Kvrpcpb.PhysicalScanLockResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse 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.Kvrpcpb.PhysicalScanLockResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse 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.Kvrpcpb.PhysicalScanLockResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse 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.Kvrpcpb.PhysicalScanLockResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.PhysicalScanLockResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.PhysicalScanLockResponse) org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PhysicalScanLockResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PhysicalScanLockResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse.class, org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLocksFieldBuilder(); } } public Builder clear() { super.clear(); error_ = ""; if (locksBuilder_ == null) { locks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { locksBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_PhysicalScanLockResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse build() { org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse result = new org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.error_ = error_; if (locksBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { locks_ = java.util.Collections.unmodifiableList(locks_); bitField0_ = (bitField0_ & ~0x00000002); } result.locks_ = locks_; } else { result.locks_ = locksBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse.getDefaultInstance()) return this; if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } if (locksBuilder_ == null) { if (!other.locks_.isEmpty()) { if (locks_.isEmpty()) { locks_ = other.locks_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLocksIsMutable(); locks_.addAll(other.locks_); } onChanged(); } } else { if (!other.locks_.isEmpty()) { if (locksBuilder_.isEmpty()) { locksBuilder_.dispose(); locksBuilder_ = null; locks_ = other.locks_; bitField0_ = (bitField0_ & ~0x00000002); locksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocksFieldBuilder() : null; } else { locksBuilder_.addAllMessages(other.locks_); } } } 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.Kvrpcpb.PhysicalScanLockResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object error_ = ""; /** * string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 1; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 1; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 1; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } private java.util.List locks_ = java.util.Collections.emptyList(); private void ensureLocksIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { locks_ = new java.util.ArrayList(locks_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> locksBuilder_; /** * repeated .kvrpcpb.LockInfo locks = 2; */ public java.util.List getLocksList() { if (locksBuilder_ == null) { return java.util.Collections.unmodifiableList(locks_); } else { return locksBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public int getLocksCount() { if (locksBuilder_ == null) { return locks_.size(); } else { return locksBuilder_.getCount(); } } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocks(int index) { if (locksBuilder_ == null) { return locks_.get(index); } else { return locksBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public Builder setLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.set(index, value); onChanged(); } else { locksBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public Builder setLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.set(index, builderForValue.build()); onChanged(); } else { locksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public Builder addLocks(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.add(value); onChanged(); } else { locksBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public Builder addLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (locksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocksIsMutable(); locks_.add(index, value); onChanged(); } else { locksBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public Builder addLocks( org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.add(builderForValue.build()); onChanged(); } else { locksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public Builder addLocks( int index, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.add(index, builderForValue.build()); onChanged(); } else { locksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public Builder addAllLocks( java.lang.Iterable values) { if (locksBuilder_ == null) { ensureLocksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, locks_); onChanged(); } else { locksBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public Builder clearLocks() { if (locksBuilder_ == null) { locks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { locksBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public Builder removeLocks(int index) { if (locksBuilder_ == null) { ensureLocksIsMutable(); locks_.remove(index); onChanged(); } else { locksBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder getLocksBuilder( int index) { return getLocksFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLocksOrBuilder( int index) { if (locksBuilder_ == null) { return locks_.get(index); } else { return locksBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public java.util.List getLocksOrBuilderList() { if (locksBuilder_ != null) { return locksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(locks_); } } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder addLocksBuilder() { return getLocksFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance()); } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder addLocksBuilder( int index) { return getLocksFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance()); } /** * repeated .kvrpcpb.LockInfo locks = 2; */ public java.util.List getLocksBuilderList() { return getLocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> getLocksFieldBuilder() { if (locksBuilder_ == null) { locksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>( locks_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); locks_ = null; } return locksBuilder_; } 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:kvrpcpb.PhysicalScanLockResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.PhysicalScanLockResponse) private static final org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse(); } public static org.tikv.kvproto.Kvrpcpb.PhysicalScanLockResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PhysicalScanLockResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PhysicalScanLockResponse(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.Kvrpcpb.PhysicalScanLockResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitRegionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.SplitRegionRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes split_key = 2 [deprecated = true]; */ @java.lang.Deprecated com.google.protobuf.ByteString getSplitKey(); /** *
     * when use it to do batch split, `split_key` should be empty.
     * 
* * repeated bytes split_keys = 3; */ java.util.List getSplitKeysList(); /** *
     * when use it to do batch split, `split_key` should be empty.
     * 
* * repeated bytes split_keys = 3; */ int getSplitKeysCount(); /** *
     * when use it to do batch split, `split_key` should be empty.
     * 
* * repeated bytes split_keys = 3; */ com.google.protobuf.ByteString getSplitKeys(int index); } /** *
   * Sent from PD to a TiKV node.
   * 
* * Protobuf type {@code kvrpcpb.SplitRegionRequest} */ public static final class SplitRegionRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.SplitRegionRequest) SplitRegionRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SplitRegionRequest.newBuilder() to construct. private SplitRegionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitRegionRequest() { splitKey_ = com.google.protobuf.ByteString.EMPTY; splitKeys_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SplitRegionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { splitKey_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { splitKeys_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } splitKeys_.add(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 { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { splitKeys_ = java.util.Collections.unmodifiableList(splitKeys_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_SplitRegionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_SplitRegionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.SplitRegionRequest.class, org.tikv.kvproto.Kvrpcpb.SplitRegionRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int SPLIT_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString splitKey_; /** * bytes split_key = 2 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.ByteString getSplitKey() { return splitKey_; } public static final int SPLIT_KEYS_FIELD_NUMBER = 3; private java.util.List splitKeys_; /** *
     * when use it to do batch split, `split_key` should be empty.
     * 
* * repeated bytes split_keys = 3; */ public java.util.List getSplitKeysList() { return splitKeys_; } /** *
     * when use it to do batch split, `split_key` should be empty.
     * 
* * repeated bytes split_keys = 3; */ public int getSplitKeysCount() { return splitKeys_.size(); } /** *
     * when use it to do batch split, `split_key` should be empty.
     * 
* * repeated bytes split_keys = 3; */ public com.google.protobuf.ByteString getSplitKeys(int index) { return splitKeys_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!splitKey_.isEmpty()) { output.writeBytes(2, splitKey_); } for (int i = 0; i < splitKeys_.size(); i++) { output.writeBytes(3, splitKeys_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!splitKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, splitKey_); } { int dataSize = 0; for (int i = 0; i < splitKeys_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(splitKeys_.get(i)); } size += dataSize; size += 1 * getSplitKeysList().size(); } 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.Kvrpcpb.SplitRegionRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.SplitRegionRequest other = (org.tikv.kvproto.Kvrpcpb.SplitRegionRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getSplitKey() .equals(other.getSplitKey()); result = result && getSplitKeysList() .equals(other.getSplitKeysList()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + SPLIT_KEY_FIELD_NUMBER; hash = (53 * hash) + getSplitKey().hashCode(); if (getSplitKeysCount() > 0) { hash = (37 * hash) + SPLIT_KEYS_FIELD_NUMBER; hash = (53 * hash) + getSplitKeysList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.SplitRegionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionRequest 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.Kvrpcpb.SplitRegionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionRequest 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.Kvrpcpb.SplitRegionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionRequest 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.Kvrpcpb.SplitRegionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionRequest 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.Kvrpcpb.SplitRegionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionRequest 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.Kvrpcpb.SplitRegionRequest 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; } /** *
     * Sent from PD to a TiKV node.
     * 
* * Protobuf type {@code kvrpcpb.SplitRegionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.SplitRegionRequest) org.tikv.kvproto.Kvrpcpb.SplitRegionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_SplitRegionRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_SplitRegionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.SplitRegionRequest.class, org.tikv.kvproto.Kvrpcpb.SplitRegionRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.SplitRegionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } splitKey_ = com.google.protobuf.ByteString.EMPTY; splitKeys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_SplitRegionRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.SplitRegionRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.SplitRegionRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.SplitRegionRequest build() { org.tikv.kvproto.Kvrpcpb.SplitRegionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.SplitRegionRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.SplitRegionRequest result = new org.tikv.kvproto.Kvrpcpb.SplitRegionRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.splitKey_ = splitKey_; if (((bitField0_ & 0x00000004) == 0x00000004)) { splitKeys_ = java.util.Collections.unmodifiableList(splitKeys_); bitField0_ = (bitField0_ & ~0x00000004); } result.splitKeys_ = splitKeys_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.SplitRegionRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.SplitRegionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.SplitRegionRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.SplitRegionRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getSplitKey() != com.google.protobuf.ByteString.EMPTY) { setSplitKey(other.getSplitKey()); } if (!other.splitKeys_.isEmpty()) { if (splitKeys_.isEmpty()) { splitKeys_ = other.splitKeys_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSplitKeysIsMutable(); splitKeys_.addAll(other.splitKeys_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.SplitRegionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.SplitRegionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString splitKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes split_key = 2 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.ByteString getSplitKey() { return splitKey_; } /** * bytes split_key = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder setSplitKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } splitKey_ = value; onChanged(); return this; } /** * bytes split_key = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder clearSplitKey() { splitKey_ = getDefaultInstance().getSplitKey(); onChanged(); return this; } private java.util.List splitKeys_ = java.util.Collections.emptyList(); private void ensureSplitKeysIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { splitKeys_ = new java.util.ArrayList(splitKeys_); bitField0_ |= 0x00000004; } } /** *
       * when use it to do batch split, `split_key` should be empty.
       * 
* * repeated bytes split_keys = 3; */ public java.util.List getSplitKeysList() { return java.util.Collections.unmodifiableList(splitKeys_); } /** *
       * when use it to do batch split, `split_key` should be empty.
       * 
* * repeated bytes split_keys = 3; */ public int getSplitKeysCount() { return splitKeys_.size(); } /** *
       * when use it to do batch split, `split_key` should be empty.
       * 
* * repeated bytes split_keys = 3; */ public com.google.protobuf.ByteString getSplitKeys(int index) { return splitKeys_.get(index); } /** *
       * when use it to do batch split, `split_key` should be empty.
       * 
* * repeated bytes split_keys = 3; */ public Builder setSplitKeys( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSplitKeysIsMutable(); splitKeys_.set(index, value); onChanged(); return this; } /** *
       * when use it to do batch split, `split_key` should be empty.
       * 
* * repeated bytes split_keys = 3; */ public Builder addSplitKeys(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSplitKeysIsMutable(); splitKeys_.add(value); onChanged(); return this; } /** *
       * when use it to do batch split, `split_key` should be empty.
       * 
* * repeated bytes split_keys = 3; */ public Builder addAllSplitKeys( java.lang.Iterable values) { ensureSplitKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, splitKeys_); onChanged(); return this; } /** *
       * when use it to do batch split, `split_key` should be empty.
       * 
* * repeated bytes split_keys = 3; */ public Builder clearSplitKeys() { splitKeys_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); 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:kvrpcpb.SplitRegionRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.SplitRegionRequest) private static final org.tikv.kvproto.Kvrpcpb.SplitRegionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.SplitRegionRequest(); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SplitRegionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SplitRegionRequest(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.Kvrpcpb.SplitRegionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SplitRegionResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.SplitRegionResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated boolean hasLeft(); /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated org.tikv.kvproto.Metapb.Region getLeft(); /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder(); /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated boolean hasRight(); /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated org.tikv.kvproto.Metapb.Region getRight(); /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder(); /** *
     * include all result regions.
     * 
* * repeated .metapb.Region regions = 4; */ java.util.List getRegionsList(); /** *
     * include all result regions.
     * 
* * repeated .metapb.Region regions = 4; */ org.tikv.kvproto.Metapb.Region getRegions(int index); /** *
     * include all result regions.
     * 
* * repeated .metapb.Region regions = 4; */ int getRegionsCount(); /** *
     * include all result regions.
     * 
* * repeated .metapb.Region regions = 4; */ java.util.List getRegionsOrBuilderList(); /** *
     * include all result regions.
     * 
* * repeated .metapb.Region regions = 4; */ org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder( int index); } /** * Protobuf type {@code kvrpcpb.SplitRegionResponse} */ public static final class SplitRegionResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.SplitRegionResponse) SplitRegionResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SplitRegionResponse.newBuilder() to construct. private SplitRegionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SplitRegionResponse() { regions_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SplitRegionResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (left_ != null) { subBuilder = left_.toBuilder(); } left_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(left_); left_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Metapb.Region.Builder subBuilder = null; if (right_ != null) { subBuilder = right_.toBuilder(); } right_ = input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(right_); right_ = subBuilder.buildPartial(); } break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } regions_.add( input.readMessage(org.tikv.kvproto.Metapb.Region.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { regions_ = java.util.Collections.unmodifiableList(regions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_SplitRegionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_SplitRegionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.SplitRegionResponse.class, org.tikv.kvproto.Kvrpcpb.SplitRegionResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int LEFT_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.Region left_; /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated public boolean hasLeft() { return left_ != null; } /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.Metapb.Region getLeft() { return left_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_; } /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder() { return getLeft(); } public static final int RIGHT_FIELD_NUMBER = 3; private org.tikv.kvproto.Metapb.Region right_; /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated public boolean hasRight() { return right_ != null; } /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.Metapb.Region getRight() { return right_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_; } /** *
     * set when there are only 2 result regions.
     * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder() { return getRight(); } public static final int REGIONS_FIELD_NUMBER = 4; private java.util.List regions_; /** *
     * include all result regions.
     * 
* * repeated .metapb.Region regions = 4; */ public java.util.List getRegionsList() { return regions_; } /** *
     * include all result regions.
     * 
* * repeated .metapb.Region regions = 4; */ public java.util.List getRegionsOrBuilderList() { return regions_; } /** *
     * include all result regions.
     * 
* * repeated .metapb.Region regions = 4; */ public int getRegionsCount() { return regions_.size(); } /** *
     * include all result regions.
     * 
* * repeated .metapb.Region regions = 4; */ public org.tikv.kvproto.Metapb.Region getRegions(int index) { return regions_.get(index); } /** *
     * include all result regions.
     * 
* * repeated .metapb.Region regions = 4; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder( int index) { return regions_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (left_ != null) { output.writeMessage(2, getLeft()); } if (right_ != null) { output.writeMessage(3, getRight()); } for (int i = 0; i < regions_.size(); i++) { output.writeMessage(4, regions_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (left_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLeft()); } if (right_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRight()); } for (int i = 0; i < regions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, regions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Kvrpcpb.SplitRegionResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.SplitRegionResponse other = (org.tikv.kvproto.Kvrpcpb.SplitRegionResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasLeft() == other.hasLeft()); if (hasLeft()) { result = result && getLeft() .equals(other.getLeft()); } result = result && (hasRight() == other.hasRight()); if (hasRight()) { result = result && getRight() .equals(other.getRight()); } result = result && getRegionsList() .equals(other.getRegionsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasLeft()) { hash = (37 * hash) + LEFT_FIELD_NUMBER; hash = (53 * hash) + getLeft().hashCode(); } if (hasRight()) { hash = (37 * hash) + RIGHT_FIELD_NUMBER; hash = (53 * hash) + getRight().hashCode(); } if (getRegionsCount() > 0) { hash = (37 * hash) + REGIONS_FIELD_NUMBER; hash = (53 * hash) + getRegionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.SplitRegionResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionResponse 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.Kvrpcpb.SplitRegionResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionResponse 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.Kvrpcpb.SplitRegionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionResponse 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.Kvrpcpb.SplitRegionResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionResponse 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.Kvrpcpb.SplitRegionResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionResponse 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.Kvrpcpb.SplitRegionResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.SplitRegionResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.SplitRegionResponse) org.tikv.kvproto.Kvrpcpb.SplitRegionResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_SplitRegionResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_SplitRegionResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.SplitRegionResponse.class, org.tikv.kvproto.Kvrpcpb.SplitRegionResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.SplitRegionResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRegionsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (leftBuilder_ == null) { left_ = null; } else { left_ = null; leftBuilder_ = null; } if (rightBuilder_ == null) { right_ = null; } else { right_ = null; rightBuilder_ = null; } if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { regionsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_SplitRegionResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.SplitRegionResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.SplitRegionResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.SplitRegionResponse build() { org.tikv.kvproto.Kvrpcpb.SplitRegionResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.SplitRegionResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.SplitRegionResponse result = new org.tikv.kvproto.Kvrpcpb.SplitRegionResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (leftBuilder_ == null) { result.left_ = left_; } else { result.left_ = leftBuilder_.build(); } if (rightBuilder_ == null) { result.right_ = right_; } else { result.right_ = rightBuilder_.build(); } if (regionsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { regions_ = java.util.Collections.unmodifiableList(regions_); bitField0_ = (bitField0_ & ~0x00000008); } result.regions_ = regions_; } else { result.regions_ = regionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.SplitRegionResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.SplitRegionResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.SplitRegionResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.SplitRegionResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasLeft()) { mergeLeft(other.getLeft()); } if (other.hasRight()) { mergeRight(other.getRight()); } if (regionsBuilder_ == null) { if (!other.regions_.isEmpty()) { if (regions_.isEmpty()) { regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureRegionsIsMutable(); regions_.addAll(other.regions_); } onChanged(); } } else { if (!other.regions_.isEmpty()) { if (regionsBuilder_.isEmpty()) { regionsBuilder_.dispose(); regionsBuilder_ = null; regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000008); regionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRegionsFieldBuilder() : null; } else { regionsBuilder_.addAllMessages(other.regions_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.SplitRegionResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.SplitRegionResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Metapb.Region left_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> leftBuilder_; /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated public boolean hasLeft() { return leftBuilder_ != null || left_ != null; } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.Metapb.Region getLeft() { if (leftBuilder_ == null) { return left_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_; } else { return leftBuilder_.getMessage(); } } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder setLeft(org.tikv.kvproto.Metapb.Region value) { if (leftBuilder_ == null) { if (value == null) { throw new NullPointerException(); } left_ = value; onChanged(); } else { leftBuilder_.setMessage(value); } return this; } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder setLeft( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (leftBuilder_ == null) { left_ = builderForValue.build(); onChanged(); } else { leftBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeLeft(org.tikv.kvproto.Metapb.Region value) { if (leftBuilder_ == null) { if (left_ != null) { left_ = org.tikv.kvproto.Metapb.Region.newBuilder(left_).mergeFrom(value).buildPartial(); } else { left_ = value; } onChanged(); } else { leftBuilder_.mergeFrom(value); } return this; } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder clearLeft() { if (leftBuilder_ == null) { left_ = null; onChanged(); } else { left_ = null; leftBuilder_ = null; } return this; } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.Metapb.Region.Builder getLeftBuilder() { onChanged(); return getLeftFieldBuilder().getBuilder(); } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region left = 2 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.Metapb.RegionOrBuilder getLeftOrBuilder() { if (leftBuilder_ != null) { return leftBuilder_.getMessageOrBuilder(); } else { return left_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : left_; } } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region left = 2 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getLeftFieldBuilder() { if (leftBuilder_ == null) { leftBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getLeft(), getParentForChildren(), isClean()); left_ = null; } return leftBuilder_; } private org.tikv.kvproto.Metapb.Region right_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> rightBuilder_; /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated public boolean hasRight() { return rightBuilder_ != null || right_ != null; } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.Metapb.Region getRight() { if (rightBuilder_ == null) { return right_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_; } else { return rightBuilder_.getMessage(); } } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder setRight(org.tikv.kvproto.Metapb.Region value) { if (rightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } right_ = value; onChanged(); } else { rightBuilder_.setMessage(value); } return this; } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder setRight( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (rightBuilder_ == null) { right_ = builderForValue.build(); onChanged(); } else { rightBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeRight(org.tikv.kvproto.Metapb.Region value) { if (rightBuilder_ == null) { if (right_ != null) { right_ = org.tikv.kvproto.Metapb.Region.newBuilder(right_).mergeFrom(value).buildPartial(); } else { right_ = value; } onChanged(); } else { rightBuilder_.mergeFrom(value); } return this; } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated public Builder clearRight() { if (rightBuilder_ == null) { right_ = null; onChanged(); } else { right_ = null; rightBuilder_ = null; } return this; } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.Metapb.Region.Builder getRightBuilder() { onChanged(); return getRightFieldBuilder().getBuilder(); } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region right = 3 [deprecated = true]; */ @java.lang.Deprecated public org.tikv.kvproto.Metapb.RegionOrBuilder getRightOrBuilder() { if (rightBuilder_ != null) { return rightBuilder_.getMessageOrBuilder(); } else { return right_ == null ? org.tikv.kvproto.Metapb.Region.getDefaultInstance() : right_; } } /** *
       * set when there are only 2 result regions.
       * 
* * .metapb.Region right = 3 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRightFieldBuilder() { if (rightBuilder_ == null) { rightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( getRight(), getParentForChildren(), isClean()); right_ = null; } return rightBuilder_; } private java.util.List regions_ = java.util.Collections.emptyList(); private void ensureRegionsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { regions_ = new java.util.ArrayList(regions_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> regionsBuilder_; /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public java.util.List getRegionsList() { if (regionsBuilder_ == null) { return java.util.Collections.unmodifiableList(regions_); } else { return regionsBuilder_.getMessageList(); } } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public int getRegionsCount() { if (regionsBuilder_ == null) { return regions_.size(); } else { return regionsBuilder_.getCount(); } } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public org.tikv.kvproto.Metapb.Region getRegions(int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessage(index); } } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public Builder setRegions( int index, org.tikv.kvproto.Metapb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.set(index, value); onChanged(); } else { regionsBuilder_.setMessage(index, value); } return this; } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public Builder setRegions( int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.set(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public Builder addRegions(org.tikv.kvproto.Metapb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(value); onChanged(); } else { regionsBuilder_.addMessage(value); } return this; } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public Builder addRegions( int index, org.tikv.kvproto.Metapb.Region value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(index, value); onChanged(); } else { regionsBuilder_.addMessage(index, value); } return this; } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public Builder addRegions( org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public Builder addRegions( int index, org.tikv.kvproto.Metapb.Region.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public Builder addAllRegions( java.lang.Iterable values) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regions_); onChanged(); } else { regionsBuilder_.addAllMessages(values); } return this; } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public Builder clearRegions() { if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { regionsBuilder_.clear(); } return this; } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public Builder removeRegions(int index) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.remove(index); onChanged(); } else { regionsBuilder_.remove(index); } return this; } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public org.tikv.kvproto.Metapb.Region.Builder getRegionsBuilder( int index) { return getRegionsFieldBuilder().getBuilder(index); } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public org.tikv.kvproto.Metapb.RegionOrBuilder getRegionsOrBuilder( int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessageOrBuilder(index); } } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public java.util.List getRegionsOrBuilderList() { if (regionsBuilder_ != null) { return regionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regions_); } } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public org.tikv.kvproto.Metapb.Region.Builder addRegionsBuilder() { return getRegionsFieldBuilder().addBuilder( org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public org.tikv.kvproto.Metapb.Region.Builder addRegionsBuilder( int index) { return getRegionsFieldBuilder().addBuilder( index, org.tikv.kvproto.Metapb.Region.getDefaultInstance()); } /** *
       * include all result regions.
       * 
* * repeated .metapb.Region regions = 4; */ public java.util.List getRegionsBuilderList() { return getRegionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder> getRegionsFieldBuilder() { if (regionsBuilder_ == null) { regionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Metapb.Region, org.tikv.kvproto.Metapb.Region.Builder, org.tikv.kvproto.Metapb.RegionOrBuilder>( regions_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); regions_ = null; } return regionsBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.SplitRegionResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.SplitRegionResponse) private static final org.tikv.kvproto.Kvrpcpb.SplitRegionResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.SplitRegionResponse(); } public static org.tikv.kvproto.Kvrpcpb.SplitRegionResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public SplitRegionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SplitRegionResponse(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.Kvrpcpb.SplitRegionResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadIndexRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ReadIndexRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** *
     * TiKV checks the given range if there is any unapplied lock
     * blocking the read request.
     * 
* * uint64 start_ts = 2; */ long getStartTs(); /** * repeated .kvrpcpb.KeyRange ranges = 3; */ java.util.List getRangesList(); /** * repeated .kvrpcpb.KeyRange ranges = 3; */ org.tikv.kvproto.Kvrpcpb.KeyRange getRanges(int index); /** * repeated .kvrpcpb.KeyRange ranges = 3; */ int getRangesCount(); /** * repeated .kvrpcpb.KeyRange ranges = 3; */ java.util.List getRangesOrBuilderList(); /** * repeated .kvrpcpb.KeyRange ranges = 3; */ org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getRangesOrBuilder( int index); } /** *
   * Sent from TiFlash to a TiKV node.
   * 
* * Protobuf type {@code kvrpcpb.ReadIndexRequest} */ public static final class ReadIndexRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ReadIndexRequest) ReadIndexRequestOrBuilder { private static final long serialVersionUID = 0L; // Use ReadIndexRequest.newBuilder() to construct. private ReadIndexRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadIndexRequest() { startTs_ = 0L; ranges_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadIndexRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { startTs_ = input.readUInt64(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { ranges_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } ranges_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyRange.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ReadIndexRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ReadIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ReadIndexRequest.class, org.tikv.kvproto.Kvrpcpb.ReadIndexRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_TS_FIELD_NUMBER = 2; private long startTs_; /** *
     * TiKV checks the given range if there is any unapplied lock
     * blocking the read request.
     * 
* * uint64 start_ts = 2; */ public long getStartTs() { return startTs_; } public static final int RANGES_FIELD_NUMBER = 3; private java.util.List ranges_; /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public java.util.List getRangesList() { return ranges_; } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public java.util.List getRangesOrBuilderList() { return ranges_; } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public int getRangesCount() { return ranges_.size(); } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyRange getRanges(int index) { return ranges_.get(index); } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getRangesOrBuilder( int index) { return ranges_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (startTs_ != 0L) { output.writeUInt64(2, startTs_); } for (int i = 0; i < ranges_.size(); i++) { output.writeMessage(3, ranges_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, startTs_); } for (int i = 0; i < ranges_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, ranges_.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.Kvrpcpb.ReadIndexRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ReadIndexRequest other = (org.tikv.kvproto.Kvrpcpb.ReadIndexRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getStartTs() == other.getStartTs()); result = result && getRangesList() .equals(other.getRangesList()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); if (getRangesCount() > 0) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRangesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Kvrpcpb.ReadIndexRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Sent from TiFlash to a TiKV node.
     * 
* * Protobuf type {@code kvrpcpb.ReadIndexRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ReadIndexRequest) org.tikv.kvproto.Kvrpcpb.ReadIndexRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ReadIndexRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ReadIndexRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ReadIndexRequest.class, org.tikv.kvproto.Kvrpcpb.ReadIndexRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ReadIndexRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRangesFieldBuilder(); } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } startTs_ = 0L; if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { rangesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ReadIndexRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.ReadIndexRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ReadIndexRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ReadIndexRequest build() { org.tikv.kvproto.Kvrpcpb.ReadIndexRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ReadIndexRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.ReadIndexRequest result = new org.tikv.kvproto.Kvrpcpb.ReadIndexRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.startTs_ = startTs_; if (rangesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); bitField0_ = (bitField0_ & ~0x00000004); } result.ranges_ = ranges_; } else { result.ranges_ = rangesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.ReadIndexRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ReadIndexRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ReadIndexRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.ReadIndexRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (rangesBuilder_ == null) { if (!other.ranges_.isEmpty()) { if (ranges_.isEmpty()) { ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRangesIsMutable(); ranges_.addAll(other.ranges_); } onChanged(); } } else { if (!other.ranges_.isEmpty()) { if (rangesBuilder_.isEmpty()) { rangesBuilder_.dispose(); rangesBuilder_ = null; ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000004); rangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRangesFieldBuilder() : null; } else { rangesBuilder_.addAllMessages(other.ranges_); } } } 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.Kvrpcpb.ReadIndexRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ReadIndexRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long startTs_ ; /** *
       * TiKV checks the given range if there is any unapplied lock
       * blocking the read request.
       * 
* * uint64 start_ts = 2; */ public long getStartTs() { return startTs_; } /** *
       * TiKV checks the given range if there is any unapplied lock
       * blocking the read request.
       * 
* * uint64 start_ts = 2; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** *
       * TiKV checks the given range if there is any unapplied lock
       * blocking the read request.
       * 
* * uint64 start_ts = 2; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private java.util.List ranges_ = java.util.Collections.emptyList(); private void ensureRangesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { ranges_ = new java.util.ArrayList(ranges_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder> rangesBuilder_; /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public java.util.List getRangesList() { if (rangesBuilder_ == null) { return java.util.Collections.unmodifiableList(ranges_); } else { return rangesBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public int getRangesCount() { if (rangesBuilder_ == null) { return ranges_.size(); } else { return rangesBuilder_.getCount(); } } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyRange getRanges(int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public Builder setRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.set(index, value); onChanged(); } else { rangesBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public Builder setRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.set(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public Builder addRanges(org.tikv.kvproto.Kvrpcpb.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(value); onChanged(); } else { rangesBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public Builder addRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(index, value); onChanged(); } else { rangesBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public Builder addRanges( org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public Builder addRanges( int index, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public Builder addAllRanges( java.lang.Iterable values) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ranges_); onChanged(); } else { rangesBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public Builder clearRanges() { if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { rangesBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public Builder removeRanges(int index) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.remove(index); onChanged(); } else { rangesBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder getRangesBuilder( int index) { return getRangesFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder getRangesOrBuilder( int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public java.util.List getRangesOrBuilderList() { if (rangesBuilder_ != null) { return rangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ranges_); } } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder addRangesBuilder() { return getRangesFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.KeyRange.getDefaultInstance()); } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public org.tikv.kvproto.Kvrpcpb.KeyRange.Builder addRangesBuilder( int index) { return getRangesFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.KeyRange.getDefaultInstance()); } /** * repeated .kvrpcpb.KeyRange ranges = 3; */ public java.util.List getRangesBuilderList() { return getRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder> getRangesFieldBuilder() { if (rangesBuilder_ == null) { rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyRange, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder, org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder>( ranges_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); ranges_ = null; } return rangesBuilder_; } 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:kvrpcpb.ReadIndexRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.ReadIndexRequest) private static final org.tikv.kvproto.Kvrpcpb.ReadIndexRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ReadIndexRequest(); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReadIndexRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadIndexRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Kvrpcpb.ReadIndexRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReadIndexResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ReadIndexResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * uint64 read_index = 2; */ long getReadIndex(); /** *
     * If `locked` is set, this read request is blocked by a lock.
     * The lock should be returned to the client.
     * 
* * .kvrpcpb.LockInfo locked = 3; */ boolean hasLocked(); /** *
     * If `locked` is set, this read request is blocked by a lock.
     * The lock should be returned to the client.
     * 
* * .kvrpcpb.LockInfo locked = 3; */ org.tikv.kvproto.Kvrpcpb.LockInfo getLocked(); /** *
     * If `locked` is set, this read request is blocked by a lock.
     * The lock should be returned to the client.
     * 
* * .kvrpcpb.LockInfo locked = 3; */ org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder(); } /** * Protobuf type {@code kvrpcpb.ReadIndexResponse} */ public static final class ReadIndexResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ReadIndexResponse) ReadIndexResponseOrBuilder { private static final long serialVersionUID = 0L; // Use ReadIndexResponse.newBuilder() to construct. private ReadIndexResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadIndexResponse() { readIndex_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReadIndexResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 16: { readIndex_ = input.readUInt64(); break; } case 26: { org.tikv.kvproto.Kvrpcpb.LockInfo.Builder subBuilder = null; if (locked_ != null) { subBuilder = locked_.toBuilder(); } locked_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.LockInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(locked_); locked_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ReadIndexResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ReadIndexResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ReadIndexResponse.class, org.tikv.kvproto.Kvrpcpb.ReadIndexResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int READ_INDEX_FIELD_NUMBER = 2; private long readIndex_; /** * uint64 read_index = 2; */ public long getReadIndex() { return readIndex_; } public static final int LOCKED_FIELD_NUMBER = 3; private org.tikv.kvproto.Kvrpcpb.LockInfo locked_; /** *
     * If `locked` is set, this read request is blocked by a lock.
     * The lock should be returned to the client.
     * 
* * .kvrpcpb.LockInfo locked = 3; */ public boolean hasLocked() { return locked_ != null; } /** *
     * If `locked` is set, this read request is blocked by a lock.
     * The lock should be returned to the client.
     * 
* * .kvrpcpb.LockInfo locked = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocked() { return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_; } /** *
     * If `locked` is set, this read request is blocked by a lock.
     * The lock should be returned to the client.
     * 
* * .kvrpcpb.LockInfo locked = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder() { return getLocked(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (readIndex_ != 0L) { output.writeUInt64(2, readIndex_); } if (locked_ != null) { output.writeMessage(3, getLocked()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (readIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, readIndex_); } if (locked_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getLocked()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Kvrpcpb.ReadIndexResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ReadIndexResponse other = (org.tikv.kvproto.Kvrpcpb.ReadIndexResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (getReadIndex() == other.getReadIndex()); result = result && (hasLocked() == other.hasLocked()); if (hasLocked()) { result = result && getLocked() .equals(other.getLocked()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + READ_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getReadIndex()); if (hasLocked()) { hash = (37 * hash) + LOCKED_FIELD_NUMBER; hash = (53 * hash) + getLocked().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Kvrpcpb.ReadIndexResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.ReadIndexResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ReadIndexResponse) org.tikv.kvproto.Kvrpcpb.ReadIndexResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ReadIndexResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ReadIndexResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ReadIndexResponse.class, org.tikv.kvproto.Kvrpcpb.ReadIndexResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ReadIndexResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } readIndex_ = 0L; if (lockedBuilder_ == null) { locked_ = null; } else { locked_ = null; lockedBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ReadIndexResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.ReadIndexResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ReadIndexResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ReadIndexResponse build() { org.tikv.kvproto.Kvrpcpb.ReadIndexResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ReadIndexResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.ReadIndexResponse result = new org.tikv.kvproto.Kvrpcpb.ReadIndexResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.readIndex_ = readIndex_; if (lockedBuilder_ == null) { result.locked_ = locked_; } else { result.locked_ = lockedBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.ReadIndexResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ReadIndexResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ReadIndexResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.ReadIndexResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.getReadIndex() != 0L) { setReadIndex(other.getReadIndex()); } if (other.hasLocked()) { mergeLocked(other.getLocked()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.ReadIndexResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ReadIndexResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private long readIndex_ ; /** * uint64 read_index = 2; */ public long getReadIndex() { return readIndex_; } /** * uint64 read_index = 2; */ public Builder setReadIndex(long value) { readIndex_ = value; onChanged(); return this; } /** * uint64 read_index = 2; */ public Builder clearReadIndex() { readIndex_ = 0L; onChanged(); return this; } private org.tikv.kvproto.Kvrpcpb.LockInfo locked_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> lockedBuilder_; /** *
       * If `locked` is set, this read request is blocked by a lock.
       * The lock should be returned to the client.
       * 
* * .kvrpcpb.LockInfo locked = 3; */ public boolean hasLocked() { return lockedBuilder_ != null || locked_ != null; } /** *
       * If `locked` is set, this read request is blocked by a lock.
       * The lock should be returned to the client.
       * 
* * .kvrpcpb.LockInfo locked = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocked() { if (lockedBuilder_ == null) { return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_; } else { return lockedBuilder_.getMessage(); } } /** *
       * If `locked` is set, this read request is blocked by a lock.
       * The lock should be returned to the client.
       * 
* * .kvrpcpb.LockInfo locked = 3; */ public Builder setLocked(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (lockedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } locked_ = value; onChanged(); } else { lockedBuilder_.setMessage(value); } return this; } /** *
       * If `locked` is set, this read request is blocked by a lock.
       * The lock should be returned to the client.
       * 
* * .kvrpcpb.LockInfo locked = 3; */ public Builder setLocked( org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (lockedBuilder_ == null) { locked_ = builderForValue.build(); onChanged(); } else { lockedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * If `locked` is set, this read request is blocked by a lock.
       * The lock should be returned to the client.
       * 
* * .kvrpcpb.LockInfo locked = 3; */ public Builder mergeLocked(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (lockedBuilder_ == null) { if (locked_ != null) { locked_ = org.tikv.kvproto.Kvrpcpb.LockInfo.newBuilder(locked_).mergeFrom(value).buildPartial(); } else { locked_ = value; } onChanged(); } else { lockedBuilder_.mergeFrom(value); } return this; } /** *
       * If `locked` is set, this read request is blocked by a lock.
       * The lock should be returned to the client.
       * 
* * .kvrpcpb.LockInfo locked = 3; */ public Builder clearLocked() { if (lockedBuilder_ == null) { locked_ = null; onChanged(); } else { locked_ = null; lockedBuilder_ = null; } return this; } /** *
       * If `locked` is set, this read request is blocked by a lock.
       * The lock should be returned to the client.
       * 
* * .kvrpcpb.LockInfo locked = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder getLockedBuilder() { onChanged(); return getLockedFieldBuilder().getBuilder(); } /** *
       * If `locked` is set, this read request is blocked by a lock.
       * The lock should be returned to the client.
       * 
* * .kvrpcpb.LockInfo locked = 3; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder() { if (lockedBuilder_ != null) { return lockedBuilder_.getMessageOrBuilder(); } else { return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_; } } /** *
       * If `locked` is set, this read request is blocked by a lock.
       * The lock should be returned to the client.
       * 
* * .kvrpcpb.LockInfo locked = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> getLockedFieldBuilder() { if (lockedBuilder_ == null) { lockedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>( getLocked(), getParentForChildren(), isClean()); locked_ = null; } return lockedBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.ReadIndexResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.ReadIndexResponse) private static final org.tikv.kvproto.Kvrpcpb.ReadIndexResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ReadIndexResponse(); } public static org.tikv.kvproto.Kvrpcpb.ReadIndexResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ReadIndexResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReadIndexResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Kvrpcpb.ReadIndexResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerMutationOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerMutation) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.VerOp op = 1; */ int getOpValue(); /** * .kvrpcpb.VerOp op = 1; */ org.tikv.kvproto.Kvrpcpb.VerOp getOp(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * bytes value = 3; */ com.google.protobuf.ByteString getValue(); } /** * Protobuf type {@code kvrpcpb.VerMutation} */ public static final class VerMutation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerMutation) VerMutationOrBuilder { private static final long serialVersionUID = 0L; // Use VerMutation.newBuilder() to construct. private VerMutation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerMutation() { op_ = 0; key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerMutation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); op_ = rawValue; break; } case 18: { key_ = input.readBytes(); break; } case 26: { value_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerMutation.class, org.tikv.kvproto.Kvrpcpb.VerMutation.Builder.class); } public static final int OP_FIELD_NUMBER = 1; private int op_; /** * .kvrpcpb.VerOp op = 1; */ public int getOpValue() { return op_; } /** * .kvrpcpb.VerOp op = 1; */ public org.tikv.kvproto.Kvrpcpb.VerOp getOp() { org.tikv.kvproto.Kvrpcpb.VerOp result = org.tikv.kvproto.Kvrpcpb.VerOp.valueOf(op_); return result == null ? org.tikv.kvproto.Kvrpcpb.VerOp.UNRECOGNIZED : result; } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (op_ != org.tikv.kvproto.Kvrpcpb.VerOp.VerPut.getNumber()) { output.writeEnum(1, op_); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (!value_.isEmpty()) { output.writeBytes(3, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (op_ != org.tikv.kvproto.Kvrpcpb.VerOp.VerPut.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, op_); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Kvrpcpb.VerMutation)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerMutation other = (org.tikv.kvproto.Kvrpcpb.VerMutation) obj; boolean result = true; result = result && op_ == other.op_; result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OP_FIELD_NUMBER; hash = (53 * hash) + op_; hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerMutation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerMutation 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.Kvrpcpb.VerMutation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerMutation 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.Kvrpcpb.VerMutation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerMutation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerMutation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerMutation 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.Kvrpcpb.VerMutation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerMutation 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.Kvrpcpb.VerMutation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerMutation 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.Kvrpcpb.VerMutation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerMutation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerMutation) org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerMutation.class, org.tikv.kvproto.Kvrpcpb.VerMutation.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerMutation.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(); op_ = 0; key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutation_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerMutation getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerMutation.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerMutation build() { org.tikv.kvproto.Kvrpcpb.VerMutation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerMutation buildPartial() { org.tikv.kvproto.Kvrpcpb.VerMutation result = new org.tikv.kvproto.Kvrpcpb.VerMutation(this); result.op_ = op_; result.key_ = key_; result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.VerMutation) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerMutation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerMutation other) { if (other == org.tikv.kvproto.Kvrpcpb.VerMutation.getDefaultInstance()) return this; if (other.op_ != 0) { setOpValue(other.getOpValue()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.VerMutation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerMutation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int op_ = 0; /** * .kvrpcpb.VerOp op = 1; */ public int getOpValue() { return op_; } /** * .kvrpcpb.VerOp op = 1; */ public Builder setOpValue(int value) { op_ = value; onChanged(); return this; } /** * .kvrpcpb.VerOp op = 1; */ public org.tikv.kvproto.Kvrpcpb.VerOp getOp() { org.tikv.kvproto.Kvrpcpb.VerOp result = org.tikv.kvproto.Kvrpcpb.VerOp.valueOf(op_); return result == null ? org.tikv.kvproto.Kvrpcpb.VerOp.UNRECOGNIZED : result; } /** * .kvrpcpb.VerOp op = 1; */ public Builder setOp(org.tikv.kvproto.Kvrpcpb.VerOp value) { if (value == null) { throw new NullPointerException(); } op_ = value.getNumber(); onChanged(); return this; } /** * .kvrpcpb.VerOp op = 1; */ public Builder clearOp() { op_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 3; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 3; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.VerMutation) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerMutation) private static final org.tikv.kvproto.Kvrpcpb.VerMutation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerMutation(); } public static org.tikv.kvproto.Kvrpcpb.VerMutation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerMutation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerMutation(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.Kvrpcpb.VerMutation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerValueOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerValue) com.google.protobuf.MessageOrBuilder { /** * bytes value = 1; */ com.google.protobuf.ByteString getValue(); /** * uint64 version = 2; */ long getVersion(); } /** * Protobuf type {@code kvrpcpb.VerValue} */ public static final class VerValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerValue) VerValueOrBuilder { private static final long serialVersionUID = 0L; // Use VerValue.newBuilder() to construct. private VerValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerValue() { value_ = com.google.protobuf.ByteString.EMPTY; version_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { value_ = input.readBytes(); break; } case 16: { version_ = 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.Kvrpcpb.internal_static_kvrpcpb_VerValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerValue.class, org.tikv.kvproto.Kvrpcpb.VerValue.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private com.google.protobuf.ByteString value_; /** * bytes value = 1; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int VERSION_FIELD_NUMBER = 2; private long version_; /** * uint64 version = 2; */ public long getVersion() { return version_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!value_.isEmpty()) { output.writeBytes(1, value_); } if (version_ != 0L) { output.writeUInt64(2, version_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, value_); } if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, version_); } 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.Kvrpcpb.VerValue)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerValue other = (org.tikv.kvproto.Kvrpcpb.VerValue) obj; boolean result = true; result = result && getValue() .equals(other.getValue()); result = result && (getVersion() == other.getVersion()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerValue 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.Kvrpcpb.VerValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerValue 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.Kvrpcpb.VerValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerValue 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.Kvrpcpb.VerValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerValue 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.Kvrpcpb.VerValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerValue 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.Kvrpcpb.VerValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerValue) org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerValue.class, org.tikv.kvproto.Kvrpcpb.VerValue.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); value_ = com.google.protobuf.ByteString.EMPTY; version_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerValue_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerValue getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerValue.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerValue build() { org.tikv.kvproto.Kvrpcpb.VerValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerValue buildPartial() { org.tikv.kvproto.Kvrpcpb.VerValue result = new org.tikv.kvproto.Kvrpcpb.VerValue(this); result.value_ = value_; result.version_ = version_; 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.Kvrpcpb.VerValue) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerValue other) { if (other == org.tikv.kvproto.Kvrpcpb.VerValue.getDefaultInstance()) return this; if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } 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.Kvrpcpb.VerValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 1; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 1; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 1; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private long version_ ; /** * uint64 version = 2; */ public long getVersion() { return version_; } /** * uint64 version = 2; */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * uint64 version = 2; */ public Builder clearVersion() { version_ = 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:kvrpcpb.VerValue) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerValue) private static final org.tikv.kvproto.Kvrpcpb.VerValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerValue(); } public static org.tikv.kvproto.Kvrpcpb.VerValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerValue(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.Kvrpcpb.VerValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerError) com.google.protobuf.MessageOrBuilder { /** * string error = 1; */ java.lang.String getError(); /** * string error = 1; */ com.google.protobuf.ByteString getErrorBytes(); } /** * Protobuf type {@code kvrpcpb.VerError} */ public static final class VerError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerError) VerErrorOrBuilder { private static final long serialVersionUID = 0L; // Use VerError.newBuilder() to construct. private VerError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerError() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerError( 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(); error_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerError_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerError_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerError.class, org.tikv.kvproto.Kvrpcpb.VerError.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private volatile java.lang.Object error_; /** * string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, error_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, error_); } 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.Kvrpcpb.VerError)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerError other = (org.tikv.kvproto.Kvrpcpb.VerError) obj; boolean result = true; result = result && getError() .equals(other.getError()); 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) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerError parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerError 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.Kvrpcpb.VerError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerError 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.Kvrpcpb.VerError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerError parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerError parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerError 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.Kvrpcpb.VerError parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerError 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.Kvrpcpb.VerError parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerError 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.Kvrpcpb.VerError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerError} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerError) org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerError_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerError_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerError.class, org.tikv.kvproto.Kvrpcpb.VerError.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerError.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(); error_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerError_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerError getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerError build() { org.tikv.kvproto.Kvrpcpb.VerError result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerError buildPartial() { org.tikv.kvproto.Kvrpcpb.VerError result = new org.tikv.kvproto.Kvrpcpb.VerError(this); result.error_ = error_; 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.Kvrpcpb.VerError) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerError)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerError other) { if (other == org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance()) return this; if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.VerError parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object error_ = ""; /** * string error = 1; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 1; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 1; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 1; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 1; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.VerError) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerError) private static final org.tikv.kvproto.Kvrpcpb.VerError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerError(); } public static org.tikv.kvproto.Kvrpcpb.VerError getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerError parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerError(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.Kvrpcpb.VerError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerKvPairOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerKvPair) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.VerError error = 1; */ boolean hasError(); /** * .kvrpcpb.VerError error = 1; */ org.tikv.kvproto.Kvrpcpb.VerError getError(); /** * .kvrpcpb.VerError error = 1; */ org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * .kvrpcpb.VerValue value = 3; */ boolean hasValue(); /** * .kvrpcpb.VerValue value = 3; */ org.tikv.kvproto.Kvrpcpb.VerValue getValue(); /** * .kvrpcpb.VerValue value = 3; */ org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder getValueOrBuilder(); } /** * Protobuf type {@code kvrpcpb.VerKvPair} */ public static final class VerKvPair extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerKvPair) VerKvPairOrBuilder { private static final long serialVersionUID = 0L; // Use VerKvPair.newBuilder() to construct. private VerKvPair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerKvPair() { key_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerKvPair( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.VerError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 18: { key_ = input.readBytes(); break; } case 26: { org.tikv.kvproto.Kvrpcpb.VerValue.Builder subBuilder = null; if (value_ != null) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = 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.Kvrpcpb.internal_static_kvrpcpb_VerKvPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerKvPair_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerKvPair.class, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.VerError error_; /** * .kvrpcpb.VerError error = 1; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.VerError error = 1; */ public org.tikv.kvproto.Kvrpcpb.VerError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } /** * .kvrpcpb.VerError error = 1; */ public org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 3; private org.tikv.kvproto.Kvrpcpb.VerValue value_; /** * .kvrpcpb.VerValue value = 3; */ public boolean hasValue() { return value_ != null; } /** * .kvrpcpb.VerValue value = 3; */ public org.tikv.kvproto.Kvrpcpb.VerValue getValue() { return value_ == null ? org.tikv.kvproto.Kvrpcpb.VerValue.getDefaultInstance() : value_; } /** * .kvrpcpb.VerValue value = 3; */ public org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder getValueOrBuilder() { return getValue(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (error_ != null) { output.writeMessage(1, getError()); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (value_ != null) { output.writeMessage(3, getValue()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getError()); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValue()); } 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.Kvrpcpb.VerKvPair)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerKvPair other = (org.tikv.kvproto.Kvrpcpb.VerKvPair) obj; boolean result = true; result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && getKey() .equals(other.getKey()); result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerKvPair parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerKvPair 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.Kvrpcpb.VerKvPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerKvPair 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.Kvrpcpb.VerKvPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerKvPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerKvPair parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerKvPair 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.Kvrpcpb.VerKvPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerKvPair 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.Kvrpcpb.VerKvPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerKvPair 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.Kvrpcpb.VerKvPair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerKvPair} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerKvPair) org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerKvPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerKvPair_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerKvPair.class, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerKvPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } key_ = com.google.protobuf.ByteString.EMPTY; if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerKvPair_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerKvPair getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerKvPair.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerKvPair build() { org.tikv.kvproto.Kvrpcpb.VerKvPair result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerKvPair buildPartial() { org.tikv.kvproto.Kvrpcpb.VerKvPair result = new org.tikv.kvproto.Kvrpcpb.VerKvPair(this); if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.key_ = key_; if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.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.Kvrpcpb.VerKvPair) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerKvPair)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerKvPair other) { if (other == org.tikv.kvproto.Kvrpcpb.VerKvPair.getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.hasValue()) { mergeValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.VerKvPair parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerKvPair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.VerError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.VerError error = 1; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.VerError error = 1; */ public org.tikv.kvproto.Kvrpcpb.VerError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.VerError error = 1; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.VerError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.VerError error = 1; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.VerError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.VerError error = 1; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.VerError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.VerError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.VerError error = 1; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.VerError error = 1; */ public org.tikv.kvproto.Kvrpcpb.VerError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerError error = 1; */ public org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } } /** * .kvrpcpb.VerError error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private org.tikv.kvproto.Kvrpcpb.VerValue value_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerValue, org.tikv.kvproto.Kvrpcpb.VerValue.Builder, org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder> valueBuilder_; /** * .kvrpcpb.VerValue value = 3; */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .kvrpcpb.VerValue value = 3; */ public org.tikv.kvproto.Kvrpcpb.VerValue getValue() { if (valueBuilder_ == null) { return value_ == null ? org.tikv.kvproto.Kvrpcpb.VerValue.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .kvrpcpb.VerValue value = 3; */ public Builder setValue(org.tikv.kvproto.Kvrpcpb.VerValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.VerValue value = 3; */ public Builder setValue( org.tikv.kvproto.Kvrpcpb.VerValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.VerValue value = 3; */ public Builder mergeValue(org.tikv.kvproto.Kvrpcpb.VerValue value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = org.tikv.kvproto.Kvrpcpb.VerValue.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.VerValue value = 3; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .kvrpcpb.VerValue value = 3; */ public org.tikv.kvproto.Kvrpcpb.VerValue.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerValue value = 3; */ public org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? org.tikv.kvproto.Kvrpcpb.VerValue.getDefaultInstance() : value_; } } /** * .kvrpcpb.VerValue value = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerValue, org.tikv.kvproto.Kvrpcpb.VerValue.Builder, org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerValue, org.tikv.kvproto.Kvrpcpb.VerValue.Builder, org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } 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:kvrpcpb.VerKvPair) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerKvPair) private static final org.tikv.kvproto.Kvrpcpb.VerKvPair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerKvPair(); } public static org.tikv.kvproto.Kvrpcpb.VerKvPair getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerKvPair parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerKvPair(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.Kvrpcpb.VerKvPair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerGetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerGetRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** *
     * start_version == 0 means without start version
     * 
* * uint64 start_version = 3; */ long getStartVersion(); } /** * Protobuf type {@code kvrpcpb.VerGetRequest} */ public static final class VerGetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerGetRequest) VerGetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use VerGetRequest.newBuilder() to construct. private VerGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerGetRequest() { key_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerGetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { key_ = input.readBytes(); break; } case 24: { startVersion_ = 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.Kvrpcpb.internal_static_kvrpcpb_VerGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerGetRequest.class, org.tikv.kvproto.Kvrpcpb.VerGetRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int START_VERSION_FIELD_NUMBER = 3; private long startVersion_; /** *
     * start_version == 0 means without start version
     * 
* * uint64 start_version = 3; */ public long getStartVersion() { return startVersion_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (startVersion_ != 0L) { output.writeUInt64(3, startVersion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, startVersion_); } 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.Kvrpcpb.VerGetRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerGetRequest other = (org.tikv.kvproto.Kvrpcpb.VerGetRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKey() .equals(other.getKey()); result = result && (getStartVersion() == other.getStartVersion()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerGetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerGetRequest 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.Kvrpcpb.VerGetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerGetRequest 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.Kvrpcpb.VerGetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerGetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerGetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerGetRequest 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.Kvrpcpb.VerGetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerGetRequest 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.Kvrpcpb.VerGetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerGetRequest 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.Kvrpcpb.VerGetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerGetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerGetRequest) org.tikv.kvproto.Kvrpcpb.VerGetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerGetRequest.class, org.tikv.kvproto.Kvrpcpb.VerGetRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerGetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } key_ = com.google.protobuf.ByteString.EMPTY; startVersion_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerGetRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerGetRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerGetRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerGetRequest build() { org.tikv.kvproto.Kvrpcpb.VerGetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerGetRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.VerGetRequest result = new org.tikv.kvproto.Kvrpcpb.VerGetRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.key_ = key_; result.startVersion_ = startVersion_; 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.Kvrpcpb.VerGetRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerGetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerGetRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.VerGetRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } 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.Kvrpcpb.VerGetRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerGetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private long startVersion_ ; /** *
       * start_version == 0 means without start version
       * 
* * uint64 start_version = 3; */ public long getStartVersion() { return startVersion_; } /** *
       * start_version == 0 means without start version
       * 
* * uint64 start_version = 3; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** *
       * start_version == 0 means without start version
       * 
* * uint64 start_version = 3; */ public Builder clearStartVersion() { startVersion_ = 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:kvrpcpb.VerGetRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerGetRequest) private static final org.tikv.kvproto.Kvrpcpb.VerGetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerGetRequest(); } public static org.tikv.kvproto.Kvrpcpb.VerGetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerGetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerGetRequest(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.Kvrpcpb.VerGetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerGetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerGetResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.VerError error = 2; */ boolean hasError(); /** * .kvrpcpb.VerError error = 2; */ org.tikv.kvproto.Kvrpcpb.VerError getError(); /** * .kvrpcpb.VerError error = 2; */ org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder(); /** * .kvrpcpb.VerValue value = 3; */ boolean hasValue(); /** * .kvrpcpb.VerValue value = 3; */ org.tikv.kvproto.Kvrpcpb.VerValue getValue(); /** * .kvrpcpb.VerValue value = 3; */ org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder getValueOrBuilder(); /** * bool not_found = 4; */ boolean getNotFound(); } /** * Protobuf type {@code kvrpcpb.VerGetResponse} */ public static final class VerGetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerGetResponse) VerGetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use VerGetResponse.newBuilder() to construct. private VerGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerGetResponse() { notFound_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerGetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.VerError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Kvrpcpb.VerValue.Builder subBuilder = null; if (value_ != null) { subBuilder = value_.toBuilder(); } value_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerValue.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(value_); value_ = subBuilder.buildPartial(); } break; } case 32: { notFound_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerGetResponse.class, org.tikv.kvproto.Kvrpcpb.VerGetResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.VerError error_; /** * .kvrpcpb.VerError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int VALUE_FIELD_NUMBER = 3; private org.tikv.kvproto.Kvrpcpb.VerValue value_; /** * .kvrpcpb.VerValue value = 3; */ public boolean hasValue() { return value_ != null; } /** * .kvrpcpb.VerValue value = 3; */ public org.tikv.kvproto.Kvrpcpb.VerValue getValue() { return value_ == null ? org.tikv.kvproto.Kvrpcpb.VerValue.getDefaultInstance() : value_; } /** * .kvrpcpb.VerValue value = 3; */ public org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder getValueOrBuilder() { return getValue(); } public static final int NOT_FOUND_FIELD_NUMBER = 4; private boolean notFound_; /** * bool not_found = 4; */ public boolean getNotFound() { return notFound_; } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } if (value_ != null) { output.writeMessage(3, getValue()); } if (notFound_ != false) { output.writeBool(4, notFound_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } if (value_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getValue()); } if (notFound_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, notFound_); } 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.Kvrpcpb.VerGetResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerGetResponse other = (org.tikv.kvproto.Kvrpcpb.VerGetResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && (hasValue() == other.hasValue()); if (hasValue()) { result = result && getValue() .equals(other.getValue()); } result = result && (getNotFound() == other.getNotFound()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (37 * hash) + NOT_FOUND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNotFound()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerGetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerGetResponse 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.Kvrpcpb.VerGetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerGetResponse 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.Kvrpcpb.VerGetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerGetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerGetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerGetResponse 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.Kvrpcpb.VerGetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerGetResponse 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.Kvrpcpb.VerGetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerGetResponse 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.Kvrpcpb.VerGetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerGetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerGetResponse) org.tikv.kvproto.Kvrpcpb.VerGetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerGetResponse.class, org.tikv.kvproto.Kvrpcpb.VerGetResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerGetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } if (valueBuilder_ == null) { value_ = null; } else { value_ = null; valueBuilder_ = null; } notFound_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerGetResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerGetResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerGetResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerGetResponse build() { org.tikv.kvproto.Kvrpcpb.VerGetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerGetResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.VerGetResponse result = new org.tikv.kvproto.Kvrpcpb.VerGetResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } result.notFound_ = notFound_; 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.Kvrpcpb.VerGetResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerGetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerGetResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.VerGetResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } if (other.hasValue()) { mergeValue(other.getValue()); } if (other.getNotFound() != false) { setNotFound(other.getNotFound()); } 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.Kvrpcpb.VerGetResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerGetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.VerError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.VerError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.VerError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.VerError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.VerError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.VerError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.VerError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } } /** * .kvrpcpb.VerError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private org.tikv.kvproto.Kvrpcpb.VerValue value_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerValue, org.tikv.kvproto.Kvrpcpb.VerValue.Builder, org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder> valueBuilder_; /** * .kvrpcpb.VerValue value = 3; */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .kvrpcpb.VerValue value = 3; */ public org.tikv.kvproto.Kvrpcpb.VerValue getValue() { if (valueBuilder_ == null) { return value_ == null ? org.tikv.kvproto.Kvrpcpb.VerValue.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * .kvrpcpb.VerValue value = 3; */ public Builder setValue(org.tikv.kvproto.Kvrpcpb.VerValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.VerValue value = 3; */ public Builder setValue( org.tikv.kvproto.Kvrpcpb.VerValue.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.VerValue value = 3; */ public Builder mergeValue(org.tikv.kvproto.Kvrpcpb.VerValue value) { if (valueBuilder_ == null) { if (value_ != null) { value_ = org.tikv.kvproto.Kvrpcpb.VerValue.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.VerValue value = 3; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { value_ = null; valueBuilder_ = null; } return this; } /** * .kvrpcpb.VerValue value = 3; */ public org.tikv.kvproto.Kvrpcpb.VerValue.Builder getValueBuilder() { onChanged(); return getValueFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerValue value = 3; */ public org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? org.tikv.kvproto.Kvrpcpb.VerValue.getDefaultInstance() : value_; } } /** * .kvrpcpb.VerValue value = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerValue, org.tikv.kvproto.Kvrpcpb.VerValue.Builder, org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerValue, org.tikv.kvproto.Kvrpcpb.VerValue.Builder, org.tikv.kvproto.Kvrpcpb.VerValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } private boolean notFound_ ; /** * bool not_found = 4; */ public boolean getNotFound() { return notFound_; } /** * bool not_found = 4; */ public Builder setNotFound(boolean value) { notFound_ = value; onChanged(); return this; } /** * bool not_found = 4; */ public Builder clearNotFound() { notFound_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.VerGetResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerGetResponse) private static final org.tikv.kvproto.Kvrpcpb.VerGetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerGetResponse(); } public static org.tikv.kvproto.Kvrpcpb.VerGetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerGetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerGetResponse(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.Kvrpcpb.VerGetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerBatchGetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerBatchGetRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * repeated bytes key = 2; */ java.util.List getKeyList(); /** * repeated bytes key = 2; */ int getKeyCount(); /** * repeated bytes key = 2; */ com.google.protobuf.ByteString getKey(int index); /** * uint64 start_version = 3; */ long getStartVersion(); } /** * Protobuf type {@code kvrpcpb.VerBatchGetRequest} */ public static final class VerBatchGetRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerBatchGetRequest) VerBatchGetRequestOrBuilder { private static final long serialVersionUID = 0L; // Use VerBatchGetRequest.newBuilder() to construct. private VerBatchGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerBatchGetRequest() { key_ = java.util.Collections.emptyList(); startVersion_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerBatchGetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { key_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } key_.add(input.readBytes()); break; } case 24: { startVersion_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { key_ = java.util.Collections.unmodifiableList(key_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.class, org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEY_FIELD_NUMBER = 2; private java.util.List key_; /** * repeated bytes key = 2; */ public java.util.List getKeyList() { return key_; } /** * repeated bytes key = 2; */ public int getKeyCount() { return key_.size(); } /** * repeated bytes key = 2; */ public com.google.protobuf.ByteString getKey(int index) { return key_.get(index); } public static final int START_VERSION_FIELD_NUMBER = 3; private long startVersion_; /** * uint64 start_version = 3; */ public long getStartVersion() { return startVersion_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } for (int i = 0; i < key_.size(); i++) { output.writeBytes(2, key_.get(i)); } if (startVersion_ != 0L) { output.writeUInt64(3, startVersion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } { int dataSize = 0; for (int i = 0; i < key_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(key_.get(i)); } size += dataSize; size += 1 * getKeyList().size(); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, startVersion_); } 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.Kvrpcpb.VerBatchGetRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest other = (org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKeyList() .equals(other.getKeyList()); result = result && (getStartVersion() == other.getStartVersion()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (getKeyCount() > 0) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKeyList().hashCode(); } hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest 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.Kvrpcpb.VerBatchGetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest 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.Kvrpcpb.VerBatchGetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest 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.Kvrpcpb.VerBatchGetRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest 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.Kvrpcpb.VerBatchGetRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest 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.Kvrpcpb.VerBatchGetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerBatchGetRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerBatchGetRequest) org.tikv.kvproto.Kvrpcpb.VerBatchGetRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchGetRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchGetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.class, org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); startVersion_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchGetRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest build() { org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest result = new org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (((bitField0_ & 0x00000002) == 0x00000002)) { key_ = java.util.Collections.unmodifiableList(key_); bitField0_ = (bitField0_ & ~0x00000002); } result.key_ = key_; result.startVersion_ = startVersion_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (!other.key_.isEmpty()) { if (key_.isEmpty()) { key_ = other.key_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureKeyIsMutable(); key_.addAll(other.key_); } onChanged(); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } 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.Kvrpcpb.VerBatchGetRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private java.util.List key_ = java.util.Collections.emptyList(); private void ensureKeyIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { key_ = new java.util.ArrayList(key_); bitField0_ |= 0x00000002; } } /** * repeated bytes key = 2; */ public java.util.List getKeyList() { return java.util.Collections.unmodifiableList(key_); } /** * repeated bytes key = 2; */ public int getKeyCount() { return key_.size(); } /** * repeated bytes key = 2; */ public com.google.protobuf.ByteString getKey(int index) { return key_.get(index); } /** * repeated bytes key = 2; */ public Builder setKey( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.set(index, value); onChanged(); return this; } /** * repeated bytes key = 2; */ public Builder addKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureKeyIsMutable(); key_.add(value); onChanged(); return this; } /** * repeated bytes key = 2; */ public Builder addAllKey( java.lang.Iterable values) { ensureKeyIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, key_); onChanged(); return this; } /** * repeated bytes key = 2; */ public Builder clearKey() { key_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } private long startVersion_ ; /** * uint64 start_version = 3; */ public long getStartVersion() { return startVersion_; } /** * uint64 start_version = 3; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** * uint64 start_version = 3; */ public Builder clearStartVersion() { startVersion_ = 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:kvrpcpb.VerBatchGetRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerBatchGetRequest) private static final org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest(); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerBatchGetRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerBatchGetRequest(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.Kvrpcpb.VerBatchGetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerBatchGetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerBatchGetResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ java.util.List getPairsList(); /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.VerKvPair getPairs(int index); /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ int getPairsCount(); /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ java.util.List getPairsOrBuilderList(); /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder getPairsOrBuilder( int index); } /** * Protobuf type {@code kvrpcpb.VerBatchGetResponse} */ public static final class VerBatchGetResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerBatchGetResponse) VerBatchGetResponseOrBuilder { private static final long serialVersionUID = 0L; // Use VerBatchGetResponse.newBuilder() to construct. private VerBatchGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerBatchGetResponse() { pairs_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerBatchGetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } pairs_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.VerKvPair.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.class, org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int PAIRS_FIELD_NUMBER = 2; private java.util.List pairs_; /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public java.util.List getPairsList() { return pairs_; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { return pairs_; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public int getPairsCount() { return pairs_.size(); } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPair getPairs(int index) { return pairs_.get(index); } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder getPairsOrBuilder( int index) { return pairs_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } for (int i = 0; i < pairs_.size(); i++) { output.writeMessage(2, pairs_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } for (int i = 0; i < pairs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, pairs_.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.Kvrpcpb.VerBatchGetResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse other = (org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getPairsList() .equals(other.getPairsList()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (getPairsCount() > 0) { hash = (37 * hash) + PAIRS_FIELD_NUMBER; hash = (53 * hash) + getPairsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse 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.Kvrpcpb.VerBatchGetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse 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.Kvrpcpb.VerBatchGetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse 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.Kvrpcpb.VerBatchGetResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse 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.Kvrpcpb.VerBatchGetResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse 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.Kvrpcpb.VerBatchGetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerBatchGetResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerBatchGetResponse) org.tikv.kvproto.Kvrpcpb.VerBatchGetResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchGetResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchGetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.class, org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPairsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { pairsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchGetResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse build() { org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse result = new org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (pairsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); bitField0_ = (bitField0_ & ~0x00000002); } result.pairs_ = pairs_; } else { result.pairs_ = pairsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (pairsBuilder_ == null) { if (!other.pairs_.isEmpty()) { if (pairs_.isEmpty()) { pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePairsIsMutable(); pairs_.addAll(other.pairs_); } onChanged(); } } else { if (!other.pairs_.isEmpty()) { if (pairsBuilder_.isEmpty()) { pairsBuilder_.dispose(); pairsBuilder_ = null; pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); pairsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPairsFieldBuilder() : null; } else { pairsBuilder_.addAllMessages(other.pairs_); } } } 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.Kvrpcpb.VerBatchGetResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.util.List pairs_ = java.util.Collections.emptyList(); private void ensurePairsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(pairs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerKvPair, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder, org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder> pairsBuilder_; /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public java.util.List getPairsList() { if (pairsBuilder_ == null) { return java.util.Collections.unmodifiableList(pairs_); } else { return pairsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public int getPairsCount() { if (pairsBuilder_ == null) { return pairs_.size(); } else { return pairsBuilder_.getCount(); } } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPair getPairs(int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.VerKvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.set(index, value); onChanged(); } else { pairsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.set(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder addPairs(org.tikv.kvproto.Kvrpcpb.VerKvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(value); onChanged(); } else { pairsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.VerKvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(index, value); onChanged(); } else { pairsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder addPairs( org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder addAllPairs( java.lang.Iterable values) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pairs_); onChanged(); } else { pairsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder clearPairs() { if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { pairsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder removePairs(int index) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.remove(index); onChanged(); } else { pairsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder getPairsBuilder( int index) { return getPairsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder getPairsOrBuilder( int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { if (pairsBuilder_ != null) { return pairsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pairs_); } } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder addPairsBuilder() { return getPairsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.VerKvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder addPairsBuilder( int index) { return getPairsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.VerKvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public java.util.List getPairsBuilderList() { return getPairsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerKvPair, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder, org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder> getPairsFieldBuilder() { if (pairsBuilder_ == null) { pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerKvPair, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder, org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder>( pairs_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); pairs_ = null; } return pairsBuilder_; } 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:kvrpcpb.VerBatchGetResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerBatchGetResponse) private static final org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse(); } public static org.tikv.kvproto.Kvrpcpb.VerBatchGetResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerBatchGetResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerBatchGetResponse(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.Kvrpcpb.VerBatchGetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerMutRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerMutRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * .kvrpcpb.VerMutation mut = 2; */ boolean hasMut(); /** * .kvrpcpb.VerMutation mut = 2; */ org.tikv.kvproto.Kvrpcpb.VerMutation getMut(); /** * .kvrpcpb.VerMutation mut = 2; */ org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder getMutOrBuilder(); /** * uint64 version = 3; */ long getVersion(); } /** * Protobuf type {@code kvrpcpb.VerMutRequest} */ public static final class VerMutRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerMutRequest) VerMutRequestOrBuilder { private static final long serialVersionUID = 0L; // Use VerMutRequest.newBuilder() to construct. private VerMutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerMutRequest() { version_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerMutRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.VerMutation.Builder subBuilder = null; if (mut_ != null) { subBuilder = mut_.toBuilder(); } mut_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerMutation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mut_); mut_ = subBuilder.buildPartial(); } break; } case 24: { version_ = 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.Kvrpcpb.internal_static_kvrpcpb_VerMutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerMutRequest.class, org.tikv.kvproto.Kvrpcpb.VerMutRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int MUT_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.VerMutation mut_; /** * .kvrpcpb.VerMutation mut = 2; */ public boolean hasMut() { return mut_ != null; } /** * .kvrpcpb.VerMutation mut = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutation getMut() { return mut_ == null ? org.tikv.kvproto.Kvrpcpb.VerMutation.getDefaultInstance() : mut_; } /** * .kvrpcpb.VerMutation mut = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder getMutOrBuilder() { return getMut(); } public static final int VERSION_FIELD_NUMBER = 3; private long version_; /** * uint64 version = 3; */ public long getVersion() { return version_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (mut_ != null) { output.writeMessage(2, getMut()); } if (version_ != 0L) { output.writeUInt64(3, version_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (mut_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMut()); } if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, version_); } 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.Kvrpcpb.VerMutRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerMutRequest other = (org.tikv.kvproto.Kvrpcpb.VerMutRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (hasMut() == other.hasMut()); if (hasMut()) { result = result && getMut() .equals(other.getMut()); } result = result && (getVersion() == other.getVersion()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (hasMut()) { hash = (37 * hash) + MUT_FIELD_NUMBER; hash = (53 * hash) + getMut().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerMutRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerMutRequest 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.Kvrpcpb.VerMutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerMutRequest 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.Kvrpcpb.VerMutRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerMutRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerMutRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerMutRequest 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.Kvrpcpb.VerMutRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerMutRequest 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.Kvrpcpb.VerMutRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerMutRequest 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.Kvrpcpb.VerMutRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerMutRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerMutRequest) org.tikv.kvproto.Kvrpcpb.VerMutRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerMutRequest.class, org.tikv.kvproto.Kvrpcpb.VerMutRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerMutRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } if (mutBuilder_ == null) { mut_ = null; } else { mut_ = null; mutBuilder_ = null; } version_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerMutRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerMutRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerMutRequest build() { org.tikv.kvproto.Kvrpcpb.VerMutRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerMutRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.VerMutRequest result = new org.tikv.kvproto.Kvrpcpb.VerMutRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (mutBuilder_ == null) { result.mut_ = mut_; } else { result.mut_ = mutBuilder_.build(); } result.version_ = version_; 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.Kvrpcpb.VerMutRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerMutRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerMutRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.VerMutRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.hasMut()) { mergeMut(other.getMut()); } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } 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.Kvrpcpb.VerMutRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerMutRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private org.tikv.kvproto.Kvrpcpb.VerMutation mut_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutation, org.tikv.kvproto.Kvrpcpb.VerMutation.Builder, org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder> mutBuilder_; /** * .kvrpcpb.VerMutation mut = 2; */ public boolean hasMut() { return mutBuilder_ != null || mut_ != null; } /** * .kvrpcpb.VerMutation mut = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutation getMut() { if (mutBuilder_ == null) { return mut_ == null ? org.tikv.kvproto.Kvrpcpb.VerMutation.getDefaultInstance() : mut_; } else { return mutBuilder_.getMessage(); } } /** * .kvrpcpb.VerMutation mut = 2; */ public Builder setMut(org.tikv.kvproto.Kvrpcpb.VerMutation value) { if (mutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mut_ = value; onChanged(); } else { mutBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.VerMutation mut = 2; */ public Builder setMut( org.tikv.kvproto.Kvrpcpb.VerMutation.Builder builderForValue) { if (mutBuilder_ == null) { mut_ = builderForValue.build(); onChanged(); } else { mutBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.VerMutation mut = 2; */ public Builder mergeMut(org.tikv.kvproto.Kvrpcpb.VerMutation value) { if (mutBuilder_ == null) { if (mut_ != null) { mut_ = org.tikv.kvproto.Kvrpcpb.VerMutation.newBuilder(mut_).mergeFrom(value).buildPartial(); } else { mut_ = value; } onChanged(); } else { mutBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.VerMutation mut = 2; */ public Builder clearMut() { if (mutBuilder_ == null) { mut_ = null; onChanged(); } else { mut_ = null; mutBuilder_ = null; } return this; } /** * .kvrpcpb.VerMutation mut = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutation.Builder getMutBuilder() { onChanged(); return getMutFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerMutation mut = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder getMutOrBuilder() { if (mutBuilder_ != null) { return mutBuilder_.getMessageOrBuilder(); } else { return mut_ == null ? org.tikv.kvproto.Kvrpcpb.VerMutation.getDefaultInstance() : mut_; } } /** * .kvrpcpb.VerMutation mut = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutation, org.tikv.kvproto.Kvrpcpb.VerMutation.Builder, org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder> getMutFieldBuilder() { if (mutBuilder_ == null) { mutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutation, org.tikv.kvproto.Kvrpcpb.VerMutation.Builder, org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder>( getMut(), getParentForChildren(), isClean()); mut_ = null; } return mutBuilder_; } private long version_ ; /** * uint64 version = 3; */ public long getVersion() { return version_; } /** * uint64 version = 3; */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * uint64 version = 3; */ public Builder clearVersion() { version_ = 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:kvrpcpb.VerMutRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerMutRequest) private static final org.tikv.kvproto.Kvrpcpb.VerMutRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerMutRequest(); } public static org.tikv.kvproto.Kvrpcpb.VerMutRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerMutRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerMutRequest(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.Kvrpcpb.VerMutRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerMutResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerMutResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.VerError error = 2; */ boolean hasError(); /** * .kvrpcpb.VerError error = 2; */ org.tikv.kvproto.Kvrpcpb.VerError getError(); /** * .kvrpcpb.VerError error = 2; */ org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code kvrpcpb.VerMutResponse} */ public static final class VerMutResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerMutResponse) VerMutResponseOrBuilder { private static final long serialVersionUID = 0L; // Use VerMutResponse.newBuilder() to construct. private VerMutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerMutResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerMutResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.VerError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = 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.Kvrpcpb.internal_static_kvrpcpb_VerMutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerMutResponse.class, org.tikv.kvproto.Kvrpcpb.VerMutResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.VerError error_; /** * .kvrpcpb.VerError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } 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.Kvrpcpb.VerMutResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerMutResponse other = (org.tikv.kvproto.Kvrpcpb.VerMutResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerMutResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerMutResponse 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.Kvrpcpb.VerMutResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerMutResponse 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.Kvrpcpb.VerMutResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerMutResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerMutResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerMutResponse 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.Kvrpcpb.VerMutResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerMutResponse 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.Kvrpcpb.VerMutResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerMutResponse 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.Kvrpcpb.VerMutResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerMutResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerMutResponse) org.tikv.kvproto.Kvrpcpb.VerMutResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerMutResponse.class, org.tikv.kvproto.Kvrpcpb.VerMutResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerMutResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerMutResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerMutResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerMutResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerMutResponse build() { org.tikv.kvproto.Kvrpcpb.VerMutResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerMutResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.VerMutResponse result = new org.tikv.kvproto.Kvrpcpb.VerMutResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.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.Kvrpcpb.VerMutResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerMutResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerMutResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.VerMutResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } 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.Kvrpcpb.VerMutResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerMutResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.VerError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.VerError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.VerError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.VerError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.VerError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.VerError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.VerError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } } /** * .kvrpcpb.VerError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } 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:kvrpcpb.VerMutResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerMutResponse) private static final org.tikv.kvproto.Kvrpcpb.VerMutResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerMutResponse(); } public static org.tikv.kvproto.Kvrpcpb.VerMutResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerMutResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerMutResponse(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.Kvrpcpb.VerMutResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerBatchMutRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerBatchMutRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * repeated .kvrpcpb.VerMutation muts = 2; */ java.util.List getMutsList(); /** * repeated .kvrpcpb.VerMutation muts = 2; */ org.tikv.kvproto.Kvrpcpb.VerMutation getMuts(int index); /** * repeated .kvrpcpb.VerMutation muts = 2; */ int getMutsCount(); /** * repeated .kvrpcpb.VerMutation muts = 2; */ java.util.List getMutsOrBuilderList(); /** * repeated .kvrpcpb.VerMutation muts = 2; */ org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder getMutsOrBuilder( int index); /** * uint64 version = 3; */ long getVersion(); } /** * Protobuf type {@code kvrpcpb.VerBatchMutRequest} */ public static final class VerBatchMutRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerBatchMutRequest) VerBatchMutRequestOrBuilder { private static final long serialVersionUID = 0L; // Use VerBatchMutRequest.newBuilder() to construct. private VerBatchMutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerBatchMutRequest() { muts_ = java.util.Collections.emptyList(); version_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerBatchMutRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { muts_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } muts_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.VerMutation.parser(), extensionRegistry)); break; } case 24: { version_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { muts_ = java.util.Collections.unmodifiableList(muts_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchMutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchMutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.class, org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.Builder.class); } private int bitField0_; public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int MUTS_FIELD_NUMBER = 2; private java.util.List muts_; /** * repeated .kvrpcpb.VerMutation muts = 2; */ public java.util.List getMutsList() { return muts_; } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public java.util.List getMutsOrBuilderList() { return muts_; } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public int getMutsCount() { return muts_.size(); } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutation getMuts(int index) { return muts_.get(index); } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder getMutsOrBuilder( int index) { return muts_.get(index); } public static final int VERSION_FIELD_NUMBER = 3; private long version_; /** * uint64 version = 3; */ public long getVersion() { return version_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } for (int i = 0; i < muts_.size(); i++) { output.writeMessage(2, muts_.get(i)); } if (version_ != 0L) { output.writeUInt64(3, version_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } for (int i = 0; i < muts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, muts_.get(i)); } if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, version_); } 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.Kvrpcpb.VerBatchMutRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest other = (org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getMutsList() .equals(other.getMutsList()); result = result && (getVersion() == other.getVersion()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } if (getMutsCount() > 0) { hash = (37 * hash) + MUTS_FIELD_NUMBER; hash = (53 * hash) + getMutsList().hashCode(); } hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest 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.Kvrpcpb.VerBatchMutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest 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.Kvrpcpb.VerBatchMutRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest 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.Kvrpcpb.VerBatchMutRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest 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.Kvrpcpb.VerBatchMutRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest 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.Kvrpcpb.VerBatchMutRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerBatchMutRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerBatchMutRequest) org.tikv.kvproto.Kvrpcpb.VerBatchMutRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchMutRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchMutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.class, org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMutsFieldBuilder(); } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } if (mutsBuilder_ == null) { muts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { mutsBuilder_.clear(); } version_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchMutRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest build() { org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest result = new org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } if (mutsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { muts_ = java.util.Collections.unmodifiableList(muts_); bitField0_ = (bitField0_ & ~0x00000002); } result.muts_ = muts_; } else { result.muts_ = mutsBuilder_.build(); } result.version_ = version_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (mutsBuilder_ == null) { if (!other.muts_.isEmpty()) { if (muts_.isEmpty()) { muts_ = other.muts_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMutsIsMutable(); muts_.addAll(other.muts_); } onChanged(); } } else { if (!other.muts_.isEmpty()) { if (mutsBuilder_.isEmpty()) { mutsBuilder_.dispose(); mutsBuilder_ = null; muts_ = other.muts_; bitField0_ = (bitField0_ & ~0x00000002); mutsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMutsFieldBuilder() : null; } else { mutsBuilder_.addAllMessages(other.muts_); } } } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } 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.Kvrpcpb.VerBatchMutRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private java.util.List muts_ = java.util.Collections.emptyList(); private void ensureMutsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { muts_ = new java.util.ArrayList(muts_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutation, org.tikv.kvproto.Kvrpcpb.VerMutation.Builder, org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder> mutsBuilder_; /** * repeated .kvrpcpb.VerMutation muts = 2; */ public java.util.List getMutsList() { if (mutsBuilder_ == null) { return java.util.Collections.unmodifiableList(muts_); } else { return mutsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public int getMutsCount() { if (mutsBuilder_ == null) { return muts_.size(); } else { return mutsBuilder_.getCount(); } } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutation getMuts(int index) { if (mutsBuilder_ == null) { return muts_.get(index); } else { return mutsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public Builder setMuts( int index, org.tikv.kvproto.Kvrpcpb.VerMutation value) { if (mutsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutsIsMutable(); muts_.set(index, value); onChanged(); } else { mutsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public Builder setMuts( int index, org.tikv.kvproto.Kvrpcpb.VerMutation.Builder builderForValue) { if (mutsBuilder_ == null) { ensureMutsIsMutable(); muts_.set(index, builderForValue.build()); onChanged(); } else { mutsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public Builder addMuts(org.tikv.kvproto.Kvrpcpb.VerMutation value) { if (mutsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutsIsMutable(); muts_.add(value); onChanged(); } else { mutsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public Builder addMuts( int index, org.tikv.kvproto.Kvrpcpb.VerMutation value) { if (mutsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMutsIsMutable(); muts_.add(index, value); onChanged(); } else { mutsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public Builder addMuts( org.tikv.kvproto.Kvrpcpb.VerMutation.Builder builderForValue) { if (mutsBuilder_ == null) { ensureMutsIsMutable(); muts_.add(builderForValue.build()); onChanged(); } else { mutsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public Builder addMuts( int index, org.tikv.kvproto.Kvrpcpb.VerMutation.Builder builderForValue) { if (mutsBuilder_ == null) { ensureMutsIsMutable(); muts_.add(index, builderForValue.build()); onChanged(); } else { mutsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public Builder addAllMuts( java.lang.Iterable values) { if (mutsBuilder_ == null) { ensureMutsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, muts_); onChanged(); } else { mutsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public Builder clearMuts() { if (mutsBuilder_ == null) { muts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { mutsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public Builder removeMuts(int index) { if (mutsBuilder_ == null) { ensureMutsIsMutable(); muts_.remove(index); onChanged(); } else { mutsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutation.Builder getMutsBuilder( int index) { return getMutsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder getMutsOrBuilder( int index) { if (mutsBuilder_ == null) { return muts_.get(index); } else { return mutsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public java.util.List getMutsOrBuilderList() { if (mutsBuilder_ != null) { return mutsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(muts_); } } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutation.Builder addMutsBuilder() { return getMutsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.VerMutation.getDefaultInstance()); } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public org.tikv.kvproto.Kvrpcpb.VerMutation.Builder addMutsBuilder( int index) { return getMutsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.VerMutation.getDefaultInstance()); } /** * repeated .kvrpcpb.VerMutation muts = 2; */ public java.util.List getMutsBuilderList() { return getMutsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutation, org.tikv.kvproto.Kvrpcpb.VerMutation.Builder, org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder> getMutsFieldBuilder() { if (mutsBuilder_ == null) { mutsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerMutation, org.tikv.kvproto.Kvrpcpb.VerMutation.Builder, org.tikv.kvproto.Kvrpcpb.VerMutationOrBuilder>( muts_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); muts_ = null; } return mutsBuilder_; } private long version_ ; /** * uint64 version = 3; */ public long getVersion() { return version_; } /** * uint64 version = 3; */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** * uint64 version = 3; */ public Builder clearVersion() { version_ = 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:kvrpcpb.VerBatchMutRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerBatchMutRequest) private static final org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest(); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerBatchMutRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerBatchMutRequest(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.Kvrpcpb.VerBatchMutRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerBatchMutResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerBatchMutResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.VerError error = 2; */ boolean hasError(); /** * .kvrpcpb.VerError error = 2; */ org.tikv.kvproto.Kvrpcpb.VerError getError(); /** * .kvrpcpb.VerError error = 2; */ org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code kvrpcpb.VerBatchMutResponse} */ public static final class VerBatchMutResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerBatchMutResponse) VerBatchMutResponseOrBuilder { private static final long serialVersionUID = 0L; // Use VerBatchMutResponse.newBuilder() to construct. private VerBatchMutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerBatchMutResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerBatchMutResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.VerError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = 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.Kvrpcpb.internal_static_kvrpcpb_VerBatchMutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchMutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.class, org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.VerError error_; /** * .kvrpcpb.VerError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } 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.Kvrpcpb.VerBatchMutResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse other = (org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse 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.Kvrpcpb.VerBatchMutResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse 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.Kvrpcpb.VerBatchMutResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse 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.Kvrpcpb.VerBatchMutResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse 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.Kvrpcpb.VerBatchMutResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse 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.Kvrpcpb.VerBatchMutResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerBatchMutResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerBatchMutResponse) org.tikv.kvproto.Kvrpcpb.VerBatchMutResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchMutResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchMutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.class, org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerBatchMutResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse build() { org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse result = new org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.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.Kvrpcpb.VerBatchMutResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } 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.Kvrpcpb.VerBatchMutResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.VerError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.VerError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.VerError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.VerError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.VerError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.VerError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.VerError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } } /** * .kvrpcpb.VerError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } 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:kvrpcpb.VerBatchMutResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerBatchMutResponse) private static final org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse(); } public static org.tikv.kvproto.Kvrpcpb.VerBatchMutResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerBatchMutResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerBatchMutResponse(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.Kvrpcpb.VerBatchMutResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerScanRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerScanRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 3; */ com.google.protobuf.ByteString getEndKey(); /** * uint32 limit = 4; */ int getLimit(); /** * bool key_only = 5; */ boolean getKeyOnly(); /** * bool reverse = 6; */ boolean getReverse(); /** * uint64 start_version = 7; */ long getStartVersion(); } /** * Protobuf type {@code kvrpcpb.VerScanRequest} */ public static final class VerScanRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerScanRequest) VerScanRequestOrBuilder { private static final long serialVersionUID = 0L; // Use VerScanRequest.newBuilder() to construct. private VerScanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerScanRequest() { startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0; keyOnly_ = false; reverse_ = false; startVersion_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerScanRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { startKey_ = input.readBytes(); break; } case 26: { endKey_ = input.readBytes(); break; } case 32: { limit_ = input.readUInt32(); break; } case 40: { keyOnly_ = input.readBool(); break; } case 48: { reverse_ = input.readBool(); break; } case 56: { startVersion_ = 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.Kvrpcpb.internal_static_kvrpcpb_VerScanRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerScanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerScanRequest.class, org.tikv.kvproto.Kvrpcpb.VerScanRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } public static final int LIMIT_FIELD_NUMBER = 4; private int limit_; /** * uint32 limit = 4; */ public int getLimit() { return limit_; } public static final int KEY_ONLY_FIELD_NUMBER = 5; private boolean keyOnly_; /** * bool key_only = 5; */ public boolean getKeyOnly() { return keyOnly_; } public static final int REVERSE_FIELD_NUMBER = 6; private boolean reverse_; /** * bool reverse = 6; */ public boolean getReverse() { return reverse_; } public static final int START_VERSION_FIELD_NUMBER = 7; private long startVersion_; /** * uint64 start_version = 7; */ public long getStartVersion() { return startVersion_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!startKey_.isEmpty()) { output.writeBytes(2, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(3, endKey_); } if (limit_ != 0) { output.writeUInt32(4, limit_); } if (keyOnly_ != false) { output.writeBool(5, keyOnly_); } if (reverse_ != false) { output.writeBool(6, reverse_); } if (startVersion_ != 0L) { output.writeUInt64(7, startVersion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, endKey_); } if (limit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, limit_); } if (keyOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, keyOnly_); } if (reverse_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, reverse_); } if (startVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, startVersion_); } 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.Kvrpcpb.VerScanRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerScanRequest other = (org.tikv.kvproto.Kvrpcpb.VerScanRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); result = result && (getLimit() == other.getLimit()); result = result && (getKeyOnly() == other.getKeyOnly()); result = result && (getReverse() == other.getReverse()); result = result && (getStartVersion() == other.getStartVersion()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); hash = (37 * hash) + KEY_ONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getKeyOnly()); hash = (37 * hash) + REVERSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReverse()); hash = (37 * hash) + START_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartVersion()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerScanRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerScanRequest 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.Kvrpcpb.VerScanRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerScanRequest 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.Kvrpcpb.VerScanRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerScanRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerScanRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerScanRequest 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.Kvrpcpb.VerScanRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerScanRequest 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.Kvrpcpb.VerScanRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerScanRequest 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.Kvrpcpb.VerScanRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerScanRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerScanRequest) org.tikv.kvproto.Kvrpcpb.VerScanRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerScanRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerScanRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerScanRequest.class, org.tikv.kvproto.Kvrpcpb.VerScanRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerScanRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } startKey_ = com.google.protobuf.ByteString.EMPTY; endKey_ = com.google.protobuf.ByteString.EMPTY; limit_ = 0; keyOnly_ = false; reverse_ = false; startVersion_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerScanRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerScanRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerScanRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerScanRequest build() { org.tikv.kvproto.Kvrpcpb.VerScanRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerScanRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.VerScanRequest result = new org.tikv.kvproto.Kvrpcpb.VerScanRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.startKey_ = startKey_; result.endKey_ = endKey_; result.limit_ = limit_; result.keyOnly_ = keyOnly_; result.reverse_ = reverse_; result.startVersion_ = startVersion_; 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.Kvrpcpb.VerScanRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerScanRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerScanRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.VerScanRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getStartKey() != com.google.protobuf.ByteString.EMPTY) { setStartKey(other.getStartKey()); } if (other.getEndKey() != com.google.protobuf.ByteString.EMPTY) { setEndKey(other.getEndKey()); } if (other.getLimit() != 0) { setLimit(other.getLimit()); } if (other.getKeyOnly() != false) { setKeyOnly(other.getKeyOnly()); } if (other.getReverse() != false) { setReverse(other.getReverse()); } if (other.getStartVersion() != 0L) { setStartVersion(other.getStartVersion()); } 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.Kvrpcpb.VerScanRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerScanRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 2; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 2; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 3; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 3; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } private int limit_ ; /** * uint32 limit = 4; */ public int getLimit() { return limit_; } /** * uint32 limit = 4; */ public Builder setLimit(int value) { limit_ = value; onChanged(); return this; } /** * uint32 limit = 4; */ public Builder clearLimit() { limit_ = 0; onChanged(); return this; } private boolean keyOnly_ ; /** * bool key_only = 5; */ public boolean getKeyOnly() { return keyOnly_; } /** * bool key_only = 5; */ public Builder setKeyOnly(boolean value) { keyOnly_ = value; onChanged(); return this; } /** * bool key_only = 5; */ public Builder clearKeyOnly() { keyOnly_ = false; onChanged(); return this; } private boolean reverse_ ; /** * bool reverse = 6; */ public boolean getReverse() { return reverse_; } /** * bool reverse = 6; */ public Builder setReverse(boolean value) { reverse_ = value; onChanged(); return this; } /** * bool reverse = 6; */ public Builder clearReverse() { reverse_ = false; onChanged(); return this; } private long startVersion_ ; /** * uint64 start_version = 7; */ public long getStartVersion() { return startVersion_; } /** * uint64 start_version = 7; */ public Builder setStartVersion(long value) { startVersion_ = value; onChanged(); return this; } /** * uint64 start_version = 7; */ public Builder clearStartVersion() { startVersion_ = 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:kvrpcpb.VerScanRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerScanRequest) private static final org.tikv.kvproto.Kvrpcpb.VerScanRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerScanRequest(); } public static org.tikv.kvproto.Kvrpcpb.VerScanRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerScanRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerScanRequest(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.Kvrpcpb.VerScanRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerScanResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerScanResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ java.util.List getPairsList(); /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.VerKvPair getPairs(int index); /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ int getPairsCount(); /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ java.util.List getPairsOrBuilderList(); /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder getPairsOrBuilder( int index); } /** * Protobuf type {@code kvrpcpb.VerScanResponse} */ public static final class VerScanResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerScanResponse) VerScanResponseOrBuilder { private static final long serialVersionUID = 0L; // Use VerScanResponse.newBuilder() to construct. private VerScanResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerScanResponse() { pairs_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerScanResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } pairs_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.VerKvPair.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerScanResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerScanResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerScanResponse.class, org.tikv.kvproto.Kvrpcpb.VerScanResponse.Builder.class); } private int bitField0_; public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int PAIRS_FIELD_NUMBER = 2; private java.util.List pairs_; /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public java.util.List getPairsList() { return pairs_; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { return pairs_; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public int getPairsCount() { return pairs_.size(); } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPair getPairs(int index) { return pairs_.get(index); } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder getPairsOrBuilder( int index) { return pairs_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (regionError_ != null) { output.writeMessage(1, getRegionError()); } for (int i = 0; i < pairs_.size(); i++) { output.writeMessage(2, pairs_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } for (int i = 0; i < pairs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, pairs_.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.Kvrpcpb.VerScanResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerScanResponse other = (org.tikv.kvproto.Kvrpcpb.VerScanResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getPairsList() .equals(other.getPairsList()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (getPairsCount() > 0) { hash = (37 * hash) + PAIRS_FIELD_NUMBER; hash = (53 * hash) + getPairsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerScanResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerScanResponse 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.Kvrpcpb.VerScanResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerScanResponse 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.Kvrpcpb.VerScanResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerScanResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerScanResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerScanResponse 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.Kvrpcpb.VerScanResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerScanResponse 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.Kvrpcpb.VerScanResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerScanResponse 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.Kvrpcpb.VerScanResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerScanResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerScanResponse) org.tikv.kvproto.Kvrpcpb.VerScanResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerScanResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerScanResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerScanResponse.class, org.tikv.kvproto.Kvrpcpb.VerScanResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerScanResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPairsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { pairsBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerScanResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerScanResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerScanResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerScanResponse build() { org.tikv.kvproto.Kvrpcpb.VerScanResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerScanResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.VerScanResponse result = new org.tikv.kvproto.Kvrpcpb.VerScanResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (pairsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = java.util.Collections.unmodifiableList(pairs_); bitField0_ = (bitField0_ & ~0x00000002); } result.pairs_ = pairs_; } else { result.pairs_ = pairsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.VerScanResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerScanResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerScanResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.VerScanResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (pairsBuilder_ == null) { if (!other.pairs_.isEmpty()) { if (pairs_.isEmpty()) { pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePairsIsMutable(); pairs_.addAll(other.pairs_); } onChanged(); } } else { if (!other.pairs_.isEmpty()) { if (pairsBuilder_.isEmpty()) { pairsBuilder_.dispose(); pairsBuilder_ = null; pairs_ = other.pairs_; bitField0_ = (bitField0_ & ~0x00000002); pairsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPairsFieldBuilder() : null; } else { pairsBuilder_.addAllMessages(other.pairs_); } } } 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.Kvrpcpb.VerScanResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerScanResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.util.List pairs_ = java.util.Collections.emptyList(); private void ensurePairsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { pairs_ = new java.util.ArrayList(pairs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerKvPair, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder, org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder> pairsBuilder_; /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public java.util.List getPairsList() { if (pairsBuilder_ == null) { return java.util.Collections.unmodifiableList(pairs_); } else { return pairsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public int getPairsCount() { if (pairsBuilder_ == null) { return pairs_.size(); } else { return pairsBuilder_.getCount(); } } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPair getPairs(int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.VerKvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.set(index, value); onChanged(); } else { pairsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder setPairs( int index, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.set(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder addPairs(org.tikv.kvproto.Kvrpcpb.VerKvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(value); onChanged(); } else { pairsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.VerKvPair value) { if (pairsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePairsIsMutable(); pairs_.add(index, value); onChanged(); } else { pairsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder addPairs( org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder addPairs( int index, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder builderForValue) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.add(index, builderForValue.build()); onChanged(); } else { pairsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder addAllPairs( java.lang.Iterable values) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pairs_); onChanged(); } else { pairsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder clearPairs() { if (pairsBuilder_ == null) { pairs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { pairsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public Builder removePairs(int index) { if (pairsBuilder_ == null) { ensurePairsIsMutable(); pairs_.remove(index); onChanged(); } else { pairsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder getPairsBuilder( int index) { return getPairsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder getPairsOrBuilder( int index) { if (pairsBuilder_ == null) { return pairs_.get(index); } else { return pairsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public java.util.List getPairsOrBuilderList() { if (pairsBuilder_ != null) { return pairsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pairs_); } } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder addPairsBuilder() { return getPairsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.VerKvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder addPairsBuilder( int index) { return getPairsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.VerKvPair.getDefaultInstance()); } /** * repeated .kvrpcpb.VerKvPair pairs = 2; */ public java.util.List getPairsBuilderList() { return getPairsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerKvPair, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder, org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder> getPairsFieldBuilder() { if (pairsBuilder_ == null) { pairsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerKvPair, org.tikv.kvproto.Kvrpcpb.VerKvPair.Builder, org.tikv.kvproto.Kvrpcpb.VerKvPairOrBuilder>( pairs_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); pairs_ = null; } return pairsBuilder_; } 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:kvrpcpb.VerScanResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerScanResponse) private static final org.tikv.kvproto.Kvrpcpb.VerScanResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerScanResponse(); } public static org.tikv.kvproto.Kvrpcpb.VerScanResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerScanResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerScanResponse(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.Kvrpcpb.VerScanResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerDeleteRangeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerDeleteRangeRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes start_key = 2; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 3; */ com.google.protobuf.ByteString getEndKey(); } /** * Protobuf type {@code kvrpcpb.VerDeleteRangeRequest} */ public static final class VerDeleteRangeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerDeleteRangeRequest) VerDeleteRangeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use VerDeleteRangeRequest.newBuilder() to construct. private VerDeleteRangeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerDeleteRangeRequest() { 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 VerDeleteRangeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { startKey_ = input.readBytes(); break; } case 26: { 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.Kvrpcpb.internal_static_kvrpcpb_VerDeleteRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerDeleteRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.class, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!startKey_.isEmpty()) { output.writeBytes(2, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(3, endKey_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, 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.Kvrpcpb.VerDeleteRangeRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest other = (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } 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(); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_KEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + END_KEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest 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.Kvrpcpb.VerDeleteRangeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest 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.Kvrpcpb.VerDeleteRangeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest 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.Kvrpcpb.VerDeleteRangeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest 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.Kvrpcpb.VerDeleteRangeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest 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.Kvrpcpb.VerDeleteRangeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerDeleteRangeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerDeleteRangeRequest) org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerDeleteRangeRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerDeleteRangeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.class, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } 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.Kvrpcpb.internal_static_kvrpcpb_VerDeleteRangeRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest build() { org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest result = new org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } 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.Kvrpcpb.VerDeleteRangeRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } 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.Kvrpcpb.VerDeleteRangeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 2; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 2; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 2; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 3; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 3; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 3; */ public Builder clearEndKey() { endKey_ = getDefaultInstance().getEndKey(); onChanged(); return this; } 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:kvrpcpb.VerDeleteRangeRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerDeleteRangeRequest) private static final org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest(); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerDeleteRangeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerDeleteRangeRequest(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.Kvrpcpb.VerDeleteRangeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface VerDeleteRangeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.VerDeleteRangeResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * .kvrpcpb.VerError error = 2; */ boolean hasError(); /** * .kvrpcpb.VerError error = 2; */ org.tikv.kvproto.Kvrpcpb.VerError getError(); /** * .kvrpcpb.VerError error = 2; */ org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code kvrpcpb.VerDeleteRangeResponse} */ public static final class VerDeleteRangeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.VerDeleteRangeResponse) VerDeleteRangeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use VerDeleteRangeResponse.newBuilder() to construct. private VerDeleteRangeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VerDeleteRangeResponse() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private VerDeleteRangeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.VerError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.VerError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = 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.Kvrpcpb.internal_static_kvrpcpb_VerDeleteRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerDeleteRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.class, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.VerError error_; /** * .kvrpcpb.VerError error = 2; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder() { return getError(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (error_ != null) { output.writeMessage(2, getError()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getError()); } 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.Kvrpcpb.VerDeleteRangeResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse other = (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse 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.Kvrpcpb.VerDeleteRangeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse 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.Kvrpcpb.VerDeleteRangeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse 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.Kvrpcpb.VerDeleteRangeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse 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.Kvrpcpb.VerDeleteRangeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse 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.Kvrpcpb.VerDeleteRangeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.VerDeleteRangeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.VerDeleteRangeResponse) org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerDeleteRangeResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerDeleteRangeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.class, org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_VerDeleteRangeResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse build() { org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse result = new org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.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.Kvrpcpb.VerDeleteRangeResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (other.hasError()) { mergeError(other.getError()); } 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.Kvrpcpb.VerDeleteRangeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private org.tikv.kvproto.Kvrpcpb.VerError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.VerError error = 2; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.VerError error = 2; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.VerError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.VerError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.VerError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.VerError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.VerError error = 2; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.VerError error = 2; */ public org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.VerError.getDefaultInstance() : error_; } } /** * .kvrpcpb.VerError error = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.VerError, org.tikv.kvproto.Kvrpcpb.VerError.Builder, org.tikv.kvproto.Kvrpcpb.VerErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } 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:kvrpcpb.VerDeleteRangeResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.VerDeleteRangeResponse) private static final org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse(); } public static org.tikv.kvproto.Kvrpcpb.VerDeleteRangeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public VerDeleteRangeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new VerDeleteRangeResponse(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.Kvrpcpb.VerDeleteRangeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MvccGetByKeyRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.MvccGetByKeyRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); } /** * Protobuf type {@code kvrpcpb.MvccGetByKeyRequest} */ public static final class MvccGetByKeyRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.MvccGetByKeyRequest) MvccGetByKeyRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MvccGetByKeyRequest.newBuilder() to construct. private MvccGetByKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MvccGetByKeyRequest() { key_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MvccGetByKeyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { key_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByKeyRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest.class, org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest other = (org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKey() .equals(other.getKey()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest 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.Kvrpcpb.MvccGetByKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest 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.Kvrpcpb.MvccGetByKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest 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.Kvrpcpb.MvccGetByKeyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest 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.Kvrpcpb.MvccGetByKeyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest 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.Kvrpcpb.MvccGetByKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.MvccGetByKeyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.MvccGetByKeyRequest) org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByKeyRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest.class, org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } key_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByKeyRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest build() { org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest result = new org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.key_ = key_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.MvccGetByKeyRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.MvccGetByKeyRequest) private static final org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest(); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MvccGetByKeyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MvccGetByKeyRequest(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.Kvrpcpb.MvccGetByKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MvccGetByKeyResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.MvccGetByKeyResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); /** * .kvrpcpb.MvccInfo info = 3; */ boolean hasInfo(); /** * .kvrpcpb.MvccInfo info = 3; */ org.tikv.kvproto.Kvrpcpb.MvccInfo getInfo(); /** * .kvrpcpb.MvccInfo info = 3; */ org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder getInfoOrBuilder(); } /** * Protobuf type {@code kvrpcpb.MvccGetByKeyResponse} */ public static final class MvccGetByKeyResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.MvccGetByKeyResponse) MvccGetByKeyResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MvccGetByKeyResponse.newBuilder() to construct. private MvccGetByKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MvccGetByKeyResponse() { error_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MvccGetByKeyResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } case 26: { org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder subBuilder = null; if (info_ != null) { subBuilder = info_.toBuilder(); } info_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.MvccInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(info_); info_ = 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.Kvrpcpb.internal_static_kvrpcpb_MvccGetByKeyResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByKeyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse.class, org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INFO_FIELD_NUMBER = 3; private org.tikv.kvproto.Kvrpcpb.MvccInfo info_; /** * .kvrpcpb.MvccInfo info = 3; */ public boolean hasInfo() { return info_ != null; } /** * .kvrpcpb.MvccInfo info = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccInfo getInfo() { return info_ == null ? org.tikv.kvproto.Kvrpcpb.MvccInfo.getDefaultInstance() : info_; } /** * .kvrpcpb.MvccInfo info = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder getInfoOrBuilder() { return getInfo(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } if (info_ != null) { output.writeMessage(3, getInfo()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } if (info_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getInfo()); } 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.Kvrpcpb.MvccGetByKeyResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse other = (org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); result = result && (hasInfo() == other.hasInfo()); if (hasInfo()) { result = result && getInfo() .equals(other.getInfo()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); if (hasInfo()) { hash = (37 * hash) + INFO_FIELD_NUMBER; hash = (53 * hash) + getInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse 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.Kvrpcpb.MvccGetByKeyResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse 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.Kvrpcpb.MvccGetByKeyResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse 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.Kvrpcpb.MvccGetByKeyResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse 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.Kvrpcpb.MvccGetByKeyResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse 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.Kvrpcpb.MvccGetByKeyResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.MvccGetByKeyResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.MvccGetByKeyResponse) org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByKeyResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByKeyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse.class, org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; if (infoBuilder_ == null) { info_ = null; } else { info_ = null; infoBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByKeyResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse build() { org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse result = new org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; if (infoBuilder_ == null) { result.info_ = info_; } else { result.info_ = infoBuilder_.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.Kvrpcpb.MvccGetByKeyResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } if (other.hasInfo()) { mergeInfo(other.getInfo()); } 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.Kvrpcpb.MvccGetByKeyResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } private org.tikv.kvproto.Kvrpcpb.MvccInfo info_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccInfo, org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder, org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder> infoBuilder_; /** * .kvrpcpb.MvccInfo info = 3; */ public boolean hasInfo() { return infoBuilder_ != null || info_ != null; } /** * .kvrpcpb.MvccInfo info = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccInfo getInfo() { if (infoBuilder_ == null) { return info_ == null ? org.tikv.kvproto.Kvrpcpb.MvccInfo.getDefaultInstance() : info_; } else { return infoBuilder_.getMessage(); } } /** * .kvrpcpb.MvccInfo info = 3; */ public Builder setInfo(org.tikv.kvproto.Kvrpcpb.MvccInfo value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } info_ = value; onChanged(); } else { infoBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.MvccInfo info = 3; */ public Builder setInfo( org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); onChanged(); } else { infoBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.MvccInfo info = 3; */ public Builder mergeInfo(org.tikv.kvproto.Kvrpcpb.MvccInfo value) { if (infoBuilder_ == null) { if (info_ != null) { info_ = org.tikv.kvproto.Kvrpcpb.MvccInfo.newBuilder(info_).mergeFrom(value).buildPartial(); } else { info_ = value; } onChanged(); } else { infoBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.MvccInfo info = 3; */ public Builder clearInfo() { if (infoBuilder_ == null) { info_ = null; onChanged(); } else { info_ = null; infoBuilder_ = null; } return this; } /** * .kvrpcpb.MvccInfo info = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder getInfoBuilder() { onChanged(); return getInfoFieldBuilder().getBuilder(); } /** * .kvrpcpb.MvccInfo info = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder getInfoOrBuilder() { if (infoBuilder_ != null) { return infoBuilder_.getMessageOrBuilder(); } else { return info_ == null ? org.tikv.kvproto.Kvrpcpb.MvccInfo.getDefaultInstance() : info_; } } /** * .kvrpcpb.MvccInfo info = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccInfo, org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder, org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccInfo, org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder, org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder>( getInfo(), getParentForChildren(), isClean()); info_ = null; } return infoBuilder_; } 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:kvrpcpb.MvccGetByKeyResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.MvccGetByKeyResponse) private static final org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse(); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByKeyResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MvccGetByKeyResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MvccGetByKeyResponse(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.Kvrpcpb.MvccGetByKeyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MvccGetByStartTsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.MvccGetByStartTsRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * uint64 start_ts = 2; */ long getStartTs(); } /** * Protobuf type {@code kvrpcpb.MvccGetByStartTsRequest} */ public static final class MvccGetByStartTsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.MvccGetByStartTsRequest) MvccGetByStartTsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use MvccGetByStartTsRequest.newBuilder() to construct. private MvccGetByStartTsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MvccGetByStartTsRequest() { startTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MvccGetByStartTsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 16: { startTs_ = 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.Kvrpcpb.internal_static_kvrpcpb_MvccGetByStartTsRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByStartTsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest.class, org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int START_TS_FIELD_NUMBER = 2; private long startTs_; /** * uint64 start_ts = 2; */ public long getStartTs() { return startTs_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (startTs_ != 0L) { output.writeUInt64(2, startTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, startTs_); } 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.Kvrpcpb.MvccGetByStartTsRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest other = (org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && (getStartTs() == other.getStartTs()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest 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.Kvrpcpb.MvccGetByStartTsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest 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.Kvrpcpb.MvccGetByStartTsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest 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.Kvrpcpb.MvccGetByStartTsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest 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.Kvrpcpb.MvccGetByStartTsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest 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.Kvrpcpb.MvccGetByStartTsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.MvccGetByStartTsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.MvccGetByStartTsRequest) org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByStartTsRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByStartTsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest.class, org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } startTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByStartTsRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest build() { org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest result = new org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.startTs_ = startTs_; 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.Kvrpcpb.MvccGetByStartTsRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } 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.Kvrpcpb.MvccGetByStartTsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private long startTs_ ; /** * uint64 start_ts = 2; */ public long getStartTs() { return startTs_; } /** * uint64 start_ts = 2; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** * uint64 start_ts = 2; */ public Builder clearStartTs() { startTs_ = 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:kvrpcpb.MvccGetByStartTsRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.MvccGetByStartTsRequest) private static final org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest(); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MvccGetByStartTsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MvccGetByStartTsRequest(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.Kvrpcpb.MvccGetByStartTsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MvccGetByStartTsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.MvccGetByStartTsResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); /** * bytes key = 3; */ com.google.protobuf.ByteString getKey(); /** * .kvrpcpb.MvccInfo info = 4; */ boolean hasInfo(); /** * .kvrpcpb.MvccInfo info = 4; */ org.tikv.kvproto.Kvrpcpb.MvccInfo getInfo(); /** * .kvrpcpb.MvccInfo info = 4; */ org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder getInfoOrBuilder(); } /** * Protobuf type {@code kvrpcpb.MvccGetByStartTsResponse} */ public static final class MvccGetByStartTsResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.MvccGetByStartTsResponse) MvccGetByStartTsResponseOrBuilder { private static final long serialVersionUID = 0L; // Use MvccGetByStartTsResponse.newBuilder() to construct. private MvccGetByStartTsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MvccGetByStartTsResponse() { error_ = ""; key_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MvccGetByStartTsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } case 26: { key_ = input.readBytes(); break; } case 34: { org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder subBuilder = null; if (info_ != null) { subBuilder = info_.toBuilder(); } info_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.MvccInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(info_); info_ = 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.Kvrpcpb.internal_static_kvrpcpb_MvccGetByStartTsResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByStartTsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse.class, org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString key_; /** * bytes key = 3; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int INFO_FIELD_NUMBER = 4; private org.tikv.kvproto.Kvrpcpb.MvccInfo info_; /** * .kvrpcpb.MvccInfo info = 4; */ public boolean hasInfo() { return info_ != null; } /** * .kvrpcpb.MvccInfo info = 4; */ public org.tikv.kvproto.Kvrpcpb.MvccInfo getInfo() { return info_ == null ? org.tikv.kvproto.Kvrpcpb.MvccInfo.getDefaultInstance() : info_; } /** * .kvrpcpb.MvccInfo info = 4; */ public org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder getInfoOrBuilder() { return getInfo(); } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } if (!key_.isEmpty()) { output.writeBytes(3, key_); } if (info_ != null) { output.writeMessage(4, getInfo()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, key_); } if (info_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getInfo()); } 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.Kvrpcpb.MvccGetByStartTsResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse other = (org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); result = result && getKey() .equals(other.getKey()); result = result && (hasInfo() == other.hasInfo()); if (hasInfo()) { result = result && getInfo() .equals(other.getInfo()); } 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); if (hasInfo()) { hash = (37 * hash) + INFO_FIELD_NUMBER; hash = (53 * hash) + getInfo().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse 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.Kvrpcpb.MvccGetByStartTsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse 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.Kvrpcpb.MvccGetByStartTsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse 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.Kvrpcpb.MvccGetByStartTsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse 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.Kvrpcpb.MvccGetByStartTsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse 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.Kvrpcpb.MvccGetByStartTsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.MvccGetByStartTsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.MvccGetByStartTsResponse) org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByStartTsResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByStartTsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse.class, org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; key_ = com.google.protobuf.ByteString.EMPTY; if (infoBuilder_ == null) { info_ = null; } else { info_ = null; infoBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccGetByStartTsResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse build() { org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse result = new org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; result.key_ = key_; if (infoBuilder_ == null) { result.info_ = info_; } else { result.info_ = infoBuilder_.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.Kvrpcpb.MvccGetByStartTsResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.hasInfo()) { mergeInfo(other.getInfo()); } 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.Kvrpcpb.MvccGetByStartTsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 3; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 3; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 3; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private org.tikv.kvproto.Kvrpcpb.MvccInfo info_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccInfo, org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder, org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder> infoBuilder_; /** * .kvrpcpb.MvccInfo info = 4; */ public boolean hasInfo() { return infoBuilder_ != null || info_ != null; } /** * .kvrpcpb.MvccInfo info = 4; */ public org.tikv.kvproto.Kvrpcpb.MvccInfo getInfo() { if (infoBuilder_ == null) { return info_ == null ? org.tikv.kvproto.Kvrpcpb.MvccInfo.getDefaultInstance() : info_; } else { return infoBuilder_.getMessage(); } } /** * .kvrpcpb.MvccInfo info = 4; */ public Builder setInfo(org.tikv.kvproto.Kvrpcpb.MvccInfo value) { if (infoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } info_ = value; onChanged(); } else { infoBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.MvccInfo info = 4; */ public Builder setInfo( org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder builderForValue) { if (infoBuilder_ == null) { info_ = builderForValue.build(); onChanged(); } else { infoBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.MvccInfo info = 4; */ public Builder mergeInfo(org.tikv.kvproto.Kvrpcpb.MvccInfo value) { if (infoBuilder_ == null) { if (info_ != null) { info_ = org.tikv.kvproto.Kvrpcpb.MvccInfo.newBuilder(info_).mergeFrom(value).buildPartial(); } else { info_ = value; } onChanged(); } else { infoBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.MvccInfo info = 4; */ public Builder clearInfo() { if (infoBuilder_ == null) { info_ = null; onChanged(); } else { info_ = null; infoBuilder_ = null; } return this; } /** * .kvrpcpb.MvccInfo info = 4; */ public org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder getInfoBuilder() { onChanged(); return getInfoFieldBuilder().getBuilder(); } /** * .kvrpcpb.MvccInfo info = 4; */ public org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder getInfoOrBuilder() { if (infoBuilder_ != null) { return infoBuilder_.getMessageOrBuilder(); } else { return info_ == null ? org.tikv.kvproto.Kvrpcpb.MvccInfo.getDefaultInstance() : info_; } } /** * .kvrpcpb.MvccInfo info = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccInfo, org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder, org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder> getInfoFieldBuilder() { if (infoBuilder_ == null) { infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccInfo, org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder, org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder>( getInfo(), getParentForChildren(), isClean()); info_ = null; } return infoBuilder_; } 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:kvrpcpb.MvccGetByStartTsResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.MvccGetByStartTsResponse) private static final org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse(); } public static org.tikv.kvproto.Kvrpcpb.MvccGetByStartTsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MvccGetByStartTsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MvccGetByStartTsResponse(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.Kvrpcpb.MvccGetByStartTsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ContextOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.Context) com.google.protobuf.MessageOrBuilder { /** * uint64 region_id = 1; */ long getRegionId(); /** * .metapb.RegionEpoch region_epoch = 2; */ boolean hasRegionEpoch(); /** * .metapb.RegionEpoch region_epoch = 2; */ org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch(); /** * .metapb.RegionEpoch region_epoch = 2; */ org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder(); /** * .metapb.Peer peer = 3; */ boolean hasPeer(); /** * .metapb.Peer peer = 3; */ org.tikv.kvproto.Metapb.Peer getPeer(); /** * .metapb.Peer peer = 3; */ org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder(); /** * uint64 term = 5; */ long getTerm(); /** * .kvrpcpb.CommandPri priority = 6; */ int getPriorityValue(); /** * .kvrpcpb.CommandPri priority = 6; */ org.tikv.kvproto.Kvrpcpb.CommandPri getPriority(); /** * .kvrpcpb.IsolationLevel isolation_level = 7; */ int getIsolationLevelValue(); /** * .kvrpcpb.IsolationLevel isolation_level = 7; */ org.tikv.kvproto.Kvrpcpb.IsolationLevel getIsolationLevel(); /** * bool not_fill_cache = 8; */ boolean getNotFillCache(); /** * bool sync_log = 9; */ boolean getSyncLog(); /** *
     * True means execution time statistics should be recorded and returned.
     * 
* * bool record_time_stat = 10; */ boolean getRecordTimeStat(); /** *
     * True means RocksDB scan statistics should be recorded and returned.
     * 
* * bool record_scan_stat = 11; */ boolean getRecordScanStat(); /** * bool replica_read = 12; */ boolean getReplicaRead(); /** * repeated uint64 resolved_locks = 13; */ java.util.List getResolvedLocksList(); /** * repeated uint64 resolved_locks = 13; */ int getResolvedLocksCount(); /** * repeated uint64 resolved_locks = 13; */ long getResolvedLocks(int index); /** * uint64 max_execution_duration_ms = 14; */ long getMaxExecutionDurationMs(); /** *
     * After a region applies to `applied_index`, we can get a
     * snapshot for the region even if the peer is a follower.
     * 
* * uint64 applied_index = 15; */ long getAppliedIndex(); /** *
     * A hint for TiKV to schedule tasks more fairly. Query with same task ID
     * may share same priority and resource quota.
     * 
* * uint64 task_id = 16; */ long getTaskId(); /** *
     * Not required to read the most up-to-date data, replicas with `safe_ts` >= `start_ts`
     * can handle read request directly
     * 
* * bool stale_read = 17; */ boolean getStaleRead(); } /** *
   * Miscellaneous metadata attached to most requests.
   * 
* * Protobuf type {@code kvrpcpb.Context} */ public static final class Context extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.Context) ContextOrBuilder { private static final long serialVersionUID = 0L; // Use Context.newBuilder() to construct. private Context(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Context() { regionId_ = 0L; term_ = 0L; priority_ = 0; isolationLevel_ = 0; notFillCache_ = false; syncLog_ = false; recordTimeStat_ = false; recordScanStat_ = false; replicaRead_ = false; resolvedLocks_ = java.util.Collections.emptyList(); maxExecutionDurationMs_ = 0L; appliedIndex_ = 0L; taskId_ = 0L; staleRead_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Context( 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.RegionEpoch.Builder subBuilder = null; if (regionEpoch_ != null) { subBuilder = regionEpoch_.toBuilder(); } regionEpoch_ = input.readMessage(org.tikv.kvproto.Metapb.RegionEpoch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionEpoch_); regionEpoch_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Metapb.Peer.Builder subBuilder = null; if (peer_ != null) { subBuilder = peer_.toBuilder(); } peer_ = input.readMessage(org.tikv.kvproto.Metapb.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(peer_); peer_ = subBuilder.buildPartial(); } break; } case 40: { term_ = input.readUInt64(); break; } case 48: { int rawValue = input.readEnum(); priority_ = rawValue; break; } case 56: { int rawValue = input.readEnum(); isolationLevel_ = rawValue; break; } case 64: { notFillCache_ = input.readBool(); break; } case 72: { syncLog_ = input.readBool(); break; } case 80: { recordTimeStat_ = input.readBool(); break; } case 88: { recordScanStat_ = input.readBool(); break; } case 96: { replicaRead_ = input.readBool(); break; } case 104: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { resolvedLocks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } resolvedLocks_.add(input.readUInt64()); break; } case 106: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000800) == 0x00000800) && input.getBytesUntilLimit() > 0) { resolvedLocks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } while (input.getBytesUntilLimit() > 0) { resolvedLocks_.add(input.readUInt64()); } input.popLimit(limit); break; } case 112: { maxExecutionDurationMs_ = input.readUInt64(); break; } case 120: { appliedIndex_ = input.readUInt64(); break; } case 128: { taskId_ = input.readUInt64(); break; } case 136: { staleRead_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { resolvedLocks_ = java.util.Collections.unmodifiableList(resolvedLocks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Context_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Context_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.Context.class, org.tikv.kvproto.Kvrpcpb.Context.Builder.class); } private int bitField0_; public static final int REGION_ID_FIELD_NUMBER = 1; private long regionId_; /** * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } public static final int REGION_EPOCH_FIELD_NUMBER = 2; private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_; /** * .metapb.RegionEpoch region_epoch = 2; */ public boolean hasRegionEpoch() { return regionEpoch_ != null; } /** * .metapb.RegionEpoch region_epoch = 2; */ public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } /** * .metapb.RegionEpoch region_epoch = 2; */ public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() { return getRegionEpoch(); } public static final int PEER_FIELD_NUMBER = 3; private org.tikv.kvproto.Metapb.Peer peer_; /** * .metapb.Peer peer = 3; */ public boolean hasPeer() { return peer_ != null; } /** * .metapb.Peer peer = 3; */ public org.tikv.kvproto.Metapb.Peer getPeer() { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } /** * .metapb.Peer peer = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { return getPeer(); } public static final int TERM_FIELD_NUMBER = 5; private long term_; /** * uint64 term = 5; */ public long getTerm() { return term_; } public static final int PRIORITY_FIELD_NUMBER = 6; private int priority_; /** * .kvrpcpb.CommandPri priority = 6; */ public int getPriorityValue() { return priority_; } /** * .kvrpcpb.CommandPri priority = 6; */ public org.tikv.kvproto.Kvrpcpb.CommandPri getPriority() { org.tikv.kvproto.Kvrpcpb.CommandPri result = org.tikv.kvproto.Kvrpcpb.CommandPri.valueOf(priority_); return result == null ? org.tikv.kvproto.Kvrpcpb.CommandPri.UNRECOGNIZED : result; } public static final int ISOLATION_LEVEL_FIELD_NUMBER = 7; private int isolationLevel_; /** * .kvrpcpb.IsolationLevel isolation_level = 7; */ public int getIsolationLevelValue() { return isolationLevel_; } /** * .kvrpcpb.IsolationLevel isolation_level = 7; */ public org.tikv.kvproto.Kvrpcpb.IsolationLevel getIsolationLevel() { org.tikv.kvproto.Kvrpcpb.IsolationLevel result = org.tikv.kvproto.Kvrpcpb.IsolationLevel.valueOf(isolationLevel_); return result == null ? org.tikv.kvproto.Kvrpcpb.IsolationLevel.UNRECOGNIZED : result; } public static final int NOT_FILL_CACHE_FIELD_NUMBER = 8; private boolean notFillCache_; /** * bool not_fill_cache = 8; */ public boolean getNotFillCache() { return notFillCache_; } public static final int SYNC_LOG_FIELD_NUMBER = 9; private boolean syncLog_; /** * bool sync_log = 9; */ public boolean getSyncLog() { return syncLog_; } public static final int RECORD_TIME_STAT_FIELD_NUMBER = 10; private boolean recordTimeStat_; /** *
     * True means execution time statistics should be recorded and returned.
     * 
* * bool record_time_stat = 10; */ public boolean getRecordTimeStat() { return recordTimeStat_; } public static final int RECORD_SCAN_STAT_FIELD_NUMBER = 11; private boolean recordScanStat_; /** *
     * True means RocksDB scan statistics should be recorded and returned.
     * 
* * bool record_scan_stat = 11; */ public boolean getRecordScanStat() { return recordScanStat_; } public static final int REPLICA_READ_FIELD_NUMBER = 12; private boolean replicaRead_; /** * bool replica_read = 12; */ public boolean getReplicaRead() { return replicaRead_; } public static final int RESOLVED_LOCKS_FIELD_NUMBER = 13; private java.util.List resolvedLocks_; /** * repeated uint64 resolved_locks = 13; */ public java.util.List getResolvedLocksList() { return resolvedLocks_; } /** * repeated uint64 resolved_locks = 13; */ public int getResolvedLocksCount() { return resolvedLocks_.size(); } /** * repeated uint64 resolved_locks = 13; */ public long getResolvedLocks(int index) { return resolvedLocks_.get(index); } private int resolvedLocksMemoizedSerializedSize = -1; public static final int MAX_EXECUTION_DURATION_MS_FIELD_NUMBER = 14; private long maxExecutionDurationMs_; /** * uint64 max_execution_duration_ms = 14; */ public long getMaxExecutionDurationMs() { return maxExecutionDurationMs_; } public static final int APPLIED_INDEX_FIELD_NUMBER = 15; private long appliedIndex_; /** *
     * After a region applies to `applied_index`, we can get a
     * snapshot for the region even if the peer is a follower.
     * 
* * uint64 applied_index = 15; */ public long getAppliedIndex() { return appliedIndex_; } public static final int TASK_ID_FIELD_NUMBER = 16; private long taskId_; /** *
     * A hint for TiKV to schedule tasks more fairly. Query with same task ID
     * may share same priority and resource quota.
     * 
* * uint64 task_id = 16; */ public long getTaskId() { return taskId_; } public static final int STALE_READ_FIELD_NUMBER = 17; private boolean staleRead_; /** *
     * Not required to read the most up-to-date data, replicas with `safe_ts` >= `start_ts`
     * can handle read request directly
     * 
* * bool stale_read = 17; */ public boolean getStaleRead() { return staleRead_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (regionId_ != 0L) { output.writeUInt64(1, regionId_); } if (regionEpoch_ != null) { output.writeMessage(2, getRegionEpoch()); } if (peer_ != null) { output.writeMessage(3, getPeer()); } if (term_ != 0L) { output.writeUInt64(5, term_); } if (priority_ != org.tikv.kvproto.Kvrpcpb.CommandPri.Normal.getNumber()) { output.writeEnum(6, priority_); } if (isolationLevel_ != org.tikv.kvproto.Kvrpcpb.IsolationLevel.SI.getNumber()) { output.writeEnum(7, isolationLevel_); } if (notFillCache_ != false) { output.writeBool(8, notFillCache_); } if (syncLog_ != false) { output.writeBool(9, syncLog_); } if (recordTimeStat_ != false) { output.writeBool(10, recordTimeStat_); } if (recordScanStat_ != false) { output.writeBool(11, recordScanStat_); } if (replicaRead_ != false) { output.writeBool(12, replicaRead_); } if (getResolvedLocksList().size() > 0) { output.writeUInt32NoTag(106); output.writeUInt32NoTag(resolvedLocksMemoizedSerializedSize); } for (int i = 0; i < resolvedLocks_.size(); i++) { output.writeUInt64NoTag(resolvedLocks_.get(i)); } if (maxExecutionDurationMs_ != 0L) { output.writeUInt64(14, maxExecutionDurationMs_); } if (appliedIndex_ != 0L) { output.writeUInt64(15, appliedIndex_); } if (taskId_ != 0L) { output.writeUInt64(16, taskId_); } if (staleRead_ != false) { output.writeBool(17, staleRead_); } 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 (regionEpoch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getRegionEpoch()); } if (peer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPeer()); } if (term_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, term_); } if (priority_ != org.tikv.kvproto.Kvrpcpb.CommandPri.Normal.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, priority_); } if (isolationLevel_ != org.tikv.kvproto.Kvrpcpb.IsolationLevel.SI.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, isolationLevel_); } if (notFillCache_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, notFillCache_); } if (syncLog_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, syncLog_); } if (recordTimeStat_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, recordTimeStat_); } if (recordScanStat_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, recordScanStat_); } if (replicaRead_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, replicaRead_); } { int dataSize = 0; for (int i = 0; i < resolvedLocks_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(resolvedLocks_.get(i)); } size += dataSize; if (!getResolvedLocksList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } resolvedLocksMemoizedSerializedSize = dataSize; } if (maxExecutionDurationMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(14, maxExecutionDurationMs_); } if (appliedIndex_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(15, appliedIndex_); } if (taskId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(16, taskId_); } if (staleRead_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, staleRead_); } 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.Kvrpcpb.Context)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.Context other = (org.tikv.kvproto.Kvrpcpb.Context) obj; boolean result = true; result = result && (getRegionId() == other.getRegionId()); result = result && (hasRegionEpoch() == other.hasRegionEpoch()); if (hasRegionEpoch()) { result = result && getRegionEpoch() .equals(other.getRegionEpoch()); } result = result && (hasPeer() == other.hasPeer()); if (hasPeer()) { result = result && getPeer() .equals(other.getPeer()); } result = result && (getTerm() == other.getTerm()); result = result && priority_ == other.priority_; result = result && isolationLevel_ == other.isolationLevel_; result = result && (getNotFillCache() == other.getNotFillCache()); result = result && (getSyncLog() == other.getSyncLog()); result = result && (getRecordTimeStat() == other.getRecordTimeStat()); result = result && (getRecordScanStat() == other.getRecordScanStat()); result = result && (getReplicaRead() == other.getReplicaRead()); result = result && getResolvedLocksList() .equals(other.getResolvedLocksList()); result = result && (getMaxExecutionDurationMs() == other.getMaxExecutionDurationMs()); result = result && (getAppliedIndex() == other.getAppliedIndex()); result = result && (getTaskId() == other.getTaskId()); result = result && (getStaleRead() == other.getStaleRead()); 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 (hasRegionEpoch()) { hash = (37 * hash) + REGION_EPOCH_FIELD_NUMBER; hash = (53 * hash) + getRegionEpoch().hashCode(); } if (hasPeer()) { hash = (37 * hash) + PEER_FIELD_NUMBER; hash = (53 * hash) + getPeer().hashCode(); } hash = (37 * hash) + TERM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTerm()); hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + priority_; hash = (37 * hash) + ISOLATION_LEVEL_FIELD_NUMBER; hash = (53 * hash) + isolationLevel_; hash = (37 * hash) + NOT_FILL_CACHE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNotFillCache()); hash = (37 * hash) + SYNC_LOG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSyncLog()); hash = (37 * hash) + RECORD_TIME_STAT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRecordTimeStat()); hash = (37 * hash) + RECORD_SCAN_STAT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRecordScanStat()); hash = (37 * hash) + REPLICA_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReplicaRead()); if (getResolvedLocksCount() > 0) { hash = (37 * hash) + RESOLVED_LOCKS_FIELD_NUMBER; hash = (53 * hash) + getResolvedLocksList().hashCode(); } hash = (37 * hash) + MAX_EXECUTION_DURATION_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxExecutionDurationMs()); hash = (37 * hash) + APPLIED_INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAppliedIndex()); hash = (37 * hash) + TASK_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTaskId()); hash = (37 * hash) + STALE_READ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getStaleRead()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.Context parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.Context 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.Kvrpcpb.Context parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.Context 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.Kvrpcpb.Context parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.Context parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.Context parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.Context 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.Kvrpcpb.Context parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.Context 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.Kvrpcpb.Context parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.Context 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.Kvrpcpb.Context 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; } /** *
     * Miscellaneous metadata attached to most requests.
     * 
* * Protobuf type {@code kvrpcpb.Context} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.Context) org.tikv.kvproto.Kvrpcpb.ContextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Context_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Context_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.Context.class, org.tikv.kvproto.Kvrpcpb.Context.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.Context.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 (regionEpochBuilder_ == null) { regionEpoch_ = null; } else { regionEpoch_ = null; regionEpochBuilder_ = null; } if (peerBuilder_ == null) { peer_ = null; } else { peer_ = null; peerBuilder_ = null; } term_ = 0L; priority_ = 0; isolationLevel_ = 0; notFillCache_ = false; syncLog_ = false; recordTimeStat_ = false; recordScanStat_ = false; replicaRead_ = false; resolvedLocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); maxExecutionDurationMs_ = 0L; appliedIndex_ = 0L; taskId_ = 0L; staleRead_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Context_descriptor; } public org.tikv.kvproto.Kvrpcpb.Context getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.Context build() { org.tikv.kvproto.Kvrpcpb.Context result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.Context buildPartial() { org.tikv.kvproto.Kvrpcpb.Context result = new org.tikv.kvproto.Kvrpcpb.Context(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.regionId_ = regionId_; if (regionEpochBuilder_ == null) { result.regionEpoch_ = regionEpoch_; } else { result.regionEpoch_ = regionEpochBuilder_.build(); } if (peerBuilder_ == null) { result.peer_ = peer_; } else { result.peer_ = peerBuilder_.build(); } result.term_ = term_; result.priority_ = priority_; result.isolationLevel_ = isolationLevel_; result.notFillCache_ = notFillCache_; result.syncLog_ = syncLog_; result.recordTimeStat_ = recordTimeStat_; result.recordScanStat_ = recordScanStat_; result.replicaRead_ = replicaRead_; if (((bitField0_ & 0x00000800) == 0x00000800)) { resolvedLocks_ = java.util.Collections.unmodifiableList(resolvedLocks_); bitField0_ = (bitField0_ & ~0x00000800); } result.resolvedLocks_ = resolvedLocks_; result.maxExecutionDurationMs_ = maxExecutionDurationMs_; result.appliedIndex_ = appliedIndex_; result.taskId_ = taskId_; result.staleRead_ = staleRead_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.Context) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.Context)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.Context other) { if (other == org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance()) return this; if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } if (other.hasRegionEpoch()) { mergeRegionEpoch(other.getRegionEpoch()); } if (other.hasPeer()) { mergePeer(other.getPeer()); } if (other.getTerm() != 0L) { setTerm(other.getTerm()); } if (other.priority_ != 0) { setPriorityValue(other.getPriorityValue()); } if (other.isolationLevel_ != 0) { setIsolationLevelValue(other.getIsolationLevelValue()); } if (other.getNotFillCache() != false) { setNotFillCache(other.getNotFillCache()); } if (other.getSyncLog() != false) { setSyncLog(other.getSyncLog()); } if (other.getRecordTimeStat() != false) { setRecordTimeStat(other.getRecordTimeStat()); } if (other.getRecordScanStat() != false) { setRecordScanStat(other.getRecordScanStat()); } if (other.getReplicaRead() != false) { setReplicaRead(other.getReplicaRead()); } if (!other.resolvedLocks_.isEmpty()) { if (resolvedLocks_.isEmpty()) { resolvedLocks_ = other.resolvedLocks_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureResolvedLocksIsMutable(); resolvedLocks_.addAll(other.resolvedLocks_); } onChanged(); } if (other.getMaxExecutionDurationMs() != 0L) { setMaxExecutionDurationMs(other.getMaxExecutionDurationMs()); } if (other.getAppliedIndex() != 0L) { setAppliedIndex(other.getAppliedIndex()); } if (other.getTaskId() != 0L) { setTaskId(other.getTaskId()); } if (other.getStaleRead() != false) { setStaleRead(other.getStaleRead()); } 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.Kvrpcpb.Context parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.Context) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long regionId_ ; /** * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } /** * uint64 region_id = 1; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** * uint64 region_id = 1; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder> regionEpochBuilder_; /** * .metapb.RegionEpoch region_epoch = 2; */ public boolean hasRegionEpoch() { return regionEpochBuilder_ != null || regionEpoch_ != null; } /** * .metapb.RegionEpoch region_epoch = 2; */ public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() { if (regionEpochBuilder_ == null) { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } else { return regionEpochBuilder_.getMessage(); } } /** * .metapb.RegionEpoch region_epoch = 2; */ public Builder setRegionEpoch(org.tikv.kvproto.Metapb.RegionEpoch value) { if (regionEpochBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionEpoch_ = value; onChanged(); } else { regionEpochBuilder_.setMessage(value); } return this; } /** * .metapb.RegionEpoch region_epoch = 2; */ public Builder setRegionEpoch( org.tikv.kvproto.Metapb.RegionEpoch.Builder builderForValue) { if (regionEpochBuilder_ == null) { regionEpoch_ = builderForValue.build(); onChanged(); } else { regionEpochBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.RegionEpoch region_epoch = 2; */ public Builder mergeRegionEpoch(org.tikv.kvproto.Metapb.RegionEpoch value) { if (regionEpochBuilder_ == null) { if (regionEpoch_ != null) { regionEpoch_ = org.tikv.kvproto.Metapb.RegionEpoch.newBuilder(regionEpoch_).mergeFrom(value).buildPartial(); } else { regionEpoch_ = value; } onChanged(); } else { regionEpochBuilder_.mergeFrom(value); } return this; } /** * .metapb.RegionEpoch region_epoch = 2; */ public Builder clearRegionEpoch() { if (regionEpochBuilder_ == null) { regionEpoch_ = null; onChanged(); } else { regionEpoch_ = null; regionEpochBuilder_ = null; } return this; } /** * .metapb.RegionEpoch region_epoch = 2; */ public org.tikv.kvproto.Metapb.RegionEpoch.Builder getRegionEpochBuilder() { onChanged(); return getRegionEpochFieldBuilder().getBuilder(); } /** * .metapb.RegionEpoch region_epoch = 2; */ public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() { if (regionEpochBuilder_ != null) { return regionEpochBuilder_.getMessageOrBuilder(); } else { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } } /** * .metapb.RegionEpoch region_epoch = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder> getRegionEpochFieldBuilder() { if (regionEpochBuilder_ == null) { regionEpochBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder>( getRegionEpoch(), getParentForChildren(), isClean()); regionEpoch_ = null; } return regionEpochBuilder_; } private org.tikv.kvproto.Metapb.Peer peer_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> peerBuilder_; /** * .metapb.Peer peer = 3; */ public boolean hasPeer() { return peerBuilder_ != null || peer_ != null; } /** * .metapb.Peer peer = 3; */ public org.tikv.kvproto.Metapb.Peer getPeer() { if (peerBuilder_ == null) { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } else { return peerBuilder_.getMessage(); } } /** * .metapb.Peer peer = 3; */ public Builder setPeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } peer_ = value; onChanged(); } else { peerBuilder_.setMessage(value); } return this; } /** * .metapb.Peer peer = 3; */ public Builder setPeer( org.tikv.kvproto.Metapb.Peer.Builder builderForValue) { if (peerBuilder_ == null) { peer_ = builderForValue.build(); onChanged(); } else { peerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.Peer peer = 3; */ public Builder mergePeer(org.tikv.kvproto.Metapb.Peer value) { if (peerBuilder_ == null) { if (peer_ != null) { peer_ = org.tikv.kvproto.Metapb.Peer.newBuilder(peer_).mergeFrom(value).buildPartial(); } else { peer_ = value; } onChanged(); } else { peerBuilder_.mergeFrom(value); } return this; } /** * .metapb.Peer peer = 3; */ public Builder clearPeer() { if (peerBuilder_ == null) { peer_ = null; onChanged(); } else { peer_ = null; peerBuilder_ = null; } return this; } /** * .metapb.Peer peer = 3; */ public org.tikv.kvproto.Metapb.Peer.Builder getPeerBuilder() { onChanged(); return getPeerFieldBuilder().getBuilder(); } /** * .metapb.Peer peer = 3; */ public org.tikv.kvproto.Metapb.PeerOrBuilder getPeerOrBuilder() { if (peerBuilder_ != null) { return peerBuilder_.getMessageOrBuilder(); } else { return peer_ == null ? org.tikv.kvproto.Metapb.Peer.getDefaultInstance() : peer_; } } /** * .metapb.Peer peer = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder> getPeerFieldBuilder() { if (peerBuilder_ == null) { peerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.Peer, org.tikv.kvproto.Metapb.Peer.Builder, org.tikv.kvproto.Metapb.PeerOrBuilder>( getPeer(), getParentForChildren(), isClean()); peer_ = null; } return peerBuilder_; } private long term_ ; /** * uint64 term = 5; */ public long getTerm() { return term_; } /** * uint64 term = 5; */ public Builder setTerm(long value) { term_ = value; onChanged(); return this; } /** * uint64 term = 5; */ public Builder clearTerm() { term_ = 0L; onChanged(); return this; } private int priority_ = 0; /** * .kvrpcpb.CommandPri priority = 6; */ public int getPriorityValue() { return priority_; } /** * .kvrpcpb.CommandPri priority = 6; */ public Builder setPriorityValue(int value) { priority_ = value; onChanged(); return this; } /** * .kvrpcpb.CommandPri priority = 6; */ public org.tikv.kvproto.Kvrpcpb.CommandPri getPriority() { org.tikv.kvproto.Kvrpcpb.CommandPri result = org.tikv.kvproto.Kvrpcpb.CommandPri.valueOf(priority_); return result == null ? org.tikv.kvproto.Kvrpcpb.CommandPri.UNRECOGNIZED : result; } /** * .kvrpcpb.CommandPri priority = 6; */ public Builder setPriority(org.tikv.kvproto.Kvrpcpb.CommandPri value) { if (value == null) { throw new NullPointerException(); } priority_ = value.getNumber(); onChanged(); return this; } /** * .kvrpcpb.CommandPri priority = 6; */ public Builder clearPriority() { priority_ = 0; onChanged(); return this; } private int isolationLevel_ = 0; /** * .kvrpcpb.IsolationLevel isolation_level = 7; */ public int getIsolationLevelValue() { return isolationLevel_; } /** * .kvrpcpb.IsolationLevel isolation_level = 7; */ public Builder setIsolationLevelValue(int value) { isolationLevel_ = value; onChanged(); return this; } /** * .kvrpcpb.IsolationLevel isolation_level = 7; */ public org.tikv.kvproto.Kvrpcpb.IsolationLevel getIsolationLevel() { org.tikv.kvproto.Kvrpcpb.IsolationLevel result = org.tikv.kvproto.Kvrpcpb.IsolationLevel.valueOf(isolationLevel_); return result == null ? org.tikv.kvproto.Kvrpcpb.IsolationLevel.UNRECOGNIZED : result; } /** * .kvrpcpb.IsolationLevel isolation_level = 7; */ public Builder setIsolationLevel(org.tikv.kvproto.Kvrpcpb.IsolationLevel value) { if (value == null) { throw new NullPointerException(); } isolationLevel_ = value.getNumber(); onChanged(); return this; } /** * .kvrpcpb.IsolationLevel isolation_level = 7; */ public Builder clearIsolationLevel() { isolationLevel_ = 0; onChanged(); return this; } private boolean notFillCache_ ; /** * bool not_fill_cache = 8; */ public boolean getNotFillCache() { return notFillCache_; } /** * bool not_fill_cache = 8; */ public Builder setNotFillCache(boolean value) { notFillCache_ = value; onChanged(); return this; } /** * bool not_fill_cache = 8; */ public Builder clearNotFillCache() { notFillCache_ = false; onChanged(); return this; } private boolean syncLog_ ; /** * bool sync_log = 9; */ public boolean getSyncLog() { return syncLog_; } /** * bool sync_log = 9; */ public Builder setSyncLog(boolean value) { syncLog_ = value; onChanged(); return this; } /** * bool sync_log = 9; */ public Builder clearSyncLog() { syncLog_ = false; onChanged(); return this; } private boolean recordTimeStat_ ; /** *
       * True means execution time statistics should be recorded and returned.
       * 
* * bool record_time_stat = 10; */ public boolean getRecordTimeStat() { return recordTimeStat_; } /** *
       * True means execution time statistics should be recorded and returned.
       * 
* * bool record_time_stat = 10; */ public Builder setRecordTimeStat(boolean value) { recordTimeStat_ = value; onChanged(); return this; } /** *
       * True means execution time statistics should be recorded and returned.
       * 
* * bool record_time_stat = 10; */ public Builder clearRecordTimeStat() { recordTimeStat_ = false; onChanged(); return this; } private boolean recordScanStat_ ; /** *
       * True means RocksDB scan statistics should be recorded and returned.
       * 
* * bool record_scan_stat = 11; */ public boolean getRecordScanStat() { return recordScanStat_; } /** *
       * True means RocksDB scan statistics should be recorded and returned.
       * 
* * bool record_scan_stat = 11; */ public Builder setRecordScanStat(boolean value) { recordScanStat_ = value; onChanged(); return this; } /** *
       * True means RocksDB scan statistics should be recorded and returned.
       * 
* * bool record_scan_stat = 11; */ public Builder clearRecordScanStat() { recordScanStat_ = false; onChanged(); return this; } private boolean replicaRead_ ; /** * bool replica_read = 12; */ public boolean getReplicaRead() { return replicaRead_; } /** * bool replica_read = 12; */ public Builder setReplicaRead(boolean value) { replicaRead_ = value; onChanged(); return this; } /** * bool replica_read = 12; */ public Builder clearReplicaRead() { replicaRead_ = false; onChanged(); return this; } private java.util.List resolvedLocks_ = java.util.Collections.emptyList(); private void ensureResolvedLocksIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { resolvedLocks_ = new java.util.ArrayList(resolvedLocks_); bitField0_ |= 0x00000800; } } /** * repeated uint64 resolved_locks = 13; */ public java.util.List getResolvedLocksList() { return java.util.Collections.unmodifiableList(resolvedLocks_); } /** * repeated uint64 resolved_locks = 13; */ public int getResolvedLocksCount() { return resolvedLocks_.size(); } /** * repeated uint64 resolved_locks = 13; */ public long getResolvedLocks(int index) { return resolvedLocks_.get(index); } /** * repeated uint64 resolved_locks = 13; */ public Builder setResolvedLocks( int index, long value) { ensureResolvedLocksIsMutable(); resolvedLocks_.set(index, value); onChanged(); return this; } /** * repeated uint64 resolved_locks = 13; */ public Builder addResolvedLocks(long value) { ensureResolvedLocksIsMutable(); resolvedLocks_.add(value); onChanged(); return this; } /** * repeated uint64 resolved_locks = 13; */ public Builder addAllResolvedLocks( java.lang.Iterable values) { ensureResolvedLocksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resolvedLocks_); onChanged(); return this; } /** * repeated uint64 resolved_locks = 13; */ public Builder clearResolvedLocks() { resolvedLocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } private long maxExecutionDurationMs_ ; /** * uint64 max_execution_duration_ms = 14; */ public long getMaxExecutionDurationMs() { return maxExecutionDurationMs_; } /** * uint64 max_execution_duration_ms = 14; */ public Builder setMaxExecutionDurationMs(long value) { maxExecutionDurationMs_ = value; onChanged(); return this; } /** * uint64 max_execution_duration_ms = 14; */ public Builder clearMaxExecutionDurationMs() { maxExecutionDurationMs_ = 0L; onChanged(); return this; } private long appliedIndex_ ; /** *
       * After a region applies to `applied_index`, we can get a
       * snapshot for the region even if the peer is a follower.
       * 
* * uint64 applied_index = 15; */ public long getAppliedIndex() { return appliedIndex_; } /** *
       * After a region applies to `applied_index`, we can get a
       * snapshot for the region even if the peer is a follower.
       * 
* * uint64 applied_index = 15; */ public Builder setAppliedIndex(long value) { appliedIndex_ = value; onChanged(); return this; } /** *
       * After a region applies to `applied_index`, we can get a
       * snapshot for the region even if the peer is a follower.
       * 
* * uint64 applied_index = 15; */ public Builder clearAppliedIndex() { appliedIndex_ = 0L; onChanged(); return this; } private long taskId_ ; /** *
       * A hint for TiKV to schedule tasks more fairly. Query with same task ID
       * may share same priority and resource quota.
       * 
* * uint64 task_id = 16; */ public long getTaskId() { return taskId_; } /** *
       * A hint for TiKV to schedule tasks more fairly. Query with same task ID
       * may share same priority and resource quota.
       * 
* * uint64 task_id = 16; */ public Builder setTaskId(long value) { taskId_ = value; onChanged(); return this; } /** *
       * A hint for TiKV to schedule tasks more fairly. Query with same task ID
       * may share same priority and resource quota.
       * 
* * uint64 task_id = 16; */ public Builder clearTaskId() { taskId_ = 0L; onChanged(); return this; } private boolean staleRead_ ; /** *
       * Not required to read the most up-to-date data, replicas with `safe_ts` >= `start_ts`
       * can handle read request directly
       * 
* * bool stale_read = 17; */ public boolean getStaleRead() { return staleRead_; } /** *
       * Not required to read the most up-to-date data, replicas with `safe_ts` >= `start_ts`
       * can handle read request directly
       * 
* * bool stale_read = 17; */ public Builder setStaleRead(boolean value) { staleRead_ = value; onChanged(); return this; } /** *
       * Not required to read the most up-to-date data, replicas with `safe_ts` >= `start_ts`
       * can handle read request directly
       * 
* * bool stale_read = 17; */ public Builder clearStaleRead() { staleRead_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.Context) } // @@protoc_insertion_point(class_scope:kvrpcpb.Context) private static final org.tikv.kvproto.Kvrpcpb.Context DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.Context(); } public static org.tikv.kvproto.Kvrpcpb.Context getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Context parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Context(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.Kvrpcpb.Context getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LockInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.LockInfo) com.google.protobuf.MessageOrBuilder { /** * bytes primary_lock = 1; */ com.google.protobuf.ByteString getPrimaryLock(); /** * uint64 lock_version = 2; */ long getLockVersion(); /** * bytes key = 3; */ com.google.protobuf.ByteString getKey(); /** * uint64 lock_ttl = 4; */ long getLockTtl(); /** *
     * How many keys this transaction involves in this region.
     * 
* * uint64 txn_size = 5; */ long getTxnSize(); /** * .kvrpcpb.Op lock_type = 6; */ int getLockTypeValue(); /** * .kvrpcpb.Op lock_type = 6; */ org.tikv.kvproto.Kvrpcpb.Op getLockType(); /** * uint64 lock_for_update_ts = 7; */ long getLockForUpdateTs(); /** *
     * Fields for transactions that are using Async Commit.
     * 
* * bool use_async_commit = 8; */ boolean getUseAsyncCommit(); /** * uint64 min_commit_ts = 9; */ long getMinCommitTs(); /** * repeated bytes secondaries = 10; */ java.util.List getSecondariesList(); /** * repeated bytes secondaries = 10; */ int getSecondariesCount(); /** * repeated bytes secondaries = 10; */ com.google.protobuf.ByteString getSecondaries(int index); } /** * Protobuf type {@code kvrpcpb.LockInfo} */ public static final class LockInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.LockInfo) LockInfoOrBuilder { private static final long serialVersionUID = 0L; // Use LockInfo.newBuilder() to construct. private LockInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LockInfo() { primaryLock_ = com.google.protobuf.ByteString.EMPTY; lockVersion_ = 0L; key_ = com.google.protobuf.ByteString.EMPTY; lockTtl_ = 0L; txnSize_ = 0L; lockType_ = 0; lockForUpdateTs_ = 0L; useAsyncCommit_ = false; minCommitTs_ = 0L; secondaries_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LockInfo( 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: { primaryLock_ = input.readBytes(); break; } case 16: { lockVersion_ = input.readUInt64(); break; } case 26: { key_ = input.readBytes(); break; } case 32: { lockTtl_ = input.readUInt64(); break; } case 40: { txnSize_ = input.readUInt64(); break; } case 48: { int rawValue = input.readEnum(); lockType_ = rawValue; break; } case 56: { lockForUpdateTs_ = input.readUInt64(); break; } case 64: { useAsyncCommit_ = input.readBool(); break; } case 72: { minCommitTs_ = input.readUInt64(); break; } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { secondaries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000200; } secondaries_.add(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 { if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { secondaries_ = java.util.Collections.unmodifiableList(secondaries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_LockInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_LockInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.LockInfo.class, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder.class); } private int bitField0_; public static final int PRIMARY_LOCK_FIELD_NUMBER = 1; private com.google.protobuf.ByteString primaryLock_; /** * bytes primary_lock = 1; */ public com.google.protobuf.ByteString getPrimaryLock() { return primaryLock_; } public static final int LOCK_VERSION_FIELD_NUMBER = 2; private long lockVersion_; /** * uint64 lock_version = 2; */ public long getLockVersion() { return lockVersion_; } public static final int KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString key_; /** * bytes key = 3; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int LOCK_TTL_FIELD_NUMBER = 4; private long lockTtl_; /** * uint64 lock_ttl = 4; */ public long getLockTtl() { return lockTtl_; } public static final int TXN_SIZE_FIELD_NUMBER = 5; private long txnSize_; /** *
     * How many keys this transaction involves in this region.
     * 
* * uint64 txn_size = 5; */ public long getTxnSize() { return txnSize_; } public static final int LOCK_TYPE_FIELD_NUMBER = 6; private int lockType_; /** * .kvrpcpb.Op lock_type = 6; */ public int getLockTypeValue() { return lockType_; } /** * .kvrpcpb.Op lock_type = 6; */ public org.tikv.kvproto.Kvrpcpb.Op getLockType() { org.tikv.kvproto.Kvrpcpb.Op result = org.tikv.kvproto.Kvrpcpb.Op.valueOf(lockType_); return result == null ? org.tikv.kvproto.Kvrpcpb.Op.UNRECOGNIZED : result; } public static final int LOCK_FOR_UPDATE_TS_FIELD_NUMBER = 7; private long lockForUpdateTs_; /** * uint64 lock_for_update_ts = 7; */ public long getLockForUpdateTs() { return lockForUpdateTs_; } public static final int USE_ASYNC_COMMIT_FIELD_NUMBER = 8; private boolean useAsyncCommit_; /** *
     * Fields for transactions that are using Async Commit.
     * 
* * bool use_async_commit = 8; */ public boolean getUseAsyncCommit() { return useAsyncCommit_; } public static final int MIN_COMMIT_TS_FIELD_NUMBER = 9; private long minCommitTs_; /** * uint64 min_commit_ts = 9; */ public long getMinCommitTs() { return minCommitTs_; } public static final int SECONDARIES_FIELD_NUMBER = 10; private java.util.List secondaries_; /** * repeated bytes secondaries = 10; */ public java.util.List getSecondariesList() { return secondaries_; } /** * repeated bytes secondaries = 10; */ public int getSecondariesCount() { return secondaries_.size(); } /** * repeated bytes secondaries = 10; */ public com.google.protobuf.ByteString getSecondaries(int index) { return secondaries_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!primaryLock_.isEmpty()) { output.writeBytes(1, primaryLock_); } if (lockVersion_ != 0L) { output.writeUInt64(2, lockVersion_); } if (!key_.isEmpty()) { output.writeBytes(3, key_); } if (lockTtl_ != 0L) { output.writeUInt64(4, lockTtl_); } if (txnSize_ != 0L) { output.writeUInt64(5, txnSize_); } if (lockType_ != org.tikv.kvproto.Kvrpcpb.Op.Put.getNumber()) { output.writeEnum(6, lockType_); } if (lockForUpdateTs_ != 0L) { output.writeUInt64(7, lockForUpdateTs_); } if (useAsyncCommit_ != false) { output.writeBool(8, useAsyncCommit_); } if (minCommitTs_ != 0L) { output.writeUInt64(9, minCommitTs_); } for (int i = 0; i < secondaries_.size(); i++) { output.writeBytes(10, secondaries_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!primaryLock_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, primaryLock_); } if (lockVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, lockVersion_); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, key_); } if (lockTtl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, lockTtl_); } if (txnSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, txnSize_); } if (lockType_ != org.tikv.kvproto.Kvrpcpb.Op.Put.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, lockType_); } if (lockForUpdateTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, lockForUpdateTs_); } if (useAsyncCommit_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, useAsyncCommit_); } if (minCommitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(9, minCommitTs_); } { int dataSize = 0; for (int i = 0; i < secondaries_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(secondaries_.get(i)); } size += dataSize; size += 1 * getSecondariesList().size(); } 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.Kvrpcpb.LockInfo)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.LockInfo other = (org.tikv.kvproto.Kvrpcpb.LockInfo) obj; boolean result = true; result = result && getPrimaryLock() .equals(other.getPrimaryLock()); result = result && (getLockVersion() == other.getLockVersion()); result = result && getKey() .equals(other.getKey()); result = result && (getLockTtl() == other.getLockTtl()); result = result && (getTxnSize() == other.getTxnSize()); result = result && lockType_ == other.lockType_; result = result && (getLockForUpdateTs() == other.getLockForUpdateTs()); result = result && (getUseAsyncCommit() == other.getUseAsyncCommit()); result = result && (getMinCommitTs() == other.getMinCommitTs()); result = result && getSecondariesList() .equals(other.getSecondariesList()); 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) + PRIMARY_LOCK_FIELD_NUMBER; hash = (53 * hash) + getPrimaryLock().hashCode(); hash = (37 * hash) + LOCK_VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLockVersion()); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + LOCK_TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLockTtl()); hash = (37 * hash) + TXN_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTxnSize()); hash = (37 * hash) + LOCK_TYPE_FIELD_NUMBER; hash = (53 * hash) + lockType_; hash = (37 * hash) + LOCK_FOR_UPDATE_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLockForUpdateTs()); hash = (37 * hash) + USE_ASYNC_COMMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUseAsyncCommit()); hash = (37 * hash) + MIN_COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinCommitTs()); if (getSecondariesCount() > 0) { hash = (37 * hash) + SECONDARIES_FIELD_NUMBER; hash = (53 * hash) + getSecondariesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.LockInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.LockInfo 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.Kvrpcpb.LockInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.LockInfo 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.Kvrpcpb.LockInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.LockInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.LockInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.LockInfo 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.Kvrpcpb.LockInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.LockInfo 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.Kvrpcpb.LockInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.LockInfo 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.Kvrpcpb.LockInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.LockInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.LockInfo) org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_LockInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_LockInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.LockInfo.class, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.LockInfo.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(); primaryLock_ = com.google.protobuf.ByteString.EMPTY; lockVersion_ = 0L; key_ = com.google.protobuf.ByteString.EMPTY; lockTtl_ = 0L; txnSize_ = 0L; lockType_ = 0; lockForUpdateTs_ = 0L; useAsyncCommit_ = false; minCommitTs_ = 0L; secondaries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_LockInfo_descriptor; } public org.tikv.kvproto.Kvrpcpb.LockInfo getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.LockInfo build() { org.tikv.kvproto.Kvrpcpb.LockInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.LockInfo buildPartial() { org.tikv.kvproto.Kvrpcpb.LockInfo result = new org.tikv.kvproto.Kvrpcpb.LockInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.primaryLock_ = primaryLock_; result.lockVersion_ = lockVersion_; result.key_ = key_; result.lockTtl_ = lockTtl_; result.txnSize_ = txnSize_; result.lockType_ = lockType_; result.lockForUpdateTs_ = lockForUpdateTs_; result.useAsyncCommit_ = useAsyncCommit_; result.minCommitTs_ = minCommitTs_; if (((bitField0_ & 0x00000200) == 0x00000200)) { secondaries_ = java.util.Collections.unmodifiableList(secondaries_); bitField0_ = (bitField0_ & ~0x00000200); } result.secondaries_ = secondaries_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.LockInfo) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.LockInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.LockInfo other) { if (other == org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance()) return this; if (other.getPrimaryLock() != com.google.protobuf.ByteString.EMPTY) { setPrimaryLock(other.getPrimaryLock()); } if (other.getLockVersion() != 0L) { setLockVersion(other.getLockVersion()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getLockTtl() != 0L) { setLockTtl(other.getLockTtl()); } if (other.getTxnSize() != 0L) { setTxnSize(other.getTxnSize()); } if (other.lockType_ != 0) { setLockTypeValue(other.getLockTypeValue()); } if (other.getLockForUpdateTs() != 0L) { setLockForUpdateTs(other.getLockForUpdateTs()); } if (other.getUseAsyncCommit() != false) { setUseAsyncCommit(other.getUseAsyncCommit()); } if (other.getMinCommitTs() != 0L) { setMinCommitTs(other.getMinCommitTs()); } if (!other.secondaries_.isEmpty()) { if (secondaries_.isEmpty()) { secondaries_ = other.secondaries_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureSecondariesIsMutable(); secondaries_.addAll(other.secondaries_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.LockInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.LockInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.ByteString primaryLock_ = com.google.protobuf.ByteString.EMPTY; /** * bytes primary_lock = 1; */ public com.google.protobuf.ByteString getPrimaryLock() { return primaryLock_; } /** * bytes primary_lock = 1; */ public Builder setPrimaryLock(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } primaryLock_ = value; onChanged(); return this; } /** * bytes primary_lock = 1; */ public Builder clearPrimaryLock() { primaryLock_ = getDefaultInstance().getPrimaryLock(); onChanged(); return this; } private long lockVersion_ ; /** * uint64 lock_version = 2; */ public long getLockVersion() { return lockVersion_; } /** * uint64 lock_version = 2; */ public Builder setLockVersion(long value) { lockVersion_ = value; onChanged(); return this; } /** * uint64 lock_version = 2; */ public Builder clearLockVersion() { lockVersion_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 3; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 3; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 3; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private long lockTtl_ ; /** * uint64 lock_ttl = 4; */ public long getLockTtl() { return lockTtl_; } /** * uint64 lock_ttl = 4; */ public Builder setLockTtl(long value) { lockTtl_ = value; onChanged(); return this; } /** * uint64 lock_ttl = 4; */ public Builder clearLockTtl() { lockTtl_ = 0L; onChanged(); return this; } private long txnSize_ ; /** *
       * How many keys this transaction involves in this region.
       * 
* * uint64 txn_size = 5; */ public long getTxnSize() { return txnSize_; } /** *
       * How many keys this transaction involves in this region.
       * 
* * uint64 txn_size = 5; */ public Builder setTxnSize(long value) { txnSize_ = value; onChanged(); return this; } /** *
       * How many keys this transaction involves in this region.
       * 
* * uint64 txn_size = 5; */ public Builder clearTxnSize() { txnSize_ = 0L; onChanged(); return this; } private int lockType_ = 0; /** * .kvrpcpb.Op lock_type = 6; */ public int getLockTypeValue() { return lockType_; } /** * .kvrpcpb.Op lock_type = 6; */ public Builder setLockTypeValue(int value) { lockType_ = value; onChanged(); return this; } /** * .kvrpcpb.Op lock_type = 6; */ public org.tikv.kvproto.Kvrpcpb.Op getLockType() { org.tikv.kvproto.Kvrpcpb.Op result = org.tikv.kvproto.Kvrpcpb.Op.valueOf(lockType_); return result == null ? org.tikv.kvproto.Kvrpcpb.Op.UNRECOGNIZED : result; } /** * .kvrpcpb.Op lock_type = 6; */ public Builder setLockType(org.tikv.kvproto.Kvrpcpb.Op value) { if (value == null) { throw new NullPointerException(); } lockType_ = value.getNumber(); onChanged(); return this; } /** * .kvrpcpb.Op lock_type = 6; */ public Builder clearLockType() { lockType_ = 0; onChanged(); return this; } private long lockForUpdateTs_ ; /** * uint64 lock_for_update_ts = 7; */ public long getLockForUpdateTs() { return lockForUpdateTs_; } /** * uint64 lock_for_update_ts = 7; */ public Builder setLockForUpdateTs(long value) { lockForUpdateTs_ = value; onChanged(); return this; } /** * uint64 lock_for_update_ts = 7; */ public Builder clearLockForUpdateTs() { lockForUpdateTs_ = 0L; onChanged(); return this; } private boolean useAsyncCommit_ ; /** *
       * Fields for transactions that are using Async Commit.
       * 
* * bool use_async_commit = 8; */ public boolean getUseAsyncCommit() { return useAsyncCommit_; } /** *
       * Fields for transactions that are using Async Commit.
       * 
* * bool use_async_commit = 8; */ public Builder setUseAsyncCommit(boolean value) { useAsyncCommit_ = value; onChanged(); return this; } /** *
       * Fields for transactions that are using Async Commit.
       * 
* * bool use_async_commit = 8; */ public Builder clearUseAsyncCommit() { useAsyncCommit_ = false; onChanged(); return this; } private long minCommitTs_ ; /** * uint64 min_commit_ts = 9; */ public long getMinCommitTs() { return minCommitTs_; } /** * uint64 min_commit_ts = 9; */ public Builder setMinCommitTs(long value) { minCommitTs_ = value; onChanged(); return this; } /** * uint64 min_commit_ts = 9; */ public Builder clearMinCommitTs() { minCommitTs_ = 0L; onChanged(); return this; } private java.util.List secondaries_ = java.util.Collections.emptyList(); private void ensureSecondariesIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { secondaries_ = new java.util.ArrayList(secondaries_); bitField0_ |= 0x00000200; } } /** * repeated bytes secondaries = 10; */ public java.util.List getSecondariesList() { return java.util.Collections.unmodifiableList(secondaries_); } /** * repeated bytes secondaries = 10; */ public int getSecondariesCount() { return secondaries_.size(); } /** * repeated bytes secondaries = 10; */ public com.google.protobuf.ByteString getSecondaries(int index) { return secondaries_.get(index); } /** * repeated bytes secondaries = 10; */ public Builder setSecondaries( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSecondariesIsMutable(); secondaries_.set(index, value); onChanged(); return this; } /** * repeated bytes secondaries = 10; */ public Builder addSecondaries(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSecondariesIsMutable(); secondaries_.add(value); onChanged(); return this; } /** * repeated bytes secondaries = 10; */ public Builder addAllSecondaries( java.lang.Iterable values) { ensureSecondariesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, secondaries_); onChanged(); return this; } /** * repeated bytes secondaries = 10; */ public Builder clearSecondaries() { secondaries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); 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:kvrpcpb.LockInfo) } // @@protoc_insertion_point(class_scope:kvrpcpb.LockInfo) private static final org.tikv.kvproto.Kvrpcpb.LockInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.LockInfo(); } public static org.tikv.kvproto.Kvrpcpb.LockInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LockInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LockInfo(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.Kvrpcpb.LockInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeyErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.KeyError) com.google.protobuf.MessageOrBuilder { /** *
     * Client should backoff or cleanup the lock then retry.
     * 
* * .kvrpcpb.LockInfo locked = 1; */ boolean hasLocked(); /** *
     * Client should backoff or cleanup the lock then retry.
     * 
* * .kvrpcpb.LockInfo locked = 1; */ org.tikv.kvproto.Kvrpcpb.LockInfo getLocked(); /** *
     * Client should backoff or cleanup the lock then retry.
     * 
* * .kvrpcpb.LockInfo locked = 1; */ org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder(); /** *
     * Client may restart the txn. e.g write conflict.
     * 
* * string retryable = 2; */ java.lang.String getRetryable(); /** *
     * Client may restart the txn. e.g write conflict.
     * 
* * string retryable = 2; */ com.google.protobuf.ByteString getRetryableBytes(); /** *
     * Client should abort the txn.
     * 
* * string abort = 3; */ java.lang.String getAbort(); /** *
     * Client should abort the txn.
     * 
* * string abort = 3; */ com.google.protobuf.ByteString getAbortBytes(); /** *
     * Write conflict is moved from retryable to here.
     * 
* * .kvrpcpb.WriteConflict conflict = 4; */ boolean hasConflict(); /** *
     * Write conflict is moved from retryable to here.
     * 
* * .kvrpcpb.WriteConflict conflict = 4; */ org.tikv.kvproto.Kvrpcpb.WriteConflict getConflict(); /** *
     * Write conflict is moved from retryable to here.
     * 
* * .kvrpcpb.WriteConflict conflict = 4; */ org.tikv.kvproto.Kvrpcpb.WriteConflictOrBuilder getConflictOrBuilder(); /** *
     * Key already exists
     * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ boolean hasAlreadyExist(); /** *
     * Key already exists
     * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ org.tikv.kvproto.Kvrpcpb.AlreadyExist getAlreadyExist(); /** *
     * Key already exists
     * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ org.tikv.kvproto.Kvrpcpb.AlreadyExistOrBuilder getAlreadyExistOrBuilder(); /** *
     * Deadlock is used in pessimistic transaction for single statement rollback.
     * 
* * .kvrpcpb.Deadlock deadlock = 6; */ boolean hasDeadlock(); /** *
     * Deadlock is used in pessimistic transaction for single statement rollback.
     * 
* * .kvrpcpb.Deadlock deadlock = 6; */ org.tikv.kvproto.Kvrpcpb.Deadlock getDeadlock(); /** *
     * Deadlock is used in pessimistic transaction for single statement rollback.
     * 
* * .kvrpcpb.Deadlock deadlock = 6; */ org.tikv.kvproto.Kvrpcpb.DeadlockOrBuilder getDeadlockOrBuilder(); /** *
     * Commit ts is earlier than min commit ts of a transaction.
     * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ boolean hasCommitTsExpired(); /** *
     * Commit ts is earlier than min commit ts of a transaction.
     * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ org.tikv.kvproto.Kvrpcpb.CommitTsExpired getCommitTsExpired(); /** *
     * Commit ts is earlier than min commit ts of a transaction.
     * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ org.tikv.kvproto.Kvrpcpb.CommitTsExpiredOrBuilder getCommitTsExpiredOrBuilder(); /** *
     * Txn not found when checking txn status.
     * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ boolean hasTxnNotFound(); /** *
     * Txn not found when checking txn status.
     * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ org.tikv.kvproto.Kvrpcpb.TxnNotFound getTxnNotFound(); /** *
     * Txn not found when checking txn status.
     * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ org.tikv.kvproto.Kvrpcpb.TxnNotFoundOrBuilder getTxnNotFoundOrBuilder(); /** *
     * Calculated commit TS exceeds the limit given by the user.
     * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ boolean hasCommitTsTooLarge(); /** *
     * Calculated commit TS exceeds the limit given by the user.
     * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge getCommitTsTooLarge(); /** *
     * Calculated commit TS exceeds the limit given by the user.
     * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ org.tikv.kvproto.Kvrpcpb.CommitTsTooLargeOrBuilder getCommitTsTooLargeOrBuilder(); } /** * Protobuf type {@code kvrpcpb.KeyError} */ public static final class KeyError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.KeyError) KeyErrorOrBuilder { private static final long serialVersionUID = 0L; // Use KeyError.newBuilder() to construct. private KeyError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyError() { retryable_ = ""; abort_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KeyError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.LockInfo.Builder subBuilder = null; if (locked_ != null) { subBuilder = locked_.toBuilder(); } locked_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.LockInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(locked_); locked_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); retryable_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); abort_ = s; break; } case 34: { org.tikv.kvproto.Kvrpcpb.WriteConflict.Builder subBuilder = null; if (conflict_ != null) { subBuilder = conflict_.toBuilder(); } conflict_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.WriteConflict.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(conflict_); conflict_ = subBuilder.buildPartial(); } break; } case 42: { org.tikv.kvproto.Kvrpcpb.AlreadyExist.Builder subBuilder = null; if (alreadyExist_ != null) { subBuilder = alreadyExist_.toBuilder(); } alreadyExist_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.AlreadyExist.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(alreadyExist_); alreadyExist_ = subBuilder.buildPartial(); } break; } case 50: { org.tikv.kvproto.Kvrpcpb.Deadlock.Builder subBuilder = null; if (deadlock_ != null) { subBuilder = deadlock_.toBuilder(); } deadlock_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Deadlock.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(deadlock_); deadlock_ = subBuilder.buildPartial(); } break; } case 58: { org.tikv.kvproto.Kvrpcpb.CommitTsExpired.Builder subBuilder = null; if (commitTsExpired_ != null) { subBuilder = commitTsExpired_.toBuilder(); } commitTsExpired_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.CommitTsExpired.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(commitTsExpired_); commitTsExpired_ = subBuilder.buildPartial(); } break; } case 66: { org.tikv.kvproto.Kvrpcpb.TxnNotFound.Builder subBuilder = null; if (txnNotFound_ != null) { subBuilder = txnNotFound_.toBuilder(); } txnNotFound_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.TxnNotFound.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(txnNotFound_); txnNotFound_ = subBuilder.buildPartial(); } break; } case 74: { org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.Builder subBuilder = null; if (commitTsTooLarge_ != null) { subBuilder = commitTsTooLarge_.toBuilder(); } commitTsTooLarge_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(commitTsTooLarge_); commitTsTooLarge_ = 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.Kvrpcpb.internal_static_kvrpcpb_KeyError_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KeyError_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.KeyError.class, org.tikv.kvproto.Kvrpcpb.KeyError.Builder.class); } public static final int LOCKED_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.LockInfo locked_; /** *
     * Client should backoff or cleanup the lock then retry.
     * 
* * .kvrpcpb.LockInfo locked = 1; */ public boolean hasLocked() { return locked_ != null; } /** *
     * Client should backoff or cleanup the lock then retry.
     * 
* * .kvrpcpb.LockInfo locked = 1; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocked() { return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_; } /** *
     * Client should backoff or cleanup the lock then retry.
     * 
* * .kvrpcpb.LockInfo locked = 1; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder() { return getLocked(); } public static final int RETRYABLE_FIELD_NUMBER = 2; private volatile java.lang.Object retryable_; /** *
     * Client may restart the txn. e.g write conflict.
     * 
* * string retryable = 2; */ public java.lang.String getRetryable() { java.lang.Object ref = retryable_; 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(); retryable_ = s; return s; } } /** *
     * Client may restart the txn. e.g write conflict.
     * 
* * string retryable = 2; */ public com.google.protobuf.ByteString getRetryableBytes() { java.lang.Object ref = retryable_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retryable_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ABORT_FIELD_NUMBER = 3; private volatile java.lang.Object abort_; /** *
     * Client should abort the txn.
     * 
* * string abort = 3; */ public java.lang.String getAbort() { java.lang.Object ref = abort_; 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(); abort_ = s; return s; } } /** *
     * Client should abort the txn.
     * 
* * string abort = 3; */ public com.google.protobuf.ByteString getAbortBytes() { java.lang.Object ref = abort_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); abort_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONFLICT_FIELD_NUMBER = 4; private org.tikv.kvproto.Kvrpcpb.WriteConflict conflict_; /** *
     * Write conflict is moved from retryable to here.
     * 
* * .kvrpcpb.WriteConflict conflict = 4; */ public boolean hasConflict() { return conflict_ != null; } /** *
     * Write conflict is moved from retryable to here.
     * 
* * .kvrpcpb.WriteConflict conflict = 4; */ public org.tikv.kvproto.Kvrpcpb.WriteConflict getConflict() { return conflict_ == null ? org.tikv.kvproto.Kvrpcpb.WriteConflict.getDefaultInstance() : conflict_; } /** *
     * Write conflict is moved from retryable to here.
     * 
* * .kvrpcpb.WriteConflict conflict = 4; */ public org.tikv.kvproto.Kvrpcpb.WriteConflictOrBuilder getConflictOrBuilder() { return getConflict(); } public static final int ALREADY_EXIST_FIELD_NUMBER = 5; private org.tikv.kvproto.Kvrpcpb.AlreadyExist alreadyExist_; /** *
     * Key already exists
     * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ public boolean hasAlreadyExist() { return alreadyExist_ != null; } /** *
     * Key already exists
     * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ public org.tikv.kvproto.Kvrpcpb.AlreadyExist getAlreadyExist() { return alreadyExist_ == null ? org.tikv.kvproto.Kvrpcpb.AlreadyExist.getDefaultInstance() : alreadyExist_; } /** *
     * Key already exists
     * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ public org.tikv.kvproto.Kvrpcpb.AlreadyExistOrBuilder getAlreadyExistOrBuilder() { return getAlreadyExist(); } public static final int DEADLOCK_FIELD_NUMBER = 6; private org.tikv.kvproto.Kvrpcpb.Deadlock deadlock_; /** *
     * Deadlock is used in pessimistic transaction for single statement rollback.
     * 
* * .kvrpcpb.Deadlock deadlock = 6; */ public boolean hasDeadlock() { return deadlock_ != null; } /** *
     * Deadlock is used in pessimistic transaction for single statement rollback.
     * 
* * .kvrpcpb.Deadlock deadlock = 6; */ public org.tikv.kvproto.Kvrpcpb.Deadlock getDeadlock() { return deadlock_ == null ? org.tikv.kvproto.Kvrpcpb.Deadlock.getDefaultInstance() : deadlock_; } /** *
     * Deadlock is used in pessimistic transaction for single statement rollback.
     * 
* * .kvrpcpb.Deadlock deadlock = 6; */ public org.tikv.kvproto.Kvrpcpb.DeadlockOrBuilder getDeadlockOrBuilder() { return getDeadlock(); } public static final int COMMIT_TS_EXPIRED_FIELD_NUMBER = 7; private org.tikv.kvproto.Kvrpcpb.CommitTsExpired commitTsExpired_; /** *
     * Commit ts is earlier than min commit ts of a transaction.
     * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ public boolean hasCommitTsExpired() { return commitTsExpired_ != null; } /** *
     * Commit ts is earlier than min commit ts of a transaction.
     * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ public org.tikv.kvproto.Kvrpcpb.CommitTsExpired getCommitTsExpired() { return commitTsExpired_ == null ? org.tikv.kvproto.Kvrpcpb.CommitTsExpired.getDefaultInstance() : commitTsExpired_; } /** *
     * Commit ts is earlier than min commit ts of a transaction.
     * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ public org.tikv.kvproto.Kvrpcpb.CommitTsExpiredOrBuilder getCommitTsExpiredOrBuilder() { return getCommitTsExpired(); } public static final int TXN_NOT_FOUND_FIELD_NUMBER = 8; private org.tikv.kvproto.Kvrpcpb.TxnNotFound txnNotFound_; /** *
     * Txn not found when checking txn status.
     * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ public boolean hasTxnNotFound() { return txnNotFound_ != null; } /** *
     * Txn not found when checking txn status.
     * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ public org.tikv.kvproto.Kvrpcpb.TxnNotFound getTxnNotFound() { return txnNotFound_ == null ? org.tikv.kvproto.Kvrpcpb.TxnNotFound.getDefaultInstance() : txnNotFound_; } /** *
     * Txn not found when checking txn status.
     * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ public org.tikv.kvproto.Kvrpcpb.TxnNotFoundOrBuilder getTxnNotFoundOrBuilder() { return getTxnNotFound(); } public static final int COMMIT_TS_TOO_LARGE_FIELD_NUMBER = 9; private org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge commitTsTooLarge_; /** *
     * Calculated commit TS exceeds the limit given by the user.
     * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ public boolean hasCommitTsTooLarge() { return commitTsTooLarge_ != null; } /** *
     * Calculated commit TS exceeds the limit given by the user.
     * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ public org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge getCommitTsTooLarge() { return commitTsTooLarge_ == null ? org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.getDefaultInstance() : commitTsTooLarge_; } /** *
     * Calculated commit TS exceeds the limit given by the user.
     * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ public org.tikv.kvproto.Kvrpcpb.CommitTsTooLargeOrBuilder getCommitTsTooLargeOrBuilder() { return getCommitTsTooLarge(); } 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 (locked_ != null) { output.writeMessage(1, getLocked()); } if (!getRetryableBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, retryable_); } if (!getAbortBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, abort_); } if (conflict_ != null) { output.writeMessage(4, getConflict()); } if (alreadyExist_ != null) { output.writeMessage(5, getAlreadyExist()); } if (deadlock_ != null) { output.writeMessage(6, getDeadlock()); } if (commitTsExpired_ != null) { output.writeMessage(7, getCommitTsExpired()); } if (txnNotFound_ != null) { output.writeMessage(8, getTxnNotFound()); } if (commitTsTooLarge_ != null) { output.writeMessage(9, getCommitTsTooLarge()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (locked_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLocked()); } if (!getRetryableBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, retryable_); } if (!getAbortBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, abort_); } if (conflict_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getConflict()); } if (alreadyExist_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getAlreadyExist()); } if (deadlock_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getDeadlock()); } if (commitTsExpired_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getCommitTsExpired()); } if (txnNotFound_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getTxnNotFound()); } if (commitTsTooLarge_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getCommitTsTooLarge()); } 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.Kvrpcpb.KeyError)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.KeyError other = (org.tikv.kvproto.Kvrpcpb.KeyError) obj; boolean result = true; result = result && (hasLocked() == other.hasLocked()); if (hasLocked()) { result = result && getLocked() .equals(other.getLocked()); } result = result && getRetryable() .equals(other.getRetryable()); result = result && getAbort() .equals(other.getAbort()); result = result && (hasConflict() == other.hasConflict()); if (hasConflict()) { result = result && getConflict() .equals(other.getConflict()); } result = result && (hasAlreadyExist() == other.hasAlreadyExist()); if (hasAlreadyExist()) { result = result && getAlreadyExist() .equals(other.getAlreadyExist()); } result = result && (hasDeadlock() == other.hasDeadlock()); if (hasDeadlock()) { result = result && getDeadlock() .equals(other.getDeadlock()); } result = result && (hasCommitTsExpired() == other.hasCommitTsExpired()); if (hasCommitTsExpired()) { result = result && getCommitTsExpired() .equals(other.getCommitTsExpired()); } result = result && (hasTxnNotFound() == other.hasTxnNotFound()); if (hasTxnNotFound()) { result = result && getTxnNotFound() .equals(other.getTxnNotFound()); } result = result && (hasCommitTsTooLarge() == other.hasCommitTsTooLarge()); if (hasCommitTsTooLarge()) { result = result && getCommitTsTooLarge() .equals(other.getCommitTsTooLarge()); } 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 (hasLocked()) { hash = (37 * hash) + LOCKED_FIELD_NUMBER; hash = (53 * hash) + getLocked().hashCode(); } hash = (37 * hash) + RETRYABLE_FIELD_NUMBER; hash = (53 * hash) + getRetryable().hashCode(); hash = (37 * hash) + ABORT_FIELD_NUMBER; hash = (53 * hash) + getAbort().hashCode(); if (hasConflict()) { hash = (37 * hash) + CONFLICT_FIELD_NUMBER; hash = (53 * hash) + getConflict().hashCode(); } if (hasAlreadyExist()) { hash = (37 * hash) + ALREADY_EXIST_FIELD_NUMBER; hash = (53 * hash) + getAlreadyExist().hashCode(); } if (hasDeadlock()) { hash = (37 * hash) + DEADLOCK_FIELD_NUMBER; hash = (53 * hash) + getDeadlock().hashCode(); } if (hasCommitTsExpired()) { hash = (37 * hash) + COMMIT_TS_EXPIRED_FIELD_NUMBER; hash = (53 * hash) + getCommitTsExpired().hashCode(); } if (hasTxnNotFound()) { hash = (37 * hash) + TXN_NOT_FOUND_FIELD_NUMBER; hash = (53 * hash) + getTxnNotFound().hashCode(); } if (hasCommitTsTooLarge()) { hash = (37 * hash) + COMMIT_TS_TOO_LARGE_FIELD_NUMBER; hash = (53 * hash) + getCommitTsTooLarge().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.KeyError parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.KeyError 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.Kvrpcpb.KeyError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.KeyError 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.Kvrpcpb.KeyError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.KeyError parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.KeyError parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.KeyError 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.Kvrpcpb.KeyError parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.KeyError 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.Kvrpcpb.KeyError parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.KeyError 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.Kvrpcpb.KeyError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.KeyError} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.KeyError) org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KeyError_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KeyError_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.KeyError.class, org.tikv.kvproto.Kvrpcpb.KeyError.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (lockedBuilder_ == null) { locked_ = null; } else { locked_ = null; lockedBuilder_ = null; } retryable_ = ""; abort_ = ""; if (conflictBuilder_ == null) { conflict_ = null; } else { conflict_ = null; conflictBuilder_ = null; } if (alreadyExistBuilder_ == null) { alreadyExist_ = null; } else { alreadyExist_ = null; alreadyExistBuilder_ = null; } if (deadlockBuilder_ == null) { deadlock_ = null; } else { deadlock_ = null; deadlockBuilder_ = null; } if (commitTsExpiredBuilder_ == null) { commitTsExpired_ = null; } else { commitTsExpired_ = null; commitTsExpiredBuilder_ = null; } if (txnNotFoundBuilder_ == null) { txnNotFound_ = null; } else { txnNotFound_ = null; txnNotFoundBuilder_ = null; } if (commitTsTooLargeBuilder_ == null) { commitTsTooLarge_ = null; } else { commitTsTooLarge_ = null; commitTsTooLargeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KeyError_descriptor; } public org.tikv.kvproto.Kvrpcpb.KeyError getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.KeyError build() { org.tikv.kvproto.Kvrpcpb.KeyError result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.KeyError buildPartial() { org.tikv.kvproto.Kvrpcpb.KeyError result = new org.tikv.kvproto.Kvrpcpb.KeyError(this); if (lockedBuilder_ == null) { result.locked_ = locked_; } else { result.locked_ = lockedBuilder_.build(); } result.retryable_ = retryable_; result.abort_ = abort_; if (conflictBuilder_ == null) { result.conflict_ = conflict_; } else { result.conflict_ = conflictBuilder_.build(); } if (alreadyExistBuilder_ == null) { result.alreadyExist_ = alreadyExist_; } else { result.alreadyExist_ = alreadyExistBuilder_.build(); } if (deadlockBuilder_ == null) { result.deadlock_ = deadlock_; } else { result.deadlock_ = deadlockBuilder_.build(); } if (commitTsExpiredBuilder_ == null) { result.commitTsExpired_ = commitTsExpired_; } else { result.commitTsExpired_ = commitTsExpiredBuilder_.build(); } if (txnNotFoundBuilder_ == null) { result.txnNotFound_ = txnNotFound_; } else { result.txnNotFound_ = txnNotFoundBuilder_.build(); } if (commitTsTooLargeBuilder_ == null) { result.commitTsTooLarge_ = commitTsTooLarge_; } else { result.commitTsTooLarge_ = commitTsTooLargeBuilder_.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.Kvrpcpb.KeyError) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.KeyError)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.KeyError other) { if (other == org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance()) return this; if (other.hasLocked()) { mergeLocked(other.getLocked()); } if (!other.getRetryable().isEmpty()) { retryable_ = other.retryable_; onChanged(); } if (!other.getAbort().isEmpty()) { abort_ = other.abort_; onChanged(); } if (other.hasConflict()) { mergeConflict(other.getConflict()); } if (other.hasAlreadyExist()) { mergeAlreadyExist(other.getAlreadyExist()); } if (other.hasDeadlock()) { mergeDeadlock(other.getDeadlock()); } if (other.hasCommitTsExpired()) { mergeCommitTsExpired(other.getCommitTsExpired()); } if (other.hasTxnNotFound()) { mergeTxnNotFound(other.getTxnNotFound()); } if (other.hasCommitTsTooLarge()) { mergeCommitTsTooLarge(other.getCommitTsTooLarge()); } 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.Kvrpcpb.KeyError parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.KeyError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.LockInfo locked_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> lockedBuilder_; /** *
       * Client should backoff or cleanup the lock then retry.
       * 
* * .kvrpcpb.LockInfo locked = 1; */ public boolean hasLocked() { return lockedBuilder_ != null || locked_ != null; } /** *
       * Client should backoff or cleanup the lock then retry.
       * 
* * .kvrpcpb.LockInfo locked = 1; */ public org.tikv.kvproto.Kvrpcpb.LockInfo getLocked() { if (lockedBuilder_ == null) { return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_; } else { return lockedBuilder_.getMessage(); } } /** *
       * Client should backoff or cleanup the lock then retry.
       * 
* * .kvrpcpb.LockInfo locked = 1; */ public Builder setLocked(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (lockedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } locked_ = value; onChanged(); } else { lockedBuilder_.setMessage(value); } return this; } /** *
       * Client should backoff or cleanup the lock then retry.
       * 
* * .kvrpcpb.LockInfo locked = 1; */ public Builder setLocked( org.tikv.kvproto.Kvrpcpb.LockInfo.Builder builderForValue) { if (lockedBuilder_ == null) { locked_ = builderForValue.build(); onChanged(); } else { lockedBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Client should backoff or cleanup the lock then retry.
       * 
* * .kvrpcpb.LockInfo locked = 1; */ public Builder mergeLocked(org.tikv.kvproto.Kvrpcpb.LockInfo value) { if (lockedBuilder_ == null) { if (locked_ != null) { locked_ = org.tikv.kvproto.Kvrpcpb.LockInfo.newBuilder(locked_).mergeFrom(value).buildPartial(); } else { locked_ = value; } onChanged(); } else { lockedBuilder_.mergeFrom(value); } return this; } /** *
       * Client should backoff or cleanup the lock then retry.
       * 
* * .kvrpcpb.LockInfo locked = 1; */ public Builder clearLocked() { if (lockedBuilder_ == null) { locked_ = null; onChanged(); } else { locked_ = null; lockedBuilder_ = null; } return this; } /** *
       * Client should backoff or cleanup the lock then retry.
       * 
* * .kvrpcpb.LockInfo locked = 1; */ public org.tikv.kvproto.Kvrpcpb.LockInfo.Builder getLockedBuilder() { onChanged(); return getLockedFieldBuilder().getBuilder(); } /** *
       * Client should backoff or cleanup the lock then retry.
       * 
* * .kvrpcpb.LockInfo locked = 1; */ public org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder getLockedOrBuilder() { if (lockedBuilder_ != null) { return lockedBuilder_.getMessageOrBuilder(); } else { return locked_ == null ? org.tikv.kvproto.Kvrpcpb.LockInfo.getDefaultInstance() : locked_; } } /** *
       * Client should backoff or cleanup the lock then retry.
       * 
* * .kvrpcpb.LockInfo locked = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder> getLockedFieldBuilder() { if (lockedBuilder_ == null) { lockedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LockInfo, org.tikv.kvproto.Kvrpcpb.LockInfo.Builder, org.tikv.kvproto.Kvrpcpb.LockInfoOrBuilder>( getLocked(), getParentForChildren(), isClean()); locked_ = null; } return lockedBuilder_; } private java.lang.Object retryable_ = ""; /** *
       * Client may restart the txn. e.g write conflict.
       * 
* * string retryable = 2; */ public java.lang.String getRetryable() { java.lang.Object ref = retryable_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); retryable_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Client may restart the txn. e.g write conflict.
       * 
* * string retryable = 2; */ public com.google.protobuf.ByteString getRetryableBytes() { java.lang.Object ref = retryable_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retryable_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Client may restart the txn. e.g write conflict.
       * 
* * string retryable = 2; */ public Builder setRetryable( java.lang.String value) { if (value == null) { throw new NullPointerException(); } retryable_ = value; onChanged(); return this; } /** *
       * Client may restart the txn. e.g write conflict.
       * 
* * string retryable = 2; */ public Builder clearRetryable() { retryable_ = getDefaultInstance().getRetryable(); onChanged(); return this; } /** *
       * Client may restart the txn. e.g write conflict.
       * 
* * string retryable = 2; */ public Builder setRetryableBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); retryable_ = value; onChanged(); return this; } private java.lang.Object abort_ = ""; /** *
       * Client should abort the txn.
       * 
* * string abort = 3; */ public java.lang.String getAbort() { java.lang.Object ref = abort_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); abort_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Client should abort the txn.
       * 
* * string abort = 3; */ public com.google.protobuf.ByteString getAbortBytes() { java.lang.Object ref = abort_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); abort_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Client should abort the txn.
       * 
* * string abort = 3; */ public Builder setAbort( java.lang.String value) { if (value == null) { throw new NullPointerException(); } abort_ = value; onChanged(); return this; } /** *
       * Client should abort the txn.
       * 
* * string abort = 3; */ public Builder clearAbort() { abort_ = getDefaultInstance().getAbort(); onChanged(); return this; } /** *
       * Client should abort the txn.
       * 
* * string abort = 3; */ public Builder setAbortBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); abort_ = value; onChanged(); return this; } private org.tikv.kvproto.Kvrpcpb.WriteConflict conflict_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.WriteConflict, org.tikv.kvproto.Kvrpcpb.WriteConflict.Builder, org.tikv.kvproto.Kvrpcpb.WriteConflictOrBuilder> conflictBuilder_; /** *
       * Write conflict is moved from retryable to here.
       * 
* * .kvrpcpb.WriteConflict conflict = 4; */ public boolean hasConflict() { return conflictBuilder_ != null || conflict_ != null; } /** *
       * Write conflict is moved from retryable to here.
       * 
* * .kvrpcpb.WriteConflict conflict = 4; */ public org.tikv.kvproto.Kvrpcpb.WriteConflict getConflict() { if (conflictBuilder_ == null) { return conflict_ == null ? org.tikv.kvproto.Kvrpcpb.WriteConflict.getDefaultInstance() : conflict_; } else { return conflictBuilder_.getMessage(); } } /** *
       * Write conflict is moved from retryable to here.
       * 
* * .kvrpcpb.WriteConflict conflict = 4; */ public Builder setConflict(org.tikv.kvproto.Kvrpcpb.WriteConflict value) { if (conflictBuilder_ == null) { if (value == null) { throw new NullPointerException(); } conflict_ = value; onChanged(); } else { conflictBuilder_.setMessage(value); } return this; } /** *
       * Write conflict is moved from retryable to here.
       * 
* * .kvrpcpb.WriteConflict conflict = 4; */ public Builder setConflict( org.tikv.kvproto.Kvrpcpb.WriteConflict.Builder builderForValue) { if (conflictBuilder_ == null) { conflict_ = builderForValue.build(); onChanged(); } else { conflictBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Write conflict is moved from retryable to here.
       * 
* * .kvrpcpb.WriteConflict conflict = 4; */ public Builder mergeConflict(org.tikv.kvproto.Kvrpcpb.WriteConflict value) { if (conflictBuilder_ == null) { if (conflict_ != null) { conflict_ = org.tikv.kvproto.Kvrpcpb.WriteConflict.newBuilder(conflict_).mergeFrom(value).buildPartial(); } else { conflict_ = value; } onChanged(); } else { conflictBuilder_.mergeFrom(value); } return this; } /** *
       * Write conflict is moved from retryable to here.
       * 
* * .kvrpcpb.WriteConflict conflict = 4; */ public Builder clearConflict() { if (conflictBuilder_ == null) { conflict_ = null; onChanged(); } else { conflict_ = null; conflictBuilder_ = null; } return this; } /** *
       * Write conflict is moved from retryable to here.
       * 
* * .kvrpcpb.WriteConflict conflict = 4; */ public org.tikv.kvproto.Kvrpcpb.WriteConflict.Builder getConflictBuilder() { onChanged(); return getConflictFieldBuilder().getBuilder(); } /** *
       * Write conflict is moved from retryable to here.
       * 
* * .kvrpcpb.WriteConflict conflict = 4; */ public org.tikv.kvproto.Kvrpcpb.WriteConflictOrBuilder getConflictOrBuilder() { if (conflictBuilder_ != null) { return conflictBuilder_.getMessageOrBuilder(); } else { return conflict_ == null ? org.tikv.kvproto.Kvrpcpb.WriteConflict.getDefaultInstance() : conflict_; } } /** *
       * Write conflict is moved from retryable to here.
       * 
* * .kvrpcpb.WriteConflict conflict = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.WriteConflict, org.tikv.kvproto.Kvrpcpb.WriteConflict.Builder, org.tikv.kvproto.Kvrpcpb.WriteConflictOrBuilder> getConflictFieldBuilder() { if (conflictBuilder_ == null) { conflictBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.WriteConflict, org.tikv.kvproto.Kvrpcpb.WriteConflict.Builder, org.tikv.kvproto.Kvrpcpb.WriteConflictOrBuilder>( getConflict(), getParentForChildren(), isClean()); conflict_ = null; } return conflictBuilder_; } private org.tikv.kvproto.Kvrpcpb.AlreadyExist alreadyExist_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.AlreadyExist, org.tikv.kvproto.Kvrpcpb.AlreadyExist.Builder, org.tikv.kvproto.Kvrpcpb.AlreadyExistOrBuilder> alreadyExistBuilder_; /** *
       * Key already exists
       * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ public boolean hasAlreadyExist() { return alreadyExistBuilder_ != null || alreadyExist_ != null; } /** *
       * Key already exists
       * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ public org.tikv.kvproto.Kvrpcpb.AlreadyExist getAlreadyExist() { if (alreadyExistBuilder_ == null) { return alreadyExist_ == null ? org.tikv.kvproto.Kvrpcpb.AlreadyExist.getDefaultInstance() : alreadyExist_; } else { return alreadyExistBuilder_.getMessage(); } } /** *
       * Key already exists
       * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ public Builder setAlreadyExist(org.tikv.kvproto.Kvrpcpb.AlreadyExist value) { if (alreadyExistBuilder_ == null) { if (value == null) { throw new NullPointerException(); } alreadyExist_ = value; onChanged(); } else { alreadyExistBuilder_.setMessage(value); } return this; } /** *
       * Key already exists
       * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ public Builder setAlreadyExist( org.tikv.kvproto.Kvrpcpb.AlreadyExist.Builder builderForValue) { if (alreadyExistBuilder_ == null) { alreadyExist_ = builderForValue.build(); onChanged(); } else { alreadyExistBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Key already exists
       * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ public Builder mergeAlreadyExist(org.tikv.kvproto.Kvrpcpb.AlreadyExist value) { if (alreadyExistBuilder_ == null) { if (alreadyExist_ != null) { alreadyExist_ = org.tikv.kvproto.Kvrpcpb.AlreadyExist.newBuilder(alreadyExist_).mergeFrom(value).buildPartial(); } else { alreadyExist_ = value; } onChanged(); } else { alreadyExistBuilder_.mergeFrom(value); } return this; } /** *
       * Key already exists
       * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ public Builder clearAlreadyExist() { if (alreadyExistBuilder_ == null) { alreadyExist_ = null; onChanged(); } else { alreadyExist_ = null; alreadyExistBuilder_ = null; } return this; } /** *
       * Key already exists
       * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ public org.tikv.kvproto.Kvrpcpb.AlreadyExist.Builder getAlreadyExistBuilder() { onChanged(); return getAlreadyExistFieldBuilder().getBuilder(); } /** *
       * Key already exists
       * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ public org.tikv.kvproto.Kvrpcpb.AlreadyExistOrBuilder getAlreadyExistOrBuilder() { if (alreadyExistBuilder_ != null) { return alreadyExistBuilder_.getMessageOrBuilder(); } else { return alreadyExist_ == null ? org.tikv.kvproto.Kvrpcpb.AlreadyExist.getDefaultInstance() : alreadyExist_; } } /** *
       * Key already exists
       * 
* * .kvrpcpb.AlreadyExist already_exist = 5; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.AlreadyExist, org.tikv.kvproto.Kvrpcpb.AlreadyExist.Builder, org.tikv.kvproto.Kvrpcpb.AlreadyExistOrBuilder> getAlreadyExistFieldBuilder() { if (alreadyExistBuilder_ == null) { alreadyExistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.AlreadyExist, org.tikv.kvproto.Kvrpcpb.AlreadyExist.Builder, org.tikv.kvproto.Kvrpcpb.AlreadyExistOrBuilder>( getAlreadyExist(), getParentForChildren(), isClean()); alreadyExist_ = null; } return alreadyExistBuilder_; } private org.tikv.kvproto.Kvrpcpb.Deadlock deadlock_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Deadlock, org.tikv.kvproto.Kvrpcpb.Deadlock.Builder, org.tikv.kvproto.Kvrpcpb.DeadlockOrBuilder> deadlockBuilder_; /** *
       * Deadlock is used in pessimistic transaction for single statement rollback.
       * 
* * .kvrpcpb.Deadlock deadlock = 6; */ public boolean hasDeadlock() { return deadlockBuilder_ != null || deadlock_ != null; } /** *
       * Deadlock is used in pessimistic transaction for single statement rollback.
       * 
* * .kvrpcpb.Deadlock deadlock = 6; */ public org.tikv.kvproto.Kvrpcpb.Deadlock getDeadlock() { if (deadlockBuilder_ == null) { return deadlock_ == null ? org.tikv.kvproto.Kvrpcpb.Deadlock.getDefaultInstance() : deadlock_; } else { return deadlockBuilder_.getMessage(); } } /** *
       * Deadlock is used in pessimistic transaction for single statement rollback.
       * 
* * .kvrpcpb.Deadlock deadlock = 6; */ public Builder setDeadlock(org.tikv.kvproto.Kvrpcpb.Deadlock value) { if (deadlockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deadlock_ = value; onChanged(); } else { deadlockBuilder_.setMessage(value); } return this; } /** *
       * Deadlock is used in pessimistic transaction for single statement rollback.
       * 
* * .kvrpcpb.Deadlock deadlock = 6; */ public Builder setDeadlock( org.tikv.kvproto.Kvrpcpb.Deadlock.Builder builderForValue) { if (deadlockBuilder_ == null) { deadlock_ = builderForValue.build(); onChanged(); } else { deadlockBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Deadlock is used in pessimistic transaction for single statement rollback.
       * 
* * .kvrpcpb.Deadlock deadlock = 6; */ public Builder mergeDeadlock(org.tikv.kvproto.Kvrpcpb.Deadlock value) { if (deadlockBuilder_ == null) { if (deadlock_ != null) { deadlock_ = org.tikv.kvproto.Kvrpcpb.Deadlock.newBuilder(deadlock_).mergeFrom(value).buildPartial(); } else { deadlock_ = value; } onChanged(); } else { deadlockBuilder_.mergeFrom(value); } return this; } /** *
       * Deadlock is used in pessimistic transaction for single statement rollback.
       * 
* * .kvrpcpb.Deadlock deadlock = 6; */ public Builder clearDeadlock() { if (deadlockBuilder_ == null) { deadlock_ = null; onChanged(); } else { deadlock_ = null; deadlockBuilder_ = null; } return this; } /** *
       * Deadlock is used in pessimistic transaction for single statement rollback.
       * 
* * .kvrpcpb.Deadlock deadlock = 6; */ public org.tikv.kvproto.Kvrpcpb.Deadlock.Builder getDeadlockBuilder() { onChanged(); return getDeadlockFieldBuilder().getBuilder(); } /** *
       * Deadlock is used in pessimistic transaction for single statement rollback.
       * 
* * .kvrpcpb.Deadlock deadlock = 6; */ public org.tikv.kvproto.Kvrpcpb.DeadlockOrBuilder getDeadlockOrBuilder() { if (deadlockBuilder_ != null) { return deadlockBuilder_.getMessageOrBuilder(); } else { return deadlock_ == null ? org.tikv.kvproto.Kvrpcpb.Deadlock.getDefaultInstance() : deadlock_; } } /** *
       * Deadlock is used in pessimistic transaction for single statement rollback.
       * 
* * .kvrpcpb.Deadlock deadlock = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Deadlock, org.tikv.kvproto.Kvrpcpb.Deadlock.Builder, org.tikv.kvproto.Kvrpcpb.DeadlockOrBuilder> getDeadlockFieldBuilder() { if (deadlockBuilder_ == null) { deadlockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Deadlock, org.tikv.kvproto.Kvrpcpb.Deadlock.Builder, org.tikv.kvproto.Kvrpcpb.DeadlockOrBuilder>( getDeadlock(), getParentForChildren(), isClean()); deadlock_ = null; } return deadlockBuilder_; } private org.tikv.kvproto.Kvrpcpb.CommitTsExpired commitTsExpired_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitTsExpired, org.tikv.kvproto.Kvrpcpb.CommitTsExpired.Builder, org.tikv.kvproto.Kvrpcpb.CommitTsExpiredOrBuilder> commitTsExpiredBuilder_; /** *
       * Commit ts is earlier than min commit ts of a transaction.
       * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ public boolean hasCommitTsExpired() { return commitTsExpiredBuilder_ != null || commitTsExpired_ != null; } /** *
       * Commit ts is earlier than min commit ts of a transaction.
       * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ public org.tikv.kvproto.Kvrpcpb.CommitTsExpired getCommitTsExpired() { if (commitTsExpiredBuilder_ == null) { return commitTsExpired_ == null ? org.tikv.kvproto.Kvrpcpb.CommitTsExpired.getDefaultInstance() : commitTsExpired_; } else { return commitTsExpiredBuilder_.getMessage(); } } /** *
       * Commit ts is earlier than min commit ts of a transaction.
       * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ public Builder setCommitTsExpired(org.tikv.kvproto.Kvrpcpb.CommitTsExpired value) { if (commitTsExpiredBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commitTsExpired_ = value; onChanged(); } else { commitTsExpiredBuilder_.setMessage(value); } return this; } /** *
       * Commit ts is earlier than min commit ts of a transaction.
       * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ public Builder setCommitTsExpired( org.tikv.kvproto.Kvrpcpb.CommitTsExpired.Builder builderForValue) { if (commitTsExpiredBuilder_ == null) { commitTsExpired_ = builderForValue.build(); onChanged(); } else { commitTsExpiredBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Commit ts is earlier than min commit ts of a transaction.
       * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ public Builder mergeCommitTsExpired(org.tikv.kvproto.Kvrpcpb.CommitTsExpired value) { if (commitTsExpiredBuilder_ == null) { if (commitTsExpired_ != null) { commitTsExpired_ = org.tikv.kvproto.Kvrpcpb.CommitTsExpired.newBuilder(commitTsExpired_).mergeFrom(value).buildPartial(); } else { commitTsExpired_ = value; } onChanged(); } else { commitTsExpiredBuilder_.mergeFrom(value); } return this; } /** *
       * Commit ts is earlier than min commit ts of a transaction.
       * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ public Builder clearCommitTsExpired() { if (commitTsExpiredBuilder_ == null) { commitTsExpired_ = null; onChanged(); } else { commitTsExpired_ = null; commitTsExpiredBuilder_ = null; } return this; } /** *
       * Commit ts is earlier than min commit ts of a transaction.
       * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ public org.tikv.kvproto.Kvrpcpb.CommitTsExpired.Builder getCommitTsExpiredBuilder() { onChanged(); return getCommitTsExpiredFieldBuilder().getBuilder(); } /** *
       * Commit ts is earlier than min commit ts of a transaction.
       * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ public org.tikv.kvproto.Kvrpcpb.CommitTsExpiredOrBuilder getCommitTsExpiredOrBuilder() { if (commitTsExpiredBuilder_ != null) { return commitTsExpiredBuilder_.getMessageOrBuilder(); } else { return commitTsExpired_ == null ? org.tikv.kvproto.Kvrpcpb.CommitTsExpired.getDefaultInstance() : commitTsExpired_; } } /** *
       * Commit ts is earlier than min commit ts of a transaction.
       * 
* * .kvrpcpb.CommitTsExpired commit_ts_expired = 7; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitTsExpired, org.tikv.kvproto.Kvrpcpb.CommitTsExpired.Builder, org.tikv.kvproto.Kvrpcpb.CommitTsExpiredOrBuilder> getCommitTsExpiredFieldBuilder() { if (commitTsExpiredBuilder_ == null) { commitTsExpiredBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitTsExpired, org.tikv.kvproto.Kvrpcpb.CommitTsExpired.Builder, org.tikv.kvproto.Kvrpcpb.CommitTsExpiredOrBuilder>( getCommitTsExpired(), getParentForChildren(), isClean()); commitTsExpired_ = null; } return commitTsExpiredBuilder_; } private org.tikv.kvproto.Kvrpcpb.TxnNotFound txnNotFound_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnNotFound, org.tikv.kvproto.Kvrpcpb.TxnNotFound.Builder, org.tikv.kvproto.Kvrpcpb.TxnNotFoundOrBuilder> txnNotFoundBuilder_; /** *
       * Txn not found when checking txn status.
       * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ public boolean hasTxnNotFound() { return txnNotFoundBuilder_ != null || txnNotFound_ != null; } /** *
       * Txn not found when checking txn status.
       * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ public org.tikv.kvproto.Kvrpcpb.TxnNotFound getTxnNotFound() { if (txnNotFoundBuilder_ == null) { return txnNotFound_ == null ? org.tikv.kvproto.Kvrpcpb.TxnNotFound.getDefaultInstance() : txnNotFound_; } else { return txnNotFoundBuilder_.getMessage(); } } /** *
       * Txn not found when checking txn status.
       * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ public Builder setTxnNotFound(org.tikv.kvproto.Kvrpcpb.TxnNotFound value) { if (txnNotFoundBuilder_ == null) { if (value == null) { throw new NullPointerException(); } txnNotFound_ = value; onChanged(); } else { txnNotFoundBuilder_.setMessage(value); } return this; } /** *
       * Txn not found when checking txn status.
       * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ public Builder setTxnNotFound( org.tikv.kvproto.Kvrpcpb.TxnNotFound.Builder builderForValue) { if (txnNotFoundBuilder_ == null) { txnNotFound_ = builderForValue.build(); onChanged(); } else { txnNotFoundBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Txn not found when checking txn status.
       * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ public Builder mergeTxnNotFound(org.tikv.kvproto.Kvrpcpb.TxnNotFound value) { if (txnNotFoundBuilder_ == null) { if (txnNotFound_ != null) { txnNotFound_ = org.tikv.kvproto.Kvrpcpb.TxnNotFound.newBuilder(txnNotFound_).mergeFrom(value).buildPartial(); } else { txnNotFound_ = value; } onChanged(); } else { txnNotFoundBuilder_.mergeFrom(value); } return this; } /** *
       * Txn not found when checking txn status.
       * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ public Builder clearTxnNotFound() { if (txnNotFoundBuilder_ == null) { txnNotFound_ = null; onChanged(); } else { txnNotFound_ = null; txnNotFoundBuilder_ = null; } return this; } /** *
       * Txn not found when checking txn status.
       * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ public org.tikv.kvproto.Kvrpcpb.TxnNotFound.Builder getTxnNotFoundBuilder() { onChanged(); return getTxnNotFoundFieldBuilder().getBuilder(); } /** *
       * Txn not found when checking txn status.
       * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ public org.tikv.kvproto.Kvrpcpb.TxnNotFoundOrBuilder getTxnNotFoundOrBuilder() { if (txnNotFoundBuilder_ != null) { return txnNotFoundBuilder_.getMessageOrBuilder(); } else { return txnNotFound_ == null ? org.tikv.kvproto.Kvrpcpb.TxnNotFound.getDefaultInstance() : txnNotFound_; } } /** *
       * Txn not found when checking txn status.
       * 
* * .kvrpcpb.TxnNotFound txn_not_found = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnNotFound, org.tikv.kvproto.Kvrpcpb.TxnNotFound.Builder, org.tikv.kvproto.Kvrpcpb.TxnNotFoundOrBuilder> getTxnNotFoundFieldBuilder() { if (txnNotFoundBuilder_ == null) { txnNotFoundBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TxnNotFound, org.tikv.kvproto.Kvrpcpb.TxnNotFound.Builder, org.tikv.kvproto.Kvrpcpb.TxnNotFoundOrBuilder>( getTxnNotFound(), getParentForChildren(), isClean()); txnNotFound_ = null; } return txnNotFoundBuilder_; } private org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge commitTsTooLarge_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge, org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.Builder, org.tikv.kvproto.Kvrpcpb.CommitTsTooLargeOrBuilder> commitTsTooLargeBuilder_; /** *
       * Calculated commit TS exceeds the limit given by the user.
       * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ public boolean hasCommitTsTooLarge() { return commitTsTooLargeBuilder_ != null || commitTsTooLarge_ != null; } /** *
       * Calculated commit TS exceeds the limit given by the user.
       * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ public org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge getCommitTsTooLarge() { if (commitTsTooLargeBuilder_ == null) { return commitTsTooLarge_ == null ? org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.getDefaultInstance() : commitTsTooLarge_; } else { return commitTsTooLargeBuilder_.getMessage(); } } /** *
       * Calculated commit TS exceeds the limit given by the user.
       * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ public Builder setCommitTsTooLarge(org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge value) { if (commitTsTooLargeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } commitTsTooLarge_ = value; onChanged(); } else { commitTsTooLargeBuilder_.setMessage(value); } return this; } /** *
       * Calculated commit TS exceeds the limit given by the user.
       * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ public Builder setCommitTsTooLarge( org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.Builder builderForValue) { if (commitTsTooLargeBuilder_ == null) { commitTsTooLarge_ = builderForValue.build(); onChanged(); } else { commitTsTooLargeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Calculated commit TS exceeds the limit given by the user.
       * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ public Builder mergeCommitTsTooLarge(org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge value) { if (commitTsTooLargeBuilder_ == null) { if (commitTsTooLarge_ != null) { commitTsTooLarge_ = org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.newBuilder(commitTsTooLarge_).mergeFrom(value).buildPartial(); } else { commitTsTooLarge_ = value; } onChanged(); } else { commitTsTooLargeBuilder_.mergeFrom(value); } return this; } /** *
       * Calculated commit TS exceeds the limit given by the user.
       * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ public Builder clearCommitTsTooLarge() { if (commitTsTooLargeBuilder_ == null) { commitTsTooLarge_ = null; onChanged(); } else { commitTsTooLarge_ = null; commitTsTooLargeBuilder_ = null; } return this; } /** *
       * Calculated commit TS exceeds the limit given by the user.
       * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ public org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.Builder getCommitTsTooLargeBuilder() { onChanged(); return getCommitTsTooLargeFieldBuilder().getBuilder(); } /** *
       * Calculated commit TS exceeds the limit given by the user.
       * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ public org.tikv.kvproto.Kvrpcpb.CommitTsTooLargeOrBuilder getCommitTsTooLargeOrBuilder() { if (commitTsTooLargeBuilder_ != null) { return commitTsTooLargeBuilder_.getMessageOrBuilder(); } else { return commitTsTooLarge_ == null ? org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.getDefaultInstance() : commitTsTooLarge_; } } /** *
       * Calculated commit TS exceeds the limit given by the user.
       * 
* * .kvrpcpb.CommitTsTooLarge commit_ts_too_large = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge, org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.Builder, org.tikv.kvproto.Kvrpcpb.CommitTsTooLargeOrBuilder> getCommitTsTooLargeFieldBuilder() { if (commitTsTooLargeBuilder_ == null) { commitTsTooLargeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge, org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.Builder, org.tikv.kvproto.Kvrpcpb.CommitTsTooLargeOrBuilder>( getCommitTsTooLarge(), getParentForChildren(), isClean()); commitTsTooLarge_ = null; } return commitTsTooLargeBuilder_; } 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:kvrpcpb.KeyError) } // @@protoc_insertion_point(class_scope:kvrpcpb.KeyError) private static final org.tikv.kvproto.Kvrpcpb.KeyError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.KeyError(); } public static org.tikv.kvproto.Kvrpcpb.KeyError getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KeyError parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyError(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.Kvrpcpb.KeyError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WriteConflictOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.WriteConflict) com.google.protobuf.MessageOrBuilder { /** * uint64 start_ts = 1; */ long getStartTs(); /** * uint64 conflict_ts = 2; */ long getConflictTs(); /** * bytes key = 3; */ com.google.protobuf.ByteString getKey(); /** * bytes primary = 4; */ com.google.protobuf.ByteString getPrimary(); /** * uint64 conflict_commit_ts = 5; */ long getConflictCommitTs(); } /** * Protobuf type {@code kvrpcpb.WriteConflict} */ public static final class WriteConflict extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.WriteConflict) WriteConflictOrBuilder { private static final long serialVersionUID = 0L; // Use WriteConflict.newBuilder() to construct. private WriteConflict(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WriteConflict() { startTs_ = 0L; conflictTs_ = 0L; key_ = com.google.protobuf.ByteString.EMPTY; primary_ = com.google.protobuf.ByteString.EMPTY; conflictCommitTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WriteConflict( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { startTs_ = input.readUInt64(); break; } case 16: { conflictTs_ = input.readUInt64(); break; } case 26: { key_ = input.readBytes(); break; } case 34: { primary_ = input.readBytes(); break; } case 40: { conflictCommitTs_ = 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.Kvrpcpb.internal_static_kvrpcpb_WriteConflict_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_WriteConflict_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.WriteConflict.class, org.tikv.kvproto.Kvrpcpb.WriteConflict.Builder.class); } public static final int START_TS_FIELD_NUMBER = 1; private long startTs_; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } public static final int CONFLICT_TS_FIELD_NUMBER = 2; private long conflictTs_; /** * uint64 conflict_ts = 2; */ public long getConflictTs() { return conflictTs_; } public static final int KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString key_; /** * bytes key = 3; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int PRIMARY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString primary_; /** * bytes primary = 4; */ public com.google.protobuf.ByteString getPrimary() { return primary_; } public static final int CONFLICT_COMMIT_TS_FIELD_NUMBER = 5; private long conflictCommitTs_; /** * uint64 conflict_commit_ts = 5; */ public long getConflictCommitTs() { return conflictCommitTs_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTs_ != 0L) { output.writeUInt64(1, startTs_); } if (conflictTs_ != 0L) { output.writeUInt64(2, conflictTs_); } if (!key_.isEmpty()) { output.writeBytes(3, key_); } if (!primary_.isEmpty()) { output.writeBytes(4, primary_); } if (conflictCommitTs_ != 0L) { output.writeUInt64(5, conflictCommitTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startTs_); } if (conflictTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, conflictTs_); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, key_); } if (!primary_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, primary_); } if (conflictCommitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, conflictCommitTs_); } 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.Kvrpcpb.WriteConflict)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.WriteConflict other = (org.tikv.kvproto.Kvrpcpb.WriteConflict) obj; boolean result = true; result = result && (getStartTs() == other.getStartTs()); result = result && (getConflictTs() == other.getConflictTs()); result = result && getKey() .equals(other.getKey()); result = result && getPrimary() .equals(other.getPrimary()); result = result && (getConflictCommitTs() == other.getConflictCommitTs()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); hash = (37 * hash) + CONFLICT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConflictTs()); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + PRIMARY_FIELD_NUMBER; hash = (53 * hash) + getPrimary().hashCode(); hash = (37 * hash) + CONFLICT_COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConflictCommitTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.WriteConflict parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.WriteConflict 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.Kvrpcpb.WriteConflict parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.WriteConflict 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.Kvrpcpb.WriteConflict parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.WriteConflict parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.WriteConflict parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.WriteConflict 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.Kvrpcpb.WriteConflict parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.WriteConflict 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.Kvrpcpb.WriteConflict parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.WriteConflict 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.Kvrpcpb.WriteConflict prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.WriteConflict} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.WriteConflict) org.tikv.kvproto.Kvrpcpb.WriteConflictOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_WriteConflict_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_WriteConflict_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.WriteConflict.class, org.tikv.kvproto.Kvrpcpb.WriteConflict.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.WriteConflict.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); startTs_ = 0L; conflictTs_ = 0L; key_ = com.google.protobuf.ByteString.EMPTY; primary_ = com.google.protobuf.ByteString.EMPTY; conflictCommitTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_WriteConflict_descriptor; } public org.tikv.kvproto.Kvrpcpb.WriteConflict getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.WriteConflict.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.WriteConflict build() { org.tikv.kvproto.Kvrpcpb.WriteConflict result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.WriteConflict buildPartial() { org.tikv.kvproto.Kvrpcpb.WriteConflict result = new org.tikv.kvproto.Kvrpcpb.WriteConflict(this); result.startTs_ = startTs_; result.conflictTs_ = conflictTs_; result.key_ = key_; result.primary_ = primary_; result.conflictCommitTs_ = conflictCommitTs_; 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.Kvrpcpb.WriteConflict) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.WriteConflict)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.WriteConflict other) { if (other == org.tikv.kvproto.Kvrpcpb.WriteConflict.getDefaultInstance()) return this; if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (other.getConflictTs() != 0L) { setConflictTs(other.getConflictTs()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getPrimary() != com.google.protobuf.ByteString.EMPTY) { setPrimary(other.getPrimary()); } if (other.getConflictCommitTs() != 0L) { setConflictCommitTs(other.getConflictCommitTs()); } 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.Kvrpcpb.WriteConflict parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.WriteConflict) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startTs_ ; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } /** * uint64 start_ts = 1; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** * uint64 start_ts = 1; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private long conflictTs_ ; /** * uint64 conflict_ts = 2; */ public long getConflictTs() { return conflictTs_; } /** * uint64 conflict_ts = 2; */ public Builder setConflictTs(long value) { conflictTs_ = value; onChanged(); return this; } /** * uint64 conflict_ts = 2; */ public Builder clearConflictTs() { conflictTs_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 3; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 3; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 3; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString primary_ = com.google.protobuf.ByteString.EMPTY; /** * bytes primary = 4; */ public com.google.protobuf.ByteString getPrimary() { return primary_; } /** * bytes primary = 4; */ public Builder setPrimary(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } primary_ = value; onChanged(); return this; } /** * bytes primary = 4; */ public Builder clearPrimary() { primary_ = getDefaultInstance().getPrimary(); onChanged(); return this; } private long conflictCommitTs_ ; /** * uint64 conflict_commit_ts = 5; */ public long getConflictCommitTs() { return conflictCommitTs_; } /** * uint64 conflict_commit_ts = 5; */ public Builder setConflictCommitTs(long value) { conflictCommitTs_ = value; onChanged(); return this; } /** * uint64 conflict_commit_ts = 5; */ public Builder clearConflictCommitTs() { conflictCommitTs_ = 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:kvrpcpb.WriteConflict) } // @@protoc_insertion_point(class_scope:kvrpcpb.WriteConflict) private static final org.tikv.kvproto.Kvrpcpb.WriteConflict DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.WriteConflict(); } public static org.tikv.kvproto.Kvrpcpb.WriteConflict getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public WriteConflict parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WriteConflict(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.Kvrpcpb.WriteConflict getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AlreadyExistOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.AlreadyExist) com.google.protobuf.MessageOrBuilder { /** * bytes key = 1; */ com.google.protobuf.ByteString getKey(); } /** * Protobuf type {@code kvrpcpb.AlreadyExist} */ public static final class AlreadyExist extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.AlreadyExist) AlreadyExistOrBuilder { private static final long serialVersionUID = 0L; // Use AlreadyExist.newBuilder() to construct. private AlreadyExist(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AlreadyExist() { key_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AlreadyExist( 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; } } } } 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.Kvrpcpb.internal_static_kvrpcpb_AlreadyExist_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_AlreadyExist_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.AlreadyExist.class, org.tikv.kvproto.Kvrpcpb.AlreadyExist.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString key_; /** * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } 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_); } 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_); } 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.Kvrpcpb.AlreadyExist)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.AlreadyExist other = (org.tikv.kvproto.Kvrpcpb.AlreadyExist) obj; boolean result = true; result = result && getKey() .equals(other.getKey()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.AlreadyExist parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.AlreadyExist 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.Kvrpcpb.AlreadyExist parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.AlreadyExist 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.Kvrpcpb.AlreadyExist parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.AlreadyExist parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.AlreadyExist parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.AlreadyExist 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.Kvrpcpb.AlreadyExist parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.AlreadyExist 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.Kvrpcpb.AlreadyExist parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.AlreadyExist 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.Kvrpcpb.AlreadyExist prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.AlreadyExist} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.AlreadyExist) org.tikv.kvproto.Kvrpcpb.AlreadyExistOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_AlreadyExist_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_AlreadyExist_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.AlreadyExist.class, org.tikv.kvproto.Kvrpcpb.AlreadyExist.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.AlreadyExist.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; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_AlreadyExist_descriptor; } public org.tikv.kvproto.Kvrpcpb.AlreadyExist getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.AlreadyExist.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.AlreadyExist build() { org.tikv.kvproto.Kvrpcpb.AlreadyExist result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.AlreadyExist buildPartial() { org.tikv.kvproto.Kvrpcpb.AlreadyExist result = new org.tikv.kvproto.Kvrpcpb.AlreadyExist(this); result.key_ = key_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.AlreadyExist) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.AlreadyExist)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.AlreadyExist other) { if (other == org.tikv.kvproto.Kvrpcpb.AlreadyExist.getDefaultInstance()) return this; if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.AlreadyExist parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.AlreadyExist) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 1; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 1; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 1; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } 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:kvrpcpb.AlreadyExist) } // @@protoc_insertion_point(class_scope:kvrpcpb.AlreadyExist) private static final org.tikv.kvproto.Kvrpcpb.AlreadyExist DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.AlreadyExist(); } public static org.tikv.kvproto.Kvrpcpb.AlreadyExist getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AlreadyExist parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AlreadyExist(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.Kvrpcpb.AlreadyExist getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DeadlockOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.Deadlock) com.google.protobuf.MessageOrBuilder { /** * uint64 lock_ts = 1; */ long getLockTs(); /** * bytes lock_key = 2; */ com.google.protobuf.ByteString getLockKey(); /** * uint64 deadlock_key_hash = 3; */ long getDeadlockKeyHash(); } /** * Protobuf type {@code kvrpcpb.Deadlock} */ public static final class Deadlock extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.Deadlock) DeadlockOrBuilder { private static final long serialVersionUID = 0L; // Use Deadlock.newBuilder() to construct. private Deadlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Deadlock() { lockTs_ = 0L; lockKey_ = com.google.protobuf.ByteString.EMPTY; deadlockKeyHash_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Deadlock( 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: { lockTs_ = input.readUInt64(); break; } case 18: { lockKey_ = input.readBytes(); break; } case 24: { deadlockKeyHash_ = 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.Kvrpcpb.internal_static_kvrpcpb_Deadlock_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Deadlock_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.Deadlock.class, org.tikv.kvproto.Kvrpcpb.Deadlock.Builder.class); } public static final int LOCK_TS_FIELD_NUMBER = 1; private long lockTs_; /** * uint64 lock_ts = 1; */ public long getLockTs() { return lockTs_; } public static final int LOCK_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString lockKey_; /** * bytes lock_key = 2; */ public com.google.protobuf.ByteString getLockKey() { return lockKey_; } public static final int DEADLOCK_KEY_HASH_FIELD_NUMBER = 3; private long deadlockKeyHash_; /** * uint64 deadlock_key_hash = 3; */ public long getDeadlockKeyHash() { return deadlockKeyHash_; } 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 (lockTs_ != 0L) { output.writeUInt64(1, lockTs_); } if (!lockKey_.isEmpty()) { output.writeBytes(2, lockKey_); } if (deadlockKeyHash_ != 0L) { output.writeUInt64(3, deadlockKeyHash_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (lockTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, lockTs_); } if (!lockKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, lockKey_); } if (deadlockKeyHash_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, deadlockKeyHash_); } 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.Kvrpcpb.Deadlock)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.Deadlock other = (org.tikv.kvproto.Kvrpcpb.Deadlock) obj; boolean result = true; result = result && (getLockTs() == other.getLockTs()); result = result && getLockKey() .equals(other.getLockKey()); result = result && (getDeadlockKeyHash() == other.getDeadlockKeyHash()); 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) + LOCK_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLockTs()); hash = (37 * hash) + LOCK_KEY_FIELD_NUMBER; hash = (53 * hash) + getLockKey().hashCode(); hash = (37 * hash) + DEADLOCK_KEY_HASH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDeadlockKeyHash()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.Deadlock parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.Deadlock 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.Kvrpcpb.Deadlock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.Deadlock 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.Kvrpcpb.Deadlock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.Deadlock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.Deadlock parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.Deadlock 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.Kvrpcpb.Deadlock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.Deadlock 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.Kvrpcpb.Deadlock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.Deadlock 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.Kvrpcpb.Deadlock prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.Deadlock} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.Deadlock) org.tikv.kvproto.Kvrpcpb.DeadlockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Deadlock_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Deadlock_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.Deadlock.class, org.tikv.kvproto.Kvrpcpb.Deadlock.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.Deadlock.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(); lockTs_ = 0L; lockKey_ = com.google.protobuf.ByteString.EMPTY; deadlockKeyHash_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Deadlock_descriptor; } public org.tikv.kvproto.Kvrpcpb.Deadlock getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.Deadlock.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.Deadlock build() { org.tikv.kvproto.Kvrpcpb.Deadlock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.Deadlock buildPartial() { org.tikv.kvproto.Kvrpcpb.Deadlock result = new org.tikv.kvproto.Kvrpcpb.Deadlock(this); result.lockTs_ = lockTs_; result.lockKey_ = lockKey_; result.deadlockKeyHash_ = deadlockKeyHash_; 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.Kvrpcpb.Deadlock) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.Deadlock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.Deadlock other) { if (other == org.tikv.kvproto.Kvrpcpb.Deadlock.getDefaultInstance()) return this; if (other.getLockTs() != 0L) { setLockTs(other.getLockTs()); } if (other.getLockKey() != com.google.protobuf.ByteString.EMPTY) { setLockKey(other.getLockKey()); } if (other.getDeadlockKeyHash() != 0L) { setDeadlockKeyHash(other.getDeadlockKeyHash()); } 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.Kvrpcpb.Deadlock parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.Deadlock) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long lockTs_ ; /** * uint64 lock_ts = 1; */ public long getLockTs() { return lockTs_; } /** * uint64 lock_ts = 1; */ public Builder setLockTs(long value) { lockTs_ = value; onChanged(); return this; } /** * uint64 lock_ts = 1; */ public Builder clearLockTs() { lockTs_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString lockKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes lock_key = 2; */ public com.google.protobuf.ByteString getLockKey() { return lockKey_; } /** * bytes lock_key = 2; */ public Builder setLockKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } lockKey_ = value; onChanged(); return this; } /** * bytes lock_key = 2; */ public Builder clearLockKey() { lockKey_ = getDefaultInstance().getLockKey(); onChanged(); return this; } private long deadlockKeyHash_ ; /** * uint64 deadlock_key_hash = 3; */ public long getDeadlockKeyHash() { return deadlockKeyHash_; } /** * uint64 deadlock_key_hash = 3; */ public Builder setDeadlockKeyHash(long value) { deadlockKeyHash_ = value; onChanged(); return this; } /** * uint64 deadlock_key_hash = 3; */ public Builder clearDeadlockKeyHash() { deadlockKeyHash_ = 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:kvrpcpb.Deadlock) } // @@protoc_insertion_point(class_scope:kvrpcpb.Deadlock) private static final org.tikv.kvproto.Kvrpcpb.Deadlock DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.Deadlock(); } public static org.tikv.kvproto.Kvrpcpb.Deadlock getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Deadlock parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Deadlock(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.Kvrpcpb.Deadlock getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitTsExpiredOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CommitTsExpired) com.google.protobuf.MessageOrBuilder { /** * uint64 start_ts = 1; */ long getStartTs(); /** * uint64 attempted_commit_ts = 2; */ long getAttemptedCommitTs(); /** * bytes key = 3; */ com.google.protobuf.ByteString getKey(); /** * uint64 min_commit_ts = 4; */ long getMinCommitTs(); } /** * Protobuf type {@code kvrpcpb.CommitTsExpired} */ public static final class CommitTsExpired extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CommitTsExpired) CommitTsExpiredOrBuilder { private static final long serialVersionUID = 0L; // Use CommitTsExpired.newBuilder() to construct. private CommitTsExpired(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitTsExpired() { startTs_ = 0L; attemptedCommitTs_ = 0L; key_ = com.google.protobuf.ByteString.EMPTY; minCommitTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommitTsExpired( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { startTs_ = input.readUInt64(); break; } case 16: { attemptedCommitTs_ = input.readUInt64(); break; } case 26: { key_ = input.readBytes(); break; } case 32: { minCommitTs_ = 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.Kvrpcpb.internal_static_kvrpcpb_CommitTsExpired_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitTsExpired_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CommitTsExpired.class, org.tikv.kvproto.Kvrpcpb.CommitTsExpired.Builder.class); } public static final int START_TS_FIELD_NUMBER = 1; private long startTs_; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } public static final int ATTEMPTED_COMMIT_TS_FIELD_NUMBER = 2; private long attemptedCommitTs_; /** * uint64 attempted_commit_ts = 2; */ public long getAttemptedCommitTs() { return attemptedCommitTs_; } public static final int KEY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString key_; /** * bytes key = 3; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int MIN_COMMIT_TS_FIELD_NUMBER = 4; private long minCommitTs_; /** * uint64 min_commit_ts = 4; */ public long getMinCommitTs() { return minCommitTs_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTs_ != 0L) { output.writeUInt64(1, startTs_); } if (attemptedCommitTs_ != 0L) { output.writeUInt64(2, attemptedCommitTs_); } if (!key_.isEmpty()) { output.writeBytes(3, key_); } if (minCommitTs_ != 0L) { output.writeUInt64(4, minCommitTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startTs_); } if (attemptedCommitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, attemptedCommitTs_); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, key_); } if (minCommitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, minCommitTs_); } 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.Kvrpcpb.CommitTsExpired)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CommitTsExpired other = (org.tikv.kvproto.Kvrpcpb.CommitTsExpired) obj; boolean result = true; result = result && (getStartTs() == other.getStartTs()); result = result && (getAttemptedCommitTs() == other.getAttemptedCommitTs()); result = result && getKey() .equals(other.getKey()); result = result && (getMinCommitTs() == other.getMinCommitTs()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); hash = (37 * hash) + ATTEMPTED_COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAttemptedCommitTs()); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + MIN_COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMinCommitTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CommitTsExpired parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitTsExpired 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.Kvrpcpb.CommitTsExpired parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitTsExpired 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.Kvrpcpb.CommitTsExpired parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitTsExpired parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CommitTsExpired parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitTsExpired 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.Kvrpcpb.CommitTsExpired parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitTsExpired 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.Kvrpcpb.CommitTsExpired parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitTsExpired 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.Kvrpcpb.CommitTsExpired prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.CommitTsExpired} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CommitTsExpired) org.tikv.kvproto.Kvrpcpb.CommitTsExpiredOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitTsExpired_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitTsExpired_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CommitTsExpired.class, org.tikv.kvproto.Kvrpcpb.CommitTsExpired.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CommitTsExpired.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); startTs_ = 0L; attemptedCommitTs_ = 0L; key_ = com.google.protobuf.ByteString.EMPTY; minCommitTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitTsExpired_descriptor; } public org.tikv.kvproto.Kvrpcpb.CommitTsExpired getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CommitTsExpired.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CommitTsExpired build() { org.tikv.kvproto.Kvrpcpb.CommitTsExpired result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CommitTsExpired buildPartial() { org.tikv.kvproto.Kvrpcpb.CommitTsExpired result = new org.tikv.kvproto.Kvrpcpb.CommitTsExpired(this); result.startTs_ = startTs_; result.attemptedCommitTs_ = attemptedCommitTs_; result.key_ = key_; result.minCommitTs_ = minCommitTs_; 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.Kvrpcpb.CommitTsExpired) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CommitTsExpired)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CommitTsExpired other) { if (other == org.tikv.kvproto.Kvrpcpb.CommitTsExpired.getDefaultInstance()) return this; if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (other.getAttemptedCommitTs() != 0L) { setAttemptedCommitTs(other.getAttemptedCommitTs()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getMinCommitTs() != 0L) { setMinCommitTs(other.getMinCommitTs()); } 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.Kvrpcpb.CommitTsExpired parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CommitTsExpired) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startTs_ ; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } /** * uint64 start_ts = 1; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** * uint64 start_ts = 1; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private long attemptedCommitTs_ ; /** * uint64 attempted_commit_ts = 2; */ public long getAttemptedCommitTs() { return attemptedCommitTs_; } /** * uint64 attempted_commit_ts = 2; */ public Builder setAttemptedCommitTs(long value) { attemptedCommitTs_ = value; onChanged(); return this; } /** * uint64 attempted_commit_ts = 2; */ public Builder clearAttemptedCommitTs() { attemptedCommitTs_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 3; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 3; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 3; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private long minCommitTs_ ; /** * uint64 min_commit_ts = 4; */ public long getMinCommitTs() { return minCommitTs_; } /** * uint64 min_commit_ts = 4; */ public Builder setMinCommitTs(long value) { minCommitTs_ = value; onChanged(); return this; } /** * uint64 min_commit_ts = 4; */ public Builder clearMinCommitTs() { minCommitTs_ = 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:kvrpcpb.CommitTsExpired) } // @@protoc_insertion_point(class_scope:kvrpcpb.CommitTsExpired) private static final org.tikv.kvproto.Kvrpcpb.CommitTsExpired DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CommitTsExpired(); } public static org.tikv.kvproto.Kvrpcpb.CommitTsExpired getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CommitTsExpired parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitTsExpired(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.Kvrpcpb.CommitTsExpired getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TxnNotFoundOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.TxnNotFound) com.google.protobuf.MessageOrBuilder { /** * uint64 start_ts = 1; */ long getStartTs(); /** * bytes primary_key = 2; */ com.google.protobuf.ByteString getPrimaryKey(); } /** * Protobuf type {@code kvrpcpb.TxnNotFound} */ public static final class TxnNotFound extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.TxnNotFound) TxnNotFoundOrBuilder { private static final long serialVersionUID = 0L; // Use TxnNotFound.newBuilder() to construct. private TxnNotFound(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TxnNotFound() { startTs_ = 0L; primaryKey_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TxnNotFound( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { startTs_ = input.readUInt64(); break; } case 18: { primaryKey_ = 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.Kvrpcpb.internal_static_kvrpcpb_TxnNotFound_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnNotFound_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.TxnNotFound.class, org.tikv.kvproto.Kvrpcpb.TxnNotFound.Builder.class); } public static final int START_TS_FIELD_NUMBER = 1; private long startTs_; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } public static final int PRIMARY_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString primaryKey_; /** * bytes primary_key = 2; */ public com.google.protobuf.ByteString getPrimaryKey() { return primaryKey_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTs_ != 0L) { output.writeUInt64(1, startTs_); } if (!primaryKey_.isEmpty()) { output.writeBytes(2, primaryKey_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startTs_); } if (!primaryKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, primaryKey_); } 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.Kvrpcpb.TxnNotFound)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.TxnNotFound other = (org.tikv.kvproto.Kvrpcpb.TxnNotFound) obj; boolean result = true; result = result && (getStartTs() == other.getStartTs()); result = result && getPrimaryKey() .equals(other.getPrimaryKey()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; hash = (53 * hash) + getPrimaryKey().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.TxnNotFound parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnNotFound 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.Kvrpcpb.TxnNotFound parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnNotFound 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.Kvrpcpb.TxnNotFound parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnNotFound parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.TxnNotFound parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnNotFound 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.Kvrpcpb.TxnNotFound parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnNotFound 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.Kvrpcpb.TxnNotFound parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnNotFound 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.Kvrpcpb.TxnNotFound prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.TxnNotFound} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.TxnNotFound) org.tikv.kvproto.Kvrpcpb.TxnNotFoundOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnNotFound_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnNotFound_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.TxnNotFound.class, org.tikv.kvproto.Kvrpcpb.TxnNotFound.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.TxnNotFound.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); startTs_ = 0L; primaryKey_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnNotFound_descriptor; } public org.tikv.kvproto.Kvrpcpb.TxnNotFound getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.TxnNotFound.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.TxnNotFound build() { org.tikv.kvproto.Kvrpcpb.TxnNotFound result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.TxnNotFound buildPartial() { org.tikv.kvproto.Kvrpcpb.TxnNotFound result = new org.tikv.kvproto.Kvrpcpb.TxnNotFound(this); result.startTs_ = startTs_; result.primaryKey_ = primaryKey_; 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.Kvrpcpb.TxnNotFound) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.TxnNotFound)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.TxnNotFound other) { if (other == org.tikv.kvproto.Kvrpcpb.TxnNotFound.getDefaultInstance()) return this; if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (other.getPrimaryKey() != com.google.protobuf.ByteString.EMPTY) { setPrimaryKey(other.getPrimaryKey()); } 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.Kvrpcpb.TxnNotFound parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.TxnNotFound) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startTs_ ; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } /** * uint64 start_ts = 1; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** * uint64 start_ts = 1; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString primaryKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes primary_key = 2; */ public com.google.protobuf.ByteString getPrimaryKey() { return primaryKey_; } /** * bytes primary_key = 2; */ public Builder setPrimaryKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } primaryKey_ = value; onChanged(); return this; } /** * bytes primary_key = 2; */ public Builder clearPrimaryKey() { primaryKey_ = getDefaultInstance().getPrimaryKey(); 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:kvrpcpb.TxnNotFound) } // @@protoc_insertion_point(class_scope:kvrpcpb.TxnNotFound) private static final org.tikv.kvproto.Kvrpcpb.TxnNotFound DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.TxnNotFound(); } public static org.tikv.kvproto.Kvrpcpb.TxnNotFound getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TxnNotFound parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TxnNotFound(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.Kvrpcpb.TxnNotFound getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CommitTsTooLargeOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CommitTsTooLarge) com.google.protobuf.MessageOrBuilder { /** *
     * The calculated commit TS.
     * 
* * uint64 commit_ts = 1; */ long getCommitTs(); } /** * Protobuf type {@code kvrpcpb.CommitTsTooLarge} */ public static final class CommitTsTooLarge extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CommitTsTooLarge) CommitTsTooLargeOrBuilder { private static final long serialVersionUID = 0L; // Use CommitTsTooLarge.newBuilder() to construct. private CommitTsTooLarge(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommitTsTooLarge() { commitTs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommitTsTooLarge( 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: { commitTs_ = 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.Kvrpcpb.internal_static_kvrpcpb_CommitTsTooLarge_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitTsTooLarge_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.class, org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.Builder.class); } public static final int COMMIT_TS_FIELD_NUMBER = 1; private long commitTs_; /** *
     * The calculated commit TS.
     * 
* * uint64 commit_ts = 1; */ public long getCommitTs() { return commitTs_; } 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 (commitTs_ != 0L) { output.writeUInt64(1, commitTs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (commitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, commitTs_); } 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.Kvrpcpb.CommitTsTooLarge)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge other = (org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge) obj; boolean result = true; result = result && (getCommitTs() == other.getCommitTs()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge 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.Kvrpcpb.CommitTsTooLarge parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge 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.Kvrpcpb.CommitTsTooLarge parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge 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.Kvrpcpb.CommitTsTooLarge parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge 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.Kvrpcpb.CommitTsTooLarge parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge 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.Kvrpcpb.CommitTsTooLarge prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.CommitTsTooLarge} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CommitTsTooLarge) org.tikv.kvproto.Kvrpcpb.CommitTsTooLargeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitTsTooLarge_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitTsTooLarge_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.class, org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.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(); commitTs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CommitTsTooLarge_descriptor; } public org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge build() { org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge buildPartial() { org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge result = new org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge(this); result.commitTs_ = commitTs_; 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.Kvrpcpb.CommitTsTooLarge) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge other) { if (other == org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge.getDefaultInstance()) return this; if (other.getCommitTs() != 0L) { setCommitTs(other.getCommitTs()); } 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.Kvrpcpb.CommitTsTooLarge parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long commitTs_ ; /** *
       * The calculated commit TS.
       * 
* * uint64 commit_ts = 1; */ public long getCommitTs() { return commitTs_; } /** *
       * The calculated commit TS.
       * 
* * uint64 commit_ts = 1; */ public Builder setCommitTs(long value) { commitTs_ = value; onChanged(); return this; } /** *
       * The calculated commit TS.
       * 
* * uint64 commit_ts = 1; */ public Builder clearCommitTs() { commitTs_ = 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:kvrpcpb.CommitTsTooLarge) } // @@protoc_insertion_point(class_scope:kvrpcpb.CommitTsTooLarge) private static final org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge(); } public static org.tikv.kvproto.Kvrpcpb.CommitTsTooLarge getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CommitTsTooLarge parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommitTsTooLarge(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.Kvrpcpb.CommitTsTooLarge getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TimeDetailOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.TimeDetail) com.google.protobuf.MessageOrBuilder { /** *
     * Off-cpu wall time elapsed in TiKV side. Usually this includes queue waiting time and
     * other kind of waitings in series.
     * 
* * int64 wait_wall_time_ms = 1; */ long getWaitWallTimeMs(); /** *
     * Off-cpu and on-cpu wall time elapsed to actually process the request payload. It does not
     * include `wait_wall_time`.
     * This field is very close to the CPU time in most cases. Some wait time spend in RocksDB
     * cannot be excluded for now, like Mutex wait time, which is included in this field, so that
     * this field is called wall time instead of CPU time.
     * 
* * int64 process_wall_time_ms = 2; */ long getProcessWallTimeMs(); /** *
     * KV read wall Time means the time used in key/value scan and get.
     * 
* * int64 kv_read_wall_time_ms = 3; */ long getKvReadWallTimeMs(); } /** * Protobuf type {@code kvrpcpb.TimeDetail} */ public static final class TimeDetail extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.TimeDetail) TimeDetailOrBuilder { private static final long serialVersionUID = 0L; // Use TimeDetail.newBuilder() to construct. private TimeDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TimeDetail() { waitWallTimeMs_ = 0L; processWallTimeMs_ = 0L; kvReadWallTimeMs_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TimeDetail( 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: { waitWallTimeMs_ = input.readInt64(); break; } case 16: { processWallTimeMs_ = input.readInt64(); break; } case 24: { kvReadWallTimeMs_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TimeDetail_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TimeDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.TimeDetail.class, org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder.class); } public static final int WAIT_WALL_TIME_MS_FIELD_NUMBER = 1; private long waitWallTimeMs_; /** *
     * Off-cpu wall time elapsed in TiKV side. Usually this includes queue waiting time and
     * other kind of waitings in series.
     * 
* * int64 wait_wall_time_ms = 1; */ public long getWaitWallTimeMs() { return waitWallTimeMs_; } public static final int PROCESS_WALL_TIME_MS_FIELD_NUMBER = 2; private long processWallTimeMs_; /** *
     * Off-cpu and on-cpu wall time elapsed to actually process the request payload. It does not
     * include `wait_wall_time`.
     * This field is very close to the CPU time in most cases. Some wait time spend in RocksDB
     * cannot be excluded for now, like Mutex wait time, which is included in this field, so that
     * this field is called wall time instead of CPU time.
     * 
* * int64 process_wall_time_ms = 2; */ public long getProcessWallTimeMs() { return processWallTimeMs_; } public static final int KV_READ_WALL_TIME_MS_FIELD_NUMBER = 3; private long kvReadWallTimeMs_; /** *
     * KV read wall Time means the time used in key/value scan and get.
     * 
* * int64 kv_read_wall_time_ms = 3; */ public long getKvReadWallTimeMs() { return kvReadWallTimeMs_; } 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 (waitWallTimeMs_ != 0L) { output.writeInt64(1, waitWallTimeMs_); } if (processWallTimeMs_ != 0L) { output.writeInt64(2, processWallTimeMs_); } if (kvReadWallTimeMs_ != 0L) { output.writeInt64(3, kvReadWallTimeMs_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (waitWallTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, waitWallTimeMs_); } if (processWallTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, processWallTimeMs_); } if (kvReadWallTimeMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, kvReadWallTimeMs_); } 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.Kvrpcpb.TimeDetail)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.TimeDetail other = (org.tikv.kvproto.Kvrpcpb.TimeDetail) obj; boolean result = true; result = result && (getWaitWallTimeMs() == other.getWaitWallTimeMs()); result = result && (getProcessWallTimeMs() == other.getProcessWallTimeMs()); result = result && (getKvReadWallTimeMs() == other.getKvReadWallTimeMs()); 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) + WAIT_WALL_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWaitWallTimeMs()); hash = (37 * hash) + PROCESS_WALL_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProcessWallTimeMs()); hash = (37 * hash) + KV_READ_WALL_TIME_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getKvReadWallTimeMs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.TimeDetail parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TimeDetail 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.Kvrpcpb.TimeDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TimeDetail 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.Kvrpcpb.TimeDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TimeDetail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.TimeDetail parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TimeDetail 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.Kvrpcpb.TimeDetail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TimeDetail 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.Kvrpcpb.TimeDetail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TimeDetail 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.Kvrpcpb.TimeDetail prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.TimeDetail} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.TimeDetail) org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TimeDetail_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TimeDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.TimeDetail.class, org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.TimeDetail.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(); waitWallTimeMs_ = 0L; processWallTimeMs_ = 0L; kvReadWallTimeMs_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TimeDetail_descriptor; } public org.tikv.kvproto.Kvrpcpb.TimeDetail getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.TimeDetail.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.TimeDetail build() { org.tikv.kvproto.Kvrpcpb.TimeDetail result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.TimeDetail buildPartial() { org.tikv.kvproto.Kvrpcpb.TimeDetail result = new org.tikv.kvproto.Kvrpcpb.TimeDetail(this); result.waitWallTimeMs_ = waitWallTimeMs_; result.processWallTimeMs_ = processWallTimeMs_; result.kvReadWallTimeMs_ = kvReadWallTimeMs_; 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.Kvrpcpb.TimeDetail) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.TimeDetail)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.TimeDetail other) { if (other == org.tikv.kvproto.Kvrpcpb.TimeDetail.getDefaultInstance()) return this; if (other.getWaitWallTimeMs() != 0L) { setWaitWallTimeMs(other.getWaitWallTimeMs()); } if (other.getProcessWallTimeMs() != 0L) { setProcessWallTimeMs(other.getProcessWallTimeMs()); } if (other.getKvReadWallTimeMs() != 0L) { setKvReadWallTimeMs(other.getKvReadWallTimeMs()); } 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.Kvrpcpb.TimeDetail parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.TimeDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long waitWallTimeMs_ ; /** *
       * Off-cpu wall time elapsed in TiKV side. Usually this includes queue waiting time and
       * other kind of waitings in series.
       * 
* * int64 wait_wall_time_ms = 1; */ public long getWaitWallTimeMs() { return waitWallTimeMs_; } /** *
       * Off-cpu wall time elapsed in TiKV side. Usually this includes queue waiting time and
       * other kind of waitings in series.
       * 
* * int64 wait_wall_time_ms = 1; */ public Builder setWaitWallTimeMs(long value) { waitWallTimeMs_ = value; onChanged(); return this; } /** *
       * Off-cpu wall time elapsed in TiKV side. Usually this includes queue waiting time and
       * other kind of waitings in series.
       * 
* * int64 wait_wall_time_ms = 1; */ public Builder clearWaitWallTimeMs() { waitWallTimeMs_ = 0L; onChanged(); return this; } private long processWallTimeMs_ ; /** *
       * Off-cpu and on-cpu wall time elapsed to actually process the request payload. It does not
       * include `wait_wall_time`.
       * This field is very close to the CPU time in most cases. Some wait time spend in RocksDB
       * cannot be excluded for now, like Mutex wait time, which is included in this field, so that
       * this field is called wall time instead of CPU time.
       * 
* * int64 process_wall_time_ms = 2; */ public long getProcessWallTimeMs() { return processWallTimeMs_; } /** *
       * Off-cpu and on-cpu wall time elapsed to actually process the request payload. It does not
       * include `wait_wall_time`.
       * This field is very close to the CPU time in most cases. Some wait time spend in RocksDB
       * cannot be excluded for now, like Mutex wait time, which is included in this field, so that
       * this field is called wall time instead of CPU time.
       * 
* * int64 process_wall_time_ms = 2; */ public Builder setProcessWallTimeMs(long value) { processWallTimeMs_ = value; onChanged(); return this; } /** *
       * Off-cpu and on-cpu wall time elapsed to actually process the request payload. It does not
       * include `wait_wall_time`.
       * This field is very close to the CPU time in most cases. Some wait time spend in RocksDB
       * cannot be excluded for now, like Mutex wait time, which is included in this field, so that
       * this field is called wall time instead of CPU time.
       * 
* * int64 process_wall_time_ms = 2; */ public Builder clearProcessWallTimeMs() { processWallTimeMs_ = 0L; onChanged(); return this; } private long kvReadWallTimeMs_ ; /** *
       * KV read wall Time means the time used in key/value scan and get.
       * 
* * int64 kv_read_wall_time_ms = 3; */ public long getKvReadWallTimeMs() { return kvReadWallTimeMs_; } /** *
       * KV read wall Time means the time used in key/value scan and get.
       * 
* * int64 kv_read_wall_time_ms = 3; */ public Builder setKvReadWallTimeMs(long value) { kvReadWallTimeMs_ = value; onChanged(); return this; } /** *
       * KV read wall Time means the time used in key/value scan and get.
       * 
* * int64 kv_read_wall_time_ms = 3; */ public Builder clearKvReadWallTimeMs() { kvReadWallTimeMs_ = 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:kvrpcpb.TimeDetail) } // @@protoc_insertion_point(class_scope:kvrpcpb.TimeDetail) private static final org.tikv.kvproto.Kvrpcpb.TimeDetail DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.TimeDetail(); } public static org.tikv.kvproto.Kvrpcpb.TimeDetail getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TimeDetail parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TimeDetail(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.Kvrpcpb.TimeDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScanInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ScanInfo) com.google.protobuf.MessageOrBuilder { /** * int64 total = 1; */ long getTotal(); /** * int64 processed = 2; */ long getProcessed(); } /** * Protobuf type {@code kvrpcpb.ScanInfo} */ public static final class ScanInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ScanInfo) ScanInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ScanInfo.newBuilder() to construct. private ScanInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScanInfo() { total_ = 0L; processed_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScanInfo( 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: { total_ = input.readInt64(); break; } case 16: { processed_ = input.readInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanInfo.class, org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder.class); } public static final int TOTAL_FIELD_NUMBER = 1; private long total_; /** * int64 total = 1; */ public long getTotal() { return total_; } public static final int PROCESSED_FIELD_NUMBER = 2; private long processed_; /** * int64 processed = 2; */ public long getProcessed() { return processed_; } 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 (total_ != 0L) { output.writeInt64(1, total_); } if (processed_ != 0L) { output.writeInt64(2, processed_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (total_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, total_); } if (processed_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, processed_); } 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.Kvrpcpb.ScanInfo)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ScanInfo other = (org.tikv.kvproto.Kvrpcpb.ScanInfo) obj; boolean result = true; result = result && (getTotal() == other.getTotal()); result = result && (getProcessed() == other.getProcessed()); 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) + TOTAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotal()); hash = (37 * hash) + PROCESSED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProcessed()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ScanInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanInfo 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.Kvrpcpb.ScanInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanInfo 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.Kvrpcpb.ScanInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ScanInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanInfo 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.Kvrpcpb.ScanInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanInfo 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.Kvrpcpb.ScanInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanInfo 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.Kvrpcpb.ScanInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.ScanInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ScanInfo) org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanInfo.class, org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ScanInfo.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(); total_ = 0L; processed_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanInfo_descriptor; } public org.tikv.kvproto.Kvrpcpb.ScanInfo getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ScanInfo.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ScanInfo build() { org.tikv.kvproto.Kvrpcpb.ScanInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ScanInfo buildPartial() { org.tikv.kvproto.Kvrpcpb.ScanInfo result = new org.tikv.kvproto.Kvrpcpb.ScanInfo(this); result.total_ = total_; result.processed_ = processed_; 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.Kvrpcpb.ScanInfo) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ScanInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ScanInfo other) { if (other == org.tikv.kvproto.Kvrpcpb.ScanInfo.getDefaultInstance()) return this; if (other.getTotal() != 0L) { setTotal(other.getTotal()); } if (other.getProcessed() != 0L) { setProcessed(other.getProcessed()); } 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.Kvrpcpb.ScanInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ScanInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long total_ ; /** * int64 total = 1; */ public long getTotal() { return total_; } /** * int64 total = 1; */ public Builder setTotal(long value) { total_ = value; onChanged(); return this; } /** * int64 total = 1; */ public Builder clearTotal() { total_ = 0L; onChanged(); return this; } private long processed_ ; /** * int64 processed = 2; */ public long getProcessed() { return processed_; } /** * int64 processed = 2; */ public Builder setProcessed(long value) { processed_ = value; onChanged(); return this; } /** * int64 processed = 2; */ public Builder clearProcessed() { processed_ = 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:kvrpcpb.ScanInfo) } // @@protoc_insertion_point(class_scope:kvrpcpb.ScanInfo) private static final org.tikv.kvproto.Kvrpcpb.ScanInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ScanInfo(); } public static org.tikv.kvproto.Kvrpcpb.ScanInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScanInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScanInfo(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.Kvrpcpb.ScanInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScanDetailOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ScanDetail) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.ScanInfo write = 1; */ boolean hasWrite(); /** * .kvrpcpb.ScanInfo write = 1; */ org.tikv.kvproto.Kvrpcpb.ScanInfo getWrite(); /** * .kvrpcpb.ScanInfo write = 1; */ org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder getWriteOrBuilder(); /** * .kvrpcpb.ScanInfo lock = 2; */ boolean hasLock(); /** * .kvrpcpb.ScanInfo lock = 2; */ org.tikv.kvproto.Kvrpcpb.ScanInfo getLock(); /** * .kvrpcpb.ScanInfo lock = 2; */ org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder getLockOrBuilder(); /** * .kvrpcpb.ScanInfo data = 3; */ boolean hasData(); /** * .kvrpcpb.ScanInfo data = 3; */ org.tikv.kvproto.Kvrpcpb.ScanInfo getData(); /** * .kvrpcpb.ScanInfo data = 3; */ org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder getDataOrBuilder(); } /** *
   * Only reserved for compatibility.
   * 
* * Protobuf type {@code kvrpcpb.ScanDetail} */ public static final class ScanDetail extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ScanDetail) ScanDetailOrBuilder { private static final long serialVersionUID = 0L; // Use ScanDetail.newBuilder() to construct. private ScanDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScanDetail() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScanDetail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder subBuilder = null; if (write_ != null) { subBuilder = write_.toBuilder(); } write_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ScanInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(write_); write_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder subBuilder = null; if (lock_ != null) { subBuilder = lock_.toBuilder(); } lock_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ScanInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lock_); lock_ = subBuilder.buildPartial(); } break; } case 26: { org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder subBuilder = null; if (data_ != null) { subBuilder = data_.toBuilder(); } data_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ScanInfo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(data_); data_ = 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.Kvrpcpb.internal_static_kvrpcpb_ScanDetail_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanDetail.class, org.tikv.kvproto.Kvrpcpb.ScanDetail.Builder.class); } public static final int WRITE_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.ScanInfo write_; /** * .kvrpcpb.ScanInfo write = 1; */ public boolean hasWrite() { return write_ != null; } /** * .kvrpcpb.ScanInfo write = 1; */ public org.tikv.kvproto.Kvrpcpb.ScanInfo getWrite() { return write_ == null ? org.tikv.kvproto.Kvrpcpb.ScanInfo.getDefaultInstance() : write_; } /** * .kvrpcpb.ScanInfo write = 1; */ public org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder getWriteOrBuilder() { return getWrite(); } public static final int LOCK_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.ScanInfo lock_; /** * .kvrpcpb.ScanInfo lock = 2; */ public boolean hasLock() { return lock_ != null; } /** * .kvrpcpb.ScanInfo lock = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanInfo getLock() { return lock_ == null ? org.tikv.kvproto.Kvrpcpb.ScanInfo.getDefaultInstance() : lock_; } /** * .kvrpcpb.ScanInfo lock = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder getLockOrBuilder() { return getLock(); } public static final int DATA_FIELD_NUMBER = 3; private org.tikv.kvproto.Kvrpcpb.ScanInfo data_; /** * .kvrpcpb.ScanInfo data = 3; */ public boolean hasData() { return data_ != null; } /** * .kvrpcpb.ScanInfo data = 3; */ public org.tikv.kvproto.Kvrpcpb.ScanInfo getData() { return data_ == null ? org.tikv.kvproto.Kvrpcpb.ScanInfo.getDefaultInstance() : data_; } /** * .kvrpcpb.ScanInfo data = 3; */ public org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder getDataOrBuilder() { return getData(); } 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 (write_ != null) { output.writeMessage(1, getWrite()); } if (lock_ != null) { output.writeMessage(2, getLock()); } if (data_ != null) { output.writeMessage(3, getData()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (write_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getWrite()); } if (lock_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLock()); } if (data_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getData()); } 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.Kvrpcpb.ScanDetail)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ScanDetail other = (org.tikv.kvproto.Kvrpcpb.ScanDetail) obj; boolean result = true; result = result && (hasWrite() == other.hasWrite()); if (hasWrite()) { result = result && getWrite() .equals(other.getWrite()); } result = result && (hasLock() == other.hasLock()); if (hasLock()) { result = result && getLock() .equals(other.getLock()); } result = result && (hasData() == other.hasData()); if (hasData()) { result = result && getData() .equals(other.getData()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasWrite()) { hash = (37 * hash) + WRITE_FIELD_NUMBER; hash = (53 * hash) + getWrite().hashCode(); } if (hasLock()) { hash = (37 * hash) + LOCK_FIELD_NUMBER; hash = (53 * hash) + getLock().hashCode(); } if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ScanDetail parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanDetail 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.Kvrpcpb.ScanDetail parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanDetail 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.Kvrpcpb.ScanDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanDetail parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ScanDetail parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanDetail 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.Kvrpcpb.ScanDetail parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanDetail 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.Kvrpcpb.ScanDetail parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanDetail 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.Kvrpcpb.ScanDetail 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; } /** *
     * Only reserved for compatibility.
     * 
* * Protobuf type {@code kvrpcpb.ScanDetail} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ScanDetail) org.tikv.kvproto.Kvrpcpb.ScanDetailOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanDetail_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanDetail_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanDetail.class, org.tikv.kvproto.Kvrpcpb.ScanDetail.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ScanDetail.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (writeBuilder_ == null) { write_ = null; } else { write_ = null; writeBuilder_ = null; } if (lockBuilder_ == null) { lock_ = null; } else { lock_ = null; lockBuilder_ = null; } if (dataBuilder_ == null) { data_ = null; } else { data_ = null; dataBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanDetail_descriptor; } public org.tikv.kvproto.Kvrpcpb.ScanDetail getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ScanDetail.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ScanDetail build() { org.tikv.kvproto.Kvrpcpb.ScanDetail result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ScanDetail buildPartial() { org.tikv.kvproto.Kvrpcpb.ScanDetail result = new org.tikv.kvproto.Kvrpcpb.ScanDetail(this); if (writeBuilder_ == null) { result.write_ = write_; } else { result.write_ = writeBuilder_.build(); } if (lockBuilder_ == null) { result.lock_ = lock_; } else { result.lock_ = lockBuilder_.build(); } if (dataBuilder_ == null) { result.data_ = data_; } else { result.data_ = dataBuilder_.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.Kvrpcpb.ScanDetail) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ScanDetail)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ScanDetail other) { if (other == org.tikv.kvproto.Kvrpcpb.ScanDetail.getDefaultInstance()) return this; if (other.hasWrite()) { mergeWrite(other.getWrite()); } if (other.hasLock()) { mergeLock(other.getLock()); } if (other.hasData()) { mergeData(other.getData()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.ScanDetail parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ScanDetail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.ScanInfo write_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanInfo, org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder, org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder> writeBuilder_; /** * .kvrpcpb.ScanInfo write = 1; */ public boolean hasWrite() { return writeBuilder_ != null || write_ != null; } /** * .kvrpcpb.ScanInfo write = 1; */ public org.tikv.kvproto.Kvrpcpb.ScanInfo getWrite() { if (writeBuilder_ == null) { return write_ == null ? org.tikv.kvproto.Kvrpcpb.ScanInfo.getDefaultInstance() : write_; } else { return writeBuilder_.getMessage(); } } /** * .kvrpcpb.ScanInfo write = 1; */ public Builder setWrite(org.tikv.kvproto.Kvrpcpb.ScanInfo value) { if (writeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } write_ = value; onChanged(); } else { writeBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.ScanInfo write = 1; */ public Builder setWrite( org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder builderForValue) { if (writeBuilder_ == null) { write_ = builderForValue.build(); onChanged(); } else { writeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.ScanInfo write = 1; */ public Builder mergeWrite(org.tikv.kvproto.Kvrpcpb.ScanInfo value) { if (writeBuilder_ == null) { if (write_ != null) { write_ = org.tikv.kvproto.Kvrpcpb.ScanInfo.newBuilder(write_).mergeFrom(value).buildPartial(); } else { write_ = value; } onChanged(); } else { writeBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.ScanInfo write = 1; */ public Builder clearWrite() { if (writeBuilder_ == null) { write_ = null; onChanged(); } else { write_ = null; writeBuilder_ = null; } return this; } /** * .kvrpcpb.ScanInfo write = 1; */ public org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder getWriteBuilder() { onChanged(); return getWriteFieldBuilder().getBuilder(); } /** * .kvrpcpb.ScanInfo write = 1; */ public org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder getWriteOrBuilder() { if (writeBuilder_ != null) { return writeBuilder_.getMessageOrBuilder(); } else { return write_ == null ? org.tikv.kvproto.Kvrpcpb.ScanInfo.getDefaultInstance() : write_; } } /** * .kvrpcpb.ScanInfo write = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanInfo, org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder, org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder> getWriteFieldBuilder() { if (writeBuilder_ == null) { writeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanInfo, org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder, org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder>( getWrite(), getParentForChildren(), isClean()); write_ = null; } return writeBuilder_; } private org.tikv.kvproto.Kvrpcpb.ScanInfo lock_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanInfo, org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder, org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder> lockBuilder_; /** * .kvrpcpb.ScanInfo lock = 2; */ public boolean hasLock() { return lockBuilder_ != null || lock_ != null; } /** * .kvrpcpb.ScanInfo lock = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanInfo getLock() { if (lockBuilder_ == null) { return lock_ == null ? org.tikv.kvproto.Kvrpcpb.ScanInfo.getDefaultInstance() : lock_; } else { return lockBuilder_.getMessage(); } } /** * .kvrpcpb.ScanInfo lock = 2; */ public Builder setLock(org.tikv.kvproto.Kvrpcpb.ScanInfo value) { if (lockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lock_ = value; onChanged(); } else { lockBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.ScanInfo lock = 2; */ public Builder setLock( org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder builderForValue) { if (lockBuilder_ == null) { lock_ = builderForValue.build(); onChanged(); } else { lockBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.ScanInfo lock = 2; */ public Builder mergeLock(org.tikv.kvproto.Kvrpcpb.ScanInfo value) { if (lockBuilder_ == null) { if (lock_ != null) { lock_ = org.tikv.kvproto.Kvrpcpb.ScanInfo.newBuilder(lock_).mergeFrom(value).buildPartial(); } else { lock_ = value; } onChanged(); } else { lockBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.ScanInfo lock = 2; */ public Builder clearLock() { if (lockBuilder_ == null) { lock_ = null; onChanged(); } else { lock_ = null; lockBuilder_ = null; } return this; } /** * .kvrpcpb.ScanInfo lock = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder getLockBuilder() { onChanged(); return getLockFieldBuilder().getBuilder(); } /** * .kvrpcpb.ScanInfo lock = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder getLockOrBuilder() { if (lockBuilder_ != null) { return lockBuilder_.getMessageOrBuilder(); } else { return lock_ == null ? org.tikv.kvproto.Kvrpcpb.ScanInfo.getDefaultInstance() : lock_; } } /** * .kvrpcpb.ScanInfo lock = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanInfo, org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder, org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder> getLockFieldBuilder() { if (lockBuilder_ == null) { lockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanInfo, org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder, org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder>( getLock(), getParentForChildren(), isClean()); lock_ = null; } return lockBuilder_; } private org.tikv.kvproto.Kvrpcpb.ScanInfo data_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanInfo, org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder, org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder> dataBuilder_; /** * .kvrpcpb.ScanInfo data = 3; */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .kvrpcpb.ScanInfo data = 3; */ public org.tikv.kvproto.Kvrpcpb.ScanInfo getData() { if (dataBuilder_ == null) { return data_ == null ? org.tikv.kvproto.Kvrpcpb.ScanInfo.getDefaultInstance() : data_; } else { return dataBuilder_.getMessage(); } } /** * .kvrpcpb.ScanInfo data = 3; */ public Builder setData(org.tikv.kvproto.Kvrpcpb.ScanInfo value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { dataBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.ScanInfo data = 3; */ public Builder setData( org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder builderForValue) { if (dataBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { dataBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.ScanInfo data = 3; */ public Builder mergeData(org.tikv.kvproto.Kvrpcpb.ScanInfo value) { if (dataBuilder_ == null) { if (data_ != null) { data_ = org.tikv.kvproto.Kvrpcpb.ScanInfo.newBuilder(data_).mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { dataBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.ScanInfo data = 3; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = null; onChanged(); } else { data_ = null; dataBuilder_ = null; } return this; } /** * .kvrpcpb.ScanInfo data = 3; */ public org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder getDataBuilder() { onChanged(); return getDataFieldBuilder().getBuilder(); } /** * .kvrpcpb.ScanInfo data = 3; */ public org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder getDataOrBuilder() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilder(); } else { return data_ == null ? org.tikv.kvproto.Kvrpcpb.ScanInfo.getDefaultInstance() : data_; } } /** * .kvrpcpb.ScanInfo data = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanInfo, org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder, org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanInfo, org.tikv.kvproto.Kvrpcpb.ScanInfo.Builder, org.tikv.kvproto.Kvrpcpb.ScanInfoOrBuilder>( getData(), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } 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:kvrpcpb.ScanDetail) } // @@protoc_insertion_point(class_scope:kvrpcpb.ScanDetail) private static final org.tikv.kvproto.Kvrpcpb.ScanDetail DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ScanDetail(); } public static org.tikv.kvproto.Kvrpcpb.ScanDetail getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScanDetail parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScanDetail(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.Kvrpcpb.ScanDetail getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ScanDetailV2OrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ScanDetailV2) com.google.protobuf.MessageOrBuilder { /** *
     * Number of user keys scanned from the storage.
     * It does not include deleted version or RocksDB tombstone keys.
     * For Coprocessor requests, it includes keys that has been filtered out by
     * Selection.
     * 
* * uint64 processed_versions = 1; */ long getProcessedVersions(); /** *
     * Approximate number of MVCC keys meet during scanning. It includes
     * deleted versions, but does not include RocksDB tombstone keys.
     * When this field is notably larger than `processed_versions`, it means
     * there are a lot of deleted MVCC keys.
     * 
* * uint64 total_versions = 2; */ long getTotalVersions(); /** *
     * Total number of deletes and single deletes skipped over during
     * iteration, i.e. how many RocksDB tombstones are skipped.
     * 
* * uint64 rocksdb_delete_skipped_count = 3; */ long getRocksdbDeleteSkippedCount(); /** *
     * Total number of internal keys skipped over during iteration.
     * See https://github.com/facebook/rocksdb/blob/9f1c84ca471d8b1ad7be9f3eebfc2c7e07dfd7a7/include/rocksdb/perf_context.h#L84 for details.
     * 
* * uint64 rocksdb_key_skipped_count = 4; */ long getRocksdbKeySkippedCount(); /** *
     * Total number of RocksDB block cache hits.
     * 
* * uint64 rocksdb_block_cache_hit_count = 5; */ long getRocksdbBlockCacheHitCount(); /** *
     * Total number of block reads (with IO).
     * 
* * uint64 rocksdb_block_read_count = 6; */ long getRocksdbBlockReadCount(); /** *
     * Total number of bytes from block reads.
     * 
* * uint64 rocksdb_block_read_byte = 7; */ long getRocksdbBlockReadByte(); } /** * Protobuf type {@code kvrpcpb.ScanDetailV2} */ public static final class ScanDetailV2 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ScanDetailV2) ScanDetailV2OrBuilder { private static final long serialVersionUID = 0L; // Use ScanDetailV2.newBuilder() to construct. private ScanDetailV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScanDetailV2() { processedVersions_ = 0L; totalVersions_ = 0L; rocksdbDeleteSkippedCount_ = 0L; rocksdbKeySkippedCount_ = 0L; rocksdbBlockCacheHitCount_ = 0L; rocksdbBlockReadCount_ = 0L; rocksdbBlockReadByte_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScanDetailV2( 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: { processedVersions_ = input.readUInt64(); break; } case 16: { totalVersions_ = input.readUInt64(); break; } case 24: { rocksdbDeleteSkippedCount_ = input.readUInt64(); break; } case 32: { rocksdbKeySkippedCount_ = input.readUInt64(); break; } case 40: { rocksdbBlockCacheHitCount_ = input.readUInt64(); break; } case 48: { rocksdbBlockReadCount_ = input.readUInt64(); break; } case 56: { rocksdbBlockReadByte_ = 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.Kvrpcpb.internal_static_kvrpcpb_ScanDetailV2_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanDetailV2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanDetailV2.class, org.tikv.kvproto.Kvrpcpb.ScanDetailV2.Builder.class); } public static final int PROCESSED_VERSIONS_FIELD_NUMBER = 1; private long processedVersions_; /** *
     * Number of user keys scanned from the storage.
     * It does not include deleted version or RocksDB tombstone keys.
     * For Coprocessor requests, it includes keys that has been filtered out by
     * Selection.
     * 
* * uint64 processed_versions = 1; */ public long getProcessedVersions() { return processedVersions_; } public static final int TOTAL_VERSIONS_FIELD_NUMBER = 2; private long totalVersions_; /** *
     * Approximate number of MVCC keys meet during scanning. It includes
     * deleted versions, but does not include RocksDB tombstone keys.
     * When this field is notably larger than `processed_versions`, it means
     * there are a lot of deleted MVCC keys.
     * 
* * uint64 total_versions = 2; */ public long getTotalVersions() { return totalVersions_; } public static final int ROCKSDB_DELETE_SKIPPED_COUNT_FIELD_NUMBER = 3; private long rocksdbDeleteSkippedCount_; /** *
     * Total number of deletes and single deletes skipped over during
     * iteration, i.e. how many RocksDB tombstones are skipped.
     * 
* * uint64 rocksdb_delete_skipped_count = 3; */ public long getRocksdbDeleteSkippedCount() { return rocksdbDeleteSkippedCount_; } public static final int ROCKSDB_KEY_SKIPPED_COUNT_FIELD_NUMBER = 4; private long rocksdbKeySkippedCount_; /** *
     * Total number of internal keys skipped over during iteration.
     * See https://github.com/facebook/rocksdb/blob/9f1c84ca471d8b1ad7be9f3eebfc2c7e07dfd7a7/include/rocksdb/perf_context.h#L84 for details.
     * 
* * uint64 rocksdb_key_skipped_count = 4; */ public long getRocksdbKeySkippedCount() { return rocksdbKeySkippedCount_; } public static final int ROCKSDB_BLOCK_CACHE_HIT_COUNT_FIELD_NUMBER = 5; private long rocksdbBlockCacheHitCount_; /** *
     * Total number of RocksDB block cache hits.
     * 
* * uint64 rocksdb_block_cache_hit_count = 5; */ public long getRocksdbBlockCacheHitCount() { return rocksdbBlockCacheHitCount_; } public static final int ROCKSDB_BLOCK_READ_COUNT_FIELD_NUMBER = 6; private long rocksdbBlockReadCount_; /** *
     * Total number of block reads (with IO).
     * 
* * uint64 rocksdb_block_read_count = 6; */ public long getRocksdbBlockReadCount() { return rocksdbBlockReadCount_; } public static final int ROCKSDB_BLOCK_READ_BYTE_FIELD_NUMBER = 7; private long rocksdbBlockReadByte_; /** *
     * Total number of bytes from block reads.
     * 
* * uint64 rocksdb_block_read_byte = 7; */ public long getRocksdbBlockReadByte() { return rocksdbBlockReadByte_; } 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 (processedVersions_ != 0L) { output.writeUInt64(1, processedVersions_); } if (totalVersions_ != 0L) { output.writeUInt64(2, totalVersions_); } if (rocksdbDeleteSkippedCount_ != 0L) { output.writeUInt64(3, rocksdbDeleteSkippedCount_); } if (rocksdbKeySkippedCount_ != 0L) { output.writeUInt64(4, rocksdbKeySkippedCount_); } if (rocksdbBlockCacheHitCount_ != 0L) { output.writeUInt64(5, rocksdbBlockCacheHitCount_); } if (rocksdbBlockReadCount_ != 0L) { output.writeUInt64(6, rocksdbBlockReadCount_); } if (rocksdbBlockReadByte_ != 0L) { output.writeUInt64(7, rocksdbBlockReadByte_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (processedVersions_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, processedVersions_); } if (totalVersions_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, totalVersions_); } if (rocksdbDeleteSkippedCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, rocksdbDeleteSkippedCount_); } if (rocksdbKeySkippedCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, rocksdbKeySkippedCount_); } if (rocksdbBlockCacheHitCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, rocksdbBlockCacheHitCount_); } if (rocksdbBlockReadCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(6, rocksdbBlockReadCount_); } if (rocksdbBlockReadByte_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, rocksdbBlockReadByte_); } 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.Kvrpcpb.ScanDetailV2)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ScanDetailV2 other = (org.tikv.kvproto.Kvrpcpb.ScanDetailV2) obj; boolean result = true; result = result && (getProcessedVersions() == other.getProcessedVersions()); result = result && (getTotalVersions() == other.getTotalVersions()); result = result && (getRocksdbDeleteSkippedCount() == other.getRocksdbDeleteSkippedCount()); result = result && (getRocksdbKeySkippedCount() == other.getRocksdbKeySkippedCount()); result = result && (getRocksdbBlockCacheHitCount() == other.getRocksdbBlockCacheHitCount()); result = result && (getRocksdbBlockReadCount() == other.getRocksdbBlockReadCount()); result = result && (getRocksdbBlockReadByte() == other.getRocksdbBlockReadByte()); 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) + PROCESSED_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getProcessedVersions()); hash = (37 * hash) + TOTAL_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTotalVersions()); hash = (37 * hash) + ROCKSDB_DELETE_SKIPPED_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRocksdbDeleteSkippedCount()); hash = (37 * hash) + ROCKSDB_KEY_SKIPPED_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRocksdbKeySkippedCount()); hash = (37 * hash) + ROCKSDB_BLOCK_CACHE_HIT_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRocksdbBlockCacheHitCount()); hash = (37 * hash) + ROCKSDB_BLOCK_READ_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRocksdbBlockReadCount()); hash = (37 * hash) + ROCKSDB_BLOCK_READ_BYTE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRocksdbBlockReadByte()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ScanDetailV2 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanDetailV2 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.Kvrpcpb.ScanDetailV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanDetailV2 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.Kvrpcpb.ScanDetailV2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ScanDetailV2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ScanDetailV2 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanDetailV2 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.Kvrpcpb.ScanDetailV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanDetailV2 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.Kvrpcpb.ScanDetailV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ScanDetailV2 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.Kvrpcpb.ScanDetailV2 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.ScanDetailV2} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ScanDetailV2) org.tikv.kvproto.Kvrpcpb.ScanDetailV2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanDetailV2_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanDetailV2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ScanDetailV2.class, org.tikv.kvproto.Kvrpcpb.ScanDetailV2.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ScanDetailV2.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(); processedVersions_ = 0L; totalVersions_ = 0L; rocksdbDeleteSkippedCount_ = 0L; rocksdbKeySkippedCount_ = 0L; rocksdbBlockCacheHitCount_ = 0L; rocksdbBlockReadCount_ = 0L; rocksdbBlockReadByte_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ScanDetailV2_descriptor; } public org.tikv.kvproto.Kvrpcpb.ScanDetailV2 getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ScanDetailV2.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ScanDetailV2 build() { org.tikv.kvproto.Kvrpcpb.ScanDetailV2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ScanDetailV2 buildPartial() { org.tikv.kvproto.Kvrpcpb.ScanDetailV2 result = new org.tikv.kvproto.Kvrpcpb.ScanDetailV2(this); result.processedVersions_ = processedVersions_; result.totalVersions_ = totalVersions_; result.rocksdbDeleteSkippedCount_ = rocksdbDeleteSkippedCount_; result.rocksdbKeySkippedCount_ = rocksdbKeySkippedCount_; result.rocksdbBlockCacheHitCount_ = rocksdbBlockCacheHitCount_; result.rocksdbBlockReadCount_ = rocksdbBlockReadCount_; result.rocksdbBlockReadByte_ = rocksdbBlockReadByte_; 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.Kvrpcpb.ScanDetailV2) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ScanDetailV2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ScanDetailV2 other) { if (other == org.tikv.kvproto.Kvrpcpb.ScanDetailV2.getDefaultInstance()) return this; if (other.getProcessedVersions() != 0L) { setProcessedVersions(other.getProcessedVersions()); } if (other.getTotalVersions() != 0L) { setTotalVersions(other.getTotalVersions()); } if (other.getRocksdbDeleteSkippedCount() != 0L) { setRocksdbDeleteSkippedCount(other.getRocksdbDeleteSkippedCount()); } if (other.getRocksdbKeySkippedCount() != 0L) { setRocksdbKeySkippedCount(other.getRocksdbKeySkippedCount()); } if (other.getRocksdbBlockCacheHitCount() != 0L) { setRocksdbBlockCacheHitCount(other.getRocksdbBlockCacheHitCount()); } if (other.getRocksdbBlockReadCount() != 0L) { setRocksdbBlockReadCount(other.getRocksdbBlockReadCount()); } if (other.getRocksdbBlockReadByte() != 0L) { setRocksdbBlockReadByte(other.getRocksdbBlockReadByte()); } 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.Kvrpcpb.ScanDetailV2 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ScanDetailV2) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long processedVersions_ ; /** *
       * Number of user keys scanned from the storage.
       * It does not include deleted version or RocksDB tombstone keys.
       * For Coprocessor requests, it includes keys that has been filtered out by
       * Selection.
       * 
* * uint64 processed_versions = 1; */ public long getProcessedVersions() { return processedVersions_; } /** *
       * Number of user keys scanned from the storage.
       * It does not include deleted version or RocksDB tombstone keys.
       * For Coprocessor requests, it includes keys that has been filtered out by
       * Selection.
       * 
* * uint64 processed_versions = 1; */ public Builder setProcessedVersions(long value) { processedVersions_ = value; onChanged(); return this; } /** *
       * Number of user keys scanned from the storage.
       * It does not include deleted version or RocksDB tombstone keys.
       * For Coprocessor requests, it includes keys that has been filtered out by
       * Selection.
       * 
* * uint64 processed_versions = 1; */ public Builder clearProcessedVersions() { processedVersions_ = 0L; onChanged(); return this; } private long totalVersions_ ; /** *
       * Approximate number of MVCC keys meet during scanning. It includes
       * deleted versions, but does not include RocksDB tombstone keys.
       * When this field is notably larger than `processed_versions`, it means
       * there are a lot of deleted MVCC keys.
       * 
* * uint64 total_versions = 2; */ public long getTotalVersions() { return totalVersions_; } /** *
       * Approximate number of MVCC keys meet during scanning. It includes
       * deleted versions, but does not include RocksDB tombstone keys.
       * When this field is notably larger than `processed_versions`, it means
       * there are a lot of deleted MVCC keys.
       * 
* * uint64 total_versions = 2; */ public Builder setTotalVersions(long value) { totalVersions_ = value; onChanged(); return this; } /** *
       * Approximate number of MVCC keys meet during scanning. It includes
       * deleted versions, but does not include RocksDB tombstone keys.
       * When this field is notably larger than `processed_versions`, it means
       * there are a lot of deleted MVCC keys.
       * 
* * uint64 total_versions = 2; */ public Builder clearTotalVersions() { totalVersions_ = 0L; onChanged(); return this; } private long rocksdbDeleteSkippedCount_ ; /** *
       * Total number of deletes and single deletes skipped over during
       * iteration, i.e. how many RocksDB tombstones are skipped.
       * 
* * uint64 rocksdb_delete_skipped_count = 3; */ public long getRocksdbDeleteSkippedCount() { return rocksdbDeleteSkippedCount_; } /** *
       * Total number of deletes and single deletes skipped over during
       * iteration, i.e. how many RocksDB tombstones are skipped.
       * 
* * uint64 rocksdb_delete_skipped_count = 3; */ public Builder setRocksdbDeleteSkippedCount(long value) { rocksdbDeleteSkippedCount_ = value; onChanged(); return this; } /** *
       * Total number of deletes and single deletes skipped over during
       * iteration, i.e. how many RocksDB tombstones are skipped.
       * 
* * uint64 rocksdb_delete_skipped_count = 3; */ public Builder clearRocksdbDeleteSkippedCount() { rocksdbDeleteSkippedCount_ = 0L; onChanged(); return this; } private long rocksdbKeySkippedCount_ ; /** *
       * Total number of internal keys skipped over during iteration.
       * See https://github.com/facebook/rocksdb/blob/9f1c84ca471d8b1ad7be9f3eebfc2c7e07dfd7a7/include/rocksdb/perf_context.h#L84 for details.
       * 
* * uint64 rocksdb_key_skipped_count = 4; */ public long getRocksdbKeySkippedCount() { return rocksdbKeySkippedCount_; } /** *
       * Total number of internal keys skipped over during iteration.
       * See https://github.com/facebook/rocksdb/blob/9f1c84ca471d8b1ad7be9f3eebfc2c7e07dfd7a7/include/rocksdb/perf_context.h#L84 for details.
       * 
* * uint64 rocksdb_key_skipped_count = 4; */ public Builder setRocksdbKeySkippedCount(long value) { rocksdbKeySkippedCount_ = value; onChanged(); return this; } /** *
       * Total number of internal keys skipped over during iteration.
       * See https://github.com/facebook/rocksdb/blob/9f1c84ca471d8b1ad7be9f3eebfc2c7e07dfd7a7/include/rocksdb/perf_context.h#L84 for details.
       * 
* * uint64 rocksdb_key_skipped_count = 4; */ public Builder clearRocksdbKeySkippedCount() { rocksdbKeySkippedCount_ = 0L; onChanged(); return this; } private long rocksdbBlockCacheHitCount_ ; /** *
       * Total number of RocksDB block cache hits.
       * 
* * uint64 rocksdb_block_cache_hit_count = 5; */ public long getRocksdbBlockCacheHitCount() { return rocksdbBlockCacheHitCount_; } /** *
       * Total number of RocksDB block cache hits.
       * 
* * uint64 rocksdb_block_cache_hit_count = 5; */ public Builder setRocksdbBlockCacheHitCount(long value) { rocksdbBlockCacheHitCount_ = value; onChanged(); return this; } /** *
       * Total number of RocksDB block cache hits.
       * 
* * uint64 rocksdb_block_cache_hit_count = 5; */ public Builder clearRocksdbBlockCacheHitCount() { rocksdbBlockCacheHitCount_ = 0L; onChanged(); return this; } private long rocksdbBlockReadCount_ ; /** *
       * Total number of block reads (with IO).
       * 
* * uint64 rocksdb_block_read_count = 6; */ public long getRocksdbBlockReadCount() { return rocksdbBlockReadCount_; } /** *
       * Total number of block reads (with IO).
       * 
* * uint64 rocksdb_block_read_count = 6; */ public Builder setRocksdbBlockReadCount(long value) { rocksdbBlockReadCount_ = value; onChanged(); return this; } /** *
       * Total number of block reads (with IO).
       * 
* * uint64 rocksdb_block_read_count = 6; */ public Builder clearRocksdbBlockReadCount() { rocksdbBlockReadCount_ = 0L; onChanged(); return this; } private long rocksdbBlockReadByte_ ; /** *
       * Total number of bytes from block reads.
       * 
* * uint64 rocksdb_block_read_byte = 7; */ public long getRocksdbBlockReadByte() { return rocksdbBlockReadByte_; } /** *
       * Total number of bytes from block reads.
       * 
* * uint64 rocksdb_block_read_byte = 7; */ public Builder setRocksdbBlockReadByte(long value) { rocksdbBlockReadByte_ = value; onChanged(); return this; } /** *
       * Total number of bytes from block reads.
       * 
* * uint64 rocksdb_block_read_byte = 7; */ public Builder clearRocksdbBlockReadByte() { rocksdbBlockReadByte_ = 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:kvrpcpb.ScanDetailV2) } // @@protoc_insertion_point(class_scope:kvrpcpb.ScanDetailV2) private static final org.tikv.kvproto.Kvrpcpb.ScanDetailV2 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ScanDetailV2(); } public static org.tikv.kvproto.Kvrpcpb.ScanDetailV2 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScanDetailV2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScanDetailV2(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.Kvrpcpb.ScanDetailV2 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecDetailsOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ExecDetails) com.google.protobuf.MessageOrBuilder { /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ boolean hasTimeDetail(); /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ org.tikv.kvproto.Kvrpcpb.TimeDetail getTimeDetail(); /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder getTimeDetailOrBuilder(); /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ boolean hasScanDetail(); /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ org.tikv.kvproto.Kvrpcpb.ScanDetail getScanDetail(); /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ org.tikv.kvproto.Kvrpcpb.ScanDetailOrBuilder getScanDetailOrBuilder(); } /** * Protobuf type {@code kvrpcpb.ExecDetails} */ public static final class ExecDetails extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ExecDetails) ExecDetailsOrBuilder { private static final long serialVersionUID = 0L; // Use ExecDetails.newBuilder() to construct. private ExecDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecDetails() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExecDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder subBuilder = null; if (timeDetail_ != null) { subBuilder = timeDetail_.toBuilder(); } timeDetail_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.TimeDetail.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timeDetail_); timeDetail_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.ScanDetail.Builder subBuilder = null; if (scanDetail_ != null) { subBuilder = scanDetail_.toBuilder(); } scanDetail_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ScanDetail.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scanDetail_); scanDetail_ = 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.Kvrpcpb.internal_static_kvrpcpb_ExecDetails_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ExecDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ExecDetails.class, org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder.class); } public static final int TIME_DETAIL_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.TimeDetail timeDetail_; /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public boolean hasTimeDetail() { return timeDetail_ != null; } /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public org.tikv.kvproto.Kvrpcpb.TimeDetail getTimeDetail() { return timeDetail_ == null ? org.tikv.kvproto.Kvrpcpb.TimeDetail.getDefaultInstance() : timeDetail_; } /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder getTimeDetailOrBuilder() { return getTimeDetail(); } public static final int SCAN_DETAIL_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.ScanDetail scanDetail_; /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ public boolean hasScanDetail() { return scanDetail_ != null; } /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanDetail getScanDetail() { return scanDetail_ == null ? org.tikv.kvproto.Kvrpcpb.ScanDetail.getDefaultInstance() : scanDetail_; } /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanDetailOrBuilder getScanDetailOrBuilder() { return getScanDetail(); } 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 (timeDetail_ != null) { output.writeMessage(1, getTimeDetail()); } if (scanDetail_ != null) { output.writeMessage(2, getScanDetail()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timeDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTimeDetail()); } if (scanDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getScanDetail()); } 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.Kvrpcpb.ExecDetails)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ExecDetails other = (org.tikv.kvproto.Kvrpcpb.ExecDetails) obj; boolean result = true; result = result && (hasTimeDetail() == other.hasTimeDetail()); if (hasTimeDetail()) { result = result && getTimeDetail() .equals(other.getTimeDetail()); } result = result && (hasScanDetail() == other.hasScanDetail()); if (hasScanDetail()) { result = result && getScanDetail() .equals(other.getScanDetail()); } 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 (hasTimeDetail()) { hash = (37 * hash) + TIME_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getTimeDetail().hashCode(); } if (hasScanDetail()) { hash = (37 * hash) + SCAN_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getScanDetail().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ExecDetails parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ExecDetails 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.Kvrpcpb.ExecDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ExecDetails 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.Kvrpcpb.ExecDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ExecDetails parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ExecDetails parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ExecDetails 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.Kvrpcpb.ExecDetails parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ExecDetails 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.Kvrpcpb.ExecDetails parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ExecDetails 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.Kvrpcpb.ExecDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.ExecDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ExecDetails) org.tikv.kvproto.Kvrpcpb.ExecDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ExecDetails_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ExecDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ExecDetails.class, org.tikv.kvproto.Kvrpcpb.ExecDetails.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ExecDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (timeDetailBuilder_ == null) { timeDetail_ = null; } else { timeDetail_ = null; timeDetailBuilder_ = null; } if (scanDetailBuilder_ == null) { scanDetail_ = null; } else { scanDetail_ = null; scanDetailBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ExecDetails_descriptor; } public org.tikv.kvproto.Kvrpcpb.ExecDetails getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ExecDetails.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ExecDetails build() { org.tikv.kvproto.Kvrpcpb.ExecDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ExecDetails buildPartial() { org.tikv.kvproto.Kvrpcpb.ExecDetails result = new org.tikv.kvproto.Kvrpcpb.ExecDetails(this); if (timeDetailBuilder_ == null) { result.timeDetail_ = timeDetail_; } else { result.timeDetail_ = timeDetailBuilder_.build(); } if (scanDetailBuilder_ == null) { result.scanDetail_ = scanDetail_; } else { result.scanDetail_ = scanDetailBuilder_.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.Kvrpcpb.ExecDetails) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ExecDetails)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ExecDetails other) { if (other == org.tikv.kvproto.Kvrpcpb.ExecDetails.getDefaultInstance()) return this; if (other.hasTimeDetail()) { mergeTimeDetail(other.getTimeDetail()); } if (other.hasScanDetail()) { mergeScanDetail(other.getScanDetail()); } 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.Kvrpcpb.ExecDetails parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ExecDetails) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.TimeDetail timeDetail_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TimeDetail, org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder, org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder> timeDetailBuilder_; /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public boolean hasTimeDetail() { return timeDetailBuilder_ != null || timeDetail_ != null; } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public org.tikv.kvproto.Kvrpcpb.TimeDetail getTimeDetail() { if (timeDetailBuilder_ == null) { return timeDetail_ == null ? org.tikv.kvproto.Kvrpcpb.TimeDetail.getDefaultInstance() : timeDetail_; } else { return timeDetailBuilder_.getMessage(); } } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public Builder setTimeDetail(org.tikv.kvproto.Kvrpcpb.TimeDetail value) { if (timeDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeDetail_ = value; onChanged(); } else { timeDetailBuilder_.setMessage(value); } return this; } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public Builder setTimeDetail( org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder builderForValue) { if (timeDetailBuilder_ == null) { timeDetail_ = builderForValue.build(); onChanged(); } else { timeDetailBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public Builder mergeTimeDetail(org.tikv.kvproto.Kvrpcpb.TimeDetail value) { if (timeDetailBuilder_ == null) { if (timeDetail_ != null) { timeDetail_ = org.tikv.kvproto.Kvrpcpb.TimeDetail.newBuilder(timeDetail_).mergeFrom(value).buildPartial(); } else { timeDetail_ = value; } onChanged(); } else { timeDetailBuilder_.mergeFrom(value); } return this; } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public Builder clearTimeDetail() { if (timeDetailBuilder_ == null) { timeDetail_ = null; onChanged(); } else { timeDetail_ = null; timeDetailBuilder_ = null; } return this; } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder getTimeDetailBuilder() { onChanged(); return getTimeDetailFieldBuilder().getBuilder(); } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder getTimeDetailOrBuilder() { if (timeDetailBuilder_ != null) { return timeDetailBuilder_.getMessageOrBuilder(); } else { return timeDetail_ == null ? org.tikv.kvproto.Kvrpcpb.TimeDetail.getDefaultInstance() : timeDetail_; } } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TimeDetail, org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder, org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder> getTimeDetailFieldBuilder() { if (timeDetailBuilder_ == null) { timeDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TimeDetail, org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder, org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder>( getTimeDetail(), getParentForChildren(), isClean()); timeDetail_ = null; } return timeDetailBuilder_; } private org.tikv.kvproto.Kvrpcpb.ScanDetail scanDetail_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanDetail, org.tikv.kvproto.Kvrpcpb.ScanDetail.Builder, org.tikv.kvproto.Kvrpcpb.ScanDetailOrBuilder> scanDetailBuilder_; /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ public boolean hasScanDetail() { return scanDetailBuilder_ != null || scanDetail_ != null; } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanDetail getScanDetail() { if (scanDetailBuilder_ == null) { return scanDetail_ == null ? org.tikv.kvproto.Kvrpcpb.ScanDetail.getDefaultInstance() : scanDetail_; } else { return scanDetailBuilder_.getMessage(); } } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ public Builder setScanDetail(org.tikv.kvproto.Kvrpcpb.ScanDetail value) { if (scanDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } scanDetail_ = value; onChanged(); } else { scanDetailBuilder_.setMessage(value); } return this; } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ public Builder setScanDetail( org.tikv.kvproto.Kvrpcpb.ScanDetail.Builder builderForValue) { if (scanDetailBuilder_ == null) { scanDetail_ = builderForValue.build(); onChanged(); } else { scanDetailBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ public Builder mergeScanDetail(org.tikv.kvproto.Kvrpcpb.ScanDetail value) { if (scanDetailBuilder_ == null) { if (scanDetail_ != null) { scanDetail_ = org.tikv.kvproto.Kvrpcpb.ScanDetail.newBuilder(scanDetail_).mergeFrom(value).buildPartial(); } else { scanDetail_ = value; } onChanged(); } else { scanDetailBuilder_.mergeFrom(value); } return this; } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ public Builder clearScanDetail() { if (scanDetailBuilder_ == null) { scanDetail_ = null; onChanged(); } else { scanDetail_ = null; scanDetailBuilder_ = null; } return this; } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanDetail.Builder getScanDetailBuilder() { onChanged(); return getScanDetailFieldBuilder().getBuilder(); } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanDetailOrBuilder getScanDetailOrBuilder() { if (scanDetailBuilder_ != null) { return scanDetailBuilder_.getMessageOrBuilder(); } else { return scanDetail_ == null ? org.tikv.kvproto.Kvrpcpb.ScanDetail.getDefaultInstance() : scanDetail_; } } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetail scan_detail = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanDetail, org.tikv.kvproto.Kvrpcpb.ScanDetail.Builder, org.tikv.kvproto.Kvrpcpb.ScanDetailOrBuilder> getScanDetailFieldBuilder() { if (scanDetailBuilder_ == null) { scanDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanDetail, org.tikv.kvproto.Kvrpcpb.ScanDetail.Builder, org.tikv.kvproto.Kvrpcpb.ScanDetailOrBuilder>( getScanDetail(), getParentForChildren(), isClean()); scanDetail_ = null; } return scanDetailBuilder_; } 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:kvrpcpb.ExecDetails) } // @@protoc_insertion_point(class_scope:kvrpcpb.ExecDetails) private static final org.tikv.kvproto.Kvrpcpb.ExecDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ExecDetails(); } public static org.tikv.kvproto.Kvrpcpb.ExecDetails getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ExecDetails parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExecDetails(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.Kvrpcpb.ExecDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExecDetailsV2OrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.ExecDetailsV2) com.google.protobuf.MessageOrBuilder { /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ boolean hasTimeDetail(); /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ org.tikv.kvproto.Kvrpcpb.TimeDetail getTimeDetail(); /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder getTimeDetailOrBuilder(); /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ boolean hasScanDetailV2(); /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ org.tikv.kvproto.Kvrpcpb.ScanDetailV2 getScanDetailV2(); /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ org.tikv.kvproto.Kvrpcpb.ScanDetailV2OrBuilder getScanDetailV2OrBuilder(); } /** * Protobuf type {@code kvrpcpb.ExecDetailsV2} */ public static final class ExecDetailsV2 extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.ExecDetailsV2) ExecDetailsV2OrBuilder { private static final long serialVersionUID = 0L; // Use ExecDetailsV2.newBuilder() to construct. private ExecDetailsV2(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecDetailsV2() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExecDetailsV2( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder subBuilder = null; if (timeDetail_ != null) { subBuilder = timeDetail_.toBuilder(); } timeDetail_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.TimeDetail.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timeDetail_); timeDetail_ = subBuilder.buildPartial(); } break; } case 18: { org.tikv.kvproto.Kvrpcpb.ScanDetailV2.Builder subBuilder = null; if (scanDetailV2_ != null) { subBuilder = scanDetailV2_.toBuilder(); } scanDetailV2_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.ScanDetailV2.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(scanDetailV2_); scanDetailV2_ = 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.Kvrpcpb.internal_static_kvrpcpb_ExecDetailsV2_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ExecDetailsV2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.class, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder.class); } public static final int TIME_DETAIL_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.TimeDetail timeDetail_; /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public boolean hasTimeDetail() { return timeDetail_ != null; } /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public org.tikv.kvproto.Kvrpcpb.TimeDetail getTimeDetail() { return timeDetail_ == null ? org.tikv.kvproto.Kvrpcpb.TimeDetail.getDefaultInstance() : timeDetail_; } /** *
     * Available when ctx.record_time_stat = true or meet slow query.
     * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder getTimeDetailOrBuilder() { return getTimeDetail(); } public static final int SCAN_DETAIL_V2_FIELD_NUMBER = 2; private org.tikv.kvproto.Kvrpcpb.ScanDetailV2 scanDetailV2_; /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ public boolean hasScanDetailV2() { return scanDetailV2_ != null; } /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanDetailV2 getScanDetailV2() { return scanDetailV2_ == null ? org.tikv.kvproto.Kvrpcpb.ScanDetailV2.getDefaultInstance() : scanDetailV2_; } /** *
     * Available when ctx.record_scan_stat = true or meet slow query.
     * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanDetailV2OrBuilder getScanDetailV2OrBuilder() { return getScanDetailV2(); } 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 (timeDetail_ != null) { output.writeMessage(1, getTimeDetail()); } if (scanDetailV2_ != null) { output.writeMessage(2, getScanDetailV2()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timeDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTimeDetail()); } if (scanDetailV2_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getScanDetailV2()); } 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.Kvrpcpb.ExecDetailsV2)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 other = (org.tikv.kvproto.Kvrpcpb.ExecDetailsV2) obj; boolean result = true; result = result && (hasTimeDetail() == other.hasTimeDetail()); if (hasTimeDetail()) { result = result && getTimeDetail() .equals(other.getTimeDetail()); } result = result && (hasScanDetailV2() == other.hasScanDetailV2()); if (hasScanDetailV2()) { result = result && getScanDetailV2() .equals(other.getScanDetailV2()); } 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 (hasTimeDetail()) { hash = (37 * hash) + TIME_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getTimeDetail().hashCode(); } if (hasScanDetailV2()) { hash = (37 * hash) + SCAN_DETAIL_V2_FIELD_NUMBER; hash = (53 * hash) + getScanDetailV2().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 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.Kvrpcpb.ExecDetailsV2 parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 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.Kvrpcpb.ExecDetailsV2 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 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.Kvrpcpb.ExecDetailsV2 parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 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.Kvrpcpb.ExecDetailsV2 parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 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.Kvrpcpb.ExecDetailsV2 prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.ExecDetailsV2} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.ExecDetailsV2) org.tikv.kvproto.Kvrpcpb.ExecDetailsV2OrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ExecDetailsV2_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ExecDetailsV2_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.class, org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (timeDetailBuilder_ == null) { timeDetail_ = null; } else { timeDetail_ = null; timeDetailBuilder_ = null; } if (scanDetailV2Builder_ == null) { scanDetailV2_ = null; } else { scanDetailV2_ = null; scanDetailV2Builder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_ExecDetailsV2_descriptor; } public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 build() { org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 buildPartial() { org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 result = new org.tikv.kvproto.Kvrpcpb.ExecDetailsV2(this); if (timeDetailBuilder_ == null) { result.timeDetail_ = timeDetail_; } else { result.timeDetail_ = timeDetailBuilder_.build(); } if (scanDetailV2Builder_ == null) { result.scanDetailV2_ = scanDetailV2_; } else { result.scanDetailV2_ = scanDetailV2Builder_.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.Kvrpcpb.ExecDetailsV2) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.ExecDetailsV2)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 other) { if (other == org.tikv.kvproto.Kvrpcpb.ExecDetailsV2.getDefaultInstance()) return this; if (other.hasTimeDetail()) { mergeTimeDetail(other.getTimeDetail()); } if (other.hasScanDetailV2()) { mergeScanDetailV2(other.getScanDetailV2()); } 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.Kvrpcpb.ExecDetailsV2 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.ExecDetailsV2) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.TimeDetail timeDetail_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TimeDetail, org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder, org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder> timeDetailBuilder_; /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public boolean hasTimeDetail() { return timeDetailBuilder_ != null || timeDetail_ != null; } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public org.tikv.kvproto.Kvrpcpb.TimeDetail getTimeDetail() { if (timeDetailBuilder_ == null) { return timeDetail_ == null ? org.tikv.kvproto.Kvrpcpb.TimeDetail.getDefaultInstance() : timeDetail_; } else { return timeDetailBuilder_.getMessage(); } } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public Builder setTimeDetail(org.tikv.kvproto.Kvrpcpb.TimeDetail value) { if (timeDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeDetail_ = value; onChanged(); } else { timeDetailBuilder_.setMessage(value); } return this; } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public Builder setTimeDetail( org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder builderForValue) { if (timeDetailBuilder_ == null) { timeDetail_ = builderForValue.build(); onChanged(); } else { timeDetailBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public Builder mergeTimeDetail(org.tikv.kvproto.Kvrpcpb.TimeDetail value) { if (timeDetailBuilder_ == null) { if (timeDetail_ != null) { timeDetail_ = org.tikv.kvproto.Kvrpcpb.TimeDetail.newBuilder(timeDetail_).mergeFrom(value).buildPartial(); } else { timeDetail_ = value; } onChanged(); } else { timeDetailBuilder_.mergeFrom(value); } return this; } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public Builder clearTimeDetail() { if (timeDetailBuilder_ == null) { timeDetail_ = null; onChanged(); } else { timeDetail_ = null; timeDetailBuilder_ = null; } return this; } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder getTimeDetailBuilder() { onChanged(); return getTimeDetailFieldBuilder().getBuilder(); } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ public org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder getTimeDetailOrBuilder() { if (timeDetailBuilder_ != null) { return timeDetailBuilder_.getMessageOrBuilder(); } else { return timeDetail_ == null ? org.tikv.kvproto.Kvrpcpb.TimeDetail.getDefaultInstance() : timeDetail_; } } /** *
       * Available when ctx.record_time_stat = true or meet slow query.
       * 
* * .kvrpcpb.TimeDetail time_detail = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TimeDetail, org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder, org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder> getTimeDetailFieldBuilder() { if (timeDetailBuilder_ == null) { timeDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.TimeDetail, org.tikv.kvproto.Kvrpcpb.TimeDetail.Builder, org.tikv.kvproto.Kvrpcpb.TimeDetailOrBuilder>( getTimeDetail(), getParentForChildren(), isClean()); timeDetail_ = null; } return timeDetailBuilder_; } private org.tikv.kvproto.Kvrpcpb.ScanDetailV2 scanDetailV2_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanDetailV2, org.tikv.kvproto.Kvrpcpb.ScanDetailV2.Builder, org.tikv.kvproto.Kvrpcpb.ScanDetailV2OrBuilder> scanDetailV2Builder_; /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ public boolean hasScanDetailV2() { return scanDetailV2Builder_ != null || scanDetailV2_ != null; } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanDetailV2 getScanDetailV2() { if (scanDetailV2Builder_ == null) { return scanDetailV2_ == null ? org.tikv.kvproto.Kvrpcpb.ScanDetailV2.getDefaultInstance() : scanDetailV2_; } else { return scanDetailV2Builder_.getMessage(); } } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ public Builder setScanDetailV2(org.tikv.kvproto.Kvrpcpb.ScanDetailV2 value) { if (scanDetailV2Builder_ == null) { if (value == null) { throw new NullPointerException(); } scanDetailV2_ = value; onChanged(); } else { scanDetailV2Builder_.setMessage(value); } return this; } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ public Builder setScanDetailV2( org.tikv.kvproto.Kvrpcpb.ScanDetailV2.Builder builderForValue) { if (scanDetailV2Builder_ == null) { scanDetailV2_ = builderForValue.build(); onChanged(); } else { scanDetailV2Builder_.setMessage(builderForValue.build()); } return this; } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ public Builder mergeScanDetailV2(org.tikv.kvproto.Kvrpcpb.ScanDetailV2 value) { if (scanDetailV2Builder_ == null) { if (scanDetailV2_ != null) { scanDetailV2_ = org.tikv.kvproto.Kvrpcpb.ScanDetailV2.newBuilder(scanDetailV2_).mergeFrom(value).buildPartial(); } else { scanDetailV2_ = value; } onChanged(); } else { scanDetailV2Builder_.mergeFrom(value); } return this; } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ public Builder clearScanDetailV2() { if (scanDetailV2Builder_ == null) { scanDetailV2_ = null; onChanged(); } else { scanDetailV2_ = null; scanDetailV2Builder_ = null; } return this; } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanDetailV2.Builder getScanDetailV2Builder() { onChanged(); return getScanDetailV2FieldBuilder().getBuilder(); } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ public org.tikv.kvproto.Kvrpcpb.ScanDetailV2OrBuilder getScanDetailV2OrBuilder() { if (scanDetailV2Builder_ != null) { return scanDetailV2Builder_.getMessageOrBuilder(); } else { return scanDetailV2_ == null ? org.tikv.kvproto.Kvrpcpb.ScanDetailV2.getDefaultInstance() : scanDetailV2_; } } /** *
       * Available when ctx.record_scan_stat = true or meet slow query.
       * 
* * .kvrpcpb.ScanDetailV2 scan_detail_v2 = 2; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanDetailV2, org.tikv.kvproto.Kvrpcpb.ScanDetailV2.Builder, org.tikv.kvproto.Kvrpcpb.ScanDetailV2OrBuilder> getScanDetailV2FieldBuilder() { if (scanDetailV2Builder_ == null) { scanDetailV2Builder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.ScanDetailV2, org.tikv.kvproto.Kvrpcpb.ScanDetailV2.Builder, org.tikv.kvproto.Kvrpcpb.ScanDetailV2OrBuilder>( getScanDetailV2(), getParentForChildren(), isClean()); scanDetailV2_ = null; } return scanDetailV2Builder_; } 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:kvrpcpb.ExecDetailsV2) } // @@protoc_insertion_point(class_scope:kvrpcpb.ExecDetailsV2) private static final org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.ExecDetailsV2(); } public static org.tikv.kvproto.Kvrpcpb.ExecDetailsV2 getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ExecDetailsV2 parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExecDetailsV2(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.Kvrpcpb.ExecDetailsV2 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KvPairOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.KvPair) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.KeyError error = 1; */ boolean hasError(); /** * .kvrpcpb.KeyError error = 1; */ org.tikv.kvproto.Kvrpcpb.KeyError getError(); /** * .kvrpcpb.KeyError error = 1; */ org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * bytes value = 3; */ com.google.protobuf.ByteString getValue(); } /** * Protobuf type {@code kvrpcpb.KvPair} */ public static final class KvPair extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.KvPair) KvPairOrBuilder { private static final long serialVersionUID = 0L; // Use KvPair.newBuilder() to construct. private KvPair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KvPair() { key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private KvPair( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.KeyError.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.KeyError.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 18: { key_ = input.readBytes(); break; } case 26: { value_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KvPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KvPair_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.KvPair.class, org.tikv.kvproto.Kvrpcpb.KvPair.Builder.class); } public static final int ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.KeyError error_; /** * .kvrpcpb.KeyError error = 1; */ public boolean hasError() { return error_ != null; } /** * .kvrpcpb.KeyError error = 1; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } /** * .kvrpcpb.KeyError error = 1; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (error_ != null) { output.writeMessage(1, getError()); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (!value_.isEmpty()) { output.writeBytes(3, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (error_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getError()); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Kvrpcpb.KvPair)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.KvPair other = (org.tikv.kvproto.Kvrpcpb.KvPair) obj; boolean result = true; result = result && (hasError() == other.hasError()); if (hasError()) { result = result && getError() .equals(other.getError()); } result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); } hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.KvPair parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.KvPair 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.Kvrpcpb.KvPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.KvPair 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.Kvrpcpb.KvPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.KvPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.KvPair parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.KvPair 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.Kvrpcpb.KvPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.KvPair 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.Kvrpcpb.KvPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.KvPair 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.Kvrpcpb.KvPair prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.KvPair} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.KvPair) org.tikv.kvproto.Kvrpcpb.KvPairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KvPair_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KvPair_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.KvPair.class, org.tikv.kvproto.Kvrpcpb.KvPair.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.KvPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KvPair_descriptor; } public org.tikv.kvproto.Kvrpcpb.KvPair getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.KvPair build() { org.tikv.kvproto.Kvrpcpb.KvPair result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.KvPair buildPartial() { org.tikv.kvproto.Kvrpcpb.KvPair result = new org.tikv.kvproto.Kvrpcpb.KvPair(this); if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.key_ = key_; result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.KvPair) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.KvPair)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.KvPair other) { if (other == org.tikv.kvproto.Kvrpcpb.KvPair.getDefaultInstance()) return this; if (other.hasError()) { mergeError(other.getError()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.KvPair parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.KvPair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.KeyError error_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> errorBuilder_; /** * .kvrpcpb.KeyError error = 1; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * .kvrpcpb.KeyError error = 1; */ public org.tikv.kvproto.Kvrpcpb.KeyError getError() { if (errorBuilder_ == null) { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * .kvrpcpb.KeyError error = 1; */ public Builder setError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.KeyError error = 1; */ public Builder setError( org.tikv.kvproto.Kvrpcpb.KeyError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.KeyError error = 1; */ public Builder mergeError(org.tikv.kvproto.Kvrpcpb.KeyError value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.tikv.kvproto.Kvrpcpb.KeyError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.KeyError error = 1; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * .kvrpcpb.KeyError error = 1; */ public org.tikv.kvproto.Kvrpcpb.KeyError.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * .kvrpcpb.KeyError error = 1; */ public org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.tikv.kvproto.Kvrpcpb.KeyError.getDefaultInstance() : error_; } } /** * .kvrpcpb.KeyError error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.KeyError, org.tikv.kvproto.Kvrpcpb.KeyError.Builder, org.tikv.kvproto.Kvrpcpb.KeyErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 3; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 3; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.KvPair) } // @@protoc_insertion_point(class_scope:kvrpcpb.KvPair) private static final org.tikv.kvproto.Kvrpcpb.KvPair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.KvPair(); } public static org.tikv.kvproto.Kvrpcpb.KvPair getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KvPair parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KvPair(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.Kvrpcpb.KvPair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MutationOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.Mutation) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Op op = 1; */ int getOpValue(); /** * .kvrpcpb.Op op = 1; */ org.tikv.kvproto.Kvrpcpb.Op getOp(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * bytes value = 3; */ com.google.protobuf.ByteString getValue(); /** * .kvrpcpb.Assertion assertion = 4; */ int getAssertionValue(); /** * .kvrpcpb.Assertion assertion = 4; */ org.tikv.kvproto.Kvrpcpb.Assertion getAssertion(); } /** * Protobuf type {@code kvrpcpb.Mutation} */ public static final class Mutation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.Mutation) MutationOrBuilder { private static final long serialVersionUID = 0L; // Use Mutation.newBuilder() to construct. private Mutation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Mutation() { op_ = 0; key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; assertion_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Mutation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); op_ = rawValue; break; } case 18: { key_ = input.readBytes(); break; } case 26: { value_ = input.readBytes(); break; } case 32: { int rawValue = input.readEnum(); assertion_ = rawValue; 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.Kvrpcpb.internal_static_kvrpcpb_Mutation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Mutation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.Mutation.class, org.tikv.kvproto.Kvrpcpb.Mutation.Builder.class); } public static final int OP_FIELD_NUMBER = 1; private int op_; /** * .kvrpcpb.Op op = 1; */ public int getOpValue() { return op_; } /** * .kvrpcpb.Op op = 1; */ public org.tikv.kvproto.Kvrpcpb.Op getOp() { org.tikv.kvproto.Kvrpcpb.Op result = org.tikv.kvproto.Kvrpcpb.Op.valueOf(op_); return result == null ? org.tikv.kvproto.Kvrpcpb.Op.UNRECOGNIZED : result; } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int ASSERTION_FIELD_NUMBER = 4; private int assertion_; /** * .kvrpcpb.Assertion assertion = 4; */ public int getAssertionValue() { return assertion_; } /** * .kvrpcpb.Assertion assertion = 4; */ public org.tikv.kvproto.Kvrpcpb.Assertion getAssertion() { org.tikv.kvproto.Kvrpcpb.Assertion result = org.tikv.kvproto.Kvrpcpb.Assertion.valueOf(assertion_); return result == null ? org.tikv.kvproto.Kvrpcpb.Assertion.UNRECOGNIZED : result; } 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 (op_ != org.tikv.kvproto.Kvrpcpb.Op.Put.getNumber()) { output.writeEnum(1, op_); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (!value_.isEmpty()) { output.writeBytes(3, value_); } if (assertion_ != org.tikv.kvproto.Kvrpcpb.Assertion.None.getNumber()) { output.writeEnum(4, assertion_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (op_ != org.tikv.kvproto.Kvrpcpb.Op.Put.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, op_); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, value_); } if (assertion_ != org.tikv.kvproto.Kvrpcpb.Assertion.None.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, assertion_); } 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.Kvrpcpb.Mutation)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.Mutation other = (org.tikv.kvproto.Kvrpcpb.Mutation) obj; boolean result = true; result = result && op_ == other.op_; result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); result = result && assertion_ == other.assertion_; 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) + OP_FIELD_NUMBER; hash = (53 * hash) + op_; hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + ASSERTION_FIELD_NUMBER; hash = (53 * hash) + assertion_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.Mutation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.Mutation 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.Kvrpcpb.Mutation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.Mutation 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.Kvrpcpb.Mutation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.Mutation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.Mutation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.Mutation 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.Kvrpcpb.Mutation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.Mutation 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.Kvrpcpb.Mutation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.Mutation 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.Kvrpcpb.Mutation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.Mutation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.Mutation) org.tikv.kvproto.Kvrpcpb.MutationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Mutation_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Mutation_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.Mutation.class, org.tikv.kvproto.Kvrpcpb.Mutation.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.Mutation.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(); op_ = 0; key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; assertion_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_Mutation_descriptor; } public org.tikv.kvproto.Kvrpcpb.Mutation getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.Mutation.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.Mutation build() { org.tikv.kvproto.Kvrpcpb.Mutation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.Mutation buildPartial() { org.tikv.kvproto.Kvrpcpb.Mutation result = new org.tikv.kvproto.Kvrpcpb.Mutation(this); result.op_ = op_; result.key_ = key_; result.value_ = value_; result.assertion_ = assertion_; 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.Kvrpcpb.Mutation) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.Mutation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.Mutation other) { if (other == org.tikv.kvproto.Kvrpcpb.Mutation.getDefaultInstance()) return this; if (other.op_ != 0) { setOpValue(other.getOpValue()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.assertion_ != 0) { setAssertionValue(other.getAssertionValue()); } 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.Kvrpcpb.Mutation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.Mutation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int op_ = 0; /** * .kvrpcpb.Op op = 1; */ public int getOpValue() { return op_; } /** * .kvrpcpb.Op op = 1; */ public Builder setOpValue(int value) { op_ = value; onChanged(); return this; } /** * .kvrpcpb.Op op = 1; */ public org.tikv.kvproto.Kvrpcpb.Op getOp() { org.tikv.kvproto.Kvrpcpb.Op result = org.tikv.kvproto.Kvrpcpb.Op.valueOf(op_); return result == null ? org.tikv.kvproto.Kvrpcpb.Op.UNRECOGNIZED : result; } /** * .kvrpcpb.Op op = 1; */ public Builder setOp(org.tikv.kvproto.Kvrpcpb.Op value) { if (value == null) { throw new NullPointerException(); } op_ = value.getNumber(); onChanged(); return this; } /** * .kvrpcpb.Op op = 1; */ public Builder clearOp() { op_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 3; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 3; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private int assertion_ = 0; /** * .kvrpcpb.Assertion assertion = 4; */ public int getAssertionValue() { return assertion_; } /** * .kvrpcpb.Assertion assertion = 4; */ public Builder setAssertionValue(int value) { assertion_ = value; onChanged(); return this; } /** * .kvrpcpb.Assertion assertion = 4; */ public org.tikv.kvproto.Kvrpcpb.Assertion getAssertion() { org.tikv.kvproto.Kvrpcpb.Assertion result = org.tikv.kvproto.Kvrpcpb.Assertion.valueOf(assertion_); return result == null ? org.tikv.kvproto.Kvrpcpb.Assertion.UNRECOGNIZED : result; } /** * .kvrpcpb.Assertion assertion = 4; */ public Builder setAssertion(org.tikv.kvproto.Kvrpcpb.Assertion value) { if (value == null) { throw new NullPointerException(); } assertion_ = value.getNumber(); onChanged(); return this; } /** * .kvrpcpb.Assertion assertion = 4; */ public Builder clearAssertion() { assertion_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.Mutation) } // @@protoc_insertion_point(class_scope:kvrpcpb.Mutation) private static final org.tikv.kvproto.Kvrpcpb.Mutation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.Mutation(); } public static org.tikv.kvproto.Kvrpcpb.Mutation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Mutation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Mutation(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.Kvrpcpb.Mutation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MvccWriteOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.MvccWrite) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Op type = 1; */ int getTypeValue(); /** * .kvrpcpb.Op type = 1; */ org.tikv.kvproto.Kvrpcpb.Op getType(); /** * uint64 start_ts = 2; */ long getStartTs(); /** * uint64 commit_ts = 3; */ long getCommitTs(); /** * bytes short_value = 4; */ com.google.protobuf.ByteString getShortValue(); } /** * Protobuf type {@code kvrpcpb.MvccWrite} */ public static final class MvccWrite extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.MvccWrite) MvccWriteOrBuilder { private static final long serialVersionUID = 0L; // Use MvccWrite.newBuilder() to construct. private MvccWrite(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MvccWrite() { type_ = 0; startTs_ = 0L; commitTs_ = 0L; shortValue_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MvccWrite( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 16: { startTs_ = input.readUInt64(); break; } case 24: { commitTs_ = input.readUInt64(); break; } case 34: { shortValue_ = 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.Kvrpcpb.internal_static_kvrpcpb_MvccWrite_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccWrite_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccWrite.class, org.tikv.kvproto.Kvrpcpb.MvccWrite.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * .kvrpcpb.Op type = 1; */ public int getTypeValue() { return type_; } /** * .kvrpcpb.Op type = 1; */ public org.tikv.kvproto.Kvrpcpb.Op getType() { org.tikv.kvproto.Kvrpcpb.Op result = org.tikv.kvproto.Kvrpcpb.Op.valueOf(type_); return result == null ? org.tikv.kvproto.Kvrpcpb.Op.UNRECOGNIZED : result; } public static final int START_TS_FIELD_NUMBER = 2; private long startTs_; /** * uint64 start_ts = 2; */ public long getStartTs() { return startTs_; } public static final int COMMIT_TS_FIELD_NUMBER = 3; private long commitTs_; /** * uint64 commit_ts = 3; */ public long getCommitTs() { return commitTs_; } public static final int SHORT_VALUE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString shortValue_; /** * bytes short_value = 4; */ public com.google.protobuf.ByteString getShortValue() { return shortValue_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.tikv.kvproto.Kvrpcpb.Op.Put.getNumber()) { output.writeEnum(1, type_); } if (startTs_ != 0L) { output.writeUInt64(2, startTs_); } if (commitTs_ != 0L) { output.writeUInt64(3, commitTs_); } if (!shortValue_.isEmpty()) { output.writeBytes(4, shortValue_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.tikv.kvproto.Kvrpcpb.Op.Put.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, startTs_); } if (commitTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, commitTs_); } if (!shortValue_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, shortValue_); } 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.Kvrpcpb.MvccWrite)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.MvccWrite other = (org.tikv.kvproto.Kvrpcpb.MvccWrite) obj; boolean result = true; result = result && type_ == other.type_; result = result && (getStartTs() == other.getStartTs()); result = result && (getCommitTs() == other.getCommitTs()); result = result && getShortValue() .equals(other.getShortValue()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); hash = (37 * hash) + COMMIT_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCommitTs()); hash = (37 * hash) + SHORT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getShortValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.MvccWrite parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccWrite 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.Kvrpcpb.MvccWrite parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccWrite 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.Kvrpcpb.MvccWrite parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccWrite parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.MvccWrite parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccWrite 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.Kvrpcpb.MvccWrite parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccWrite 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.Kvrpcpb.MvccWrite parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccWrite 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.Kvrpcpb.MvccWrite prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.MvccWrite} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.MvccWrite) org.tikv.kvproto.Kvrpcpb.MvccWriteOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccWrite_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccWrite_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccWrite.class, org.tikv.kvproto.Kvrpcpb.MvccWrite.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.MvccWrite.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(); type_ = 0; startTs_ = 0L; commitTs_ = 0L; shortValue_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccWrite_descriptor; } public org.tikv.kvproto.Kvrpcpb.MvccWrite getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.MvccWrite.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.MvccWrite build() { org.tikv.kvproto.Kvrpcpb.MvccWrite result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.MvccWrite buildPartial() { org.tikv.kvproto.Kvrpcpb.MvccWrite result = new org.tikv.kvproto.Kvrpcpb.MvccWrite(this); result.type_ = type_; result.startTs_ = startTs_; result.commitTs_ = commitTs_; result.shortValue_ = shortValue_; 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.Kvrpcpb.MvccWrite) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.MvccWrite)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.MvccWrite other) { if (other == org.tikv.kvproto.Kvrpcpb.MvccWrite.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (other.getCommitTs() != 0L) { setCommitTs(other.getCommitTs()); } if (other.getShortValue() != com.google.protobuf.ByteString.EMPTY) { setShortValue(other.getShortValue()); } 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.Kvrpcpb.MvccWrite parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.MvccWrite) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** * .kvrpcpb.Op type = 1; */ public int getTypeValue() { return type_; } /** * .kvrpcpb.Op type = 1; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .kvrpcpb.Op type = 1; */ public org.tikv.kvproto.Kvrpcpb.Op getType() { org.tikv.kvproto.Kvrpcpb.Op result = org.tikv.kvproto.Kvrpcpb.Op.valueOf(type_); return result == null ? org.tikv.kvproto.Kvrpcpb.Op.UNRECOGNIZED : result; } /** * .kvrpcpb.Op type = 1; */ public Builder setType(org.tikv.kvproto.Kvrpcpb.Op value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .kvrpcpb.Op type = 1; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private long startTs_ ; /** * uint64 start_ts = 2; */ public long getStartTs() { return startTs_; } /** * uint64 start_ts = 2; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** * uint64 start_ts = 2; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private long commitTs_ ; /** * uint64 commit_ts = 3; */ public long getCommitTs() { return commitTs_; } /** * uint64 commit_ts = 3; */ public Builder setCommitTs(long value) { commitTs_ = value; onChanged(); return this; } /** * uint64 commit_ts = 3; */ public Builder clearCommitTs() { commitTs_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString shortValue_ = com.google.protobuf.ByteString.EMPTY; /** * bytes short_value = 4; */ public com.google.protobuf.ByteString getShortValue() { return shortValue_; } /** * bytes short_value = 4; */ public Builder setShortValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } shortValue_ = value; onChanged(); return this; } /** * bytes short_value = 4; */ public Builder clearShortValue() { shortValue_ = getDefaultInstance().getShortValue(); 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:kvrpcpb.MvccWrite) } // @@protoc_insertion_point(class_scope:kvrpcpb.MvccWrite) private static final org.tikv.kvproto.Kvrpcpb.MvccWrite DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.MvccWrite(); } public static org.tikv.kvproto.Kvrpcpb.MvccWrite getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MvccWrite parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MvccWrite(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.Kvrpcpb.MvccWrite getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MvccValueOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.MvccValue) com.google.protobuf.MessageOrBuilder { /** * uint64 start_ts = 1; */ long getStartTs(); /** * bytes value = 2; */ com.google.protobuf.ByteString getValue(); } /** * Protobuf type {@code kvrpcpb.MvccValue} */ public static final class MvccValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.MvccValue) MvccValueOrBuilder { private static final long serialVersionUID = 0L; // Use MvccValue.newBuilder() to construct. private MvccValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MvccValue() { startTs_ = 0L; value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MvccValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { startTs_ = input.readUInt64(); break; } case 18: { value_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccValue.class, org.tikv.kvproto.Kvrpcpb.MvccValue.Builder.class); } public static final int START_TS_FIELD_NUMBER = 1; private long startTs_; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; /** * bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTs_ != 0L) { output.writeUInt64(1, startTs_); } if (!value_.isEmpty()) { output.writeBytes(2, value_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, startTs_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Kvrpcpb.MvccValue)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.MvccValue other = (org.tikv.kvproto.Kvrpcpb.MvccValue) obj; boolean result = true; result = result && (getStartTs() == other.getStartTs()); result = result && getValue() .equals(other.getValue()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.MvccValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccValue 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.Kvrpcpb.MvccValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccValue 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.Kvrpcpb.MvccValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.MvccValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccValue 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.Kvrpcpb.MvccValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccValue 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.Kvrpcpb.MvccValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccValue 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.Kvrpcpb.MvccValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.MvccValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.MvccValue) org.tikv.kvproto.Kvrpcpb.MvccValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccValue_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccValue.class, org.tikv.kvproto.Kvrpcpb.MvccValue.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.MvccValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); startTs_ = 0L; value_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccValue_descriptor; } public org.tikv.kvproto.Kvrpcpb.MvccValue getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.MvccValue.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.MvccValue build() { org.tikv.kvproto.Kvrpcpb.MvccValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.MvccValue buildPartial() { org.tikv.kvproto.Kvrpcpb.MvccValue result = new org.tikv.kvproto.Kvrpcpb.MvccValue(this); result.startTs_ = startTs_; result.value_ = value_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.MvccValue) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.MvccValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.MvccValue other) { if (other == org.tikv.kvproto.Kvrpcpb.MvccValue.getDefaultInstance()) return this; if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.MvccValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.MvccValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long startTs_ ; /** * uint64 start_ts = 1; */ public long getStartTs() { return startTs_; } /** * uint64 start_ts = 1; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** * uint64 start_ts = 1; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 2; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 2; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 2; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.MvccValue) } // @@protoc_insertion_point(class_scope:kvrpcpb.MvccValue) private static final org.tikv.kvproto.Kvrpcpb.MvccValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.MvccValue(); } public static org.tikv.kvproto.Kvrpcpb.MvccValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MvccValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MvccValue(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.Kvrpcpb.MvccValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MvccLockOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.MvccLock) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Op type = 1; */ int getTypeValue(); /** * .kvrpcpb.Op type = 1; */ org.tikv.kvproto.Kvrpcpb.Op getType(); /** * uint64 start_ts = 2; */ long getStartTs(); /** * bytes primary = 3; */ com.google.protobuf.ByteString getPrimary(); /** * bytes short_value = 4; */ com.google.protobuf.ByteString getShortValue(); } /** * Protobuf type {@code kvrpcpb.MvccLock} */ public static final class MvccLock extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.MvccLock) MvccLockOrBuilder { private static final long serialVersionUID = 0L; // Use MvccLock.newBuilder() to construct. private MvccLock(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MvccLock() { type_ = 0; startTs_ = 0L; primary_ = com.google.protobuf.ByteString.EMPTY; shortValue_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MvccLock( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 16: { startTs_ = input.readUInt64(); break; } case 26: { primary_ = input.readBytes(); break; } case 34: { shortValue_ = 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.Kvrpcpb.internal_static_kvrpcpb_MvccLock_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccLock_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccLock.class, org.tikv.kvproto.Kvrpcpb.MvccLock.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * .kvrpcpb.Op type = 1; */ public int getTypeValue() { return type_; } /** * .kvrpcpb.Op type = 1; */ public org.tikv.kvproto.Kvrpcpb.Op getType() { org.tikv.kvproto.Kvrpcpb.Op result = org.tikv.kvproto.Kvrpcpb.Op.valueOf(type_); return result == null ? org.tikv.kvproto.Kvrpcpb.Op.UNRECOGNIZED : result; } public static final int START_TS_FIELD_NUMBER = 2; private long startTs_; /** * uint64 start_ts = 2; */ public long getStartTs() { return startTs_; } public static final int PRIMARY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString primary_; /** * bytes primary = 3; */ public com.google.protobuf.ByteString getPrimary() { return primary_; } public static final int SHORT_VALUE_FIELD_NUMBER = 4; private com.google.protobuf.ByteString shortValue_; /** * bytes short_value = 4; */ public com.google.protobuf.ByteString getShortValue() { return shortValue_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != org.tikv.kvproto.Kvrpcpb.Op.Put.getNumber()) { output.writeEnum(1, type_); } if (startTs_ != 0L) { output.writeUInt64(2, startTs_); } if (!primary_.isEmpty()) { output.writeBytes(3, primary_); } if (!shortValue_.isEmpty()) { output.writeBytes(4, shortValue_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != org.tikv.kvproto.Kvrpcpb.Op.Put.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (startTs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, startTs_); } if (!primary_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, primary_); } if (!shortValue_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, shortValue_); } 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.Kvrpcpb.MvccLock)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.MvccLock other = (org.tikv.kvproto.Kvrpcpb.MvccLock) obj; boolean result = true; result = result && type_ == other.type_; result = result && (getStartTs() == other.getStartTs()); result = result && getPrimary() .equals(other.getPrimary()); result = result && getShortValue() .equals(other.getShortValue()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + START_TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStartTs()); hash = (37 * hash) + PRIMARY_FIELD_NUMBER; hash = (53 * hash) + getPrimary().hashCode(); hash = (37 * hash) + SHORT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getShortValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.MvccLock parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccLock 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.Kvrpcpb.MvccLock parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccLock 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.Kvrpcpb.MvccLock parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccLock parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.MvccLock parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccLock 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.Kvrpcpb.MvccLock parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccLock 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.Kvrpcpb.MvccLock parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccLock 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.Kvrpcpb.MvccLock prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.MvccLock} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.MvccLock) org.tikv.kvproto.Kvrpcpb.MvccLockOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccLock_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccLock_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccLock.class, org.tikv.kvproto.Kvrpcpb.MvccLock.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.MvccLock.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(); type_ = 0; startTs_ = 0L; primary_ = com.google.protobuf.ByteString.EMPTY; shortValue_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccLock_descriptor; } public org.tikv.kvproto.Kvrpcpb.MvccLock getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.MvccLock.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.MvccLock build() { org.tikv.kvproto.Kvrpcpb.MvccLock result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.MvccLock buildPartial() { org.tikv.kvproto.Kvrpcpb.MvccLock result = new org.tikv.kvproto.Kvrpcpb.MvccLock(this); result.type_ = type_; result.startTs_ = startTs_; result.primary_ = primary_; result.shortValue_ = shortValue_; 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.Kvrpcpb.MvccLock) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.MvccLock)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.MvccLock other) { if (other == org.tikv.kvproto.Kvrpcpb.MvccLock.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getStartTs() != 0L) { setStartTs(other.getStartTs()); } if (other.getPrimary() != com.google.protobuf.ByteString.EMPTY) { setPrimary(other.getPrimary()); } if (other.getShortValue() != com.google.protobuf.ByteString.EMPTY) { setShortValue(other.getShortValue()); } 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.Kvrpcpb.MvccLock parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.MvccLock) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** * .kvrpcpb.Op type = 1; */ public int getTypeValue() { return type_; } /** * .kvrpcpb.Op type = 1; */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .kvrpcpb.Op type = 1; */ public org.tikv.kvproto.Kvrpcpb.Op getType() { org.tikv.kvproto.Kvrpcpb.Op result = org.tikv.kvproto.Kvrpcpb.Op.valueOf(type_); return result == null ? org.tikv.kvproto.Kvrpcpb.Op.UNRECOGNIZED : result; } /** * .kvrpcpb.Op type = 1; */ public Builder setType(org.tikv.kvproto.Kvrpcpb.Op value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .kvrpcpb.Op type = 1; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private long startTs_ ; /** * uint64 start_ts = 2; */ public long getStartTs() { return startTs_; } /** * uint64 start_ts = 2; */ public Builder setStartTs(long value) { startTs_ = value; onChanged(); return this; } /** * uint64 start_ts = 2; */ public Builder clearStartTs() { startTs_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString primary_ = com.google.protobuf.ByteString.EMPTY; /** * bytes primary = 3; */ public com.google.protobuf.ByteString getPrimary() { return primary_; } /** * bytes primary = 3; */ public Builder setPrimary(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } primary_ = value; onChanged(); return this; } /** * bytes primary = 3; */ public Builder clearPrimary() { primary_ = getDefaultInstance().getPrimary(); onChanged(); return this; } private com.google.protobuf.ByteString shortValue_ = com.google.protobuf.ByteString.EMPTY; /** * bytes short_value = 4; */ public com.google.protobuf.ByteString getShortValue() { return shortValue_; } /** * bytes short_value = 4; */ public Builder setShortValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } shortValue_ = value; onChanged(); return this; } /** * bytes short_value = 4; */ public Builder clearShortValue() { shortValue_ = getDefaultInstance().getShortValue(); 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:kvrpcpb.MvccLock) } // @@protoc_insertion_point(class_scope:kvrpcpb.MvccLock) private static final org.tikv.kvproto.Kvrpcpb.MvccLock DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.MvccLock(); } public static org.tikv.kvproto.Kvrpcpb.MvccLock getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MvccLock parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MvccLock(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.Kvrpcpb.MvccLock getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MvccInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.MvccInfo) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.MvccLock lock = 1; */ boolean hasLock(); /** * .kvrpcpb.MvccLock lock = 1; */ org.tikv.kvproto.Kvrpcpb.MvccLock getLock(); /** * .kvrpcpb.MvccLock lock = 1; */ org.tikv.kvproto.Kvrpcpb.MvccLockOrBuilder getLockOrBuilder(); /** * repeated .kvrpcpb.MvccWrite writes = 2; */ java.util.List getWritesList(); /** * repeated .kvrpcpb.MvccWrite writes = 2; */ org.tikv.kvproto.Kvrpcpb.MvccWrite getWrites(int index); /** * repeated .kvrpcpb.MvccWrite writes = 2; */ int getWritesCount(); /** * repeated .kvrpcpb.MvccWrite writes = 2; */ java.util.List getWritesOrBuilderList(); /** * repeated .kvrpcpb.MvccWrite writes = 2; */ org.tikv.kvproto.Kvrpcpb.MvccWriteOrBuilder getWritesOrBuilder( int index); /** * repeated .kvrpcpb.MvccValue values = 3; */ java.util.List getValuesList(); /** * repeated .kvrpcpb.MvccValue values = 3; */ org.tikv.kvproto.Kvrpcpb.MvccValue getValues(int index); /** * repeated .kvrpcpb.MvccValue values = 3; */ int getValuesCount(); /** * repeated .kvrpcpb.MvccValue values = 3; */ java.util.List getValuesOrBuilderList(); /** * repeated .kvrpcpb.MvccValue values = 3; */ org.tikv.kvproto.Kvrpcpb.MvccValueOrBuilder getValuesOrBuilder( int index); } /** * Protobuf type {@code kvrpcpb.MvccInfo} */ public static final class MvccInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.MvccInfo) MvccInfoOrBuilder { private static final long serialVersionUID = 0L; // Use MvccInfo.newBuilder() to construct. private MvccInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MvccInfo() { writes_ = java.util.Collections.emptyList(); values_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MvccInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.MvccLock.Builder subBuilder = null; if (lock_ != null) { subBuilder = lock_.toBuilder(); } lock_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.MvccLock.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(lock_); lock_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { writes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } writes_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.MvccWrite.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } values_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.MvccValue.parser(), extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { writes_ = java.util.Collections.unmodifiableList(writes_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { values_ = java.util.Collections.unmodifiableList(values_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccInfo.class, org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder.class); } private int bitField0_; public static final int LOCK_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.MvccLock lock_; /** * .kvrpcpb.MvccLock lock = 1; */ public boolean hasLock() { return lock_ != null; } /** * .kvrpcpb.MvccLock lock = 1; */ public org.tikv.kvproto.Kvrpcpb.MvccLock getLock() { return lock_ == null ? org.tikv.kvproto.Kvrpcpb.MvccLock.getDefaultInstance() : lock_; } /** * .kvrpcpb.MvccLock lock = 1; */ public org.tikv.kvproto.Kvrpcpb.MvccLockOrBuilder getLockOrBuilder() { return getLock(); } public static final int WRITES_FIELD_NUMBER = 2; private java.util.List writes_; /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public java.util.List getWritesList() { return writes_; } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public java.util.List getWritesOrBuilderList() { return writes_; } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public int getWritesCount() { return writes_.size(); } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public org.tikv.kvproto.Kvrpcpb.MvccWrite getWrites(int index) { return writes_.get(index); } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public org.tikv.kvproto.Kvrpcpb.MvccWriteOrBuilder getWritesOrBuilder( int index) { return writes_.get(index); } public static final int VALUES_FIELD_NUMBER = 3; private java.util.List values_; /** * repeated .kvrpcpb.MvccValue values = 3; */ public java.util.List getValuesList() { return values_; } /** * repeated .kvrpcpb.MvccValue values = 3; */ public java.util.List getValuesOrBuilderList() { return values_; } /** * repeated .kvrpcpb.MvccValue values = 3; */ public int getValuesCount() { return values_.size(); } /** * repeated .kvrpcpb.MvccValue values = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccValue getValues(int index) { return values_.get(index); } /** * repeated .kvrpcpb.MvccValue values = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccValueOrBuilder getValuesOrBuilder( int index) { return values_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (lock_ != null) { output.writeMessage(1, getLock()); } for (int i = 0; i < writes_.size(); i++) { output.writeMessage(2, writes_.get(i)); } for (int i = 0; i < values_.size(); i++) { output.writeMessage(3, values_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (lock_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLock()); } for (int i = 0; i < writes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, writes_.get(i)); } for (int i = 0; i < values_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, values_.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.Kvrpcpb.MvccInfo)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.MvccInfo other = (org.tikv.kvproto.Kvrpcpb.MvccInfo) obj; boolean result = true; result = result && (hasLock() == other.hasLock()); if (hasLock()) { result = result && getLock() .equals(other.getLock()); } result = result && getWritesList() .equals(other.getWritesList()); result = result && getValuesList() .equals(other.getValuesList()); 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 (hasLock()) { hash = (37 * hash) + LOCK_FIELD_NUMBER; hash = (53 * hash) + getLock().hashCode(); } if (getWritesCount() > 0) { hash = (37 * hash) + WRITES_FIELD_NUMBER; hash = (53 * hash) + getWritesList().hashCode(); } if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.MvccInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccInfo 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.Kvrpcpb.MvccInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccInfo 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.Kvrpcpb.MvccInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.MvccInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.MvccInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccInfo 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.Kvrpcpb.MvccInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccInfo 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.Kvrpcpb.MvccInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.MvccInfo 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.Kvrpcpb.MvccInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.MvccInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.MvccInfo) org.tikv.kvproto.Kvrpcpb.MvccInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.MvccInfo.class, org.tikv.kvproto.Kvrpcpb.MvccInfo.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.MvccInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getWritesFieldBuilder(); getValuesFieldBuilder(); } } public Builder clear() { super.clear(); if (lockBuilder_ == null) { lock_ = null; } else { lock_ = null; lockBuilder_ = null; } if (writesBuilder_ == null) { writes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { writesBuilder_.clear(); } if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { valuesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_MvccInfo_descriptor; } public org.tikv.kvproto.Kvrpcpb.MvccInfo getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.MvccInfo.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.MvccInfo build() { org.tikv.kvproto.Kvrpcpb.MvccInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.MvccInfo buildPartial() { org.tikv.kvproto.Kvrpcpb.MvccInfo result = new org.tikv.kvproto.Kvrpcpb.MvccInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (lockBuilder_ == null) { result.lock_ = lock_; } else { result.lock_ = lockBuilder_.build(); } if (writesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { writes_ = java.util.Collections.unmodifiableList(writes_); bitField0_ = (bitField0_ & ~0x00000002); } result.writes_ = writes_; } else { result.writes_ = writesBuilder_.build(); } if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000004); } result.values_ = values_; } else { result.values_ = valuesBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.MvccInfo) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.MvccInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.MvccInfo other) { if (other == org.tikv.kvproto.Kvrpcpb.MvccInfo.getDefaultInstance()) return this; if (other.hasLock()) { mergeLock(other.getLock()); } if (writesBuilder_ == null) { if (!other.writes_.isEmpty()) { if (writes_.isEmpty()) { writes_ = other.writes_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureWritesIsMutable(); writes_.addAll(other.writes_); } onChanged(); } } else { if (!other.writes_.isEmpty()) { if (writesBuilder_.isEmpty()) { writesBuilder_.dispose(); writesBuilder_ = null; writes_ = other.writes_; bitField0_ = (bitField0_ & ~0x00000002); writesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWritesFieldBuilder() : null; } else { writesBuilder_.addAllMessages(other.writes_); } } } if (valuesBuilder_ == null) { if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } } else { if (!other.values_.isEmpty()) { if (valuesBuilder_.isEmpty()) { valuesBuilder_.dispose(); valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000004); valuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } } } 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.Kvrpcpb.MvccInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.MvccInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.tikv.kvproto.Kvrpcpb.MvccLock lock_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccLock, org.tikv.kvproto.Kvrpcpb.MvccLock.Builder, org.tikv.kvproto.Kvrpcpb.MvccLockOrBuilder> lockBuilder_; /** * .kvrpcpb.MvccLock lock = 1; */ public boolean hasLock() { return lockBuilder_ != null || lock_ != null; } /** * .kvrpcpb.MvccLock lock = 1; */ public org.tikv.kvproto.Kvrpcpb.MvccLock getLock() { if (lockBuilder_ == null) { return lock_ == null ? org.tikv.kvproto.Kvrpcpb.MvccLock.getDefaultInstance() : lock_; } else { return lockBuilder_.getMessage(); } } /** * .kvrpcpb.MvccLock lock = 1; */ public Builder setLock(org.tikv.kvproto.Kvrpcpb.MvccLock value) { if (lockBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lock_ = value; onChanged(); } else { lockBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.MvccLock lock = 1; */ public Builder setLock( org.tikv.kvproto.Kvrpcpb.MvccLock.Builder builderForValue) { if (lockBuilder_ == null) { lock_ = builderForValue.build(); onChanged(); } else { lockBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.MvccLock lock = 1; */ public Builder mergeLock(org.tikv.kvproto.Kvrpcpb.MvccLock value) { if (lockBuilder_ == null) { if (lock_ != null) { lock_ = org.tikv.kvproto.Kvrpcpb.MvccLock.newBuilder(lock_).mergeFrom(value).buildPartial(); } else { lock_ = value; } onChanged(); } else { lockBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.MvccLock lock = 1; */ public Builder clearLock() { if (lockBuilder_ == null) { lock_ = null; onChanged(); } else { lock_ = null; lockBuilder_ = null; } return this; } /** * .kvrpcpb.MvccLock lock = 1; */ public org.tikv.kvproto.Kvrpcpb.MvccLock.Builder getLockBuilder() { onChanged(); return getLockFieldBuilder().getBuilder(); } /** * .kvrpcpb.MvccLock lock = 1; */ public org.tikv.kvproto.Kvrpcpb.MvccLockOrBuilder getLockOrBuilder() { if (lockBuilder_ != null) { return lockBuilder_.getMessageOrBuilder(); } else { return lock_ == null ? org.tikv.kvproto.Kvrpcpb.MvccLock.getDefaultInstance() : lock_; } } /** * .kvrpcpb.MvccLock lock = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccLock, org.tikv.kvproto.Kvrpcpb.MvccLock.Builder, org.tikv.kvproto.Kvrpcpb.MvccLockOrBuilder> getLockFieldBuilder() { if (lockBuilder_ == null) { lockBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccLock, org.tikv.kvproto.Kvrpcpb.MvccLock.Builder, org.tikv.kvproto.Kvrpcpb.MvccLockOrBuilder>( getLock(), getParentForChildren(), isClean()); lock_ = null; } return lockBuilder_; } private java.util.List writes_ = java.util.Collections.emptyList(); private void ensureWritesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { writes_ = new java.util.ArrayList(writes_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccWrite, org.tikv.kvproto.Kvrpcpb.MvccWrite.Builder, org.tikv.kvproto.Kvrpcpb.MvccWriteOrBuilder> writesBuilder_; /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public java.util.List getWritesList() { if (writesBuilder_ == null) { return java.util.Collections.unmodifiableList(writes_); } else { return writesBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public int getWritesCount() { if (writesBuilder_ == null) { return writes_.size(); } else { return writesBuilder_.getCount(); } } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public org.tikv.kvproto.Kvrpcpb.MvccWrite getWrites(int index) { if (writesBuilder_ == null) { return writes_.get(index); } else { return writesBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public Builder setWrites( int index, org.tikv.kvproto.Kvrpcpb.MvccWrite value) { if (writesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWritesIsMutable(); writes_.set(index, value); onChanged(); } else { writesBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public Builder setWrites( int index, org.tikv.kvproto.Kvrpcpb.MvccWrite.Builder builderForValue) { if (writesBuilder_ == null) { ensureWritesIsMutable(); writes_.set(index, builderForValue.build()); onChanged(); } else { writesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public Builder addWrites(org.tikv.kvproto.Kvrpcpb.MvccWrite value) { if (writesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWritesIsMutable(); writes_.add(value); onChanged(); } else { writesBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public Builder addWrites( int index, org.tikv.kvproto.Kvrpcpb.MvccWrite value) { if (writesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWritesIsMutable(); writes_.add(index, value); onChanged(); } else { writesBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public Builder addWrites( org.tikv.kvproto.Kvrpcpb.MvccWrite.Builder builderForValue) { if (writesBuilder_ == null) { ensureWritesIsMutable(); writes_.add(builderForValue.build()); onChanged(); } else { writesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public Builder addWrites( int index, org.tikv.kvproto.Kvrpcpb.MvccWrite.Builder builderForValue) { if (writesBuilder_ == null) { ensureWritesIsMutable(); writes_.add(index, builderForValue.build()); onChanged(); } else { writesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public Builder addAllWrites( java.lang.Iterable values) { if (writesBuilder_ == null) { ensureWritesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, writes_); onChanged(); } else { writesBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public Builder clearWrites() { if (writesBuilder_ == null) { writes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { writesBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public Builder removeWrites(int index) { if (writesBuilder_ == null) { ensureWritesIsMutable(); writes_.remove(index); onChanged(); } else { writesBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public org.tikv.kvproto.Kvrpcpb.MvccWrite.Builder getWritesBuilder( int index) { return getWritesFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public org.tikv.kvproto.Kvrpcpb.MvccWriteOrBuilder getWritesOrBuilder( int index) { if (writesBuilder_ == null) { return writes_.get(index); } else { return writesBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public java.util.List getWritesOrBuilderList() { if (writesBuilder_ != null) { return writesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(writes_); } } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public org.tikv.kvproto.Kvrpcpb.MvccWrite.Builder addWritesBuilder() { return getWritesFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.MvccWrite.getDefaultInstance()); } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public org.tikv.kvproto.Kvrpcpb.MvccWrite.Builder addWritesBuilder( int index) { return getWritesFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.MvccWrite.getDefaultInstance()); } /** * repeated .kvrpcpb.MvccWrite writes = 2; */ public java.util.List getWritesBuilderList() { return getWritesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccWrite, org.tikv.kvproto.Kvrpcpb.MvccWrite.Builder, org.tikv.kvproto.Kvrpcpb.MvccWriteOrBuilder> getWritesFieldBuilder() { if (writesBuilder_ == null) { writesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccWrite, org.tikv.kvproto.Kvrpcpb.MvccWrite.Builder, org.tikv.kvproto.Kvrpcpb.MvccWriteOrBuilder>( writes_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); writes_ = null; } return writesBuilder_; } private java.util.List values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { values_ = new java.util.ArrayList(values_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccValue, org.tikv.kvproto.Kvrpcpb.MvccValue.Builder, org.tikv.kvproto.Kvrpcpb.MvccValueOrBuilder> valuesBuilder_; /** * repeated .kvrpcpb.MvccValue values = 3; */ public java.util.List getValuesList() { if (valuesBuilder_ == null) { return java.util.Collections.unmodifiableList(values_); } else { return valuesBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.MvccValue values = 3; */ public int getValuesCount() { if (valuesBuilder_ == null) { return values_.size(); } else { return valuesBuilder_.getCount(); } } /** * repeated .kvrpcpb.MvccValue values = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccValue getValues(int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.MvccValue values = 3; */ public Builder setValues( int index, org.tikv.kvproto.Kvrpcpb.MvccValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); } else { valuesBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.MvccValue values = 3; */ public Builder setValues( int index, org.tikv.kvproto.Kvrpcpb.MvccValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.set(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.MvccValue values = 3; */ public Builder addValues(org.tikv.kvproto.Kvrpcpb.MvccValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); } else { valuesBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.MvccValue values = 3; */ public Builder addValues( int index, org.tikv.kvproto.Kvrpcpb.MvccValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(index, value); onChanged(); } else { valuesBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.MvccValue values = 3; */ public Builder addValues( org.tikv.kvproto.Kvrpcpb.MvccValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.MvccValue values = 3; */ public Builder addValues( int index, org.tikv.kvproto.Kvrpcpb.MvccValue.Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.MvccValue values = 3; */ public Builder addAllValues( java.lang.Iterable values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.MvccValue values = 3; */ public Builder clearValues() { if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { valuesBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.MvccValue values = 3; */ public Builder removeValues(int index) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.remove(index); onChanged(); } else { valuesBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.MvccValue values = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccValue.Builder getValuesBuilder( int index) { return getValuesFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.MvccValue values = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccValueOrBuilder getValuesOrBuilder( int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.MvccValue values = 3; */ public java.util.List getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(values_); } } /** * repeated .kvrpcpb.MvccValue values = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccValue.Builder addValuesBuilder() { return getValuesFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.MvccValue.getDefaultInstance()); } /** * repeated .kvrpcpb.MvccValue values = 3; */ public org.tikv.kvproto.Kvrpcpb.MvccValue.Builder addValuesBuilder( int index) { return getValuesFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.MvccValue.getDefaultInstance()); } /** * repeated .kvrpcpb.MvccValue values = 3; */ public java.util.List getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccValue, org.tikv.kvproto.Kvrpcpb.MvccValue.Builder, org.tikv.kvproto.Kvrpcpb.MvccValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.MvccValue, org.tikv.kvproto.Kvrpcpb.MvccValue.Builder, org.tikv.kvproto.Kvrpcpb.MvccValueOrBuilder>( values_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; } 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:kvrpcpb.MvccInfo) } // @@protoc_insertion_point(class_scope:kvrpcpb.MvccInfo) private static final org.tikv.kvproto.Kvrpcpb.MvccInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.MvccInfo(); } public static org.tikv.kvproto.Kvrpcpb.MvccInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MvccInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MvccInfo(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.Kvrpcpb.MvccInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TxnInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.TxnInfo) com.google.protobuf.MessageOrBuilder { /** * uint64 txn = 1; */ long getTxn(); /** * uint64 status = 2; */ long getStatus(); } /** * Protobuf type {@code kvrpcpb.TxnInfo} */ public static final class TxnInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.TxnInfo) TxnInfoOrBuilder { private static final long serialVersionUID = 0L; // Use TxnInfo.newBuilder() to construct. private TxnInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TxnInfo() { txn_ = 0L; status_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TxnInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { txn_ = input.readUInt64(); break; } case 16: { status_ = 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.Kvrpcpb.internal_static_kvrpcpb_TxnInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.TxnInfo.class, org.tikv.kvproto.Kvrpcpb.TxnInfo.Builder.class); } public static final int TXN_FIELD_NUMBER = 1; private long txn_; /** * uint64 txn = 1; */ public long getTxn() { return txn_; } public static final int STATUS_FIELD_NUMBER = 2; private long status_; /** * uint64 status = 2; */ public long getStatus() { return status_; } 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 (txn_ != 0L) { output.writeUInt64(1, txn_); } if (status_ != 0L) { output.writeUInt64(2, status_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (txn_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, txn_); } if (status_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, status_); } 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.Kvrpcpb.TxnInfo)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.TxnInfo other = (org.tikv.kvproto.Kvrpcpb.TxnInfo) obj; boolean result = true; result = result && (getTxn() == other.getTxn()); result = result && (getStatus() == other.getStatus()); 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) + TXN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTxn()); hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStatus()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.tikv.kvproto.Kvrpcpb.TxnInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.TxnInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.TxnInfo) org.tikv.kvproto.Kvrpcpb.TxnInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.TxnInfo.class, org.tikv.kvproto.Kvrpcpb.TxnInfo.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.TxnInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); txn_ = 0L; status_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_TxnInfo_descriptor; } public org.tikv.kvproto.Kvrpcpb.TxnInfo getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.TxnInfo.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.TxnInfo build() { org.tikv.kvproto.Kvrpcpb.TxnInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.TxnInfo buildPartial() { org.tikv.kvproto.Kvrpcpb.TxnInfo result = new org.tikv.kvproto.Kvrpcpb.TxnInfo(this); result.txn_ = txn_; result.status_ = status_; 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.Kvrpcpb.TxnInfo) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.TxnInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.TxnInfo other) { if (other == org.tikv.kvproto.Kvrpcpb.TxnInfo.getDefaultInstance()) return this; if (other.getTxn() != 0L) { setTxn(other.getTxn()); } if (other.getStatus() != 0L) { setStatus(other.getStatus()); } 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.Kvrpcpb.TxnInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.TxnInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long txn_ ; /** * uint64 txn = 1; */ public long getTxn() { return txn_; } /** * uint64 txn = 1; */ public Builder setTxn(long value) { txn_ = value; onChanged(); return this; } /** * uint64 txn = 1; */ public Builder clearTxn() { txn_ = 0L; onChanged(); return this; } private long status_ ; /** * uint64 status = 2; */ public long getStatus() { return status_; } /** * uint64 status = 2; */ public Builder setStatus(long value) { status_ = value; onChanged(); return this; } /** * uint64 status = 2; */ public Builder clearStatus() { status_ = 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:kvrpcpb.TxnInfo) } // @@protoc_insertion_point(class_scope:kvrpcpb.TxnInfo) private static final org.tikv.kvproto.Kvrpcpb.TxnInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.TxnInfo(); } public static org.tikv.kvproto.Kvrpcpb.TxnInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TxnInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TxnInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.tikv.kvproto.Kvrpcpb.TxnInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface KeyRangeOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.KeyRange) com.google.protobuf.MessageOrBuilder { /** * bytes start_key = 1; */ com.google.protobuf.ByteString getStartKey(); /** * bytes end_key = 2; */ com.google.protobuf.ByteString getEndKey(); } /** * Protobuf type {@code kvrpcpb.KeyRange} */ public static final class KeyRange extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.KeyRange) KeyRangeOrBuilder { private static final long serialVersionUID = 0L; // Use KeyRange.newBuilder() to construct. private KeyRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private KeyRange() { 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 KeyRange( 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: { startKey_ = input.readBytes(); break; } case 18: { 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.Kvrpcpb.internal_static_kvrpcpb_KeyRange_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KeyRange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.KeyRange.class, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder.class); } public static final int START_KEY_FIELD_NUMBER = 1; private com.google.protobuf.ByteString startKey_; /** * bytes start_key = 1; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } public static final int END_KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString endKey_; /** * bytes end_key = 2; */ 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 (!startKey_.isEmpty()) { output.writeBytes(1, startKey_); } if (!endKey_.isEmpty()) { output.writeBytes(2, endKey_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!startKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, startKey_); } if (!endKey_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, 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.Kvrpcpb.KeyRange)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.KeyRange other = (org.tikv.kvproto.Kvrpcpb.KeyRange) obj; boolean result = true; 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) + 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.Kvrpcpb.KeyRange parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.KeyRange 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.Kvrpcpb.KeyRange parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.KeyRange 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.Kvrpcpb.KeyRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.KeyRange parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.KeyRange parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.KeyRange 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.Kvrpcpb.KeyRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.KeyRange 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.Kvrpcpb.KeyRange parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.KeyRange 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.Kvrpcpb.KeyRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.KeyRange} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.KeyRange) org.tikv.kvproto.Kvrpcpb.KeyRangeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KeyRange_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_KeyRange_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.KeyRange.class, org.tikv.kvproto.Kvrpcpb.KeyRange.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.KeyRange.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(); 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.Kvrpcpb.internal_static_kvrpcpb_KeyRange_descriptor; } public org.tikv.kvproto.Kvrpcpb.KeyRange getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.KeyRange.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.KeyRange build() { org.tikv.kvproto.Kvrpcpb.KeyRange result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.KeyRange buildPartial() { org.tikv.kvproto.Kvrpcpb.KeyRange result = new org.tikv.kvproto.Kvrpcpb.KeyRange(this); 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.Kvrpcpb.KeyRange) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.KeyRange)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.KeyRange other) { if (other == org.tikv.kvproto.Kvrpcpb.KeyRange.getDefaultInstance()) return this; 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.Kvrpcpb.KeyRange parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.KeyRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString startKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes start_key = 1; */ public com.google.protobuf.ByteString getStartKey() { return startKey_; } /** * bytes start_key = 1; */ public Builder setStartKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } startKey_ = value; onChanged(); return this; } /** * bytes start_key = 1; */ public Builder clearStartKey() { startKey_ = getDefaultInstance().getStartKey(); onChanged(); return this; } private com.google.protobuf.ByteString endKey_ = com.google.protobuf.ByteString.EMPTY; /** * bytes end_key = 2; */ public com.google.protobuf.ByteString getEndKey() { return endKey_; } /** * bytes end_key = 2; */ public Builder setEndKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } endKey_ = value; onChanged(); return this; } /** * bytes end_key = 2; */ 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:kvrpcpb.KeyRange) } // @@protoc_insertion_point(class_scope:kvrpcpb.KeyRange) private static final org.tikv.kvproto.Kvrpcpb.KeyRange DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.KeyRange(); } public static org.tikv.kvproto.Kvrpcpb.KeyRange getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public KeyRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new KeyRange(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.Kvrpcpb.KeyRange getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LeaderInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.LeaderInfo) com.google.protobuf.MessageOrBuilder { /** * uint64 region_id = 1; */ long getRegionId(); /** * uint64 peer_id = 2; */ long getPeerId(); /** * uint64 term = 3; */ long getTerm(); /** * .metapb.RegionEpoch region_epoch = 4; */ boolean hasRegionEpoch(); /** * .metapb.RegionEpoch region_epoch = 4; */ org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch(); /** * .metapb.RegionEpoch region_epoch = 4; */ org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder(); } /** * Protobuf type {@code kvrpcpb.LeaderInfo} */ public static final class LeaderInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.LeaderInfo) LeaderInfoOrBuilder { private static final long serialVersionUID = 0L; // Use LeaderInfo.newBuilder() to construct. private LeaderInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LeaderInfo() { regionId_ = 0L; peerId_ = 0L; term_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LeaderInfo( 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: { peerId_ = input.readUInt64(); break; } case 24: { term_ = input.readUInt64(); break; } case 34: { org.tikv.kvproto.Metapb.RegionEpoch.Builder subBuilder = null; if (regionEpoch_ != null) { subBuilder = regionEpoch_.toBuilder(); } regionEpoch_ = input.readMessage(org.tikv.kvproto.Metapb.RegionEpoch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionEpoch_); regionEpoch_ = subBuilder.buildPartial(); } break; } } } } 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.Kvrpcpb.internal_static_kvrpcpb_LeaderInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_LeaderInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.LeaderInfo.class, org.tikv.kvproto.Kvrpcpb.LeaderInfo.Builder.class); } public static final int REGION_ID_FIELD_NUMBER = 1; private long regionId_; /** * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } public static final int PEER_ID_FIELD_NUMBER = 2; private long peerId_; /** * uint64 peer_id = 2; */ public long getPeerId() { return peerId_; } public static final int TERM_FIELD_NUMBER = 3; private long term_; /** * uint64 term = 3; */ public long getTerm() { return term_; } public static final int REGION_EPOCH_FIELD_NUMBER = 4; private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_; /** * .metapb.RegionEpoch region_epoch = 4; */ public boolean hasRegionEpoch() { return regionEpoch_ != null; } /** * .metapb.RegionEpoch region_epoch = 4; */ public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } /** * .metapb.RegionEpoch region_epoch = 4; */ public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() { return getRegionEpoch(); } 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 (peerId_ != 0L) { output.writeUInt64(2, peerId_); } if (term_ != 0L) { output.writeUInt64(3, term_); } if (regionEpoch_ != null) { output.writeMessage(4, getRegionEpoch()); } 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 (peerId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, peerId_); } if (term_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, term_); } if (regionEpoch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRegionEpoch()); } 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.Kvrpcpb.LeaderInfo)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.LeaderInfo other = (org.tikv.kvproto.Kvrpcpb.LeaderInfo) obj; boolean result = true; result = result && (getRegionId() == other.getRegionId()); result = result && (getPeerId() == other.getPeerId()); result = result && (getTerm() == other.getTerm()); result = result && (hasRegionEpoch() == other.hasRegionEpoch()); if (hasRegionEpoch()) { result = result && getRegionEpoch() .equals(other.getRegionEpoch()); } 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) + PEER_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPeerId()); hash = (37 * hash) + TERM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTerm()); if (hasRegionEpoch()) { hash = (37 * hash) + REGION_EPOCH_FIELD_NUMBER; hash = (53 * hash) + getRegionEpoch().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.LeaderInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.LeaderInfo 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.Kvrpcpb.LeaderInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.LeaderInfo 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.Kvrpcpb.LeaderInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.LeaderInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.LeaderInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.LeaderInfo 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.Kvrpcpb.LeaderInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.LeaderInfo 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.Kvrpcpb.LeaderInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.LeaderInfo 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.Kvrpcpb.LeaderInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.LeaderInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.LeaderInfo) org.tikv.kvproto.Kvrpcpb.LeaderInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_LeaderInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_LeaderInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.LeaderInfo.class, org.tikv.kvproto.Kvrpcpb.LeaderInfo.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.LeaderInfo.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; peerId_ = 0L; term_ = 0L; if (regionEpochBuilder_ == null) { regionEpoch_ = null; } else { regionEpoch_ = null; regionEpochBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_LeaderInfo_descriptor; } public org.tikv.kvproto.Kvrpcpb.LeaderInfo getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.LeaderInfo.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.LeaderInfo build() { org.tikv.kvproto.Kvrpcpb.LeaderInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.LeaderInfo buildPartial() { org.tikv.kvproto.Kvrpcpb.LeaderInfo result = new org.tikv.kvproto.Kvrpcpb.LeaderInfo(this); result.regionId_ = regionId_; result.peerId_ = peerId_; result.term_ = term_; if (regionEpochBuilder_ == null) { result.regionEpoch_ = regionEpoch_; } else { result.regionEpoch_ = regionEpochBuilder_.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.Kvrpcpb.LeaderInfo) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.LeaderInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.LeaderInfo other) { if (other == org.tikv.kvproto.Kvrpcpb.LeaderInfo.getDefaultInstance()) return this; if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } if (other.getPeerId() != 0L) { setPeerId(other.getPeerId()); } if (other.getTerm() != 0L) { setTerm(other.getTerm()); } if (other.hasRegionEpoch()) { mergeRegionEpoch(other.getRegionEpoch()); } 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.Kvrpcpb.LeaderInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.LeaderInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long regionId_ ; /** * uint64 region_id = 1; */ public long getRegionId() { return regionId_; } /** * uint64 region_id = 1; */ public Builder setRegionId(long value) { regionId_ = value; onChanged(); return this; } /** * uint64 region_id = 1; */ public Builder clearRegionId() { regionId_ = 0L; onChanged(); return this; } private long peerId_ ; /** * uint64 peer_id = 2; */ public long getPeerId() { return peerId_; } /** * uint64 peer_id = 2; */ public Builder setPeerId(long value) { peerId_ = value; onChanged(); return this; } /** * uint64 peer_id = 2; */ public Builder clearPeerId() { peerId_ = 0L; onChanged(); return this; } private long term_ ; /** * uint64 term = 3; */ public long getTerm() { return term_; } /** * uint64 term = 3; */ public Builder setTerm(long value) { term_ = value; onChanged(); return this; } /** * uint64 term = 3; */ public Builder clearTerm() { term_ = 0L; onChanged(); return this; } private org.tikv.kvproto.Metapb.RegionEpoch regionEpoch_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder> regionEpochBuilder_; /** * .metapb.RegionEpoch region_epoch = 4; */ public boolean hasRegionEpoch() { return regionEpochBuilder_ != null || regionEpoch_ != null; } /** * .metapb.RegionEpoch region_epoch = 4; */ public org.tikv.kvproto.Metapb.RegionEpoch getRegionEpoch() { if (regionEpochBuilder_ == null) { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } else { return regionEpochBuilder_.getMessage(); } } /** * .metapb.RegionEpoch region_epoch = 4; */ public Builder setRegionEpoch(org.tikv.kvproto.Metapb.RegionEpoch value) { if (regionEpochBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionEpoch_ = value; onChanged(); } else { regionEpochBuilder_.setMessage(value); } return this; } /** * .metapb.RegionEpoch region_epoch = 4; */ public Builder setRegionEpoch( org.tikv.kvproto.Metapb.RegionEpoch.Builder builderForValue) { if (regionEpochBuilder_ == null) { regionEpoch_ = builderForValue.build(); onChanged(); } else { regionEpochBuilder_.setMessage(builderForValue.build()); } return this; } /** * .metapb.RegionEpoch region_epoch = 4; */ public Builder mergeRegionEpoch(org.tikv.kvproto.Metapb.RegionEpoch value) { if (regionEpochBuilder_ == null) { if (regionEpoch_ != null) { regionEpoch_ = org.tikv.kvproto.Metapb.RegionEpoch.newBuilder(regionEpoch_).mergeFrom(value).buildPartial(); } else { regionEpoch_ = value; } onChanged(); } else { regionEpochBuilder_.mergeFrom(value); } return this; } /** * .metapb.RegionEpoch region_epoch = 4; */ public Builder clearRegionEpoch() { if (regionEpochBuilder_ == null) { regionEpoch_ = null; onChanged(); } else { regionEpoch_ = null; regionEpochBuilder_ = null; } return this; } /** * .metapb.RegionEpoch region_epoch = 4; */ public org.tikv.kvproto.Metapb.RegionEpoch.Builder getRegionEpochBuilder() { onChanged(); return getRegionEpochFieldBuilder().getBuilder(); } /** * .metapb.RegionEpoch region_epoch = 4; */ public org.tikv.kvproto.Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder() { if (regionEpochBuilder_ != null) { return regionEpochBuilder_.getMessageOrBuilder(); } else { return regionEpoch_ == null ? org.tikv.kvproto.Metapb.RegionEpoch.getDefaultInstance() : regionEpoch_; } } /** * .metapb.RegionEpoch region_epoch = 4; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder> getRegionEpochFieldBuilder() { if (regionEpochBuilder_ == null) { regionEpochBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Metapb.RegionEpoch, org.tikv.kvproto.Metapb.RegionEpoch.Builder, org.tikv.kvproto.Metapb.RegionEpochOrBuilder>( getRegionEpoch(), getParentForChildren(), isClean()); regionEpoch_ = null; } return regionEpochBuilder_; } 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:kvrpcpb.LeaderInfo) } // @@protoc_insertion_point(class_scope:kvrpcpb.LeaderInfo) private static final org.tikv.kvproto.Kvrpcpb.LeaderInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.LeaderInfo(); } public static org.tikv.kvproto.Kvrpcpb.LeaderInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public LeaderInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LeaderInfo(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.Kvrpcpb.LeaderInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckLeaderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CheckLeaderRequest) com.google.protobuf.MessageOrBuilder { /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ java.util.List getRegionsList(); /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ org.tikv.kvproto.Kvrpcpb.LeaderInfo getRegions(int index); /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ int getRegionsCount(); /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ java.util.List getRegionsOrBuilderList(); /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ org.tikv.kvproto.Kvrpcpb.LeaderInfoOrBuilder getRegionsOrBuilder( int index); /** * uint64 ts = 2; */ long getTs(); } /** * Protobuf type {@code kvrpcpb.CheckLeaderRequest} */ public static final class CheckLeaderRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CheckLeaderRequest) CheckLeaderRequestOrBuilder { private static final long serialVersionUID = 0L; // Use CheckLeaderRequest.newBuilder() to construct. private CheckLeaderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckLeaderRequest() { regions_ = java.util.Collections.emptyList(); ts_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckLeaderRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } regions_.add( input.readMessage(org.tikv.kvproto.Kvrpcpb.LeaderInfo.parser(), extensionRegistry)); break; } case 16: { ts_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { regions_ = java.util.Collections.unmodifiableList(regions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLeaderRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLeaderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest.class, org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest.Builder.class); } private int bitField0_; public static final int REGIONS_FIELD_NUMBER = 1; private java.util.List regions_; /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public java.util.List getRegionsList() { return regions_; } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public java.util.List getRegionsOrBuilderList() { return regions_; } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public int getRegionsCount() { return regions_.size(); } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public org.tikv.kvproto.Kvrpcpb.LeaderInfo getRegions(int index) { return regions_.get(index); } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public org.tikv.kvproto.Kvrpcpb.LeaderInfoOrBuilder getRegionsOrBuilder( int index) { return regions_.get(index); } public static final int TS_FIELD_NUMBER = 2; private long ts_; /** * uint64 ts = 2; */ public long getTs() { return ts_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < regions_.size(); i++) { output.writeMessage(1, regions_.get(i)); } if (ts_ != 0L) { output.writeUInt64(2, ts_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < regions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, regions_.get(i)); } if (ts_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, ts_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest other = (org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest) obj; boolean result = true; result = result && getRegionsList() .equals(other.getRegionsList()); result = result && (getTs() == other.getTs()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRegionsCount() > 0) { hash = (37 * hash) + REGIONS_FIELD_NUMBER; hash = (53 * hash) + getRegionsList().hashCode(); } hash = (37 * hash) + TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest 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.Kvrpcpb.CheckLeaderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest 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.Kvrpcpb.CheckLeaderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest 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.Kvrpcpb.CheckLeaderRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest 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.Kvrpcpb.CheckLeaderRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest 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.Kvrpcpb.CheckLeaderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.CheckLeaderRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CheckLeaderRequest) org.tikv.kvproto.Kvrpcpb.CheckLeaderRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLeaderRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLeaderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest.class, org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRegionsFieldBuilder(); } } public Builder clear() { super.clear(); if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { regionsBuilder_.clear(); } ts_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLeaderRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest build() { org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest result = new org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (regionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { regions_ = java.util.Collections.unmodifiableList(regions_); bitField0_ = (bitField0_ & ~0x00000001); } result.regions_ = regions_; } else { result.regions_ = regionsBuilder_.build(); } result.ts_ = ts_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest.getDefaultInstance()) return this; if (regionsBuilder_ == null) { if (!other.regions_.isEmpty()) { if (regions_.isEmpty()) { regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRegionsIsMutable(); regions_.addAll(other.regions_); } onChanged(); } } else { if (!other.regions_.isEmpty()) { if (regionsBuilder_.isEmpty()) { regionsBuilder_.dispose(); regionsBuilder_ = null; regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000001); regionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRegionsFieldBuilder() : null; } else { regionsBuilder_.addAllMessages(other.regions_); } } } if (other.getTs() != 0L) { setTs(other.getTs()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List regions_ = java.util.Collections.emptyList(); private void ensureRegionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { regions_ = new java.util.ArrayList(regions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LeaderInfo, org.tikv.kvproto.Kvrpcpb.LeaderInfo.Builder, org.tikv.kvproto.Kvrpcpb.LeaderInfoOrBuilder> regionsBuilder_; /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public java.util.List getRegionsList() { if (regionsBuilder_ == null) { return java.util.Collections.unmodifiableList(regions_); } else { return regionsBuilder_.getMessageList(); } } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public int getRegionsCount() { if (regionsBuilder_ == null) { return regions_.size(); } else { return regionsBuilder_.getCount(); } } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public org.tikv.kvproto.Kvrpcpb.LeaderInfo getRegions(int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessage(index); } } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public Builder setRegions( int index, org.tikv.kvproto.Kvrpcpb.LeaderInfo value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.set(index, value); onChanged(); } else { regionsBuilder_.setMessage(index, value); } return this; } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public Builder setRegions( int index, org.tikv.kvproto.Kvrpcpb.LeaderInfo.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.set(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public Builder addRegions(org.tikv.kvproto.Kvrpcpb.LeaderInfo value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(value); onChanged(); } else { regionsBuilder_.addMessage(value); } return this; } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public Builder addRegions( int index, org.tikv.kvproto.Kvrpcpb.LeaderInfo value) { if (regionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRegionsIsMutable(); regions_.add(index, value); onChanged(); } else { regionsBuilder_.addMessage(index, value); } return this; } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public Builder addRegions( org.tikv.kvproto.Kvrpcpb.LeaderInfo.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public Builder addRegions( int index, org.tikv.kvproto.Kvrpcpb.LeaderInfo.Builder builderForValue) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.add(index, builderForValue.build()); onChanged(); } else { regionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public Builder addAllRegions( java.lang.Iterable values) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regions_); onChanged(); } else { regionsBuilder_.addAllMessages(values); } return this; } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public Builder clearRegions() { if (regionsBuilder_ == null) { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { regionsBuilder_.clear(); } return this; } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public Builder removeRegions(int index) { if (regionsBuilder_ == null) { ensureRegionsIsMutable(); regions_.remove(index); onChanged(); } else { regionsBuilder_.remove(index); } return this; } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public org.tikv.kvproto.Kvrpcpb.LeaderInfo.Builder getRegionsBuilder( int index) { return getRegionsFieldBuilder().getBuilder(index); } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public org.tikv.kvproto.Kvrpcpb.LeaderInfoOrBuilder getRegionsOrBuilder( int index) { if (regionsBuilder_ == null) { return regions_.get(index); } else { return regionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public java.util.List getRegionsOrBuilderList() { if (regionsBuilder_ != null) { return regionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(regions_); } } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public org.tikv.kvproto.Kvrpcpb.LeaderInfo.Builder addRegionsBuilder() { return getRegionsFieldBuilder().addBuilder( org.tikv.kvproto.Kvrpcpb.LeaderInfo.getDefaultInstance()); } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public org.tikv.kvproto.Kvrpcpb.LeaderInfo.Builder addRegionsBuilder( int index) { return getRegionsFieldBuilder().addBuilder( index, org.tikv.kvproto.Kvrpcpb.LeaderInfo.getDefaultInstance()); } /** * repeated .kvrpcpb.LeaderInfo regions = 1; */ public java.util.List getRegionsBuilderList() { return getRegionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LeaderInfo, org.tikv.kvproto.Kvrpcpb.LeaderInfo.Builder, org.tikv.kvproto.Kvrpcpb.LeaderInfoOrBuilder> getRegionsFieldBuilder() { if (regionsBuilder_ == null) { regionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.LeaderInfo, org.tikv.kvproto.Kvrpcpb.LeaderInfo.Builder, org.tikv.kvproto.Kvrpcpb.LeaderInfoOrBuilder>( regions_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); regions_ = null; } return regionsBuilder_; } private long ts_ ; /** * uint64 ts = 2; */ public long getTs() { return ts_; } /** * uint64 ts = 2; */ public Builder setTs(long value) { ts_ = value; onChanged(); return this; } /** * uint64 ts = 2; */ public Builder clearTs() { ts_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.CheckLeaderRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.CheckLeaderRequest) private static final org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest(); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CheckLeaderRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckLeaderRequest(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.Kvrpcpb.CheckLeaderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CheckLeaderResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.CheckLeaderResponse) com.google.protobuf.MessageOrBuilder { /** * repeated uint64 regions = 1; */ java.util.List getRegionsList(); /** * repeated uint64 regions = 1; */ int getRegionsCount(); /** * repeated uint64 regions = 1; */ long getRegions(int index); /** * uint64 ts = 2; */ long getTs(); } /** * Protobuf type {@code kvrpcpb.CheckLeaderResponse} */ public static final class CheckLeaderResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.CheckLeaderResponse) CheckLeaderResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CheckLeaderResponse.newBuilder() to construct. private CheckLeaderResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CheckLeaderResponse() { regions_ = java.util.Collections.emptyList(); ts_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CheckLeaderResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } regions_.add(input.readUInt64()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { regions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { regions_.add(input.readUInt64()); } input.popLimit(limit); break; } case 16: { ts_ = input.readUInt64(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { regions_ = java.util.Collections.unmodifiableList(regions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLeaderResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLeaderResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse.class, org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse.Builder.class); } private int bitField0_; public static final int REGIONS_FIELD_NUMBER = 1; private java.util.List regions_; /** * repeated uint64 regions = 1; */ public java.util.List getRegionsList() { return regions_; } /** * repeated uint64 regions = 1; */ public int getRegionsCount() { return regions_.size(); } /** * repeated uint64 regions = 1; */ public long getRegions(int index) { return regions_.get(index); } private int regionsMemoizedSerializedSize = -1; public static final int TS_FIELD_NUMBER = 2; private long ts_; /** * uint64 ts = 2; */ public long getTs() { return ts_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getRegionsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(regionsMemoizedSerializedSize); } for (int i = 0; i < regions_.size(); i++) { output.writeUInt64NoTag(regions_.get(i)); } if (ts_ != 0L) { output.writeUInt64(2, ts_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < regions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(regions_.get(i)); } size += dataSize; if (!getRegionsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } regionsMemoizedSerializedSize = dataSize; } if (ts_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, ts_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse other = (org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse) obj; boolean result = true; result = result && getRegionsList() .equals(other.getRegionsList()); result = result && (getTs() == other.getTs()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRegionsCount() > 0) { hash = (37 * hash) + REGIONS_FIELD_NUMBER; hash = (53 * hash) + getRegionsList().hashCode(); } hash = (37 * hash) + TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTs()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse 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.Kvrpcpb.CheckLeaderResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse 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.Kvrpcpb.CheckLeaderResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse 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.Kvrpcpb.CheckLeaderResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse 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.Kvrpcpb.CheckLeaderResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse 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.Kvrpcpb.CheckLeaderResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.CheckLeaderResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.CheckLeaderResponse) org.tikv.kvproto.Kvrpcpb.CheckLeaderResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLeaderResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLeaderResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse.class, org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); ts_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_CheckLeaderResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse build() { org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse result = new org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { regions_ = java.util.Collections.unmodifiableList(regions_); bitField0_ = (bitField0_ & ~0x00000001); } result.regions_ = regions_; result.ts_ = ts_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse.getDefaultInstance()) return this; if (!other.regions_.isEmpty()) { if (regions_.isEmpty()) { regions_ = other.regions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRegionsIsMutable(); regions_.addAll(other.regions_); } onChanged(); } if (other.getTs() != 0L) { setTs(other.getTs()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List regions_ = java.util.Collections.emptyList(); private void ensureRegionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { regions_ = new java.util.ArrayList(regions_); bitField0_ |= 0x00000001; } } /** * repeated uint64 regions = 1; */ public java.util.List getRegionsList() { return java.util.Collections.unmodifiableList(regions_); } /** * repeated uint64 regions = 1; */ public int getRegionsCount() { return regions_.size(); } /** * repeated uint64 regions = 1; */ public long getRegions(int index) { return regions_.get(index); } /** * repeated uint64 regions = 1; */ public Builder setRegions( int index, long value) { ensureRegionsIsMutable(); regions_.set(index, value); onChanged(); return this; } /** * repeated uint64 regions = 1; */ public Builder addRegions(long value) { ensureRegionsIsMutable(); regions_.add(value); onChanged(); return this; } /** * repeated uint64 regions = 1; */ public Builder addAllRegions( java.lang.Iterable values) { ensureRegionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, regions_); onChanged(); return this; } /** * repeated uint64 regions = 1; */ public Builder clearRegions() { regions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private long ts_ ; /** * uint64 ts = 2; */ public long getTs() { return ts_; } /** * uint64 ts = 2; */ public Builder setTs(long value) { ts_ = value; onChanged(); return this; } /** * uint64 ts = 2; */ public Builder clearTs() { ts_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.CheckLeaderResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.CheckLeaderResponse) private static final org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse(); } public static org.tikv.kvproto.Kvrpcpb.CheckLeaderResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public CheckLeaderResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CheckLeaderResponse(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.Kvrpcpb.CheckLeaderResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawGetKeyTTLRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawGetKeyTTLRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * string cf = 3; */ java.lang.String getCf(); /** * string cf = 3; */ com.google.protobuf.ByteString getCfBytes(); } /** * Protobuf type {@code kvrpcpb.RawGetKeyTTLRequest} */ public static final class RawGetKeyTTLRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawGetKeyTTLRequest) RawGetKeyTTLRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RawGetKeyTTLRequest.newBuilder() to construct. private RawGetKeyTTLRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawGetKeyTTLRequest() { key_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawGetKeyTTLRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { key_ = input.readBytes(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetKeyTTLRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetKeyTTLRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest.class, org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int CF_FIELD_NUMBER = 3; private volatile java.lang.Object cf_; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, cf_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, cf_); } 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.Kvrpcpb.RawGetKeyTTLRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest other = (org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKey() .equals(other.getKey()); result = result && getCf() .equals(other.getCf()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest 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.Kvrpcpb.RawGetKeyTTLRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest 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.Kvrpcpb.RawGetKeyTTLRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest 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.Kvrpcpb.RawGetKeyTTLRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest 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.Kvrpcpb.RawGetKeyTTLRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest 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.Kvrpcpb.RawGetKeyTTLRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawGetKeyTTLRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawGetKeyTTLRequest) org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetKeyTTLRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetKeyTTLRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest.class, org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } key_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetKeyTTLRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest build() { org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest result = new org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.key_ = key_; result.cf_ = cf_; 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.Kvrpcpb.RawGetKeyTTLRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 3; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 3; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 3; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 3; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 3; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawGetKeyTTLRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawGetKeyTTLRequest) private static final org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest(); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawGetKeyTTLRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawGetKeyTTLRequest(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.Kvrpcpb.RawGetKeyTTLRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawGetKeyTTLResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawGetKeyTTLResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); /** * uint64 ttl = 3; */ long getTtl(); /** * bool not_found = 4; */ boolean getNotFound(); } /** * Protobuf type {@code kvrpcpb.RawGetKeyTTLResponse} */ public static final class RawGetKeyTTLResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawGetKeyTTLResponse) RawGetKeyTTLResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RawGetKeyTTLResponse.newBuilder() to construct. private RawGetKeyTTLResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawGetKeyTTLResponse() { error_ = ""; ttl_ = 0L; notFound_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawGetKeyTTLResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } case 24: { ttl_ = input.readUInt64(); break; } case 32: { notFound_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetKeyTTLResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetKeyTTLResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse.class, org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TTL_FIELD_NUMBER = 3; private long ttl_; /** * uint64 ttl = 3; */ public long getTtl() { return ttl_; } public static final int NOT_FOUND_FIELD_NUMBER = 4; private boolean notFound_; /** * bool not_found = 4; */ public boolean getNotFound() { return notFound_; } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } if (ttl_ != 0L) { output.writeUInt64(3, ttl_); } if (notFound_ != false) { output.writeBool(4, notFound_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } if (ttl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, ttl_); } if (notFound_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, notFound_); } 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.Kvrpcpb.RawGetKeyTTLResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse other = (org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); result = result && (getTtl() == other.getTtl()); result = result && (getNotFound() == other.getNotFound()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTtl()); hash = (37 * hash) + NOT_FOUND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNotFound()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse 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.Kvrpcpb.RawGetKeyTTLResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse 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.Kvrpcpb.RawGetKeyTTLResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse 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.Kvrpcpb.RawGetKeyTTLResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse 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.Kvrpcpb.RawGetKeyTTLResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse 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.Kvrpcpb.RawGetKeyTTLResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawGetKeyTTLResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawGetKeyTTLResponse) org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetKeyTTLResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetKeyTTLResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse.class, org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; ttl_ = 0L; notFound_ = false; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawGetKeyTTLResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse build() { org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse result = new org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; result.ttl_ = ttl_; result.notFound_ = notFound_; 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.Kvrpcpb.RawGetKeyTTLResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } if (other.getTtl() != 0L) { setTtl(other.getTtl()); } if (other.getNotFound() != false) { setNotFound(other.getNotFound()); } 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.Kvrpcpb.RawGetKeyTTLResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } private long ttl_ ; /** * uint64 ttl = 3; */ public long getTtl() { return ttl_; } /** * uint64 ttl = 3; */ public Builder setTtl(long value) { ttl_ = value; onChanged(); return this; } /** * uint64 ttl = 3; */ public Builder clearTtl() { ttl_ = 0L; onChanged(); return this; } private boolean notFound_ ; /** * bool not_found = 4; */ public boolean getNotFound() { return notFound_; } /** * bool not_found = 4; */ public Builder setNotFound(boolean value) { notFound_ = value; onChanged(); return this; } /** * bool not_found = 4; */ public Builder clearNotFound() { notFound_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:kvrpcpb.RawGetKeyTTLResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawGetKeyTTLResponse) private static final org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse(); } public static org.tikv.kvproto.Kvrpcpb.RawGetKeyTTLResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawGetKeyTTLResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawGetKeyTTLResponse(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.Kvrpcpb.RawGetKeyTTLResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawCASRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawCASRequest) com.google.protobuf.MessageOrBuilder { /** * .kvrpcpb.Context context = 1; */ boolean hasContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.Context getContext(); /** * .kvrpcpb.Context context = 1; */ org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder(); /** * bytes key = 2; */ com.google.protobuf.ByteString getKey(); /** * bytes value = 3; */ com.google.protobuf.ByteString getValue(); /** * bool previous_not_exist = 4; */ boolean getPreviousNotExist(); /** * bytes previous_value = 5; */ com.google.protobuf.ByteString getPreviousValue(); /** * string cf = 6; */ java.lang.String getCf(); /** * string cf = 6; */ com.google.protobuf.ByteString getCfBytes(); /** * uint64 ttl = 7; */ long getTtl(); } /** * Protobuf type {@code kvrpcpb.RawCASRequest} */ public static final class RawCASRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawCASRequest) RawCASRequestOrBuilder { private static final long serialVersionUID = 0L; // Use RawCASRequest.newBuilder() to construct. private RawCASRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawCASRequest() { key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; previousNotExist_ = false; previousValue_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; ttl_ = 0L; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawCASRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Kvrpcpb.Context.Builder subBuilder = null; if (context_ != null) { subBuilder = context_.toBuilder(); } context_ = input.readMessage(org.tikv.kvproto.Kvrpcpb.Context.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial(); } break; } case 18: { key_ = input.readBytes(); break; } case 26: { value_ = input.readBytes(); break; } case 32: { previousNotExist_ = input.readBool(); break; } case 42: { previousValue_ = input.readBytes(); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); cf_ = s; break; } case 56: { ttl_ = 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.Kvrpcpb.internal_static_kvrpcpb_RawCASRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawCASRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawCASRequest.class, org.tikv.kvproto.Kvrpcpb.RawCASRequest.Builder.class); } public static final int CONTEXT_FIELD_NUMBER = 1; private org.tikv.kvproto.Kvrpcpb.Context context_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { return getContext(); } public static final int KEY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString key_; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } public static final int VALUE_FIELD_NUMBER = 3; private com.google.protobuf.ByteString value_; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } public static final int PREVIOUS_NOT_EXIST_FIELD_NUMBER = 4; private boolean previousNotExist_; /** * bool previous_not_exist = 4; */ public boolean getPreviousNotExist() { return previousNotExist_; } public static final int PREVIOUS_VALUE_FIELD_NUMBER = 5; private com.google.protobuf.ByteString previousValue_; /** * bytes previous_value = 5; */ public com.google.protobuf.ByteString getPreviousValue() { return previousValue_; } public static final int CF_FIELD_NUMBER = 6; private volatile java.lang.Object cf_; /** * string cf = 6; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } } /** * string cf = 6; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TTL_FIELD_NUMBER = 7; private long ttl_; /** * uint64 ttl = 7; */ public long getTtl() { return ttl_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (context_ != null) { output.writeMessage(1, getContext()); } if (!key_.isEmpty()) { output.writeBytes(2, key_); } if (!value_.isEmpty()) { output.writeBytes(3, value_); } if (previousNotExist_ != false) { output.writeBool(4, previousNotExist_); } if (!previousValue_.isEmpty()) { output.writeBytes(5, previousValue_); } if (!getCfBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, cf_); } if (ttl_ != 0L) { output.writeUInt64(7, ttl_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (context_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getContext()); } if (!key_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, value_); } if (previousNotExist_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, previousNotExist_); } if (!previousValue_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, previousValue_); } if (!getCfBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, cf_); } if (ttl_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, ttl_); } 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.Kvrpcpb.RawCASRequest)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawCASRequest other = (org.tikv.kvproto.Kvrpcpb.RawCASRequest) obj; boolean result = true; result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext() .equals(other.getContext()); } result = result && getKey() .equals(other.getKey()); result = result && getValue() .equals(other.getValue()); result = result && (getPreviousNotExist() == other.getPreviousNotExist()); result = result && getPreviousValue() .equals(other.getPreviousValue()); result = result && getCf() .equals(other.getCf()); result = result && (getTtl() == other.getTtl()); 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 (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + PREVIOUS_NOT_EXIST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPreviousNotExist()); hash = (37 * hash) + PREVIOUS_VALUE_FIELD_NUMBER; hash = (53 * hash) + getPreviousValue().hashCode(); hash = (37 * hash) + CF_FIELD_NUMBER; hash = (53 * hash) + getCf().hashCode(); hash = (37 * hash) + TTL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTtl()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawCASRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawCASRequest 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.Kvrpcpb.RawCASRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawCASRequest 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.Kvrpcpb.RawCASRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawCASRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawCASRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawCASRequest 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.Kvrpcpb.RawCASRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawCASRequest 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.Kvrpcpb.RawCASRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawCASRequest 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.Kvrpcpb.RawCASRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawCASRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawCASRequest) org.tikv.kvproto.Kvrpcpb.RawCASRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawCASRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawCASRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawCASRequest.class, org.tikv.kvproto.Kvrpcpb.RawCASRequest.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawCASRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (contextBuilder_ == null) { context_ = null; } else { context_ = null; contextBuilder_ = null; } key_ = com.google.protobuf.ByteString.EMPTY; value_ = com.google.protobuf.ByteString.EMPTY; previousNotExist_ = false; previousValue_ = com.google.protobuf.ByteString.EMPTY; cf_ = ""; ttl_ = 0L; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawCASRequest_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawCASRequest getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawCASRequest.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawCASRequest build() { org.tikv.kvproto.Kvrpcpb.RawCASRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawCASRequest buildPartial() { org.tikv.kvproto.Kvrpcpb.RawCASRequest result = new org.tikv.kvproto.Kvrpcpb.RawCASRequest(this); if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } result.key_ = key_; result.value_ = value_; result.previousNotExist_ = previousNotExist_; result.previousValue_ = previousValue_; result.cf_ = cf_; result.ttl_ = ttl_; 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.Kvrpcpb.RawCASRequest) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawCASRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawCASRequest other) { if (other == org.tikv.kvproto.Kvrpcpb.RawCASRequest.getDefaultInstance()) return this; if (other.hasContext()) { mergeContext(other.getContext()); } if (other.getKey() != com.google.protobuf.ByteString.EMPTY) { setKey(other.getKey()); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.getPreviousNotExist() != false) { setPreviousNotExist(other.getPreviousNotExist()); } if (other.getPreviousValue() != com.google.protobuf.ByteString.EMPTY) { setPreviousValue(other.getPreviousValue()); } if (!other.getCf().isEmpty()) { cf_ = other.cf_; onChanged(); } if (other.getTtl() != 0L) { setTtl(other.getTtl()); } 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.Kvrpcpb.RawCASRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawCASRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Kvrpcpb.Context context_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> contextBuilder_; /** * .kvrpcpb.Context context = 1; */ public boolean hasContext() { return contextBuilder_ != null || context_ != null; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context getContext() { if (contextBuilder_ == null) { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } else { return contextBuilder_.getMessage(); } } /** * .kvrpcpb.Context context = 1; */ public Builder setContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); } else { contextBuilder_.setMessage(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder setContext( org.tikv.kvproto.Kvrpcpb.Context.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder mergeContext(org.tikv.kvproto.Kvrpcpb.Context value) { if (contextBuilder_ == null) { if (context_ != null) { context_ = org.tikv.kvproto.Kvrpcpb.Context.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } return this; } /** * .kvrpcpb.Context context = 1; */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = null; onChanged(); } else { context_ = null; contextBuilder_ = null; } return this; } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.Context.Builder getContextBuilder() { onChanged(); return getContextFieldBuilder().getBuilder(); } /** * .kvrpcpb.Context context = 1; */ public org.tikv.kvproto.Kvrpcpb.ContextOrBuilder getContextOrBuilder() { if (contextBuilder_ != null) { return contextBuilder_.getMessageOrBuilder(); } else { return context_ == null ? org.tikv.kvproto.Kvrpcpb.Context.getDefaultInstance() : context_; } } /** * .kvrpcpb.Context context = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder> getContextFieldBuilder() { if (contextBuilder_ == null) { contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Kvrpcpb.Context, org.tikv.kvproto.Kvrpcpb.Context.Builder, org.tikv.kvproto.Kvrpcpb.ContextOrBuilder>( getContext(), getParentForChildren(), isClean()); context_ = null; } return contextBuilder_; } private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY; /** * bytes key = 2; */ public com.google.protobuf.ByteString getKey() { return key_; } /** * bytes key = 2; */ public Builder setKey(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** * bytes key = 2; */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; /** * bytes value = 3; */ public com.google.protobuf.ByteString getValue() { return value_; } /** * bytes value = 3; */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * bytes value = 3; */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } private boolean previousNotExist_ ; /** * bool previous_not_exist = 4; */ public boolean getPreviousNotExist() { return previousNotExist_; } /** * bool previous_not_exist = 4; */ public Builder setPreviousNotExist(boolean value) { previousNotExist_ = value; onChanged(); return this; } /** * bool previous_not_exist = 4; */ public Builder clearPreviousNotExist() { previousNotExist_ = false; onChanged(); return this; } private com.google.protobuf.ByteString previousValue_ = com.google.protobuf.ByteString.EMPTY; /** * bytes previous_value = 5; */ public com.google.protobuf.ByteString getPreviousValue() { return previousValue_; } /** * bytes previous_value = 5; */ public Builder setPreviousValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } previousValue_ = value; onChanged(); return this; } /** * bytes previous_value = 5; */ public Builder clearPreviousValue() { previousValue_ = getDefaultInstance().getPreviousValue(); onChanged(); return this; } private java.lang.Object cf_ = ""; /** * string cf = 6; */ public java.lang.String getCf() { java.lang.Object ref = cf_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cf_ = s; return s; } else { return (java.lang.String) ref; } } /** * string cf = 6; */ public com.google.protobuf.ByteString getCfBytes() { java.lang.Object ref = cf_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cf_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string cf = 6; */ public Builder setCf( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cf_ = value; onChanged(); return this; } /** * string cf = 6; */ public Builder clearCf() { cf_ = getDefaultInstance().getCf(); onChanged(); return this; } /** * string cf = 6; */ public Builder setCfBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cf_ = value; onChanged(); return this; } private long ttl_ ; /** * uint64 ttl = 7; */ public long getTtl() { return ttl_; } /** * uint64 ttl = 7; */ public Builder setTtl(long value) { ttl_ = value; onChanged(); return this; } /** * uint64 ttl = 7; */ public Builder clearTtl() { ttl_ = 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:kvrpcpb.RawCASRequest) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawCASRequest) private static final org.tikv.kvproto.Kvrpcpb.RawCASRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawCASRequest(); } public static org.tikv.kvproto.Kvrpcpb.RawCASRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawCASRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawCASRequest(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.Kvrpcpb.RawCASRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RawCASResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:kvrpcpb.RawCASResponse) com.google.protobuf.MessageOrBuilder { /** * .errorpb.Error region_error = 1; */ boolean hasRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.Error getRegionError(); /** * .errorpb.Error region_error = 1; */ org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder(); /** * string error = 2; */ java.lang.String getError(); /** * string error = 2; */ com.google.protobuf.ByteString getErrorBytes(); /** * bool succeed = 3; */ boolean getSucceed(); /** *
     * The previous value regardless of whether the comparison is succeed.
     * 
* * bool previous_not_exist = 4; */ boolean getPreviousNotExist(); /** * bytes previous_value = 5; */ com.google.protobuf.ByteString getPreviousValue(); } /** * Protobuf type {@code kvrpcpb.RawCASResponse} */ public static final class RawCASResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:kvrpcpb.RawCASResponse) RawCASResponseOrBuilder { private static final long serialVersionUID = 0L; // Use RawCASResponse.newBuilder() to construct. private RawCASResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RawCASResponse() { error_ = ""; succeed_ = false; previousNotExist_ = false; previousValue_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RawCASResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.tikv.kvproto.Errorpb.Error.Builder subBuilder = null; if (regionError_ != null) { subBuilder = regionError_.toBuilder(); } regionError_ = input.readMessage(org.tikv.kvproto.Errorpb.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(regionError_); regionError_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); error_ = s; break; } case 24: { succeed_ = input.readBool(); break; } case 32: { previousNotExist_ = input.readBool(); break; } case 42: { previousValue_ = 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.Kvrpcpb.internal_static_kvrpcpb_RawCASResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawCASResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawCASResponse.class, org.tikv.kvproto.Kvrpcpb.RawCASResponse.Builder.class); } public static final int REGION_ERROR_FIELD_NUMBER = 1; private org.tikv.kvproto.Errorpb.Error regionError_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { return getRegionError(); } public static final int ERROR_FIELD_NUMBER = 2; private volatile java.lang.Object error_; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; 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(); error_ = s; return s; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUCCEED_FIELD_NUMBER = 3; private boolean succeed_; /** * bool succeed = 3; */ public boolean getSucceed() { return succeed_; } public static final int PREVIOUS_NOT_EXIST_FIELD_NUMBER = 4; private boolean previousNotExist_; /** *
     * The previous value regardless of whether the comparison is succeed.
     * 
* * bool previous_not_exist = 4; */ public boolean getPreviousNotExist() { return previousNotExist_; } public static final int PREVIOUS_VALUE_FIELD_NUMBER = 5; private com.google.protobuf.ByteString previousValue_; /** * bytes previous_value = 5; */ public com.google.protobuf.ByteString getPreviousValue() { return previousValue_; } 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 (regionError_ != null) { output.writeMessage(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, error_); } if (succeed_ != false) { output.writeBool(3, succeed_); } if (previousNotExist_ != false) { output.writeBool(4, previousNotExist_); } if (!previousValue_.isEmpty()) { output.writeBytes(5, previousValue_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (regionError_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getRegionError()); } if (!getErrorBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, error_); } if (succeed_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, succeed_); } if (previousNotExist_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, previousNotExist_); } if (!previousValue_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, previousValue_); } 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.Kvrpcpb.RawCASResponse)) { return super.equals(obj); } org.tikv.kvproto.Kvrpcpb.RawCASResponse other = (org.tikv.kvproto.Kvrpcpb.RawCASResponse) obj; boolean result = true; result = result && (hasRegionError() == other.hasRegionError()); if (hasRegionError()) { result = result && getRegionError() .equals(other.getRegionError()); } result = result && getError() .equals(other.getError()); result = result && (getSucceed() == other.getSucceed()); result = result && (getPreviousNotExist() == other.getPreviousNotExist()); result = result && getPreviousValue() .equals(other.getPreviousValue()); 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 (hasRegionError()) { hash = (37 * hash) + REGION_ERROR_FIELD_NUMBER; hash = (53 * hash) + getRegionError().hashCode(); } hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getError().hashCode(); hash = (37 * hash) + SUCCEED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSucceed()); hash = (37 * hash) + PREVIOUS_NOT_EXIST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPreviousNotExist()); hash = (37 * hash) + PREVIOUS_VALUE_FIELD_NUMBER; hash = (53 * hash) + getPreviousValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.tikv.kvproto.Kvrpcpb.RawCASResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawCASResponse 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.Kvrpcpb.RawCASResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawCASResponse 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.Kvrpcpb.RawCASResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.tikv.kvproto.Kvrpcpb.RawCASResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.tikv.kvproto.Kvrpcpb.RawCASResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawCASResponse 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.Kvrpcpb.RawCASResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawCASResponse 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.Kvrpcpb.RawCASResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.tikv.kvproto.Kvrpcpb.RawCASResponse 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.Kvrpcpb.RawCASResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code kvrpcpb.RawCASResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:kvrpcpb.RawCASResponse) org.tikv.kvproto.Kvrpcpb.RawCASResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawCASResponse_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawCASResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.tikv.kvproto.Kvrpcpb.RawCASResponse.class, org.tikv.kvproto.Kvrpcpb.RawCASResponse.Builder.class); } // Construct using org.tikv.kvproto.Kvrpcpb.RawCASResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (regionErrorBuilder_ == null) { regionError_ = null; } else { regionError_ = null; regionErrorBuilder_ = null; } error_ = ""; succeed_ = false; previousNotExist_ = false; previousValue_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.tikv.kvproto.Kvrpcpb.internal_static_kvrpcpb_RawCASResponse_descriptor; } public org.tikv.kvproto.Kvrpcpb.RawCASResponse getDefaultInstanceForType() { return org.tikv.kvproto.Kvrpcpb.RawCASResponse.getDefaultInstance(); } public org.tikv.kvproto.Kvrpcpb.RawCASResponse build() { org.tikv.kvproto.Kvrpcpb.RawCASResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.tikv.kvproto.Kvrpcpb.RawCASResponse buildPartial() { org.tikv.kvproto.Kvrpcpb.RawCASResponse result = new org.tikv.kvproto.Kvrpcpb.RawCASResponse(this); if (regionErrorBuilder_ == null) { result.regionError_ = regionError_; } else { result.regionError_ = regionErrorBuilder_.build(); } result.error_ = error_; result.succeed_ = succeed_; result.previousNotExist_ = previousNotExist_; result.previousValue_ = previousValue_; 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.Kvrpcpb.RawCASResponse) { return mergeFrom((org.tikv.kvproto.Kvrpcpb.RawCASResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.tikv.kvproto.Kvrpcpb.RawCASResponse other) { if (other == org.tikv.kvproto.Kvrpcpb.RawCASResponse.getDefaultInstance()) return this; if (other.hasRegionError()) { mergeRegionError(other.getRegionError()); } if (!other.getError().isEmpty()) { error_ = other.error_; onChanged(); } if (other.getSucceed() != false) { setSucceed(other.getSucceed()); } if (other.getPreviousNotExist() != false) { setPreviousNotExist(other.getPreviousNotExist()); } if (other.getPreviousValue() != com.google.protobuf.ByteString.EMPTY) { setPreviousValue(other.getPreviousValue()); } 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.Kvrpcpb.RawCASResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.tikv.kvproto.Kvrpcpb.RawCASResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.tikv.kvproto.Errorpb.Error regionError_ = null; private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> regionErrorBuilder_; /** * .errorpb.Error region_error = 1; */ public boolean hasRegionError() { return regionErrorBuilder_ != null || regionError_ != null; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error getRegionError() { if (regionErrorBuilder_ == null) { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } else { return regionErrorBuilder_.getMessage(); } } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } regionError_ = value; onChanged(); } else { regionErrorBuilder_.setMessage(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder setRegionError( org.tikv.kvproto.Errorpb.Error.Builder builderForValue) { if (regionErrorBuilder_ == null) { regionError_ = builderForValue.build(); onChanged(); } else { regionErrorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder mergeRegionError(org.tikv.kvproto.Errorpb.Error value) { if (regionErrorBuilder_ == null) { if (regionError_ != null) { regionError_ = org.tikv.kvproto.Errorpb.Error.newBuilder(regionError_).mergeFrom(value).buildPartial(); } else { regionError_ = value; } onChanged(); } else { regionErrorBuilder_.mergeFrom(value); } return this; } /** * .errorpb.Error region_error = 1; */ public Builder clearRegionError() { if (regionErrorBuilder_ == null) { regionError_ = null; onChanged(); } else { regionError_ = null; regionErrorBuilder_ = null; } return this; } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.Error.Builder getRegionErrorBuilder() { onChanged(); return getRegionErrorFieldBuilder().getBuilder(); } /** * .errorpb.Error region_error = 1; */ public org.tikv.kvproto.Errorpb.ErrorOrBuilder getRegionErrorOrBuilder() { if (regionErrorBuilder_ != null) { return regionErrorBuilder_.getMessageOrBuilder(); } else { return regionError_ == null ? org.tikv.kvproto.Errorpb.Error.getDefaultInstance() : regionError_; } } /** * .errorpb.Error region_error = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder> getRegionErrorFieldBuilder() { if (regionErrorBuilder_ == null) { regionErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.tikv.kvproto.Errorpb.Error, org.tikv.kvproto.Errorpb.Error.Builder, org.tikv.kvproto.Errorpb.ErrorOrBuilder>( getRegionError(), getParentForChildren(), isClean()); regionError_ = null; } return regionErrorBuilder_; } private java.lang.Object error_ = ""; /** * string error = 2; */ public java.lang.String getError() { java.lang.Object ref = error_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); error_ = s; return s; } else { return (java.lang.String) ref; } } /** * string error = 2; */ public com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string error = 2; */ public Builder setError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); return this; } /** * string error = 2; */ public Builder clearError() { error_ = getDefaultInstance().getError(); onChanged(); return this; } /** * string error = 2; */ public Builder setErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); error_ = value; onChanged(); return this; } private boolean succeed_ ; /** * bool succeed = 3; */ public boolean getSucceed() { return succeed_; } /** * bool succeed = 3; */ public Builder setSucceed(boolean value) { succeed_ = value; onChanged(); return this; } /** * bool succeed = 3; */ public Builder clearSucceed() { succeed_ = false; onChanged(); return this; } private boolean previousNotExist_ ; /** *
       * The previous value regardless of whether the comparison is succeed.
       * 
* * bool previous_not_exist = 4; */ public boolean getPreviousNotExist() { return previousNotExist_; } /** *
       * The previous value regardless of whether the comparison is succeed.
       * 
* * bool previous_not_exist = 4; */ public Builder setPreviousNotExist(boolean value) { previousNotExist_ = value; onChanged(); return this; } /** *
       * The previous value regardless of whether the comparison is succeed.
       * 
* * bool previous_not_exist = 4; */ public Builder clearPreviousNotExist() { previousNotExist_ = false; onChanged(); return this; } private com.google.protobuf.ByteString previousValue_ = com.google.protobuf.ByteString.EMPTY; /** * bytes previous_value = 5; */ public com.google.protobuf.ByteString getPreviousValue() { return previousValue_; } /** * bytes previous_value = 5; */ public Builder setPreviousValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } previousValue_ = value; onChanged(); return this; } /** * bytes previous_value = 5; */ public Builder clearPreviousValue() { previousValue_ = getDefaultInstance().getPreviousValue(); 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:kvrpcpb.RawCASResponse) } // @@protoc_insertion_point(class_scope:kvrpcpb.RawCASResponse) private static final org.tikv.kvproto.Kvrpcpb.RawCASResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.tikv.kvproto.Kvrpcpb.RawCASResponse(); } public static org.tikv.kvproto.Kvrpcpb.RawCASResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public RawCASResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RawCASResponse(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.Kvrpcpb.RawCASResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_GetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_GetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_GetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_GetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ScanRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ScanRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ScanResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ScanResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_PrewriteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_PrewriteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_PrewriteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_PrewriteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_PessimisticLockRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_PessimisticLockRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_PessimisticLockResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_PessimisticLockResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_PessimisticRollbackRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_PessimisticRollbackRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_PessimisticRollbackResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_PessimisticRollbackResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_TxnHeartBeatRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_TxnHeartBeatRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_TxnHeartBeatResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_TxnHeartBeatResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CheckTxnStatusRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CheckTxnStatusRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CheckTxnStatusResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CheckTxnStatusResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CheckSecondaryLocksRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CheckSecondaryLocksRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CheckSecondaryLocksResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CheckSecondaryLocksResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CommitRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CommitRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CommitResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CommitResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ImportRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ImportRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ImportResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ImportResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CleanupRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CleanupRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CleanupResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CleanupResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_BatchGetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_BatchGetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_BatchGetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_BatchGetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_BatchRollbackRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_BatchRollbackRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_BatchRollbackResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_BatchRollbackResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ScanLockRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ScanLockRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ScanLockResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ScanLockResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ResolveLockRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ResolveLockRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ResolveLockResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ResolveLockResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_GCRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_GCRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_GCResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_GCResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_DeleteRangeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_DeleteRangeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_DeleteRangeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_DeleteRangeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawGetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawGetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawGetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawGetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawBatchGetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawBatchGetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawBatchGetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawBatchGetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawPutRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawPutRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawPutResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawPutResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawBatchPutRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawBatchPutRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawBatchPutResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawBatchPutResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawDeleteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawDeleteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawDeleteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawDeleteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawBatchDeleteRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawBatchDeleteRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawBatchDeleteResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawBatchDeleteResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawScanRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawScanRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawScanResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawScanResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawDeleteRangeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawDeleteRangeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawDeleteRangeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawDeleteRangeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawBatchScanRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawBatchScanRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawBatchScanResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawBatchScanResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_UnsafeDestroyRangeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_UnsafeDestroyRangeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_UnsafeDestroyRangeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_UnsafeDestroyRangeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RegisterLockObserverRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RegisterLockObserverRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RegisterLockObserverResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RegisterLockObserverResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CheckLockObserverRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CheckLockObserverRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CheckLockObserverResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CheckLockObserverResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RemoveLockObserverRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RemoveLockObserverRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RemoveLockObserverResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RemoveLockObserverResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_PhysicalScanLockRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_PhysicalScanLockRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_PhysicalScanLockResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_PhysicalScanLockResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_SplitRegionRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_SplitRegionRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_SplitRegionResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_SplitRegionResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ReadIndexRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ReadIndexRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ReadIndexResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ReadIndexResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerMutation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerMutation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerError_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerError_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerKvPair_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerKvPair_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerGetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerGetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerGetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerGetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerBatchGetRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerBatchGetRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerBatchGetResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerBatchGetResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerMutRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerMutRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerMutResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerMutResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerBatchMutRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerBatchMutRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerBatchMutResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerBatchMutResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerScanRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerScanRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerScanResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerScanResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerDeleteRangeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerDeleteRangeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_VerDeleteRangeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_VerDeleteRangeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_MvccGetByKeyRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_MvccGetByKeyRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_MvccGetByKeyResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_MvccGetByKeyResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_MvccGetByStartTsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_MvccGetByStartTsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_MvccGetByStartTsResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_MvccGetByStartTsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_Context_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_Context_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_LockInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_LockInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_KeyError_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_KeyError_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_WriteConflict_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_WriteConflict_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_AlreadyExist_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_AlreadyExist_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_Deadlock_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_Deadlock_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CommitTsExpired_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CommitTsExpired_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_TxnNotFound_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_TxnNotFound_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CommitTsTooLarge_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CommitTsTooLarge_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_TimeDetail_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_TimeDetail_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ScanInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ScanInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ScanDetail_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ScanDetail_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ScanDetailV2_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ScanDetailV2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ExecDetails_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ExecDetails_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_ExecDetailsV2_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_ExecDetailsV2_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_KvPair_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_KvPair_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_Mutation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_Mutation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_MvccWrite_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_MvccWrite_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_MvccValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_MvccValue_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_MvccLock_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_MvccLock_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_MvccInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_MvccInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_TxnInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_TxnInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_KeyRange_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_KeyRange_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_LeaderInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_LeaderInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CheckLeaderRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CheckLeaderRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_CheckLeaderResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_CheckLeaderResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawGetKeyTTLRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawGetKeyTTLRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawGetKeyTTLResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawGetKeyTTLResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawCASRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawCASRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_kvrpcpb_RawCASResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_kvrpcpb_RawCASResponse_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\rkvrpcpb.proto\022\007kvrpcpb\032\014metapb.proto\032\r" + "errorpb.proto\032\024gogoproto/gogo.proto\032\017rus" + "tproto.proto\"M\n\nGetRequest\022!\n\007context\030\001 " + "\001(\0132\020.kvrpcpb.Context\022\013\n\003key\030\002 \001(\014\022\017\n\007ve" + "rsion\030\003 \001(\004\"\256\001\n\013GetResponse\022$\n\014region_er" + "ror\030\001 \001(\0132\016.errorpb.Error\022 \n\005error\030\002 \001(\013" + "2\021.kvrpcpb.KeyError\022\r\n\005value\030\003 \001(\014\022\021\n\tno" + "t_found\030\004 \001(\010\022/\n\017exec_details_v2\030\006 \001(\0132\026" + ".kvrpcpb.ExecDetailsV2J\004\010\005\020\006\"\254\001\n\013ScanReq" + "uest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Context\022" + "\021\n\tstart_key\030\002 \001(\014\022\r\n\005limit\030\003 \001(\r\022\017\n\007ver" + "sion\030\004 \001(\004\022\020\n\010key_only\030\005 \001(\010\022\017\n\007reverse\030" + "\006 \001(\010\022\017\n\007end_key\030\007 \001(\014\022\023\n\013sample_step\030\010 " + "\001(\r\"v\n\014ScanResponse\022$\n\014region_error\030\001 \001(" + "\0132\016.errorpb.Error\022\036\n\005pairs\030\002 \003(\0132\017.kvrpc" + "pb.KvPair\022 \n\005error\030\003 \001(\0132\021.kvrpcpb.KeyEr" + "ror\"\357\002\n\017PrewriteRequest\022!\n\007context\030\001 \001(\013" + "2\020.kvrpcpb.Context\022$\n\tmutations\030\002 \003(\0132\021." + "kvrpcpb.Mutation\022\024\n\014primary_lock\030\003 \001(\014\022\025" + "\n\rstart_version\030\004 \001(\004\022\020\n\010lock_ttl\030\005 \001(\004\022" + "\035\n\025skip_constraint_check\030\006 \001(\010\022\033\n\023is_pes" + "simistic_lock\030\007 \003(\010\022\020\n\010txn_size\030\010 \001(\004\022\025\n" + "\rfor_update_ts\030\t \001(\004\022\025\n\rmin_commit_ts\030\n " + "\001(\004\022\030\n\020use_async_commit\030\013 \001(\010\022\023\n\013seconda" + "ries\030\014 \003(\014\022\022\n\ntry_one_pc\030\r \001(\010\022\025\n\rmax_co" + "mmit_ts\030\016 \001(\004\"\214\001\n\020PrewriteResponse\022$\n\014re" + "gion_error\030\001 \001(\0132\016.errorpb.Error\022!\n\006erro" + "rs\030\002 \003(\0132\021.kvrpcpb.KeyError\022\025\n\rmin_commi" + "t_ts\030\003 \001(\004\022\030\n\020one_pc_commit_ts\030\004 \001(\004\"\241\002\n" + "\026PessimisticLockRequest\022!\n\007context\030\001 \001(\013" + "2\020.kvrpcpb.Context\022$\n\tmutations\030\002 \003(\0132\021." + "kvrpcpb.Mutation\022\024\n\014primary_lock\030\003 \001(\014\022\025" + "\n\rstart_version\030\004 \001(\004\022\020\n\010lock_ttl\030\005 \001(\004\022" + "\025\n\rfor_update_ts\030\006 \001(\004\022\025\n\ris_first_lock\030" + "\007 \001(\010\022\024\n\014wait_timeout\030\010 \001(\003\022\r\n\005force\030\t \001" + "(\010\022\025\n\rreturn_values\030\n \001(\010\022\025\n\rmin_commit_" + "ts\030\013 \001(\004\"\250\001\n\027PessimisticLockResponse\022$\n\014" + "region_error\030\001 \001(\0132\016.errorpb.Error\022!\n\006er" + "rors\030\002 \003(\0132\021.kvrpcpb.KeyError\022\021\n\tcommit_" + "ts\030\003 \001(\004\022\r\n\005value\030\004 \001(\014\022\016\n\006values\030\005 \003(\014\022" + "\022\n\nnot_founds\030\006 \003(\010\"{\n\032PessimisticRollba" + "ckRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Con" + "text\022\025\n\rstart_version\030\002 \001(\004\022\025\n\rfor_updat" + "e_ts\030\003 \001(\004\022\014\n\004keys\030\004 \003(\014\"f\n\033PessimisticR" + "ollbackResponse\022$\n\014region_error\030\001 \001(\0132\016." + "errorpb.Error\022!\n\006errors\030\002 \003(\0132\021.kvrpcpb." + "KeyError\"~\n\023TxnHeartBeatRequest\022!\n\007conte" + "xt\030\001 \001(\0132\020.kvrpcpb.Context\022\024\n\014primary_lo" + "ck\030\002 \001(\014\022\025\n\rstart_version\030\003 \001(\004\022\027\n\017advis" + "e_lock_ttl\030\004 \001(\004\"p\n\024TxnHeartBeatResponse" + "\022$\n\014region_error\030\001 \001(\0132\016.errorpb.Error\022 " + "\n\005error\030\002 \001(\0132\021.kvrpcpb.KeyError\022\020\n\010lock" + "_ttl\030\003 \001(\004\"\353\001\n\025CheckTxnStatusRequest\022!\n\007" + "context\030\001 \001(\0132\020.kvrpcpb.Context\022\023\n\013prima" + "ry_key\030\002 \001(\014\022\017\n\007lock_ts\030\003 \001(\004\022\027\n\017caller_" + "start_ts\030\004 \001(\004\022\022\n\ncurrent_ts\030\005 \001(\004\022\035\n\025ro" + "llback_if_not_exist\030\006 \001(\010\022\031\n\021force_sync_" + "commit\030\007 \001(\010\022\"\n\032resolving_pessimistic_lo" + "ck\030\010 \001(\010\"\321\001\n\026CheckTxnStatusResponse\022$\n\014r" + "egion_error\030\001 \001(\0132\016.errorpb.Error\022 \n\005err" + "or\030\002 \001(\0132\021.kvrpcpb.KeyError\022\020\n\010lock_ttl\030" + "\003 \001(\004\022\026\n\016commit_version\030\004 \001(\004\022\037\n\006action\030" + "\005 \001(\0162\017.kvrpcpb.Action\022$\n\tlock_info\030\006 \001(" + "\0132\021.kvrpcpb.LockInfo\"d\n\032CheckSecondaryLo" + "cksRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Co" + "ntext\022\014\n\004keys\030\002 \003(\014\022\025\n\rstart_version\030\003 \001" + "(\004\"\232\001\n\033CheckSecondaryLocksResponse\022$\n\014re" + "gion_error\030\001 \001(\0132\016.errorpb.Error\022 \n\005erro" + "r\030\002 \001(\0132\021.kvrpcpb.KeyError\022 \n\005locks\030\003 \003(" + "\0132\021.kvrpcpb.LockInfo\022\021\n\tcommit_ts\030\004 \001(\004\"" + "}\n\rCommitRequest\022!\n\007context\030\001 \001(\0132\020.kvrp" + "cpb.Context\022\025\n\rstart_version\030\002 \001(\004\022\014\n\004ke" + "ys\030\003 \003(\014\022\026\n\016commit_version\030\004 \001(\004J\004\010\005\020\006R\006" + "binlog\"p\n\016CommitResponse\022$\n\014region_error" + "\030\001 \001(\0132\016.errorpb.Error\022 \n\005error\030\002 \001(\0132\021." + "kvrpcpb.KeyError\022\026\n\016commit_version\030\003 \001(\004" + "\"M\n\rImportRequest\022$\n\tmutations\030\001 \003(\0132\021.k" + "vrpcpb.Mutation\022\026\n\016commit_version\030\002 \001(\004\"" + "E\n\016ImportResponse\022$\n\014region_error\030\001 \001(\0132" + "\016.errorpb.Error\022\r\n\005error\030\002 \001(\t\"k\n\016Cleanu" + "pRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Cont" + "ext\022\013\n\003key\030\002 \001(\014\022\025\n\rstart_version\030\003 \001(\004\022" + "\022\n\ncurrent_ts\030\004 \001(\004\"q\n\017CleanupResponse\022$" + "\n\014region_error\030\001 \001(\0132\016.errorpb.Error\022 \n\005" + "error\030\002 \001(\0132\021.kvrpcpb.KeyError\022\026\n\016commit" + "_version\030\003 \001(\004\"S\n\017BatchGetRequest\022!\n\007con" + "text\030\001 \001(\0132\020.kvrpcpb.Context\022\014\n\004keys\030\002 \003" + "(\014\022\017\n\007version\030\003 \001(\004\"\261\001\n\020BatchGetResponse" + "\022$\n\014region_error\030\001 \001(\0132\016.errorpb.Error\022\036" + "\n\005pairs\030\002 \003(\0132\017.kvrpcpb.KvPair\022/\n\017exec_d" + "etails_v2\030\004 \001(\0132\026.kvrpcpb.ExecDetailsV2\022" + " \n\005error\030\005 \001(\0132\021.kvrpcpb.KeyErrorJ\004\010\003\020\004\"" + "^\n\024BatchRollbackRequest\022!\n\007context\030\001 \001(\013" + "2\020.kvrpcpb.Context\022\025\n\rstart_version\030\002 \001(" + "\004\022\014\n\004keys\030\003 \003(\014\"_\n\025BatchRollbackResponse" + "\022$\n\014region_error\030\001 \001(\0132\016.errorpb.Error\022 " + "\n\005error\030\002 \001(\0132\021.kvrpcpb.KeyError\"|\n\017Scan" + "LockRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.C" + "ontext\022\023\n\013max_version\030\002 \001(\004\022\021\n\tstart_key" + "\030\003 \001(\014\022\r\n\005limit\030\004 \001(\r\022\017\n\007end_key\030\005 \001(\014\"|" + "\n\020ScanLockResponse\022$\n\014region_error\030\001 \001(\013" + "2\016.errorpb.Error\022 \n\005error\030\002 \001(\0132\021.kvrpcp" + "b.KeyError\022 \n\005locks\030\003 \003(\0132\021.kvrpcpb.Lock" + "Info\"\231\001\n\022ResolveLockRequest\022!\n\007context\030\001" + " \001(\0132\020.kvrpcpb.Context\022\025\n\rstart_version\030" + "\002 \001(\004\022\026\n\016commit_version\030\003 \001(\004\022#\n\ttxn_inf" + "os\030\004 \003(\0132\020.kvrpcpb.TxnInfo\022\014\n\004keys\030\005 \003(\014" + "\"]\n\023ResolveLockResponse\022$\n\014region_error\030" + "\001 \001(\0132\016.errorpb.Error\022 \n\005error\030\002 \001(\0132\021.k" + "vrpcpb.KeyError\"B\n\tGCRequest\022!\n\007context\030" + "\001 \001(\0132\020.kvrpcpb.Context\022\022\n\nsafe_point\030\002 " + "\001(\004\"T\n\nGCResponse\022$\n\014region_error\030\001 \001(\0132" + "\016.errorpb.Error\022 \n\005error\030\002 \001(\0132\021.kvrpcpb" + ".KeyError\"p\n\022DeleteRangeRequest\022!\n\007conte" + "xt\030\001 \001(\0132\020.kvrpcpb.Context\022\021\n\tstart_key\030" + "\002 \001(\014\022\017\n\007end_key\030\003 \001(\014\022\023\n\013notify_only\030\004 " + "\001(\010\"J\n\023DeleteRangeResponse\022$\n\014region_err" + "or\030\001 \001(\0132\016.errorpb.Error\022\r\n\005error\030\002 \001(\t\"" + "K\n\rRawGetRequest\022!\n\007context\030\001 \001(\0132\020.kvrp" + "cpb.Context\022\013\n\003key\030\002 \001(\014\022\n\n\002cf\030\003 \001(\t\"g\n\016" + "RawGetResponse\022$\n\014region_error\030\001 \001(\0132\016.e" + "rrorpb.Error\022\r\n\005error\030\002 \001(\t\022\r\n\005value\030\003 \001" + "(\014\022\021\n\tnot_found\030\004 \001(\010\"Q\n\022RawBatchGetRequ" + "est\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Context\022\014" + "\n\004keys\030\002 \003(\014\022\n\n\002cf\030\003 \001(\t\"[\n\023RawBatchGetR" + "esponse\022$\n\014region_error\030\001 \001(\0132\016.errorpb." + "Error\022\036\n\005pairs\030\002 \003(\0132\017.kvrpcpb.KvPair\"x\n" + "\rRawPutRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcp" + "b.Context\022\013\n\003key\030\002 \001(\014\022\r\n\005value\030\003 \001(\014\022\n\n" + "\002cf\030\004 \001(\t\022\013\n\003ttl\030\005 \001(\004\022\017\n\007for_cas\030\006 \001(\010\"" + "E\n\016RawPutResponse\022$\n\014region_error\030\001 \001(\0132" + "\016.errorpb.Error\022\r\n\005error\030\002 \001(\t\"\201\001\n\022RawBa" + "tchPutRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb" + ".Context\022\036\n\005pairs\030\002 \003(\0132\017.kvrpcpb.KvPair" + "\022\n\n\002cf\030\003 \001(\t\022\013\n\003ttl\030\004 \001(\004\022\017\n\007for_cas\030\005 \001" + "(\010\"J\n\023RawBatchPutResponse\022$\n\014region_erro" + "r\030\001 \001(\0132\016.errorpb.Error\022\r\n\005error\030\002 \001(\t\"_" + "\n\020RawDeleteRequest\022!\n\007context\030\001 \001(\0132\020.kv" + "rpcpb.Context\022\013\n\003key\030\002 \001(\014\022\n\n\002cf\030\003 \001(\t\022\017" + "\n\007for_cas\030\004 \001(\010\"H\n\021RawDeleteResponse\022$\n\014" + "region_error\030\001 \001(\0132\016.errorpb.Error\022\r\n\005er" + "ror\030\002 \001(\t\"e\n\025RawBatchDeleteRequest\022!\n\007co" + "ntext\030\001 \001(\0132\020.kvrpcpb.Context\022\014\n\004keys\030\002 " + "\003(\014\022\n\n\002cf\030\003 \001(\t\022\017\n\007for_cas\030\004 \001(\010\"M\n\026RawB" + "atchDeleteResponse\022$\n\014region_error\030\001 \001(\013" + "2\016.errorpb.Error\022\r\n\005error\030\002 \001(\t\"\225\001\n\016RawS" + "canRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Co" + "ntext\022\021\n\tstart_key\030\002 \001(\014\022\r\n\005limit\030\003 \001(\r\022" + "\020\n\010key_only\030\004 \001(\010\022\n\n\002cf\030\005 \001(\t\022\017\n\007reverse" + "\030\006 \001(\010\022\017\n\007end_key\030\007 \001(\014\"U\n\017RawScanRespon" + "se\022$\n\014region_error\030\001 \001(\0132\016.errorpb.Error" + "\022\034\n\003kvs\030\002 \003(\0132\017.kvrpcpb.KvPair\"j\n\025RawDel" + "eteRangeRequest\022!\n\007context\030\001 \001(\0132\020.kvrpc" + "pb.Context\022\021\n\tstart_key\030\002 \001(\014\022\017\n\007end_key" + "\030\003 \001(\014\022\n\n\002cf\030\004 \001(\t\"M\n\026RawDeleteRangeResp" + "onse\022$\n\014region_error\030\001 \001(\0132\016.errorpb.Err" + "or\022\r\n\005error\030\002 \001(\t\"\236\001\n\023RawBatchScanReques" + "t\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Context\022!\n\006" + "ranges\030\002 \003(\0132\021.kvrpcpb.KeyRange\022\022\n\neach_" + "limit\030\003 \001(\r\022\020\n\010key_only\030\004 \001(\010\022\n\n\002cf\030\005 \001(" + "\t\022\017\n\007reverse\030\006 \001(\010\"Z\n\024RawBatchScanRespon" + "se\022$\n\014region_error\030\001 \001(\0132\016.errorpb.Error" + "\022\034\n\003kvs\030\002 \003(\0132\017.kvrpcpb.KvPair\"b\n\031Unsafe" + "DestroyRangeRequest\022!\n\007context\030\001 \001(\0132\020.k" + "vrpcpb.Context\022\021\n\tstart_key\030\002 \001(\014\022\017\n\007end" + "_key\030\003 \001(\014\"Q\n\032UnsafeDestroyRangeResponse" + "\022$\n\014region_error\030\001 \001(\0132\016.errorpb.Error\022\r" + "\n\005error\030\002 \001(\t\"P\n\033RegisterLockObserverReq" + "uest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Context\022" + "\016\n\006max_ts\030\002 \001(\004\"-\n\034RegisterLockObserverR" + "esponse\022\r\n\005error\030\001 \001(\t\"M\n\030CheckLockObser" + "verRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Co" + "ntext\022\016\n\006max_ts\030\002 \001(\004\"^\n\031CheckLockObserv" + "erResponse\022\r\n\005error\030\001 \001(\t\022\020\n\010is_clean\030\002 " + "\001(\010\022 \n\005locks\030\003 \003(\0132\021.kvrpcpb.LockInfo\"N\n" + "\031RemoveLockObserverRequest\022!\n\007context\030\001 " + "\001(\0132\020.kvrpcpb.Context\022\016\n\006max_ts\030\002 \001(\004\"+\n" + "\032RemoveLockObserverResponse\022\r\n\005error\030\001 \001" + "(\t\"n\n\027PhysicalScanLockRequest\022!\n\007context" + "\030\001 \001(\0132\020.kvrpcpb.Context\022\016\n\006max_ts\030\002 \001(\004" + "\022\021\n\tstart_key\030\003 \001(\014\022\r\n\005limit\030\004 \001(\r\"K\n\030Ph" + "ysicalScanLockResponse\022\r\n\005error\030\001 \001(\t\022 \n" + "\005locks\030\002 \003(\0132\021.kvrpcpb.LockInfo\"b\n\022Split" + "RegionRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb" + ".Context\022\025\n\tsplit_key\030\002 \001(\014B\002\030\001\022\022\n\nsplit" + "_keys\030\003 \003(\014\"\241\001\n\023SplitRegionResponse\022$\n\014r" + "egion_error\030\001 \001(\0132\016.errorpb.Error\022 \n\004lef" + "t\030\002 \001(\0132\016.metapb.RegionB\002\030\001\022!\n\005right\030\003 \001" + "(\0132\016.metapb.RegionB\002\030\001\022\037\n\007regions\030\004 \003(\0132" + "\016.metapb.Region\"j\n\020ReadIndexRequest\022!\n\007c" + "ontext\030\001 \001(\0132\020.kvrpcpb.Context\022\020\n\010start_" + "ts\030\002 \001(\004\022!\n\006ranges\030\003 \003(\0132\021.kvrpcpb.KeyRa" + "nge\"p\n\021ReadIndexResponse\022$\n\014region_error" + "\030\001 \001(\0132\016.errorpb.Error\022\022\n\nread_index\030\002 \001" + "(\004\022!\n\006locked\030\003 \001(\0132\021.kvrpcpb.LockInfo\"E\n" + "\013VerMutation\022\032\n\002op\030\001 \001(\0162\016.kvrpcpb.VerOp" + "\022\013\n\003key\030\002 \001(\014\022\r\n\005value\030\003 \001(\014\"*\n\010VerValue" + "\022\r\n\005value\030\001 \001(\014\022\017\n\007version\030\002 \001(\004\"\031\n\010VerE" + "rror\022\r\n\005error\030\001 \001(\t\"\\\n\tVerKvPair\022 \n\005erro" + "r\030\001 \001(\0132\021.kvrpcpb.VerError\022\013\n\003key\030\002 \001(\014\022" + " \n\005value\030\003 \001(\0132\021.kvrpcpb.VerValue\"V\n\rVer" + "GetRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Co" + "ntext\022\013\n\003key\030\002 \001(\014\022\025\n\rstart_version\030\003 \001(" + "\004\"\215\001\n\016VerGetResponse\022$\n\014region_error\030\001 \001" + "(\0132\016.errorpb.Error\022 \n\005error\030\002 \001(\0132\021.kvrp" + "cpb.VerError\022 \n\005value\030\003 \001(\0132\021.kvrpcpb.Ve" + "rValue\022\021\n\tnot_found\030\004 \001(\010\"[\n\022VerBatchGet" + "Request\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Conte" + "xt\022\013\n\003key\030\002 \003(\014\022\025\n\rstart_version\030\003 \001(\004\"^" + "\n\023VerBatchGetResponse\022$\n\014region_error\030\001 " + "\001(\0132\016.errorpb.Error\022!\n\005pairs\030\002 \003(\0132\022.kvr" + "pcpb.VerKvPair\"f\n\rVerMutRequest\022!\n\007conte" + "xt\030\001 \001(\0132\020.kvrpcpb.Context\022!\n\003mut\030\002 \001(\0132" + "\024.kvrpcpb.VerMutation\022\017\n\007version\030\003 \001(\004\"X" + "\n\016VerMutResponse\022$\n\014region_error\030\001 \001(\0132\016" + ".errorpb.Error\022 \n\005error\030\002 \001(\0132\021.kvrpcpb." + "VerError\"l\n\022VerBatchMutRequest\022!\n\007contex" + "t\030\001 \001(\0132\020.kvrpcpb.Context\022\"\n\004muts\030\002 \003(\0132" + "\024.kvrpcpb.VerMutation\022\017\n\007version\030\003 \001(\004\"]" + "\n\023VerBatchMutResponse\022$\n\014region_error\030\001 " + "\001(\0132\016.errorpb.Error\022 \n\005error\030\002 \001(\0132\021.kvr" + "pcpb.VerError\"\240\001\n\016VerScanRequest\022!\n\007cont" + "ext\030\001 \001(\0132\020.kvrpcpb.Context\022\021\n\tstart_key" + "\030\002 \001(\014\022\017\n\007end_key\030\003 \001(\014\022\r\n\005limit\030\004 \001(\r\022\020" + "\n\010key_only\030\005 \001(\010\022\017\n\007reverse\030\006 \001(\010\022\025\n\rsta" + "rt_version\030\007 \001(\004\"Z\n\017VerScanResponse\022$\n\014r" + "egion_error\030\001 \001(\0132\016.errorpb.Error\022!\n\005pai" + "rs\030\002 \003(\0132\022.kvrpcpb.VerKvPair\"^\n\025VerDelet" + "eRangeRequest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb" + ".Context\022\021\n\tstart_key\030\002 \001(\014\022\017\n\007end_key\030\003" + " \001(\014\"`\n\026VerDeleteRangeResponse\022$\n\014region" + "_error\030\001 \001(\0132\016.errorpb.Error\022 \n\005error\030\002 " + "\001(\0132\021.kvrpcpb.VerError\"E\n\023MvccGetByKeyRe" + "quest\022!\n\007context\030\001 \001(\0132\020.kvrpcpb.Context" + "\022\013\n\003key\030\002 \001(\014\"l\n\024MvccGetByKeyResponse\022$\n" + "\014region_error\030\001 \001(\0132\016.errorpb.Error\022\r\n\005e" + "rror\030\002 \001(\t\022\037\n\004info\030\003 \001(\0132\021.kvrpcpb.MvccI" + "nfo\"N\n\027MvccGetByStartTsRequest\022!\n\007contex" + "t\030\001 \001(\0132\020.kvrpcpb.Context\022\020\n\010start_ts\030\002 " + "\001(\004\"}\n\030MvccGetByStartTsResponse\022$\n\014regio" + "n_error\030\001 \001(\0132\016.errorpb.Error\022\r\n\005error\030\002" + " \001(\t\022\013\n\003key\030\003 \001(\014\022\037\n\004info\030\004 \001(\0132\021.kvrpcp" + "b.MvccInfo\"\310\003\n\007Context\022\021\n\tregion_id\030\001 \001(" + "\004\022)\n\014region_epoch\030\002 \001(\0132\023.metapb.RegionE" + "poch\022\032\n\004peer\030\003 \001(\0132\014.metapb.Peer\022\014\n\004term" + "\030\005 \001(\004\022%\n\010priority\030\006 \001(\0162\023.kvrpcpb.Comma" + "ndPri\0220\n\017isolation_level\030\007 \001(\0162\027.kvrpcpb" + ".IsolationLevel\022\026\n\016not_fill_cache\030\010 \001(\010\022" + "\020\n\010sync_log\030\t \001(\010\022\030\n\020record_time_stat\030\n " + "\001(\010\022\030\n\020record_scan_stat\030\013 \001(\010\022\024\n\014replica" + "_read\030\014 \001(\010\022\026\n\016resolved_locks\030\r \003(\004\022!\n\031m" + "ax_execution_duration_ms\030\016 \001(\004\022\025\n\rapplie" + "d_index\030\017 \001(\004\022\017\n\007task_id\030\020 \001(\004\022\022\n\nstale_" + "read\030\021 \001(\010J\004\010\004\020\005R\013read_quorum\"\351\001\n\010LockIn" + "fo\022\024\n\014primary_lock\030\001 \001(\014\022\024\n\014lock_version" + "\030\002 \001(\004\022\013\n\003key\030\003 \001(\014\022\020\n\010lock_ttl\030\004 \001(\004\022\020\n" + "\010txn_size\030\005 \001(\004\022\036\n\tlock_type\030\006 \001(\0162\013.kvr" + "pcpb.Op\022\032\n\022lock_for_update_ts\030\007 \001(\004\022\030\n\020u" + "se_async_commit\030\010 \001(\010\022\025\n\rmin_commit_ts\030\t" + " \001(\004\022\023\n\013secondaries\030\n \003(\014\"\346\002\n\010KeyError\022!" + "\n\006locked\030\001 \001(\0132\021.kvrpcpb.LockInfo\022\021\n\tret" + "ryable\030\002 \001(\t\022\r\n\005abort\030\003 \001(\t\022(\n\010conflict\030" + "\004 \001(\0132\026.kvrpcpb.WriteConflict\022,\n\ralready" + "_exist\030\005 \001(\0132\025.kvrpcpb.AlreadyExist\022#\n\010d" + "eadlock\030\006 \001(\0132\021.kvrpcpb.Deadlock\0223\n\021comm" + "it_ts_expired\030\007 \001(\0132\030.kvrpcpb.CommitTsEx" + "pired\022+\n\rtxn_not_found\030\010 \001(\0132\024.kvrpcpb.T" + "xnNotFound\0226\n\023commit_ts_too_large\030\t \001(\0132" + "\031.kvrpcpb.CommitTsTooLarge\"p\n\rWriteConfl" + "ict\022\020\n\010start_ts\030\001 \001(\004\022\023\n\013conflict_ts\030\002 \001" + "(\004\022\013\n\003key\030\003 \001(\014\022\017\n\007primary\030\004 \001(\014\022\032\n\022conf" + "lict_commit_ts\030\005 \001(\004\"\033\n\014AlreadyExist\022\013\n\003" + "key\030\001 \001(\014\"H\n\010Deadlock\022\017\n\007lock_ts\030\001 \001(\004\022\020" + "\n\010lock_key\030\002 \001(\014\022\031\n\021deadlock_key_hash\030\003 " + "\001(\004\"d\n\017CommitTsExpired\022\020\n\010start_ts\030\001 \001(\004" + "\022\033\n\023attempted_commit_ts\030\002 \001(\004\022\013\n\003key\030\003 \001" + "(\014\022\025\n\rmin_commit_ts\030\004 \001(\004\"4\n\013TxnNotFound" + "\022\020\n\010start_ts\030\001 \001(\004\022\023\n\013primary_key\030\002 \001(\014\"" + "%\n\020CommitTsTooLarge\022\021\n\tcommit_ts\030\001 \001(\004\"c" + "\n\nTimeDetail\022\031\n\021wait_wall_time_ms\030\001 \001(\003\022" + "\034\n\024process_wall_time_ms\030\002 \001(\003\022\034\n\024kv_read" + "_wall_time_ms\030\003 \001(\003\",\n\010ScanInfo\022\r\n\005total" + "\030\001 \001(\003\022\021\n\tprocessed\030\002 \001(\003\"p\n\nScanDetail\022" + " \n\005write\030\001 \001(\0132\021.kvrpcpb.ScanInfo\022\037\n\004loc" + "k\030\002 \001(\0132\021.kvrpcpb.ScanInfo\022\037\n\004data\030\003 \001(\013" + "2\021.kvrpcpb.ScanInfo\"\365\001\n\014ScanDetailV2\022\032\n\022" + "processed_versions\030\001 \001(\004\022\026\n\016total_versio" + "ns\030\002 \001(\004\022$\n\034rocksdb_delete_skipped_count" + "\030\003 \001(\004\022!\n\031rocksdb_key_skipped_count\030\004 \001(" + "\004\022%\n\035rocksdb_block_cache_hit_count\030\005 \001(\004" + "\022 \n\030rocksdb_block_read_count\030\006 \001(\004\022\037\n\027ro" + "cksdb_block_read_byte\030\007 \001(\004\"m\n\013ExecDetai" + "ls\022(\n\013time_detail\030\001 \001(\0132\023.kvrpcpb.TimeDe" + "tail\022(\n\013scan_detail\030\002 \001(\0132\023.kvrpcpb.Scan" + "DetailJ\004\010\003\020\004J\004\010\004\020\005\"h\n\rExecDetailsV2\022(\n\013t" + "ime_detail\030\001 \001(\0132\023.kvrpcpb.TimeDetail\022-\n" + "\016scan_detail_v2\030\002 \001(\0132\025.kvrpcpb.ScanDeta" + "ilV2\"F\n\006KvPair\022 \n\005error\030\001 \001(\0132\021.kvrpcpb." + "KeyError\022\013\n\003key\030\002 \001(\014\022\r\n\005value\030\003 \001(\014\"f\n\010" + "Mutation\022\027\n\002op\030\001 \001(\0162\013.kvrpcpb.Op\022\013\n\003key" + "\030\002 \001(\014\022\r\n\005value\030\003 \001(\014\022%\n\tassertion\030\004 \001(\016" + "2\022.kvrpcpb.Assertion\"`\n\tMvccWrite\022\031\n\004typ" + "e\030\001 \001(\0162\013.kvrpcpb.Op\022\020\n\010start_ts\030\002 \001(\004\022\021" + "\n\tcommit_ts\030\003 \001(\004\022\023\n\013short_value\030\004 \001(\014\"," + "\n\tMvccValue\022\020\n\010start_ts\030\001 \001(\004\022\r\n\005value\030\002" + " \001(\014\"]\n\010MvccLock\022\031\n\004type\030\001 \001(\0162\013.kvrpcpb" + ".Op\022\020\n\010start_ts\030\002 \001(\004\022\017\n\007primary\030\003 \001(\014\022\023" + "\n\013short_value\030\004 \001(\014\"s\n\010MvccInfo\022\037\n\004lock\030" + "\001 \001(\0132\021.kvrpcpb.MvccLock\022\"\n\006writes\030\002 \003(\013" + "2\022.kvrpcpb.MvccWrite\022\"\n\006values\030\003 \003(\0132\022.k" + "vrpcpb.MvccValue\"&\n\007TxnInfo\022\013\n\003txn\030\001 \001(\004" + "\022\016\n\006status\030\002 \001(\004\".\n\010KeyRange\022\021\n\tstart_ke" + "y\030\001 \001(\014\022\017\n\007end_key\030\002 \001(\014\"i\n\nLeaderInfo\022\021" + "\n\tregion_id\030\001 \001(\004\022\017\n\007peer_id\030\002 \001(\004\022\014\n\004te" + "rm\030\003 \001(\004\022)\n\014region_epoch\030\004 \001(\0132\023.metapb." + "RegionEpoch\"F\n\022CheckLeaderRequest\022$\n\007reg" + "ions\030\001 \003(\0132\023.kvrpcpb.LeaderInfo\022\n\n\002ts\030\002 " + "\001(\004\"2\n\023CheckLeaderResponse\022\017\n\007regions\030\001 " + "\003(\004\022\n\n\002ts\030\002 \001(\004\"Q\n\023RawGetKeyTTLRequest\022!" + "\n\007context\030\001 \001(\0132\020.kvrpcpb.Context\022\013\n\003key" + "\030\002 \001(\014\022\n\n\002cf\030\003 \001(\t\"k\n\024RawGetKeyTTLRespon" + "se\022$\n\014region_error\030\001 \001(\0132\016.errorpb.Error" + "\022\r\n\005error\030\002 \001(\t\022\013\n\003ttl\030\003 \001(\004\022\021\n\tnot_foun" + "d\030\004 \001(\010\"\233\001\n\rRawCASRequest\022!\n\007context\030\001 \001" + "(\0132\020.kvrpcpb.Context\022\013\n\003key\030\002 \001(\014\022\r\n\005val" + "ue\030\003 \001(\014\022\032\n\022previous_not_exist\030\004 \001(\010\022\026\n\016" + "previous_value\030\005 \001(\014\022\n\n\002cf\030\006 \001(\t\022\013\n\003ttl\030" + "\007 \001(\004\"\212\001\n\016RawCASResponse\022$\n\014region_error" + "\030\001 \001(\0132\016.errorpb.Error\022\r\n\005error\030\002 \001(\t\022\017\n" + "\007succeed\030\003 \001(\010\022\032\n\022previous_not_exist\030\004 \001" + "(\010\022\026\n\016previous_value\030\005 \001(\014*\037\n\005VerOp\022\n\n\006V" + "erPut\020\000\022\n\n\006VerDel\020\001*+\n\nCommandPri\022\n\n\006Nor" + "mal\020\000\022\007\n\003Low\020\001\022\010\n\004High\020\002* \n\016IsolationLev" + "el\022\006\n\002SI\020\000\022\006\n\002RC\020\001*c\n\002Op\022\007\n\003Put\020\000\022\007\n\003Del" + "\020\001\022\010\n\004Lock\020\002\022\014\n\010Rollback\020\003\022\n\n\006Insert\020\004\022\023" + "\n\017PessimisticLock\020\005\022\022\n\016CheckNotExists\020\006*" + ".\n\tAssertion\022\010\n\004None\020\000\022\t\n\005Exist\020\001\022\014\n\010Not" + "Exist\020\002*\233\001\n\006Action\022\014\n\010NoAction\020\000\022\025\n\021TTLE" + "xpireRollback\020\001\022\030\n\024LockNotExistRollback\020" + "\002\022\025\n\021MinCommitTSPushed\020\003\022 \n\034TTLExpirePes" + "simisticRollback\020\004\022\031\n\025LockNotExistDoNoth" + "ing\020\005*%\n\007ExtraOp\022\010\n\004Noop\020\000\022\020\n\014ReadOldVal" + "ue\020\001B\"\n\020org.tikv.kvproto\310\342\036\001\340\342\036\001\320\342\036\001\330\250\010\001" + "b\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.tikv.kvproto.Metapb.getDescriptor(), org.tikv.kvproto.Errorpb.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), rustproto.Rustproto.getDescriptor(), }, assigner); internal_static_kvrpcpb_GetRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_kvrpcpb_GetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_GetRequest_descriptor, new java.lang.String[] { "Context", "Key", "Version", }); internal_static_kvrpcpb_GetResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_kvrpcpb_GetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_GetResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "Value", "NotFound", "ExecDetailsV2", }); internal_static_kvrpcpb_ScanRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_kvrpcpb_ScanRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ScanRequest_descriptor, new java.lang.String[] { "Context", "StartKey", "Limit", "Version", "KeyOnly", "Reverse", "EndKey", "SampleStep", }); internal_static_kvrpcpb_ScanResponse_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_kvrpcpb_ScanResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ScanResponse_descriptor, new java.lang.String[] { "RegionError", "Pairs", "Error", }); internal_static_kvrpcpb_PrewriteRequest_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_kvrpcpb_PrewriteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_PrewriteRequest_descriptor, new java.lang.String[] { "Context", "Mutations", "PrimaryLock", "StartVersion", "LockTtl", "SkipConstraintCheck", "IsPessimisticLock", "TxnSize", "ForUpdateTs", "MinCommitTs", "UseAsyncCommit", "Secondaries", "TryOnePc", "MaxCommitTs", }); internal_static_kvrpcpb_PrewriteResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_kvrpcpb_PrewriteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_PrewriteResponse_descriptor, new java.lang.String[] { "RegionError", "Errors", "MinCommitTs", "OnePcCommitTs", }); internal_static_kvrpcpb_PessimisticLockRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_kvrpcpb_PessimisticLockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_PessimisticLockRequest_descriptor, new java.lang.String[] { "Context", "Mutations", "PrimaryLock", "StartVersion", "LockTtl", "ForUpdateTs", "IsFirstLock", "WaitTimeout", "Force", "ReturnValues", "MinCommitTs", }); internal_static_kvrpcpb_PessimisticLockResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_kvrpcpb_PessimisticLockResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_PessimisticLockResponse_descriptor, new java.lang.String[] { "RegionError", "Errors", "CommitTs", "Value", "Values", "NotFounds", }); internal_static_kvrpcpb_PessimisticRollbackRequest_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_kvrpcpb_PessimisticRollbackRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_PessimisticRollbackRequest_descriptor, new java.lang.String[] { "Context", "StartVersion", "ForUpdateTs", "Keys", }); internal_static_kvrpcpb_PessimisticRollbackResponse_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_kvrpcpb_PessimisticRollbackResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_PessimisticRollbackResponse_descriptor, new java.lang.String[] { "RegionError", "Errors", }); internal_static_kvrpcpb_TxnHeartBeatRequest_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_kvrpcpb_TxnHeartBeatRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_TxnHeartBeatRequest_descriptor, new java.lang.String[] { "Context", "PrimaryLock", "StartVersion", "AdviseLockTtl", }); internal_static_kvrpcpb_TxnHeartBeatResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_kvrpcpb_TxnHeartBeatResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_TxnHeartBeatResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "LockTtl", }); internal_static_kvrpcpb_CheckTxnStatusRequest_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_kvrpcpb_CheckTxnStatusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CheckTxnStatusRequest_descriptor, new java.lang.String[] { "Context", "PrimaryKey", "LockTs", "CallerStartTs", "CurrentTs", "RollbackIfNotExist", "ForceSyncCommit", "ResolvingPessimisticLock", }); internal_static_kvrpcpb_CheckTxnStatusResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_kvrpcpb_CheckTxnStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CheckTxnStatusResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "LockTtl", "CommitVersion", "Action", "LockInfo", }); internal_static_kvrpcpb_CheckSecondaryLocksRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_kvrpcpb_CheckSecondaryLocksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CheckSecondaryLocksRequest_descriptor, new java.lang.String[] { "Context", "Keys", "StartVersion", }); internal_static_kvrpcpb_CheckSecondaryLocksResponse_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_kvrpcpb_CheckSecondaryLocksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CheckSecondaryLocksResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "Locks", "CommitTs", }); internal_static_kvrpcpb_CommitRequest_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_kvrpcpb_CommitRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CommitRequest_descriptor, new java.lang.String[] { "Context", "StartVersion", "Keys", "CommitVersion", }); internal_static_kvrpcpb_CommitResponse_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_kvrpcpb_CommitResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CommitResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "CommitVersion", }); internal_static_kvrpcpb_ImportRequest_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_kvrpcpb_ImportRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ImportRequest_descriptor, new java.lang.String[] { "Mutations", "CommitVersion", }); internal_static_kvrpcpb_ImportResponse_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_kvrpcpb_ImportResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ImportResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_CleanupRequest_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_kvrpcpb_CleanupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CleanupRequest_descriptor, new java.lang.String[] { "Context", "Key", "StartVersion", "CurrentTs", }); internal_static_kvrpcpb_CleanupResponse_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_kvrpcpb_CleanupResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CleanupResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "CommitVersion", }); internal_static_kvrpcpb_BatchGetRequest_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_kvrpcpb_BatchGetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_BatchGetRequest_descriptor, new java.lang.String[] { "Context", "Keys", "Version", }); internal_static_kvrpcpb_BatchGetResponse_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_kvrpcpb_BatchGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_BatchGetResponse_descriptor, new java.lang.String[] { "RegionError", "Pairs", "ExecDetailsV2", "Error", }); internal_static_kvrpcpb_BatchRollbackRequest_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_kvrpcpb_BatchRollbackRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_BatchRollbackRequest_descriptor, new java.lang.String[] { "Context", "StartVersion", "Keys", }); internal_static_kvrpcpb_BatchRollbackResponse_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_kvrpcpb_BatchRollbackResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_BatchRollbackResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_ScanLockRequest_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_kvrpcpb_ScanLockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ScanLockRequest_descriptor, new java.lang.String[] { "Context", "MaxVersion", "StartKey", "Limit", "EndKey", }); internal_static_kvrpcpb_ScanLockResponse_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_kvrpcpb_ScanLockResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ScanLockResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "Locks", }); internal_static_kvrpcpb_ResolveLockRequest_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_kvrpcpb_ResolveLockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ResolveLockRequest_descriptor, new java.lang.String[] { "Context", "StartVersion", "CommitVersion", "TxnInfos", "Keys", }); internal_static_kvrpcpb_ResolveLockResponse_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_kvrpcpb_ResolveLockResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ResolveLockResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_GCRequest_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_kvrpcpb_GCRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_GCRequest_descriptor, new java.lang.String[] { "Context", "SafePoint", }); internal_static_kvrpcpb_GCResponse_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_kvrpcpb_GCResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_GCResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_DeleteRangeRequest_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_kvrpcpb_DeleteRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_DeleteRangeRequest_descriptor, new java.lang.String[] { "Context", "StartKey", "EndKey", "NotifyOnly", }); internal_static_kvrpcpb_DeleteRangeResponse_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_kvrpcpb_DeleteRangeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_DeleteRangeResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_RawGetRequest_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_kvrpcpb_RawGetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawGetRequest_descriptor, new java.lang.String[] { "Context", "Key", "Cf", }); internal_static_kvrpcpb_RawGetResponse_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_kvrpcpb_RawGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawGetResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "Value", "NotFound", }); internal_static_kvrpcpb_RawBatchGetRequest_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_kvrpcpb_RawBatchGetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawBatchGetRequest_descriptor, new java.lang.String[] { "Context", "Keys", "Cf", }); internal_static_kvrpcpb_RawBatchGetResponse_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_kvrpcpb_RawBatchGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawBatchGetResponse_descriptor, new java.lang.String[] { "RegionError", "Pairs", }); internal_static_kvrpcpb_RawPutRequest_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_kvrpcpb_RawPutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawPutRequest_descriptor, new java.lang.String[] { "Context", "Key", "Value", "Cf", "Ttl", "ForCas", }); internal_static_kvrpcpb_RawPutResponse_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_kvrpcpb_RawPutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawPutResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_RawBatchPutRequest_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_kvrpcpb_RawBatchPutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawBatchPutRequest_descriptor, new java.lang.String[] { "Context", "Pairs", "Cf", "Ttl", "ForCas", }); internal_static_kvrpcpb_RawBatchPutResponse_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_kvrpcpb_RawBatchPutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawBatchPutResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_RawDeleteRequest_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_kvrpcpb_RawDeleteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawDeleteRequest_descriptor, new java.lang.String[] { "Context", "Key", "Cf", "ForCas", }); internal_static_kvrpcpb_RawDeleteResponse_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_kvrpcpb_RawDeleteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawDeleteResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_RawBatchDeleteRequest_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_kvrpcpb_RawBatchDeleteRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawBatchDeleteRequest_descriptor, new java.lang.String[] { "Context", "Keys", "Cf", "ForCas", }); internal_static_kvrpcpb_RawBatchDeleteResponse_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_kvrpcpb_RawBatchDeleteResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawBatchDeleteResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_RawScanRequest_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_kvrpcpb_RawScanRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawScanRequest_descriptor, new java.lang.String[] { "Context", "StartKey", "Limit", "KeyOnly", "Cf", "Reverse", "EndKey", }); internal_static_kvrpcpb_RawScanResponse_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_kvrpcpb_RawScanResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawScanResponse_descriptor, new java.lang.String[] { "RegionError", "Kvs", }); internal_static_kvrpcpb_RawDeleteRangeRequest_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_kvrpcpb_RawDeleteRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawDeleteRangeRequest_descriptor, new java.lang.String[] { "Context", "StartKey", "EndKey", "Cf", }); internal_static_kvrpcpb_RawDeleteRangeResponse_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_kvrpcpb_RawDeleteRangeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawDeleteRangeResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_RawBatchScanRequest_descriptor = getDescriptor().getMessageTypes().get(50); internal_static_kvrpcpb_RawBatchScanRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawBatchScanRequest_descriptor, new java.lang.String[] { "Context", "Ranges", "EachLimit", "KeyOnly", "Cf", "Reverse", }); internal_static_kvrpcpb_RawBatchScanResponse_descriptor = getDescriptor().getMessageTypes().get(51); internal_static_kvrpcpb_RawBatchScanResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawBatchScanResponse_descriptor, new java.lang.String[] { "RegionError", "Kvs", }); internal_static_kvrpcpb_UnsafeDestroyRangeRequest_descriptor = getDescriptor().getMessageTypes().get(52); internal_static_kvrpcpb_UnsafeDestroyRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_UnsafeDestroyRangeRequest_descriptor, new java.lang.String[] { "Context", "StartKey", "EndKey", }); internal_static_kvrpcpb_UnsafeDestroyRangeResponse_descriptor = getDescriptor().getMessageTypes().get(53); internal_static_kvrpcpb_UnsafeDestroyRangeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_UnsafeDestroyRangeResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_RegisterLockObserverRequest_descriptor = getDescriptor().getMessageTypes().get(54); internal_static_kvrpcpb_RegisterLockObserverRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RegisterLockObserverRequest_descriptor, new java.lang.String[] { "Context", "MaxTs", }); internal_static_kvrpcpb_RegisterLockObserverResponse_descriptor = getDescriptor().getMessageTypes().get(55); internal_static_kvrpcpb_RegisterLockObserverResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RegisterLockObserverResponse_descriptor, new java.lang.String[] { "Error", }); internal_static_kvrpcpb_CheckLockObserverRequest_descriptor = getDescriptor().getMessageTypes().get(56); internal_static_kvrpcpb_CheckLockObserverRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CheckLockObserverRequest_descriptor, new java.lang.String[] { "Context", "MaxTs", }); internal_static_kvrpcpb_CheckLockObserverResponse_descriptor = getDescriptor().getMessageTypes().get(57); internal_static_kvrpcpb_CheckLockObserverResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CheckLockObserverResponse_descriptor, new java.lang.String[] { "Error", "IsClean", "Locks", }); internal_static_kvrpcpb_RemoveLockObserverRequest_descriptor = getDescriptor().getMessageTypes().get(58); internal_static_kvrpcpb_RemoveLockObserverRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RemoveLockObserverRequest_descriptor, new java.lang.String[] { "Context", "MaxTs", }); internal_static_kvrpcpb_RemoveLockObserverResponse_descriptor = getDescriptor().getMessageTypes().get(59); internal_static_kvrpcpb_RemoveLockObserverResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RemoveLockObserverResponse_descriptor, new java.lang.String[] { "Error", }); internal_static_kvrpcpb_PhysicalScanLockRequest_descriptor = getDescriptor().getMessageTypes().get(60); internal_static_kvrpcpb_PhysicalScanLockRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_PhysicalScanLockRequest_descriptor, new java.lang.String[] { "Context", "MaxTs", "StartKey", "Limit", }); internal_static_kvrpcpb_PhysicalScanLockResponse_descriptor = getDescriptor().getMessageTypes().get(61); internal_static_kvrpcpb_PhysicalScanLockResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_PhysicalScanLockResponse_descriptor, new java.lang.String[] { "Error", "Locks", }); internal_static_kvrpcpb_SplitRegionRequest_descriptor = getDescriptor().getMessageTypes().get(62); internal_static_kvrpcpb_SplitRegionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_SplitRegionRequest_descriptor, new java.lang.String[] { "Context", "SplitKey", "SplitKeys", }); internal_static_kvrpcpb_SplitRegionResponse_descriptor = getDescriptor().getMessageTypes().get(63); internal_static_kvrpcpb_SplitRegionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_SplitRegionResponse_descriptor, new java.lang.String[] { "RegionError", "Left", "Right", "Regions", }); internal_static_kvrpcpb_ReadIndexRequest_descriptor = getDescriptor().getMessageTypes().get(64); internal_static_kvrpcpb_ReadIndexRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ReadIndexRequest_descriptor, new java.lang.String[] { "Context", "StartTs", "Ranges", }); internal_static_kvrpcpb_ReadIndexResponse_descriptor = getDescriptor().getMessageTypes().get(65); internal_static_kvrpcpb_ReadIndexResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ReadIndexResponse_descriptor, new java.lang.String[] { "RegionError", "ReadIndex", "Locked", }); internal_static_kvrpcpb_VerMutation_descriptor = getDescriptor().getMessageTypes().get(66); internal_static_kvrpcpb_VerMutation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerMutation_descriptor, new java.lang.String[] { "Op", "Key", "Value", }); internal_static_kvrpcpb_VerValue_descriptor = getDescriptor().getMessageTypes().get(67); internal_static_kvrpcpb_VerValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerValue_descriptor, new java.lang.String[] { "Value", "Version", }); internal_static_kvrpcpb_VerError_descriptor = getDescriptor().getMessageTypes().get(68); internal_static_kvrpcpb_VerError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerError_descriptor, new java.lang.String[] { "Error", }); internal_static_kvrpcpb_VerKvPair_descriptor = getDescriptor().getMessageTypes().get(69); internal_static_kvrpcpb_VerKvPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerKvPair_descriptor, new java.lang.String[] { "Error", "Key", "Value", }); internal_static_kvrpcpb_VerGetRequest_descriptor = getDescriptor().getMessageTypes().get(70); internal_static_kvrpcpb_VerGetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerGetRequest_descriptor, new java.lang.String[] { "Context", "Key", "StartVersion", }); internal_static_kvrpcpb_VerGetResponse_descriptor = getDescriptor().getMessageTypes().get(71); internal_static_kvrpcpb_VerGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerGetResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "Value", "NotFound", }); internal_static_kvrpcpb_VerBatchGetRequest_descriptor = getDescriptor().getMessageTypes().get(72); internal_static_kvrpcpb_VerBatchGetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerBatchGetRequest_descriptor, new java.lang.String[] { "Context", "Key", "StartVersion", }); internal_static_kvrpcpb_VerBatchGetResponse_descriptor = getDescriptor().getMessageTypes().get(73); internal_static_kvrpcpb_VerBatchGetResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerBatchGetResponse_descriptor, new java.lang.String[] { "RegionError", "Pairs", }); internal_static_kvrpcpb_VerMutRequest_descriptor = getDescriptor().getMessageTypes().get(74); internal_static_kvrpcpb_VerMutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerMutRequest_descriptor, new java.lang.String[] { "Context", "Mut", "Version", }); internal_static_kvrpcpb_VerMutResponse_descriptor = getDescriptor().getMessageTypes().get(75); internal_static_kvrpcpb_VerMutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerMutResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_VerBatchMutRequest_descriptor = getDescriptor().getMessageTypes().get(76); internal_static_kvrpcpb_VerBatchMutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerBatchMutRequest_descriptor, new java.lang.String[] { "Context", "Muts", "Version", }); internal_static_kvrpcpb_VerBatchMutResponse_descriptor = getDescriptor().getMessageTypes().get(77); internal_static_kvrpcpb_VerBatchMutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerBatchMutResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_VerScanRequest_descriptor = getDescriptor().getMessageTypes().get(78); internal_static_kvrpcpb_VerScanRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerScanRequest_descriptor, new java.lang.String[] { "Context", "StartKey", "EndKey", "Limit", "KeyOnly", "Reverse", "StartVersion", }); internal_static_kvrpcpb_VerScanResponse_descriptor = getDescriptor().getMessageTypes().get(79); internal_static_kvrpcpb_VerScanResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerScanResponse_descriptor, new java.lang.String[] { "RegionError", "Pairs", }); internal_static_kvrpcpb_VerDeleteRangeRequest_descriptor = getDescriptor().getMessageTypes().get(80); internal_static_kvrpcpb_VerDeleteRangeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerDeleteRangeRequest_descriptor, new java.lang.String[] { "Context", "StartKey", "EndKey", }); internal_static_kvrpcpb_VerDeleteRangeResponse_descriptor = getDescriptor().getMessageTypes().get(81); internal_static_kvrpcpb_VerDeleteRangeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_VerDeleteRangeResponse_descriptor, new java.lang.String[] { "RegionError", "Error", }); internal_static_kvrpcpb_MvccGetByKeyRequest_descriptor = getDescriptor().getMessageTypes().get(82); internal_static_kvrpcpb_MvccGetByKeyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_MvccGetByKeyRequest_descriptor, new java.lang.String[] { "Context", "Key", }); internal_static_kvrpcpb_MvccGetByKeyResponse_descriptor = getDescriptor().getMessageTypes().get(83); internal_static_kvrpcpb_MvccGetByKeyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_MvccGetByKeyResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "Info", }); internal_static_kvrpcpb_MvccGetByStartTsRequest_descriptor = getDescriptor().getMessageTypes().get(84); internal_static_kvrpcpb_MvccGetByStartTsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_MvccGetByStartTsRequest_descriptor, new java.lang.String[] { "Context", "StartTs", }); internal_static_kvrpcpb_MvccGetByStartTsResponse_descriptor = getDescriptor().getMessageTypes().get(85); internal_static_kvrpcpb_MvccGetByStartTsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_MvccGetByStartTsResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "Key", "Info", }); internal_static_kvrpcpb_Context_descriptor = getDescriptor().getMessageTypes().get(86); internal_static_kvrpcpb_Context_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_Context_descriptor, new java.lang.String[] { "RegionId", "RegionEpoch", "Peer", "Term", "Priority", "IsolationLevel", "NotFillCache", "SyncLog", "RecordTimeStat", "RecordScanStat", "ReplicaRead", "ResolvedLocks", "MaxExecutionDurationMs", "AppliedIndex", "TaskId", "StaleRead", }); internal_static_kvrpcpb_LockInfo_descriptor = getDescriptor().getMessageTypes().get(87); internal_static_kvrpcpb_LockInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_LockInfo_descriptor, new java.lang.String[] { "PrimaryLock", "LockVersion", "Key", "LockTtl", "TxnSize", "LockType", "LockForUpdateTs", "UseAsyncCommit", "MinCommitTs", "Secondaries", }); internal_static_kvrpcpb_KeyError_descriptor = getDescriptor().getMessageTypes().get(88); internal_static_kvrpcpb_KeyError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_KeyError_descriptor, new java.lang.String[] { "Locked", "Retryable", "Abort", "Conflict", "AlreadyExist", "Deadlock", "CommitTsExpired", "TxnNotFound", "CommitTsTooLarge", }); internal_static_kvrpcpb_WriteConflict_descriptor = getDescriptor().getMessageTypes().get(89); internal_static_kvrpcpb_WriteConflict_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_WriteConflict_descriptor, new java.lang.String[] { "StartTs", "ConflictTs", "Key", "Primary", "ConflictCommitTs", }); internal_static_kvrpcpb_AlreadyExist_descriptor = getDescriptor().getMessageTypes().get(90); internal_static_kvrpcpb_AlreadyExist_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_AlreadyExist_descriptor, new java.lang.String[] { "Key", }); internal_static_kvrpcpb_Deadlock_descriptor = getDescriptor().getMessageTypes().get(91); internal_static_kvrpcpb_Deadlock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_Deadlock_descriptor, new java.lang.String[] { "LockTs", "LockKey", "DeadlockKeyHash", }); internal_static_kvrpcpb_CommitTsExpired_descriptor = getDescriptor().getMessageTypes().get(92); internal_static_kvrpcpb_CommitTsExpired_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CommitTsExpired_descriptor, new java.lang.String[] { "StartTs", "AttemptedCommitTs", "Key", "MinCommitTs", }); internal_static_kvrpcpb_TxnNotFound_descriptor = getDescriptor().getMessageTypes().get(93); internal_static_kvrpcpb_TxnNotFound_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_TxnNotFound_descriptor, new java.lang.String[] { "StartTs", "PrimaryKey", }); internal_static_kvrpcpb_CommitTsTooLarge_descriptor = getDescriptor().getMessageTypes().get(94); internal_static_kvrpcpb_CommitTsTooLarge_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CommitTsTooLarge_descriptor, new java.lang.String[] { "CommitTs", }); internal_static_kvrpcpb_TimeDetail_descriptor = getDescriptor().getMessageTypes().get(95); internal_static_kvrpcpb_TimeDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_TimeDetail_descriptor, new java.lang.String[] { "WaitWallTimeMs", "ProcessWallTimeMs", "KvReadWallTimeMs", }); internal_static_kvrpcpb_ScanInfo_descriptor = getDescriptor().getMessageTypes().get(96); internal_static_kvrpcpb_ScanInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ScanInfo_descriptor, new java.lang.String[] { "Total", "Processed", }); internal_static_kvrpcpb_ScanDetail_descriptor = getDescriptor().getMessageTypes().get(97); internal_static_kvrpcpb_ScanDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ScanDetail_descriptor, new java.lang.String[] { "Write", "Lock", "Data", }); internal_static_kvrpcpb_ScanDetailV2_descriptor = getDescriptor().getMessageTypes().get(98); internal_static_kvrpcpb_ScanDetailV2_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ScanDetailV2_descriptor, new java.lang.String[] { "ProcessedVersions", "TotalVersions", "RocksdbDeleteSkippedCount", "RocksdbKeySkippedCount", "RocksdbBlockCacheHitCount", "RocksdbBlockReadCount", "RocksdbBlockReadByte", }); internal_static_kvrpcpb_ExecDetails_descriptor = getDescriptor().getMessageTypes().get(99); internal_static_kvrpcpb_ExecDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ExecDetails_descriptor, new java.lang.String[] { "TimeDetail", "ScanDetail", }); internal_static_kvrpcpb_ExecDetailsV2_descriptor = getDescriptor().getMessageTypes().get(100); internal_static_kvrpcpb_ExecDetailsV2_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_ExecDetailsV2_descriptor, new java.lang.String[] { "TimeDetail", "ScanDetailV2", }); internal_static_kvrpcpb_KvPair_descriptor = getDescriptor().getMessageTypes().get(101); internal_static_kvrpcpb_KvPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_KvPair_descriptor, new java.lang.String[] { "Error", "Key", "Value", }); internal_static_kvrpcpb_Mutation_descriptor = getDescriptor().getMessageTypes().get(102); internal_static_kvrpcpb_Mutation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_Mutation_descriptor, new java.lang.String[] { "Op", "Key", "Value", "Assertion", }); internal_static_kvrpcpb_MvccWrite_descriptor = getDescriptor().getMessageTypes().get(103); internal_static_kvrpcpb_MvccWrite_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_MvccWrite_descriptor, new java.lang.String[] { "Type", "StartTs", "CommitTs", "ShortValue", }); internal_static_kvrpcpb_MvccValue_descriptor = getDescriptor().getMessageTypes().get(104); internal_static_kvrpcpb_MvccValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_MvccValue_descriptor, new java.lang.String[] { "StartTs", "Value", }); internal_static_kvrpcpb_MvccLock_descriptor = getDescriptor().getMessageTypes().get(105); internal_static_kvrpcpb_MvccLock_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_MvccLock_descriptor, new java.lang.String[] { "Type", "StartTs", "Primary", "ShortValue", }); internal_static_kvrpcpb_MvccInfo_descriptor = getDescriptor().getMessageTypes().get(106); internal_static_kvrpcpb_MvccInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_MvccInfo_descriptor, new java.lang.String[] { "Lock", "Writes", "Values", }); internal_static_kvrpcpb_TxnInfo_descriptor = getDescriptor().getMessageTypes().get(107); internal_static_kvrpcpb_TxnInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_TxnInfo_descriptor, new java.lang.String[] { "Txn", "Status", }); internal_static_kvrpcpb_KeyRange_descriptor = getDescriptor().getMessageTypes().get(108); internal_static_kvrpcpb_KeyRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_KeyRange_descriptor, new java.lang.String[] { "StartKey", "EndKey", }); internal_static_kvrpcpb_LeaderInfo_descriptor = getDescriptor().getMessageTypes().get(109); internal_static_kvrpcpb_LeaderInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_LeaderInfo_descriptor, new java.lang.String[] { "RegionId", "PeerId", "Term", "RegionEpoch", }); internal_static_kvrpcpb_CheckLeaderRequest_descriptor = getDescriptor().getMessageTypes().get(110); internal_static_kvrpcpb_CheckLeaderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CheckLeaderRequest_descriptor, new java.lang.String[] { "Regions", "Ts", }); internal_static_kvrpcpb_CheckLeaderResponse_descriptor = getDescriptor().getMessageTypes().get(111); internal_static_kvrpcpb_CheckLeaderResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_CheckLeaderResponse_descriptor, new java.lang.String[] { "Regions", "Ts", }); internal_static_kvrpcpb_RawGetKeyTTLRequest_descriptor = getDescriptor().getMessageTypes().get(112); internal_static_kvrpcpb_RawGetKeyTTLRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawGetKeyTTLRequest_descriptor, new java.lang.String[] { "Context", "Key", "Cf", }); internal_static_kvrpcpb_RawGetKeyTTLResponse_descriptor = getDescriptor().getMessageTypes().get(113); internal_static_kvrpcpb_RawGetKeyTTLResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawGetKeyTTLResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "Ttl", "NotFound", }); internal_static_kvrpcpb_RawCASRequest_descriptor = getDescriptor().getMessageTypes().get(114); internal_static_kvrpcpb_RawCASRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawCASRequest_descriptor, new java.lang.String[] { "Context", "Key", "Value", "PreviousNotExist", "PreviousValue", "Cf", "Ttl", }); internal_static_kvrpcpb_RawCASResponse_descriptor = getDescriptor().getMessageTypes().get(115); internal_static_kvrpcpb_RawCASResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_kvrpcpb_RawCASResponse_descriptor, new java.lang.String[] { "RegionError", "Error", "Succeed", "PreviousNotExist", "PreviousValue", }); 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(); org.tikv.kvproto.Errorpb.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); rustproto.Rustproto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy